Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by trilOByte trilOByte is offline
Developer Last Online: Sep 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 12-24-2001 Last Update: Never Installs: 570
 
No support by the author.

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 There are no changes to the files - it's not a new release. Thanks. /edit

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #262  
Old 08-19-2002, 04:16 PM
carpman carpman is offline
 
Join Date: Oct 2001
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[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.
Reply With Quote
  #263  
Old 08-19-2002, 05:52 PM
Reverend Reverend is offline
 
Join Date: Mar 2002
Location: England
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by trilOByte
Welcome $username
Reply With Quote
  #264  
Old 08-19-2002, 07:18 PM
trilOByte's Avatar
trilOByte trilOByte is offline
 
Join Date: Nov 2001
Location: England
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #265  
Old 08-19-2002, 08:11 PM
Reverend Reverend is offline
 
Join Date: Mar 2002
Location: England
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #266  
Old 08-19-2002, 08:40 PM
trilOByte's Avatar
trilOByte trilOByte is offline
 
Join Date: Nov 2001
Location: England
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I think this works.....

Open forum/index.php (make a backup copy) and find....

PHP Code:
forumhome_pmloggedin,forumhome_welcometext
Replace that with....

PHP Code:
forumhome_pmloggedin,forumhome_welcometext,forumhome_newwelcometext,forumhome_newunregmessage

Find...

PHP Code:
// if user is know, then welcome
if ($bbuserinfo['userid']!=0) {
  
$username=$bbuserinfo['username']; 
Immediately above that add....

PHP Code:
// New Welcometext Addition.
if ($bbuserinfo['userid']!=0) {
  
$username=$bbuserinfo['username'];
  eval(
"\$newwelcometext = \"".gettemplate('forumhome_newwelcometext')."\";");
} else {
  
$welcometext "";

Find...

PHP Code:
$unregwelcomemessage='';
if (
$bbuserinfo['userid']==0) {
  eval(
"\$unregwelcomemessage = \"".gettemplate('forumhome_unregmessage')."\";");

Below that add...

PHP Code:
// New Unregelcometext Addition.
$newunregwelcomemessage='';
if (
$bbuserinfo['userid']==0) {
  eval(
"\$newunregwelcomemessage = \"".gettemplate('forumhome_newunregmessage')."\";");

Clse and save index.php

Open your templates and add a new template called...

forumhome_newunregmessage

Inside that put....

Code:
<b>Guest</b>
Add another template caqlled...

forumhome_newwelcometext

Inside that put....

Code:
back, <b>$username</b>
Then go to the forumhome template, locate the "WelcomePanel"

Find where it says Welcome and replace it with...

Code:
Welcome $newwelcometext $newunregwelcomemessage
That should do it.

I must say, it's a lot of trouble for a simple syntax modification.
Reply With Quote
  #267  
Old 08-19-2002, 09:23 PM
Reverend Reverend is offline
 
Join Date: Mar 2002
Location: England
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #268  
Old 08-19-2002, 11:37 PM
trilOByte's Avatar
trilOByte trilOByte is offline
 
Join Date: Nov 2001
Location: England
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by Reverend

I actually saw it on a welcome panel hack for another bulletin board software.
Reply With Quote
  #269  
Old 08-23-2002, 07:47 PM
michealo michealo is offline
 
Join Date: Jun 2002
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great hack, works like a charm!
Reply With Quote
  #270  
Old 08-24-2002, 01:42 AM
Tony DiMera's Avatar
Tony DiMera Tony DiMera is offline
 
Join Date: Aug 2002
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack. BTW is thereanywayto have this appear on my homepage and link it to my vb as well
Reply With Quote
  #271  
Old 08-24-2002, 07:13 AM
carpman carpman is offline
 
Join Date: Oct 2001
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:57 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08193 seconds
  • Memory Usage 2,325KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (6)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete