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)

Mechanical Mind 12-20-2004 12:48 AM

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?

Mechanical Mind 12-22-2004 12:01 AM

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! :)

Milktruck 08-02-2005 09:14 PM

Mechanical Mind, can you provide the link to his instructions? I can't get this to work in 3.0.8.

thephonemall 08-29-2005 05:04 PM

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.

revlimiter 09-27-2005 12:31 AM

sweet hack! :D how do i get the default avatar to show up on the memberlist and profile pages?

Roms 11-29-2005 02:51 AM

Works great! Cheers

tekram 12-27-2005 10:16 AM

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


All times are GMT. The time now is 08:24 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.01094 seconds
  • Memory Usage 1,743KB
  • 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
  • (2)bbcode_php_printable
  • (1)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
  • (7)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