Addon: Avatar of poster on Index and Viewforum 1.3.0 for Board3 2.0.1
Addon Version: 1.3.0.1
Addon Author: gamingboard
Addon Description:
Shows the author's avatar and last poster's avatar on the news block (compact style only)
Addon Requirements: Board3 Portal 2.0.1 and Avatar of poster on Index and Viewforum 1.3.0
Download:
phpBB.com (You 'll find the zip at the bottom of my the post)
-Removed second host, because it was useless
Disclaimer and other notes:
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.
Instructions:
Upload the package with AutoMOD or read the install.xml
Preview:
[Release] Avatar of poster on Portal
Forum rules
This forum is not for support requests.
Only post Modifications for Board3 Portal 2.0.x in this forum.
This forum is not for support requests.
Only post Modifications for Board3 Portal 2.0.x in this forum.
-
Topic author - Active Member
- Posts: 26
- Joined: 20. November 2009 15:44
- phpBB.de User: gamingboard
- phpBB.com User: gamingboard
- Location: Free and Hanseatic City of Hamburg, Germany
- Contact:
-
- Active Member
- Posts: 10
- Joined: 19. March 2013 01:37
Re: [Release] Avatar of poster on Portal
Is there a way to adjust how large the avatar is displayed? It seems a little big for my forum theme.
-
Topic author - Active Member
- Posts: 26
- Joined: 20. November 2009 15:44
- phpBB.de User: gamingboard
- phpBB.com User: gamingboard
- Location: Free and Hanseatic City of Hamburg, Germany
- Contact:
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:
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.
Example: (20px)
ALSO:
A new Version is out:
Changelog:
- Display the Avatar on the "Global announcement block
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.Add beforeCode: Select all
// Grab icons $icons = $cache->obtain_icons();
FindCode: 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 ------------------------------------------------------------
Tip: This may be a partial find and not the whole line.Add beforeCode: 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) ); } }
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.Add beforeCode: Select all
<!-- IF announcements_center_row.S_UNREAD_TOPIC -->
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.Add beforeCode: 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>
Purge the cacheCode: 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 -->
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.