[MOD] 10 second mod to use small avatars in story or summary

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-17-2008, 01:01 AM
catchpen's Avatar
Pligg Donor/Coder
 
Join Date: Feb 2008
Posts: 184
This will give you the option to use small or large Avatars in the story or link summary pages
Open up your pligg root/ libs folder/ link.php
find this line. around line 473 in 9.9 version
Code:
$smarty->assign('Avatar_ImgSrc', get_avatar('large', "", "", "", $this->userid));
add this line right underneath:
Code:
$smarty->assign('Avatar_ImgSrcs', get_avatar('small', "", "", "", $this->userid));
Now just use
Code:
{if $UseAvatars neq "0"}<span id="ls_avatar-{$link_shakebox_index}"><img src="{$Avatar_ImgSrcs}" align="absmiddle"/></span>
(changes in red) in the link_summary.tpl of your template where you want a small avatar, you might not need the align="absmiddle".

or just the default
Code:
{if $UseAvatars neq "0"}<span id="ls_avatar-{$link_shakebox_index}"><img src="{$Avatar_ImgSrc}" alt="Avatar"/></span>{/if}
is still usable for the large avatar

Now if only this would work in sidebar modules.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Story summary variables different on front page to actual story page innesb Questions and Comments 1 06-11-2009 07:03 AM
In story page, only summary shown observer_24_7 Questions and Comments 7 06-25-2008 09:53 PM
How to direct story title in summary page to the original story? chris79 Questions and Comments 4 02-03-2008 08:28 PM
Removing part of the story from summary, but not from the complete story not2serious Questions and Comments 10 12-29-2007 11:56 AM
full story (not summary) on index page revolver Questions and Comments 2 06-24-2007 12:03 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development