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

Reply
 
Thread Tools
[vB3 RC3] Welcome Hack v1.2 Details »»
[vB3 RC3] Welcome Hack v1.2
Version: 1.00, by Hwulex Hwulex is offline
Developer Last Online: Jul 2006 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-18-2004 Last Update: Never Installs: 159
 
No support by the author.

Hack Author:
Name: Hwulex
E-Mail: vbhacks[at]hwulex[dot]com
Forums: http://forums.xaprief.com


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.

Comments
  #32  
Old 01-23-2004, 10:31 AM
Hwulex's Avatar
Hwulex Hwulex is offline
 
Join Date: Mar 2002
Location: Manchester, UK
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cyricx
Can you entertain me & post the necessary code for me to add so it shows on like every page?

I hate the look of just one page showing that welcome hack. I want it on every page.

And yes, I don't care about the Database abuse.

Cyricx
You could make the welcome hack appear on every page, but you need to make some changes to index.php and global.php, as well as replace your navbar template.

The navbar changes I've got sorted, but I need to finalise the changes in global.php and index.php. If it doesn't take too long, I will try and work it all out for you. It will add around 5 queries per page though, just so you know.
Reply With Quote
  #33  
Old 01-23-2004, 11:34 AM
Hwulex's Avatar
Hwulex Hwulex is offline
 
Join Date: Mar 2002
Location: Manchester, UK
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cyricx
Can you entertain me & post the necessary code for me to add so it shows on like every page?

I hate the look of just one page showing that welcome hack. I want it on every page.

And yes, I don't care about the Database abuse.

Cyricx
Ok, I have mocked up this for you. It's not the most efficient thing in the world, and could add anything up to ten or twelve queries per page (as it's all called in global.php).

I have not re-written the biggest of the code/queries used here for getting the online users as it's too much work for me to do right now. This does, however, work. But please bear in mind that if you use the welcome hack on every page, you lose the original functionality of the navbar all together. You could of course modify the template to show the navbar underneath the welcome hack, perhaps, but I have not done that here.

The attached instructions are not comprehensive in their installation from scratch. You will still need the original instructions for phrase edits. Use the file edits and template additions from these ones though.

Cheers
Reply With Quote
  #34  
Old 01-23-2004, 04:05 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea, no problem.

Gotcha I'll work on this today Thanks!!

Cyricx
Reply With Quote
  #35  
Old 01-24-2004, 08:41 PM
M.C. M.C. is offline
 
Join Date: Jan 2002
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just one more question - where to change this:
Reply With Quote
  #36  
Old 01-24-2004, 08:49 PM
M.C. M.C. is offline
 
Join Date: Jan 2002
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i mean i need phrases to translate to my origin language! Thanx
Reply With Quote
  #37  
Old 02-06-2004, 04:44 PM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It appears the phrases regarding PMs don't show if you have PMs disabled. I can't say for sure because I modded this hack for my board. You may wish to test it in any case.
Reply With Quote
  #38  
Old 02-06-2004, 10:58 PM
mcyates mcyates is offline
 
Join Date: Jan 2003
Location: Middlesbrough, Cleveland
Posts: 798
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you look at www.myfootballforum.com you will see that after a topic title is so long it puts ... at the end to shorten it. How can I adjust this so more of the title will be shown?
Reply With Quote
  #39  
Old 02-15-2004, 02:54 PM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I edit the phrases? I am using RC4? I think it was made it so you purposefully cant edit the standard phrases. Did I miss a hack for that or should this be done via a query in the DB?
Reply With Quote
  #40  
Old 02-15-2004, 03:48 PM
Hwulex's Avatar
Hwulex Hwulex is offline
 
Join Date: Mar 2002
Location: Manchester, UK
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit the phrases in the Phrase MAnager, the same as you would for any other phrase.

As for the no-pm thing, I'll look into that later.
Reply With Quote
  #41  
Old 02-15-2004, 04:38 PM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hwulex
As for the no-pm thing, I'll look into that later.
I've had a closer look. It's probably my own code that was doing it as I've fixed that on my board.
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 05:56 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.08194 seconds
  • Memory Usage 2,315KB
  • 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_quote
  • (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
  • (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