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
  #132  
Old 01-12-2012, 02:57 AM
bremereric's Avatar
bremereric bremereric is offline
 
Join Date: Aug 2011
Location: Tomball Texas
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay I installed your 1.1.1 version and it didn't have the default avatar option in the admin options. It also had some of the same avatars overriding others on another new post. I did not take screen shots of this. I rolled back to 1.0.5a version and got the default avatar back and they worked like a charm. Lost the option to move the avatar to the left though. I have attached screen shots of the 1.0.5a version installed.
Attached Images
File Type: gif ScreenHunter_02 Jan. 11 21.49.gif (61.2 KB, 0 views)
File Type: gif ScreenHunter_01 Jan. 11 21.49.gif (22.4 KB, 0 views)
Reply With Quote
  #133  
Old 01-12-2012, 10:47 PM
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
Posts: 1,158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bremereric View Post
Okay I installed your 1.1.1 version and it didn't have the default avatar option in the admin options. It also had some of the same avatars overriding others on another new post. I did not take screen shots of this. I rolled back to 1.0.5a version and got the default avatar back and they worked like a charm. Lost the option to move the avatar to the left though. I have attached screen shots of the 1.0.5a version installed.
i've had the same problem

i created a new forum/category
i was the first person to post in it, it decided to show a different users avatar and profile, this mod needs to be checked for errors in coding it seriously messed up my board showing the other guys avatar as the last peron who posted even though i was the only poster in that forum
Reply With Quote
  #134  
Old 01-12-2012, 10:51 PM
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
Posts: 1,158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

current issues

Hook Forumbit Query Fields & Joins

Code:
if( $vbulletin->options['lpavatar_enable'] == 1 && $vbulletin->options['lpavatar_forumbit'] == 1 )
{
    $counter_select .= iif($vbulletin->options['avatarenabled'], ', user.avatarrevision AS avatarrevision, forum.lastposterid AS userid, avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight');
    $tachyjoin .= iif($vbulletin->options['avatarenabled'], "LEFT JOIN " . TABLE_PREFIX . "avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN " . TABLE_PREFIX . "customavatar AS customavatar ON(customavatar.userid = user.userid)");
}
Reply With Quote
  #135  
Old 01-13-2012, 09:33 AM
goshalim goshalim is offline
 
Join Date: Oct 2007
Posts: 470
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by goshalim View Post
Hi , this is a very nice mod , good job man !!

I have only a small problem which iam sure that you will help me to solve it.
Please see the link from my web site.

The user name is shown twice and also a part of the code.

http://www.canarybreeder.net/up/forum/forum.php
Please i really need some help here ............

Reply With Quote
  #136  
Old 01-13-2012, 02:30 PM
bulldog51981's Avatar
bulldog51981 bulldog51981 is offline
 
Join Date: Oct 2010
Location: St. Louis, Mo, USA
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bada_bing View Post
Here is the full error

HTML Code:
Database error in vBulletin 4.1.9:

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.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
			, NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
			, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
			
			, threadredirect.expires
			,IF(customavatar.userid, 1, 0) AS useavatar, user.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 thread AS thread
			LEFT JOIN user AS user ON (user.userid = thread.lastposterid)
			LEFT JOIN userlist AS userlist ON (userlist.relationid = user.userid AND userlist.type = 'buddy' AND userlist.userid = 1)
			LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')
			 LEFT JOIN subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1 AND canview = 1)
			
			LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
			
			LEFT JOIN threadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid)
			
LEFT JOIN customavatar AS customavatar ON (customavatar.userid = thread.postuserid)
LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)
		WHERE thread.threadid IN (0,7,1) 
		ORDER BY thread.sticky DESC, lastpost DESC;

MySQL Error   : Not unique table/alias: 'customavatar'
Error Number  : 1066
Request Date  : Wednesday, January 11th 2012 @ 01:07:59 PM
Error Date    : Wednesday, January 11th 2012 @ 01:07:59 PM
Script        : http://www.mysite.com/forums/forumdisplay.php?2-mysite-com-Announcements
Referrer      : http://www.mysite.com/forums/forum.php
IP Address    : 67.59.x.x
Username      : adminaccount
Classname     : vB_Database
MySQL Version : 5.0.90-community-nt
I upgraded to ver 1.1.1 last night and didn't realize it until this morning but I am getting the same error on Sub Forums only. Reverted back to 1.0.5a and problem solved. Will upgrade again after issue is fixed.
Reply With Quote
  #137  
Old 01-13-2012, 05:04 PM
I.G.O.T.A.'s Avatar
I.G.O.T.A. I.G.O.T.A. is offline
 
Join Date: Mar 2011
Location: USA
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just upgraded forum to 4.1.10 and now my avatars are not lining up like they where on 4.1.8. Any got any ideas?
Reply With Quote
  #138  
Old 01-13-2012, 06:41 PM
kfyonur kfyonur is offline
 
Join Date: Apr 2008
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

same database problem.
Reply With Quote
  #139  
Old 01-13-2012, 07:12 PM
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
Posts: 1,158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by IGOTASTi View Post
I just upgraded forum to 4.1.10 and now my avatars are not lining up like they where on 4.1.8. Any got any ideas?
Quote:
Originally Posted by kfyonur View Post
same database problem.
its a plugin issue

look at the plugins you will see references to the database fieldnames
they may of changed in 4.1.10

details below on which one to check

Hook Forumbit Query Fields & Joins

Code:
if( $vbulletin->options['lpavatar_enable'] == 1 && $vbulletin->options['lpavatar_forumbit'] == 1 )
{
    $counter_select .= iif($vbulletin->options['avatarenabled'], ',  user.avatarrevision AS avatarrevision, forum.lastposterid AS userid,  avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar,  customavatar.dateline AS avatardateline,customavatar.width AS  avwidth,customavatar.height AS avheight');
    $tachyjoin .= iif($vbulletin->options['avatarenabled'], "LEFT  JOIN " . TABLE_PREFIX . "avatar AS avatar ON(avatar.avatarid =  user.avatarid) LEFT JOIN " . TABLE_PREFIX . "customavatar AS  customavatar ON(customavatar.userid = user.userid)");
}
Reply With Quote
  #140  
Old 01-13-2012, 07:41 PM
kevius kevius is offline
 
Join Date: Oct 2009
Location: France
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fready View Post
Found a bug/problem.
On the Forums Home, say you have Sub-Forums, if a poster posts on a Thread in the Sub-Forum it doesn't show their av on the Forums Home, it will show the av of the last poster within the main Forum not the Sub Forum even though the last post showing on the Forums Home is from the Sub Forum.
Hope you understand what I mean.
Hi there, i've got the same problem too !

Can anybody help us to resolve this bug with sub-forum ?
Reply With Quote
  #141  
Old 01-13-2012, 07:53 PM
I.G.O.T.A.'s Avatar
I.G.O.T.A. I.G.O.T.A. is offline
 
Join Date: Mar 2011
Location: USA
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by simonhind View Post
its a plugin issue

look at the plugins you will see references to the database fieldnames
they may of changed in 4.1.10

details below on which one to check

Hook Forumbit Query Fields & Joins

Code:
if( $vbulletin->options['lpavatar_enable'] == 1 && $vbulletin->options['lpavatar_forumbit'] == 1 )
{
    $counter_select .= iif($vbulletin->options['avatarenabled'], ',  user.avatarrevision AS avatarrevision, forum.lastposterid AS userid,  avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar,  customavatar.dateline AS avatardateline,customavatar.width AS  avwidth,customavatar.height AS avheight');
    $tachyjoin .= iif($vbulletin->options['avatarenabled'], "LEFT  JOIN " . TABLE_PREFIX . "avatar AS avatar ON(avatar.avatarid =  user.avatarid) LEFT JOIN " . TABLE_PREFIX . "customavatar AS  customavatar ON(customavatar.userid = user.userid)");
}
So how do I fix this?
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 11:11 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05550 seconds
  • Memory Usage 2,375KB
  • 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
  • (3)bbcode_code
  • (1)bbcode_html
  • (7)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
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (7)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