Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications

Reply
 
Thread Tools
No Avatar Selected - Display Appropriate Image Details »»
No Avatar Selected - Display Appropriate Image
Version: 1.00, by chooah chooah is offline
Developer Last Online: Oct 2006 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 10-19-2004 Last Update: Never Installs: 6
 
No support by the author.

In PostBit Templates - Postbit


Search for:


<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>


Underneath add:

<if condition="$avatarurl == null"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="INSERT URL TO NO AVATAR SELECTED IMAGE" border="0" /></a></td></if>

This will maintain the flow of your board, by displaying avatars for everybody, but for those that don't have one selected yet, they will get one such as

http://www.ru55ian.net/forum/html/avatars/noavatar.gif

This is my first (and best) bit of coding, I am an absolute NEWBIE so it'll be great if this is useful to anybody!!

Show Your Support

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

Comments
  #12  
Old 12-20-2004, 12:48 AM
Mechanical Mind's Avatar
Mechanical Mind Mechanical Mind is offline
 
Join Date: Sep 2004
Location: USA
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by peterska2
It looks like your server is down as I can't access your site
Up now. Maybe I was FTPing or something.

I have the URL to the default avatar as : http://www.mechanicalminds.net/forum...aultavatar.lnk

Is this layout wrong?
Reply With Quote
  #13  
Old 12-22-2004, 12:01 AM
Mechanical Mind's Avatar
Mechanical Mind Mechanical Mind is offline
 
Join Date: Sep 2004
Location: USA
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got it. I got it. Yeahhh!

For some reason, none of the methods I have found here worked on my forums. Which, this isn't a complaint or a 'diss, it is probably because mine are so heavily modded.

Either way, I searched over at vB.com and found some instructions by Da Man (Jake Bunce). When that guy throws some code, you know you are in good hands. Gotta love Jake and the gang!
Reply With Quote
  #14  
Old 08-02-2005, 09:14 PM
Milktruck's Avatar
Milktruck Milktruck is offline
 
Join Date: Feb 2004
Location: Orlando, FL, USA
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mechanical Mind, can you provide the link to his instructions? I can't get this to work in 3.0.8.
Reply With Quote
  #15  
Old 08-29-2005, 05:04 PM
thephonemall thephonemall is offline
 
Join Date: Oct 2004
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed in Posbit Legacy.. Here are the directions if you are using Posbit Legacy (My VB version: 3.0.8)

Find:

PHP Code:
&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurlalt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
                </
div>
            </if> 
ADD DIRECTLY UNDER:

PHP Code:
<if condition="$avatarurl == null"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="http://www.LINK TO YOUR IMAGE.gif" border="0" /></a></if> 
Notice the removal of the <td> tags from the original post.
Reply With Quote
  #16  
Old 09-27-2005, 12:31 AM
revlimiter's Avatar
revlimiter revlimiter is offline
 
Join Date: Sep 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sweet hack! how do i get the default avatar to show up on the memberlist and profile pages?
Reply With Quote
  #17  
Old 11-29-2005, 02:51 AM
Roms's Avatar
Roms Roms is offline
 
Join Date: Jun 2004
Location: Witness ProtectionProgram
Posts: 1,841
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great! Cheers
Reply With Quote
  #18  
Old 12-27-2005, 10:16 AM
tekram's Avatar
tekram tekram is offline
 
Join Date: Jan 2005
Location: Germany
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

and here it is for your memberinfo template.

search for:
Code:
<if condition="$show['avatar']">
				<td><img src="$userinfo[avatarurl]" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td>

			<else />
				<td>&nbsp;</td>
add below:
Code:
<if condition="$avatarurl == null"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="./noavatar.gif" border="0" /></a></if>
Now it will we show in the memberinfo too.....

have fun with it
Reply With Quote
Reply

Thread Tools

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 05:18 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.04480 seconds
  • Memory Usage 2,281KB
  • 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
  • (2)bbcode_php
  • (1)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
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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