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

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
  #2  
Old 11-24-2004, 08:11 AM
secret1980 secret1980 is offline
 
Join Date: Oct 2004
Location: India
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanx! for the mod I just installed it..It works fine
Reply With Quote
  #3  
Old 11-30-2004, 09:02 PM
zzzxxzzz zzzxxzzz is offline
 
Join Date: Jun 2004
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

which file you put that code at?
Reply With Quote
  #4  
Old 12-11-2004, 01:42 AM
Pion Pion is offline
 
Join Date: May 2005
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and nothing happened...
Reply With Quote
  #5  
Old 12-11-2004, 03:44 AM
C_P's Avatar
C_P C_P is offline
 
Join Date: Sep 2004
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good little mod
Reply With Quote
  #6  
Old 12-18-2004, 11:06 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 mrchu
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!!
*clicks install *

Hi all. I am having a bit of trouble with this one. I run version 3.0.3.

I made the necessary changes to the code. But no default avatar symbol. (I used the one shown in this thread, uploaded as JPEG). I made sure all members had avatars enabled and selected "show avatar" in options. But no default avatar symbol.

Any ideas? Thanks.
Reply With Quote
  #7  
Old 12-19-2004, 09:06 PM
Mechanical Mind's Avatar
Mechanical Mind Mechanical Mind is offline
 
Join Date: Sep 2004
Location: USA
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anybody? No ideas. I am lost on this one and really wanted to get it up and running. It's got to be something simple that I am doing and/or not doing.
Reply With Quote
  #8  
Old 12-19-2004, 09:19 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What URL are you specifying for the image and what is the full URL of the required image and also your forums?
Reply With Quote
  #9  
Old 12-19-2004, 11:47 PM
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
What URL are you specifying for the image and what is the full URL of the required image and also your forums?
URL to my forums: http://www.mechanicalminds.net

URL to adminCP: http://www.mechanicalminds.net/forum...eadminister111

URL to default-avatar symbol: http://www.mechanicalminds.net/forums/images/avatars ... or /defaultavatar.lnk

I just cannot seem to get it to come up. I'll keep trying I guess.

Update:

Well, now I am getting a good link in my web browser to that image. But it is not showing up on my forums???
Reply With Quote
  #10  
Old 12-20-2004, 12:04 AM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It looks like your server is down as I can't access your site
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 08:07 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.06447 seconds
  • Memory Usage 2,288KB
  • Queries Executed 23 (?)
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_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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (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
  • 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