My mod inherits the settings from "Avatar of Poster on Index and Viewforum". You have to edit the setting "Maximum dimension for the displaying of the avatar" to change the dimision of the avatars (FYI, Affects only the Avatars on the Index, Viewforum, Forumlist block, Global announcements block and the news block)
Example: (20px)
ALSO:
A new Version is out:
Changelog:
- Display the Avatar on the "Global announcement block
Codechanges:
gamingboard wrote:Before adding this MOD to your forum, you should back up all files and databases related to this MOD.
This MOD was designed for Avatar of poster on Index and Viewforum 1.3.0 / Board3 2.0.1
and may not function as stated on other Avatar of poster on Index and Viewforum / Board3 versions.
Note: This is just a fix for the global announcements block.
Open: portal/modules/portal_announcements.php
Find
Tip: This may be a partial find and not the whole line.
Code: Select all
// Grab icons
$icons = $cache->obtain_icons();
Add before
Code: Select all
//-- mod : apiv ----------------------------------------------------------------
//-- add
//-- Board3
if ( $config['avatar_topics_first_poster_show'] || $config['avatar_topics_last_poster_show'] )
{
$template->assign_var('AVATAR_MAX_DIMENSIONS', $config['avatar_max_dimensions']);
}
//-- fin mod : apiv ------------------------------------------------------------
Find
Tip: This may be a partial find and not the whole line.
Code: Select all
if(!empty($fetch_news[$i]['attachments']))
{
foreach ($fetch_news[$i]['attachments'] as $attachment)
{
$template->assign_block_vars('announcements_center_row.attachment', array(
'DISPLAY_ATTACHMENT' => $attachment)
);
}
}
Add before
Code: Select all
//-- mod : apiv ----------------------------------------------------------------
//-- add
//-- Board3
user_display_avatar($fetch_news[$i], 'topic_first', 'announcements_center_row', $config['avatar_topics_first_poster_show']);
user_display_avatar($fetch_news[$i], 'topic_last', 'announcements_center_row', $config['avatar_topics_last_poster_show']);
//-- fin mod : apiv ------------------------------------------------------------
Open: styles/prosilver/template/portal/modules/announcements_center_compact.html
Find
Tip: This may be a partial find and not the whole line.
Code: Select all
<!-- IF announcements_center_row.S_UNREAD_TOPIC -->
Add before
Code: Select all
<!-- IF announcements_center_row.TOPIC_FIRST_POSTER_AVATAR --><span style="float: left; padding-top: 3px; margin-right: {announcements_center_row.TOPIC_FIRST_POSTER_AVATAR_MARGIN}px;">{announcements_center_row.TOPIC_FIRST_POSTER_AVATAR}</span><!-- ENDIF -->
Find
Tip: This may be a partial find and not the whole line.
Code: Select all
<span><dfn>{L_LAST_POST}</dfn>{L_POST_BY_AUTHOR} {announcements_center_row.USERNAME_FULL_LAST} <!-- IF announcements_center_row.S_UNREAD_INFO --><a href="{announcements_center_row.U_VIEW_UNREAD}">{NEWEST_POST_IMG}</a><!-- ELSE --><a href="{announcements_center_row.U_LAST_COMMENTS}">{READ_POST_IMG}</a><!-- ENDIF --><br />
{announcements_center_row.LAST_POST_TIME}</span>
Add before
Code: Select all
<!-- IF announcements_center_row.TOPIC_LAST_POSTER_AVATAR --><div style="float: left; padding-top: 0px; margin-left: 5px; margin-right: {announcements_center_row.TOPIC_LAST_POSTER_AVATAR_MARGIN}px;">{announcements_center_row.TOPIC_LAST_POSTER_AVATAR}</div><!-- ENDIF -->
Purge the cache
Enjoy
You can find a MODX Version of this mod
here (subsilver2 included, Automod ready [Uninstall the old version first, if you use Automod])
Grab the zip for the new version...
P.s. When you installed this Mod via Automod make sure that you delete the old version first.