vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Welcome Panel Hack V1.1 [vB3.0.x] (https://vborg.vbsupport.ru/showthread.php?t=66969)

SmasherMaster 12-15-2004 12:17 AM

Quote:

Originally Posted by biggkay
I have a problem with the vbadvanced panel. First off it just displays the text "Edit Your Avatar" and not the avatar, and the link orginates from mysite.com/home/profile.php?&do=editavatar and not from mysite.com/forums/profile.php?&do=editavatar How and where can I change this so it works?

Well that's odd, can I have a link? Because it certainly shouldn't point to /home/ it should point to /forums/ or your main forum DIR...

biggkay 12-15-2004 02:18 AM

You got PM

SmasherMaster 12-15-2004 06:44 PM

Ahh, I see the problem. It seems any dir used other than the base dir ( like www.mysite.com ) seems to mess it up, i'll see what I can do to fix it...

biggkay 12-15-2004 06:50 PM

Thanks...
/me is wating impatiently.

SmasherMaster 12-15-2004 06:53 PM

I may have found something.

In /forumroot/global.php find this

PHP Code:

$bbuserinfo['user_avatar']="<a href='profile.php?{$session['sessionurl']}&do=editavatar'>{$bbuserinfo['user_avatar']}</a>"

And right before the "profile.php" part add in "forums/" (Or whatever your forums DIR is named & Without quotations) and see if that works.

Edit: Sorry that probably wouldn't work, put in your full forum URL, including site before the profile, like: "http://www.yourskite.com/forums/"

biggkay 12-15-2004 07:27 PM

That works, however the avatars are still not showing up.

It sources the avatar from "http://www.mysite.com/home/image.php?u=1&dateline=1103146281"
Where can I change it so it sources from /forums/

SmasherMaster 12-15-2004 08:14 PM

Try this:

in /forumroot/global.php find

PHP Code:

$bbuserinfo['user_avatar']="<img src='{$bbuserinfo['user_avatar']}' alt='Edit Your Avatar' border='0'>"

and after the
Code:

<img src='
part and before the
Code:

{$bbuserinfo['user_avatar']}
part, enter your full dir leading to your forums and see if that works

biggkay 12-15-2004 09:12 PM

It works! Great, thanks. Now 1 more question. Should it have the guest avatar up for lurkers as well? I'm asking because it doesn't show anything.

SmasherMaster 12-15-2004 10:00 PM

Yeah, here's the fix.

find in your navbar template

PHP Code:

    <!-- Guest [] Begin -->
            <!-- 
Avatar --> 
        <
td class="alt1" valign="middle" align="center"
        <
a href="register.php?ID=&amp;"><img src="images/avatars/guestavatar.gif" border="0"></a
        </
td
        <!-- / 
Avatar --> 

And where it says
Code:

<img src="images/avatars/guestavatar.gif" border="0">
input your full dir including your forums subdir, so it would end up looking like this
Code:

<img src="www.mysite.com/forums/images/avatars/guestavatar.gif" border="0">

biggkay 12-15-2004 10:43 PM

It works fine on the forums when I leave like it is, if i change the code to the full path then it totally takes off the guest avatar from forums and still doesn't do anything for the vbadvanced. :(


All times are GMT. The time now is 11:03 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.01282 seconds
  • Memory Usage 1,744KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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