Go Back   Pligg Forum > Pligg Development > Pligg Mods
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-16-2008, 11:01 PM
catchpen's Avatar
catchpen catchpen is offline
Pligg Donor
 
Join Date: Jan 2008
Posts: 203
Downloads: 25
Uploads: 1
Thanks: 29
Thanked 17 Times in 12 Posts
[MOD] 10 second mod to use small avatars in story or summary

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
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change the story summary Romac Template Support 1 01-20-2008 12:04 AM
Removing part of the story from summary, but not from the complete story not2serious General Help 10 12-29-2007 09:56 AM
How to display small avatar instead of large avatar with story submissions Leonyc14 General Help 0 08-02-2007 07:02 PM
full story (not summary) on index page revolver General Help 2 06-24-2007 10:03 AM
Story Summary AshDigg Retired Threads 4 08-16-2006 02:01 PM


LinkBacks Enabled by vBSEO 3.0.0