The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||
Well, with over 200 downloads and 32 problem free install's, I though it time to take this out of the beta hacks forum (note, there are no changes to the file in the beta forum, so no need to re-download if you already have the hack installed).
I put this together originally as a walkthrough for an admin friend, and thought someone might find it useful. Althouth technically, my contribution is a couple of simple template edits, it does contain hacks posted previously. Like I said, it's a combination of 2 previously relesed hacks (both credited fully). One by Firefly (avatar hack) and one by MrLister (since your last visit). It combines both of these hacks into a welcome panel at the top of the BB, just like the one here and on a few other sites. I'm pretty much a newbie to vB hacking, and struggled to put this together myself (couldn't find any instructions/hacks etc), but I think I've done an OK job. Maybe this will save a few headaches to others like myself ![]() Anyway, here's a pic to illustrate the hack/edit (or whatever it is ![]() ![]() You can see a working verion of this hack here: The Genome Collective Thanks to Firefly and MrLister for providing the PHP hacks in this err, whatever ![]() (BTW, if this is in the wrong forum, please (mods) feel free to move it) Happy Christmas everyone. here it is: edit: updated version number to 2.2.6 because it works ![]() Show Your Support
|
Comments |
#112
|
|||
|
|||
![]()
np
|
#113
|
|||
|
|||
![]()
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>'; } 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>'; } ############################ Welcome Panel ROCKS! |
#114
|
||||
|
||||
![]()
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 |
#115
|
||||
|
||||
![]()
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. |
#116
|
||||
|
||||
![]()
Not yet, about to tho.
|
#117
|
||||
|
||||
![]()
[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:
Welcome Panel ROCKS! |
#118
|
||||
|
||||
![]()
[QUOTE]Originally posted by JTMON
Not yet, about to tho. |
#119
|
||||
|
||||
![]()
me too, I know it worked before vbPortal tho but that was almost 2 months ago.
![]() |
#120
|
||||
|
||||
![]()
[QUOTE]Originally posted by JTMON
me too, I know it worked before vbPortal tho but that was almost 2 months ago. ![]() |
#121
|
||||
|
||||
![]()
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.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|