Skip to content

Commit

Permalink
changed avatar height setting
Browse files Browse the repository at this point in the history
  • Loading branch information
LMOspaceace committed Jan 16, 2016
1 parent f4afbc4 commit a61eb73
Show file tree
Hide file tree
Showing 13 changed files with 49 additions and 49 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"type": "phpbb-extension",
"description": "Chat for phpBB 3.1",
"homepage": "http://www.livemembersonly.com",
"version": "3.0.11-BETA",
"time": "2016-01-09",
"version": "3.0.12-BETA",
"time": "2016-01-16",
"license": "GPL-2.0",
"authors": [{
"name": "spaceace",
Expand Down
14 changes: 7 additions & 7 deletions controller/chat.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ public function index()
'LAST_ID' => $this->last_id,
'LAST_POST' => $last_post,
'TIME' => time(),
'L_VERSION' => '3.0.11-BETA',
'L_VERSION' => '3.0.12-BETA',
'STYLE_PATH' => generate_board_url() . '/styles/' . $this->user->style['style_path'],
'EXT_STYLE_PATH' => '' . $this->ext_path_web . 'styles/',
'FILENAME' => $this->helper->route('spaceace_ajaxchat_chat'),
Expand Down Expand Up @@ -332,8 +332,8 @@ private function defaultAction()
$avatar_thumb = [
'avatar' => $row['user_avatar'],
'avatar_type' => $row['user_avatar_type'],
'avatar_height' => '',
'avatar_width' => 35,
'avatar_height' => 20,
'avatar_width' => '',
];
$row['avatar'] = ($this->user->optionget('viewavatars')) ? phpbb_get_avatar($avatar, '') : '';
$row['avatar_thumb'] = ($this->user->optionget('viewavatars')) ? phpbb_get_avatar($avatar_thumb, '') : '';
Expand Down Expand Up @@ -552,8 +552,8 @@ private function readAction()
$avatar_thumb = [
'avatar' => $row['user_avatar'],
'avatar_type' => $row['user_avatar_type'],
'avatar_height' => '',
'avatar_width' => 35,
'avatar_height' => 20,
'avatar_width' => '',
];
$row['avatar'] = ($this->user->optionget('viewavatars')) ? phpbb_get_avatar($avatar, '') : '';
$row['avatar_thumb'] = ($this->user->optionget('viewavatars')) ? phpbb_get_avatar($avatar_thumb, '') : '';
Expand Down Expand Up @@ -695,8 +695,8 @@ private function addAction()
$avatar_thumb = [
'avatar' => $row['user_avatar'],
'avatar_type' => $row['user_avatar_type'],
'avatar_height' => '',
'avatar_width' => 35,
'avatar_height' => 20,
'avatar_width' => '',
];
$row['avatar'] = ($this->user->optionget('viewavatars')) ? phpbb_get_avatar($avatar, '') : '';
$row['avatar_thumb'] = ($this->user->optionget('viewavatars')) ? phpbb_get_avatar($avatar_thumb, '') : '';
Expand Down
6 changes: 3 additions & 3 deletions event/listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ public function index()
$avatar_thumb = [
'avatar' => $row['user_avatar'],
'avatar_type' => $row['user_avatar_type'],
'avatar_height' => '',
'avatar_width' => 35,
'avatar_height' => 20,
'avatar_width' => '',
];
$row['avatar'] = ($this->user->optionget('viewavatars')) ? phpbb_get_avatar($avatar, '') : '';
$row['avatar_thumb'] = ($this->user->optionget('viewavatars')) ? phpbb_get_avatar($avatar_thumb, '') : '';
Expand Down Expand Up @@ -465,7 +465,7 @@ public function index()
'LAST_ID' => $this->last_id,
'LAST_POST' => $last_post,
'TIME' => time(),
'L_VERSION' => '3.0.11-BETA',
'L_VERSION' => '3.0.12-BETA',
'STYLE_PATH' => generate_board_url() . '/styles/' . $this->user->style['style_path'],
'EXT_STYLE_PATH' => '' . $this->ext_path_web . 'styles/',
'FILENAME' => $this->helper->route('spaceace_ajaxchat_chat'),
Expand Down
8 changes: 4 additions & 4 deletions styles/Bluespace/template/chat_body.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<!-- ELSE -->
<!-- IF S_AJAX_CHAT_AVATAR_HOVER -->
<span>
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="128" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="128" alt="" />
</span>
<!-- ENDIF -->
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="35" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="20" alt="" />
<!-- ENDIF -->
<!-- ENDIF -->
</div>
Expand Down Expand Up @@ -182,10 +182,10 @@
<!-- ELSE -->
<!-- IF S_AJAX_CHAT_AVATAR_HOVER -->
<span>
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="128" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="128" alt="" />
</span>
<!-- ENDIF -->
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="35" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="20" alt="" />
<!-- ENDIF -->
<!-- ENDIF -->
</div>
Expand Down
8 changes: 4 additions & 4 deletions styles/Deepspace/template/chat_body.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<!-- ELSE -->
<!-- IF S_AJAX_CHAT_AVATAR_HOVER -->
<span>
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="128" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="128" alt="" />
</span>
<!-- ENDIF -->
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="35" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="20" alt="" />
<!-- ENDIF -->
<!-- ENDIF -->
</div>
Expand Down Expand Up @@ -182,10 +182,10 @@
<!-- ELSE -->
<!-- IF S_AJAX_CHAT_AVATAR_HOVER -->
<span>
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="128" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="128" alt="" />
</span>
<!-- ENDIF -->
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="35" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="20" alt="" />
<!-- ENDIF -->
<!-- ENDIF -->
</div>
Expand Down
8 changes: 4 additions & 4 deletions styles/GhostSpace/template/chat_body.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
<!-- ELSE -->
<!-- IF S_AJAX_CHAT_AVATAR_HOVER -->
<span>
<img src="{STYLE_PATH}/theme/images/no_avatar.png" width="128" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.png" height="128" alt="" />
</span>
<!-- ENDIF -->
<img src="{STYLE_PATH}/theme/images/no_avatar.png" width="35" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.png" height="20" alt="" />
<!-- ENDIF -->
<!-- ENDIF -->
</div>
Expand Down Expand Up @@ -159,10 +159,10 @@
<!-- ELSE -->
<!-- IF S_AJAX_CHAT_AVATAR_HOVER -->
<span>
<img src="{STYLE_PATH}/theme/images/no_avatar.png" width="128" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.png" height="128" alt="" />
</span>
<!-- ENDIF -->
<img src="{STYLE_PATH}/theme/images/no_avatar.png" width="35" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.png" height="20" alt="" />
<!-- ENDIF -->
<!-- ENDIF -->
</div>
Expand Down
8 changes: 4 additions & 4 deletions styles/Prospace/template/chat_body.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<!-- ELSE -->
<!-- IF S_AJAX_CHAT_AVATAR_HOVER -->
<span>
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="128" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="128" alt="" />
</span>
<!-- ENDIF -->
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="35" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="20" alt="" />
<!-- ENDIF -->
<!-- ENDIF -->
</div>
Expand Down Expand Up @@ -182,10 +182,10 @@
<!-- ELSE -->
<!-- IF S_AJAX_CHAT_AVATAR_HOVER -->
<span>
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="128" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="128" alt="" />
</span>
<!-- ENDIF -->
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="35" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="20" alt="" />
<!-- ENDIF -->
<!-- ENDIF -->
</div>
Expand Down
8 changes: 4 additions & 4 deletions styles/all/template/chat_body.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<!-- ELSE -->
<!-- IF S_AJAX_CHAT_AVATAR_HOVER -->
<span>
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="128" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="128" alt="" />
</span>
<!-- ENDIF -->
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="35" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="20" alt="" />
<!-- ENDIF -->
<!-- ENDIF -->
</div>
Expand Down Expand Up @@ -182,10 +182,10 @@
<!-- ELSE -->
<!-- IF S_AJAX_CHAT_AVATAR_HOVER -->
<span>
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="128" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="128" alt="" />
</span>
<!-- ENDIF -->
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="35" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="20" alt="" />
<!-- ENDIF -->
<!-- ENDIF -->
</div>
Expand Down
2 changes: 1 addition & 1 deletion styles/all/theme/ajax_chat.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
line-height: 1.48em;
width: 100%;
clear: both;
min-height: 40px;
min-height: 30px;
}

.chat dd {
Expand Down
8 changes: 4 additions & 4 deletions styles/black/template/chat_body.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<!-- ELSE -->
<!-- IF S_AJAX_CHAT_AVATAR_HOVER -->
<span>
<img src="{STYLE_PATH}/theme/images/no_avatar.png" width="128" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.png" height="128" alt="" />
</span>
<!-- ENDIF -->
<img src="{STYLE_PATH}/theme/images/no_avatar.png" width="35" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.png" height="20" alt="" />
<!-- ENDIF -->
<!-- ENDIF -->
</div>
Expand Down Expand Up @@ -182,10 +182,10 @@
<!-- ELSE -->
<!-- IF S_AJAX_CHAT_AVATAR_HOVER -->
<span>
<img src="{STYLE_PATH}/theme/images/no_avatar.png" width="128" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.png" height="128" alt="" />
</span>
<!-- ENDIF -->
<img src="{STYLE_PATH}/theme/images/no_avatar.png" width="35" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.png" height="20" alt="" />
<!-- ENDIF -->
<!-- ENDIF -->
</div>
Expand Down
8 changes: 4 additions & 4 deletions styles/bootlike/template/chat_body.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<!-- ELSE -->
<!-- IF S_AJAX_CHAT_AVATAR_HOVER -->
<span>
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="128" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="128" alt="" />
</span>
<!-- ENDIF -->
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="35" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="20" alt="" />
<!-- ENDIF -->
<!-- ENDIF -->
</div>
Expand Down Expand Up @@ -162,10 +162,10 @@ <h4 class="row panel-title">
<!-- ELSE -->
<!-- IF S_AJAX_CHAT_AVATAR_HOVER -->
<span>
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="128" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="128" alt="" />
</span>
<!-- ENDIF -->
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="35" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="20" alt="" />
<!-- ENDIF -->
<!-- ENDIF -->
</div>
Expand Down
8 changes: 4 additions & 4 deletions styles/subsilver2/template/chat_body.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
<!-- ELSE -->
<!-- IF S_AJAX_CHAT_AVATAR_HOVER -->
<span>
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="128" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="128" alt="" />
</span>
<!-- ENDIF -->
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="35" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="20" alt="" />
<!-- ENDIF -->
<!-- ENDIF -->
</div>
Expand Down Expand Up @@ -160,10 +160,10 @@
<!-- ELSE -->
<!-- IF S_AJAX_CHAT_AVATAR_HOVER -->
<span>
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="128" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="128" alt="" />
</span>
<!-- ENDIF -->
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="35" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="20" alt="" />
<!-- ENDIF -->
<!-- ENDIF -->
</div>
Expand Down
8 changes: 4 additions & 4 deletions styles/we_universal/template/chat_body.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<!-- ELSE -->
<!-- IF S_AJAX_CHAT_AVATAR_HOVER -->
<span>
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="128" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="128" alt="" />
</span>
<!-- ENDIF -->
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="35" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="20" alt="" />
<!-- ENDIF -->
<!-- ENDIF -->
</div>
Expand Down Expand Up @@ -182,10 +182,10 @@
<!-- ELSE -->
<!-- IF S_AJAX_CHAT_AVATAR_HOVER -->
<span>
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="128" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="128" alt="" />
</span>
<!-- ENDIF -->
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" width="35" alt="" />
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="20" alt="" />
<!-- ENDIF -->
<!-- ENDIF -->
</div>
Expand Down

0 comments on commit a61eb73

Please sign in to comment.