vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Display Enhancements - Xenforo Like User Avatars (https://vborg.vbsupport.ru/showthread.php?t=268855)

shabbirbhimani 08-20-2011 10:00 PM

Xenforo Like User Avatars
 
1 Attachment(s)
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

https://vborg.vbsupport.ru/external/2011/08/40.png

https://vborg.vbsupport.ru/external/2011/08/41.png

https://vborg.vbsupport.ru/external/2011/08/42.png

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.

Skyrider 08-21-2011 05:18 PM

This is only for vb 3?

Kolektor 08-21-2011 05:38 PM

yes, thank you so much!!!

Mark.B 08-21-2011 05:51 PM

Quote:

Originally Posted by FF|Skyrider (Post 2236247)
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.

Skyrider 08-21-2011 06:22 PM

Quote:

Originally Posted by Mark.B (Post 2236260)
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.

Mark.B 08-21-2011 06:35 PM

Quote:

Originally Posted by FF|Skyrider (Post 2236271)
The one I found had been removed to the graveyard.

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

great kitten 08-21-2011 11:37 PM

would be like to appear on the avatar private messages

shabbirbhimani 08-22-2011 02:19 AM

Quote:

Originally Posted by great kitten (Post 2236385)
would be like to appear on the avatar private messages

What do you mean by avatar private message?

valdet 08-22-2011 05:46 AM

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

shabbirbhimani 08-22-2011 06:50 AM

Quote:

Originally Posted by valdet (Post 2236463)
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.


All times are GMT. The time now is 04:55 AM.

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.01217 seconds
  • Memory Usage 1,761KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (10)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete