Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Last Poster Avatar Details »»
Last Poster Avatar
Version: 1.1.1, by phpdesk phpdesk is offline
Developer Last Online: Apr 2020 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.1.8 Rating:
Released: 12-12-2011 Last Update: 01-05-2012 Installs: 344
Uses Plugins Template Edits
Is in Beta Stage  
No support by the author.

Info
This mod ads last posters' avatars next to their names on Forumdisplay pages. I've just finished a section of one of my bigger mods to come, and thought that some of you may just need this little enhancement on their forums. If so, feel free to download and test it.
Features
Not too many features for now, it's a pretty straight forward mod. I'm always open to your suggestions though.

- Display last poster avatars in threadbits on forumdisplay
- Display last poster avatars in forumbits on forumhome and forumdisplay
- Admin settings to enable display of last poster avatars in certain areas or disable globally
- Set an avatar size to best match the layout
- Choose an alternative avatar display on forumbits
- Zero database queries to keep things running smoothly





Installation
Import [phpdesk.com]-product-lpavatar.xml via AdminCP > Plugin System > Manage Products > [Add/Import Product]
Mod Support
- Do not forget to mark as installed to qualify for further assistance
- A small donation would always be welcome to support further development of this hack (Support Developer)
- I'll do my best to listen to your comments and suggestions as long as time permits
Ghangelog
1.0.0 | 2011-12-13
- First Release

1.0.1 | 2011-12-13
- Fixed file path issue affecting some forum setups

1.0.2 | 2011-12-14
- Added last poster avatars to forumbits on forumhome and forumdisplay

- Added admin options to control display of avatars


1.0.3 | 2011-12-15
- Added option to display a default avatar for users that have not uploaded a custom avatar of their own


1.0.4 | 2011-12-15
- Re-enabled last posters' avatars display on forumhome after fixing the reported issue


1.0.5 | 2011-12-16
- Added option to set the avatar size individually for the forumbits and threadbits display


1.1.0 | 2012-01-04
- Link the avatar to member profile page

- Offer additional way to position last poster avatars on forumbits

- Remove the unnecessary extra database queries

1.1.1 | 2012-01-04
- Fix display issue when avatars are set to be saved as files


1.X.X | PLANNED
- Add avatar to search results, new posts, today posts, etc

Download Now

File Type: xml [phpdesk.com]-product-lpavatar-1.1.1.xml (11.8 KB, 1791 views)
File Type: xml [phpdesk.com]-product-lpavatar-1.0.5a.xml (10.4 KB, 246 views)

Screenshots

File Type: png forumdisplay.png (35.1 KB, 0 views)
File Type: png adminoptions.png (67.2 KB, 0 views)
File Type: png forumhome.png (26.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
5 благодарности(ей) от:
iiioroh, jramos1973, RichieBoy67, yilmaz

Comments
  #212  
Old 10-15-2012, 05:42 PM
paulket paulket is offline
 
Join Date: Oct 2010
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedTurtle View Post
This mod seems awesome but it's unfortunate that it doesn't work with sub forums.

The mod author hasn't posted in this thread for about 7 months now. I realize he must have a lot of other things to attend to but I'm wondering, is this plugin still supported?
+1. Hoping there will be an update that fixes the issue with sub forums... but no post by the creator of this mod for such a long time doesn't look good.
Reply With Quote
  #213  
Old 10-18-2012, 01:55 AM
Disco_Stu Disco_Stu is offline
 
Join Date: Apr 2012
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems like a very minor change to make this work for subforms but it's really up to the developer to release a change
Reply With Quote
  #214  
Old 10-18-2012, 08:50 PM
paulket paulket is offline
 
Join Date: Oct 2010
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have absolutely no idea why but now I can see the last post avatar with my sub forums.
Reply With Quote
  #215  
Old 10-28-2012, 03:57 AM
Impromptu Impromptu is offline
 
Join Date: Jun 2012
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kylek View Post
Disabling it for now until the sub forum problem can be fixed, getting too many members complaining that someone elses avatar is showing as theirs. Otherwise this is a great feature. Any chance for a temporary fix on this in the meantime?
Quote:
Originally Posted by New Joe View Post
Same with me, hope it can be fixed
I have this issues too, ie 'someone elses avatar is showing as theirs'

Bit of a shame since a great mod
Reply With Quote
  #216  
Old 10-29-2012, 07:52 AM
flash84 flash84 is offline
 
Join Date: Apr 2012
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent mod. It's working perfectly on VB4.2
Reply With Quote
Благодарность от:
fxdigi-cash
  #217  
Old 11-02-2012, 12:01 AM
Harpo's Avatar
Harpo Harpo is offline
 
Join Date: Dec 2011
Location: Canada
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by flash84 View Post
Excellent mod. It's working perfectly on VB4.2
As long as you don't have sub forums. sure.

Uninstalled.
Reply With Quote
Благодарность от:
fxdigi-cash
  #218  
Old 11-23-2012, 06:13 AM
L0pht L0pht is offline
 
Join Date: Oct 2010
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can not see the bottom of this add-on changes in the forums?
Reply With Quote
  #219  
Old 01-17-2013, 12:29 PM
Adam H Adam H is offline
 
Join Date: Apr 2008
Location: UK
Posts: 248
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone else had any problems with this mod conflicting with :

https://vborg.vbsupport.ru/showthread.php?t=271540

On the forum display something is conflicting which makes avatars on some users not show up. This is on the forum display only and not forum home .

When i disable "Hook Threadbit Query Fields & Joins" in this mods plugins everything goes back to normal .
Reply With Quote
  #220  
Old 01-29-2013, 08:47 PM
aryung aryung is offline
 
Join Date: Jan 2011
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

was trying to add a random avatar for no avatar users not sure how i can achieve this adding a nicely hook into this one

for this i edited "functions_user.php"
original
PHP Code:
    // final case: didn't get an avatar, so use the fake one
    
if (empty($userinfo['avatarurl']) AND $returnfakeavatar AND $vbulletin->options['avatarenabled'])
    { 
        
$userinfo['avatarurl'] = vB_Template_Runtime::fetchStyleVar('imgdir_misc') . '/unknown.gif';
    } 
Here is my eidt
PHP Code:
if (empty($userinfo['avatarurl']) AND $returnfakeavatar AND $vbulletin->options['avatarenabled'])
    {
  
$newavatar rand(1,90);
  
$userinfo['avatarurl'] = 'images/avatars/' .$newavatar".jpg"
(This assigns a random image from 1.jpg to 90.jpg)

can you help me please how can a do this under a hook instead of editing source file
Reply With Quote
  #221  
Old 01-30-2013, 04:23 PM
Nirjonadda Nirjonadda is offline
 
Join Date: Dec 2011
Location: Italy
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Database error in vBulletin 4.1.10:

Invalid SQL:

SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
post.pagetext AS preview,thread.firstpostid, post.pagetext AS thumb,
thread.threadid, thread.title AS threadtitle, thread.forumid, thread.pollid, thread.open, thread.postusername, thread.postuserid, thread.iconid AS threadiconid,
thread.dateline, thread.notes, thread.visible, thread.sticky, thread.votetotal, thread.attach, thread.lastpost, thread.lastposter, thread.lastposterid, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views, thread.strike, thread.color,
thread.prefixid, thread.taglist, thread.hiddencount, thread.deletedcount,
user.usergroupid, user.homepage, user.options AS useroptions, IF(userlist.friend = 'yes', 1, 0) AS isfriend,
user.lastactivity, user.lastvisit, IF(user.options & 512, 1, 0) AS invisible

, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
, threadread.readtime AS threadread
, threadredirect.expires
, user.market_username_color AS last_color,
user.market_username_glow AS last_glow, thread.LAM_BanFromThread, post.pagetext AS previewhide, bop_ugroup.opentag as bop5_opentags, bop_ugroup.closetag AS bop5_closetags , thread.bop_global ,IF(customavatar.userid, 1, 0) AS useavatar, uposter.userid AS useravatarid, uposter.avatarrevision
, user.avatarrevision AS avatarrevision, thread.lastposterid AS userid, avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight
FROM vbthread AS thread
LEFT JOIN vbuser AS user ON (user.userid = thread.lastposterid)
LEFT JOIN vbuserlist AS userlist ON (userlist.relationid = user.userid AND userlist.type = 'buddy' AND userlist.userid = 3)
LEFT JOIN vbdeletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')

LEFT JOIN vbthreadread AS threadread ON (threadread.threadid = thread.threadid AND threadread.userid = 3)
LEFT JOIN vbpost AS post ON(post.postid = thread.firstpostid)

LEFT JOIN vbthreadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid)
LEFT JOIN vbuser AS bop_user ON (thread.postuserid = bop_user.userid) LEFT JOIN vbusergroup AS bop_ugroup ON (bop_user.usergroupid = bop_ugroup.usergroupid)
LEFT JOIN vbuser AS uposter ON (uposter.userid = thread.postuserid)
LEFT JOIN vbcustomavatar AS customavatar ON (customavatar.userid = uposter.userid)
LEFT JOIN vbavatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN vbcustomavatar AS customavatar ON(customavatar.userid = user.userid)
WHERE thread.threadid IN (0,123421,164035,163423,163416,162902,163027,16340 9,162431,162433,162909,164006, 163993,163594,163415,159946,161244,162424,162945,1 62419,160385)
ORDER BY thread.sticky DESC, lastpost DESC;

MySQL Error : Not unique table/alias: 'customavatar'
Error Number : 1066
Request Date : Wednesday, January 30th 2013 @ 11:19:04 PM
Error Date : Wednesday, January 30th 2013 @ 11:19:05 PM
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:23 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05568 seconds
  • Memory Usage 2,369KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (6)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete