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 |
#262
|
|||
|
|||
![]()
[QUOTE]Originally posted by trilOByte
You can put whatever you like in the p_themeheader, but much of the code will need to be changed. The avatar part wont work, but there are alternative which work a little differently. To answer your question, if you just place the welcomepanel code into p_themeheader without any changes, no it wont work. |
#263
|
|||
|
|||
![]()
[QUOTE]Originally posted by trilOByte
Welcome $username |
#264
|
||||
|
||||
![]()
So you want to add the word "back" into the welcome statement, if the user is a member?
So instead of ... Welcome user1234 Welcome You want... Welcome back user1234 Welcome guest Yes, it's possible, I think you need to create a new $var though, some code hacking and a couple of new template options, one for each option. Seems like a lot of trouble for a simple syntax preference. It would need to be something along the lines of a new $welcometext and new $unregwelcomemessage, so two new templates at least. Though there might be an easier option, I honestly dont know. |
#265
|
|||
|
|||
![]()
Yeah i think i'll just add
"Welcome Back username" (for logged in members) And just leave it as "Welcome" (for guests.) Seems a lot simpler. Thanks trilOByte. ![]() |
#266
|
||||
|
||||
![]()
OK, I think this works.....
Open forum/index.php (make a backup copy) and find.... PHP Code:
PHP Code:
Find... PHP Code:
PHP Code:
PHP Code:
PHP Code:
Open your templates and add a new template called... forumhome_newunregmessage Inside that put.... Code:
<b>Guest</b> forumhome_newwelcometext Inside that put.... Code:
back, <b>$username</b> Find where it says Welcome and replace it with... Code:
Welcome $newwelcometext $newunregwelcomemessage I must say, it's a lot of trouble for a simple syntax modification. |
#267
|
|||
|
|||
![]()
Yep that works perfect.Thanks.
I know it seems like a lot of trouble for a simple modification,but i think it gives members or guests a more welcoming and personal greeting. I actually saw it on a welcome panel hack for another bulletin board software. |
#268
|
||||
|
||||
![]()
[QUOTE]Originally posted by Reverend
I actually saw it on a welcome panel hack for another bulletin board software. |
#269
|
|||
|
|||
![]()
great hack, works like a charm!
|
#270
|
||||
|
||||
![]()
Great hack. BTW is thereanywayto have this appear on my homepage and link it to my vb as well
|
#271
|
|||
|
|||
![]()
[QUOTE]Originally posted by Tony DiMera
Great hack. BTW is thereanywayto have this appear on my homepage and link it to my vb as well |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|