Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Avatar on forumdisplay Details »»
Avatar on forumdisplay
Version: 1.1, by Allan Allan is offline
Developer Last Online: Mar 2017 Show Printable Version Email this Page

Version: 3.6.4 Rating:
Released: 01-07-2007 Last Update: 01-09-2007 Installs: 81
Uses Plugins Template Edits
Additional Files  
No support by the author.

Avatar on forumdisplay
(Compatible All vB3.6)




Description: Add avatar to user who have create the thread

Installation: Import the plugin
Upload image (aucun_avatar.gif) to your style in misc file
  • Add this class in your style, At the end, in "Additional CSS Definitions", second bloc (custom css))
Code:
.avatar_forumdisplay {
padding:0px 5px 0px 0px;
}
  • Details:
In AdminCP => Styles & Templates => Style Manager => in your style (Main CSS) :





  • In threadbit template, find:
Code:
<if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]" id="thread_gotonew_$thread[realthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if>
  • Before, add this code:
Code:
$avatar
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Version 1.1: Add avatar by default (Big thank to Fred for plugin )

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

PS: If you use thie mod, click on Install please

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 04-02-2008, 02:49 AM
Amenadiel's Avatar
Amenadiel Amenadiel is offline
 
Join Date: Sep 2006
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I succeded in using this mod with filesystem based avatars, but I had to add a second get_avatar_url (which I named get_avatar_url2 very original) in functions_user.php just forcing it to get the file based one.

By the way, is it right to guess this mod adds as many querys to forumdisplay.php as threads we have listed?
Reply With Quote
  #63  
Old 04-02-2008, 02:52 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

fetch_avatar_url will add a query for every unique avatar it pulls.
Reply With Quote
  #64  
Old 05-11-2008, 06:35 PM
stonner stonner is offline
 
Join Date: Jun 2006
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this work with vb 3.7? couldnt find the code in the template...
Reply With Quote
  #65  
Old 05-21-2008, 03:19 PM
brainegg brainegg is offline
 
Join Date: Feb 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it working for 3.7. Great plugin! Make sure to add $avatar in the threadbit template or else it won't work. Like this:

$avatar<if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]" id="thread_gotonew_$thread[realthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if>

Also, some people have some oddly shaped avatars uploaded so you should only specify the width of the avatar in the plugin and leave the height at 100%. It looks better to me.
Reply With Quote
  #66  
Old 08-20-2008, 07:24 AM
studentsforum studentsforum is offline
 
Join Date: Apr 2007
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by brainegg View Post
Got it working for 3.7. Great plugin! Make sure to add $avatar in the threadbit template or else it won't work. Like this:

$avatar<if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]" id="thread_gotonew_$thread[realthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if>

Also, some people have some oddly shaped avatars uploaded so you should only specify the width of the avatar in the plugin and leave the height at 100%. It looks better to me.
wow well done! Must have not seen that in the instructions above! *sigh*

Quote:
Originally Posted by Magnum164 View Post
I have this installed, but not working yet. I have not been able to get it to work on regular avatars, only custom avatars and a couple of forums have no avatars at all.

Any idea how to get default avatars to show for a user?
I also have this annoying problem.

Until something can be done about this, I am going to uninstall.
Reply With Quote
  #67  
Old 01-31-2009, 04:38 AM
sub_ubi sub_ubi is offline
 
Join Date: Dec 2004
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how is this going on 3.8?
Reply With Quote
  #68  
Old 02-10-2009, 01:12 PM
6piston's Avatar
6piston 6piston is offline
 
Join Date: Apr 2005
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi all

this is a great mod.

but,
i really need anyone's help in this

I am trying to only get this mod to display avatars of a certain group only. Paid Subscribers mainly. It should not display avatars from any other usergroup

Can anyone help me?

Thanks!
Tom
Reply With Quote
  #69  
Old 02-11-2009, 06:00 AM
6piston's Avatar
6piston 6piston is offline
 
Join Date: Apr 2005
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone?
Reply With Quote
  #70  
Old 09-26-2010, 04:28 PM
Mostjolly's Avatar
Mostjolly Mostjolly is offline
 
Join Date: Apr 2008
Location: USA
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sub_ubi View Post
how is this going on 3.8?
Confirmed, works on 3.8.2.

Anyhow, I'm looking forward someone could provide codes it'll display not only forumdisplay but also on search results and today's/new post templates.
Reply With Quote
  #71  
Old 04-16-2011, 04:33 AM
Erica1977's Avatar
Erica1977 Erica1977 is offline
 
Join Date: Nov 2009
Location: Laramie, Wyoming
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Allan can you help me please i get a array see red arrow pointing to array cause of this when you only hit new post or when you hit on top right unread post see picture that array.

Attachment 128210

now the avatars show find without the array if you hit a thread in main forum it just dont show when i hit new post or unread post to the top corner right is there anyway i can fix this thanks im useing 3.8.7 vbulletin too.
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 03:05 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.05021 seconds
  • Memory Usage 2,312KB
  • 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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete