vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   No Avatar Selected - Display Appropriate Image (https://vborg.vbsupport.ru/showthread.php?t=89966)

chooah 10-19-2004 10:00 PM

No Avatar Selected - Display Appropriate Image
 
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!!

secret1980 11-24-2004 08:11 AM

thanx! for the mod I just installed it..It works fine :D

zzzxxzzz 11-30-2004 09:02 PM

which file you put that code at?

Pion 12-11-2004 01:42 AM

Installed and nothing happened...:(

C_P 12-11-2004 03:44 AM

Good little mod

Mechanical Mind 12-18-2004 11:06 AM

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. :o 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.

Mechanical Mind 12-19-2004 09:06 PM

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.

peterska2 12-19-2004 09:19 PM

What URL are you specifying for the image and what is the full URL of the required image and also your forums?

Mechanical Mind 12-19-2004 11:47 PM

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. :confused:

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???

peterska2 12-20-2004 12:04 AM

It looks like your server is down as I can't access your site :(


All times are GMT. The time now is 02:45 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.01252 seconds
  • Memory Usage 1,738KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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