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

Reply
 
Thread Tools
Xenforo Like User Avatars Details »»
Xenforo Like User Avatars
Version: 1.00, by shabbirbhimani shabbirbhimani is offline
Developer Last Online: Aug 2021 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.8.x Rating:
Released: 08-20-2011 Last Update: Never Installs: 41
Uses Plugins Template Edits
Re-useable Code  
No support by the author.

Download vB 4.x.x Compatible Version Here

What does this plugin do?

This plugin add user avatars to the thread listing in forum display page. See the sceenshot for sample.

Screenshots







Installation Instructions

This plugin requires you to manually edit templates.

Import the xml file as product into vBulletin.

1. Edit threadbit template as follows

Find

HTML Code:
$thread[title_editable]

And add the following code before.

HTML Code:
<a href="member.php?$session[sessionurl]u=$thread[postuserid]" rel="nofollow"><img height="32px" style="float:left;margin-right:4px" src="$thread[avatarurl]" border="0" /></a>

Find

HTML Code:
<td class="alt2" title="<phrase 1="$thread[replycount]" 2="$thread[views]">$vbphrase[replies_x_views_y]</phrase>">
And add the following code after.

HTML Code:
<a href="member.php?$session[sessionurl]find=lastposter&t=$thread[threadid]" rel="nofollow"><img height="32px" style="float:left;margin-right:4px" src="$thread[lastposteravatarurl]" border="0" /></a>

Optionally you can edit the username to be left aligned rather than right aligned. Find

HTML Code:
<div class="smallfont" style="text-align:$stylevar[right]; white-space:nowrap">

Replace with
HTML Code:
<div class="smallfont" style="text-align:$stylevar[left]; white-space:nowrap;padding-left:32px;">

2. Edit forumhome_forumbit_level1_post and forumhome_forumbit_level2_post as follows

Find

HTML Code:
<td class="alt2">$forum[lastpostinfo]</td>

Replace with

HTML Code:
<td class="alt2"><a href="member.php?find=lastposter&f=$forum[forumid]" rel="nofollow"><img height="32px" style="float:left;margin-right:4px" src="$forum[avatarurl]" border="0" /></a><div style="padding-left:36px;">$forum[lastpostinfo]</div></td>

3. Edit Search_result_postbit template as follows

Find
HTML Code:
	<if condition="$show['moderated']">
	<td class="alt2">
	<else />
	<td class="alt1">
	</if>
Add the following code below

HTML Code:
<a href="member.php?$session[sessionurl]u=$post[userid]" rel="nofollow"><img height="32px" style="float:left;margin-right:4px" src="$post[avatarurl]" border="0" /></a>

Support

This plugin is supported, so you can post your issues and queries either on my blog or in comments below.

If you would like to Optimize your vBulletin for Less Server Load & Better User Experience, read this post on Optimizing vBulletin

See the plugin in action at MBA Forum

Enjoy the plugin and do share your views, comments or feedback in comments below.

Download Now

File Type: xml product-xfstyleavatars-v1.00-vb3.xml (5.8 KB, 381 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
4 благодарности(ей) от:
Masterix, Motasm, Nimchan, vithorius

Comments
  #2  
Old 08-21-2011, 05:18 PM
Skyrider Skyrider is offline
 
Join Date: Feb 2006
Location: Netherlands
Posts: 1,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is only for vb 3?
Reply With Quote
  #3  
Old 08-21-2011, 05:38 PM
Kolektor Kolektor is offline
 
Join Date: Jun 2010
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes, thank you so much!!!
Reply With Quote
  #4  
Old 08-21-2011, 05:51 PM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FF|Skyrider View Post
This is only for vb 3?
No there's a vB4 version that was actually here first...view the developer's profile and you'll find it.
Reply With Quote
  #5  
Old 08-21-2011, 06:22 PM
Skyrider Skyrider is offline
 
Join Date: Feb 2006
Location: Netherlands
Posts: 1,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mark.B View Post
No there's a vB4 version that was actually here first...view the developer's profile and you'll find it.
The one I found had been removed to the graveyard.
Reply With Quote
  #6  
Old 08-21-2011, 06:35 PM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FF|Skyrider View Post
The one I found had been removed to the graveyard.
https://vborg.vbsupport.ru/showthread.php?t=268618
Reply With Quote
  #7  
Old 08-21-2011, 11:37 PM
great kitten great kitten is offline
 
Join Date: Mar 2010
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

would be like to appear on the avatar private messages
Reply With Quote
  #8  
Old 08-22-2011, 02:19 AM
shabbirbhimani's Avatar
shabbirbhimani shabbirbhimani is offline
 
Join Date: Nov 2004
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by great kitten View Post
would be like to appear on the avatar private messages
What do you mean by avatar private message?
Reply With Quote
  #9  
Old 08-22-2011, 05:46 AM
valdet's Avatar
valdet valdet is offline
 
Join Date: Feb 2007
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi great mod, I expect this is incompatible with vB 3.6.x, however I tried and received this error on.

I had to disable the mod until hopefully it is solved.


Code:
Database error in vBulletin 3.6.8:

Invalid SQL:

        SELECT user.userid as usersuserid, user.avatarid, user.avatarrevision, avatarpath, NOT ISNULL(customavatar.userid) AS hascustom, customavatar.dateline,
            customavatar.width, customavatar.height, customavatar.width_thumb, customavatar.height_thumb
        FROM vb_user AS user
        LEFT JOIN vb_avatar AS avatar ON avatar.avatarid = user.avatarid
        LEFT JOIN vb_customavatar AS customavatar ON customavatar.userid = user.userid
        WHERE user.username = 'someone';

MySQL Error  : Unknown column 'customavatar.width_thumb' in 'field list'
Error Number : 1054
Date         : Monday, August 22nd 2011 @ 01:37:41 AM
Script       : http://www.mysite.com/forum/
Referrer     : http://www.mysite.com/forum/admincp/index.php?do=head
IP Address   : xx.xx.xx.xx
Username     : someone
Classname    : vB_Database
Hopefully this will be made to work for old-timers as us still on vB 3.6.x versions
Thanks
Reply With Quote
  #10  
Old 08-22-2011, 06:50 AM
shabbirbhimani's Avatar
shabbirbhimani shabbirbhimani is offline
 
Join Date: Nov 2004
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by valdet View Post
Hi great mod, I expect this is incompatible with vB 3.6.x, however I tried and received this error on.

I had to disable the mod until hopefully it is solved.


Code:
Database error in vBulletin 3.6.8:

Invalid SQL:

        SELECT user.userid as usersuserid, user.avatarid, user.avatarrevision, avatarpath, NOT ISNULL(customavatar.userid) AS hascustom, customavatar.dateline,
            customavatar.width, customavatar.height, customavatar.width_thumb, customavatar.height_thumb
        FROM vb_user AS user
        LEFT JOIN vb_avatar AS avatar ON avatar.avatarid = user.avatarid
        LEFT JOIN vb_customavatar AS customavatar ON customavatar.userid = user.userid
        WHERE user.username = 'someone';

MySQL Error  : Unknown column 'customavatar.width_thumb' in 'field list'
Error Number : 1054
Date         : Monday, August 22nd 2011 @ 01:37:41 AM
Script       : http://www.mysite.com/forum/
Referrer     : http://www.mysite.com/forum/admincp/index.php?do=head
IP Address   : xx.xx.xx.xx
Username     : someone
Classname    : vB_Database
Hopefully this will be made to work for old-timers as us still on vB 3.6.x versions
Thanks
This works with vB3.7+ and as of now and I would love to support old timers as I myself is an old timer on many of my forums but nothing lower than 3.7.
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 02:34 PM.


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.06958 seconds
  • Memory Usage 2,350KB
  • Queries Executed 24 (?)
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_code
  • (10)bbcode_html
  • (5)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (4)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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