vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Welcome Panel [Final] (https://vborg.vbsupport.ru/showthread.php?t=33477)

Floris 02-05-2002 12:40 PM

np

psico 02-05-2002 03:41 PM

For those who have Custom Avatars as Files HACK installed, here is the solution to make it works with the Welcome Panel HACK:

Replace this code from Welcome Panel HACK in INDEX.PHP:
Code:

if ($bbuserinfo[userid]!=0) {
  $avatarurl=getavatarurl($bbuserinfo[userid]);
  if ($avatarurl=='') {
    $avatarurl='images/avatars/noavatar.gif';
  }
  $avatarimage='<a href="member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$avatarurl.'" border="0">';
} else {
  $avatarimage='<a href="register.php?s='.$session[sessionhash].'&action=signup"><img src="images/avatars/guestavatar.gif" border="0"></a>';
}

With this code:

Code:

############################
if ($bbuserinfo[userid]!=0) {
$avatarurl=getavatarurl($bbuserinfo[userid]);
  if ($avatarurl=='') {
    $avatarurl='images/avatars/noavatar.gif';
  } else {
        if ($post[hascustomavatar] and $avatarenabled) {
                if ($usefileavatar) $avatarurl="custom_avatars/avatar$bbuserinfo[userid]_$bbuserinfo[avatarrevision].gif";
                else $avatarurl="avatar.php?userid=$bbuserinfo[userid]";
                  }
        }
  $avatarimage='<a href="member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$avatarurl.'" border="0">';
} else {
  $avatarimage='<a href="register.php?s='.$session[sessionhash].'&action=signup"><img src="images/avatars/guestavatar.gif" border="0"></a>';
}
############################

I've tested and is working great...

Welcome Panel ROCKS!

JTMON 02-05-2002 04:05 PM

I don't have the custom avatars as file hack installed but I tried your code and it didn't work. I tried to upload and got this message:

[QUOTE]Warning: Unable to create '/admin/tmp/yeller.gif': No such file or directory in /usr/local/plesk/apache/vhosts/whatthefrag.com/httpdocs/forums/admin/user.php on line 632

Warning: Unable to move '/tmp/phpHt9sRD' to '/admin/tmp/yeller.gif' in /usr/local/plesk/apache/vhosts/whatthefrag.com/httpdocs/forums/admin/user.php on line 632

trilOByte 02-05-2002 04:13 PM

JTMON, did you try changing the name of the var from $avatarimage to something else?

EDIT: I don't think Pisco's hack will work unless you have the AAF hack installed.

JTMON 02-05-2002 04:15 PM

Not yet, about to tho.

trilOByte 02-05-2002 04:21 PM

[QUOTE]Originally posted by psico
For those who have Custom Avatars as Files HACK installed, here is the solution to make it works with the Welcome Panel HACK:

PHP Code:

$avatarurl="custom_avatars/avatar$bbuserinfo[userid]_$bbuserinfo[avatarrevision].gif" 

I've tested and is working great...

Welcome Panel ROCKS!

trilOByte 02-05-2002 04:44 PM

[QUOTE]Originally posted by JTMON
Not yet, about to tho.

JTMON 02-05-2002 06:23 PM

me too, I know it worked before vbPortal tho but that was almost 2 months ago. :D

trilOByte 02-05-2002 09:37 PM

[QUOTE]Originally posted by JTMON
me too, I know it worked before vbPortal tho but that was almost 2 months ago. :D

JTMON 02-05-2002 10:02 PM

I got that script from vbPortal.com as someone released it. That's probably the last change I did before I noticed the problem, so I am going to revert it to see if it fixes it. The thing is, I tried using $myavatarvariable in the login block with only the welcome panel hack installed and it wouldn't show.


All times are GMT. The time now is 04:36 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.02790 seconds
  • Memory Usage 1,737KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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