History:
I'm sure most of us are aware of trilOByte's popular Welcome Hack that was available for vBulletin 2.
I myself had it installed on my vB2 forums, and after upgrading to vBulletin 3 missed it, so, seeing as nobody else had, I decided to make my own version.
Description:
This hack does two things:
1. It alters the look of your forum's index page by reducing the size of the "What's Going On" box to just one line (more if birthdays / calendar events present). This box is also shifted up to the top of the page, beneath the navbar.
2. The information that it strips out of that box is not lost though as it is moved up in to the navbar box at the top of the page. The general statistics are only displayed on the forum homepage, as well as your avatar, and the number of new-posts and active-threads since your last visit. On all other pages, the navbar remains as it was.
Zip Contents:
welcome_hack_vb3_v1_2.zip
|- instructions.html :: Instruction on how to install this hack.
|- forumhome_loggedin.gif :: Shows what your ForumHome will look like after installation with a logged in user.
|- others_in_and_out.gif :: Shows screenshots of the hack in various states, plus a screenie of the vB2 version.
|- noavatar.gif :: Placeholder for those users who don't have an avatar set.
`- guestavatar.gif :: Placeholder avatar for guest viewers.
Testing:
Tested on vBulletin 3 RC 2
Files to Modify: forumroot/index.php
Templates to Modify:
forumhome
navbar
Phrases to Add:
active_threads
info_forum
info_user
info_visitor
online_now
Phrases to Edit:
$vbphrase[welcome_to_our_newest_member_x]
$vbphrase[last_visited_x_at_y]
$vbphrase[forum_contains_new_posts]
$vbphrase[forum_contains_no_new_posts]
$vbphrase[forum_is_closed_for_posting]
$vbphrase[most_users_ever_online_was_x_y_at_z]
$vbphrase[private_messages]
Images to Upload:
noavatar.gif
guestavatar.gif
Notes:
If you do install this hack, please click on the INSTALL button.
You will receive updates in your e-mail whenever I add new features to it.
Please also post a reply with your comments, they are appreciated.
Updates:
1.1
- Fixed 'X' problem for NewPosts and ActiveThreads.
- Added noavatar.gif, and accompanying instructions, to the package.
1.2
- Made NewPosts and ActiveThreads display on forumhome only.
- Moved queries to index.php reducing per-page queries by two.
- Added guestavatar feature for indexpage.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Vistior Info:
On-Line Now: 47
`- 28 members and 19 guests
Most users ever online was 192, 04-19-2003 at 12:15 PM.
Last visit: Today at 05:48 PM
The only deal I appear to have screwed up is that ' next to -28 members and 19 guests. I'm consistent cuz I did it on both the test and the live forums. Anyone want to give me a hint?
could you please amend your install instructions to replace a part of the navbar template instead of replacing the whols template?
Reason for this is because a lot of other hacks edit the dropdown menus for one reason or other. I can see a somebody stuffing up his board navigation (if it already hasnt happened) where he has previously edited the navbar and then followed your instructions and wiped the lot out
Please remember to only edit code where it is required, it might be easier to replace a whole template to add a hack ... but can undo others hard work.
If you're already using the above hack, you can use the variables that you need from it in place of what he has for those variables in his hack and take out the queries you no longer need and save some server abuse. That way you could use it on every page if you wanted to without adding any extra queries to those pages.