vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Welcome Panel Hack V1.1 [vB3.0.x] (https://vborg.vbsupport.ru/showthread.php?t=66969)

SmasherMaster 07-07-2004 10:00 PM

Welcome Panel Hack V1.1 [vB3.0.x]
 
Version 1.1

Hack Author:
Name: SmasherMaster
E-Mail: webmaster@megareviews.com
Forums: http://www.megareviews.com/forums


Description:
This hack replaces the box on top of the postbit in the index page with a snazzy panel with stats, new posts and PMs. When you go to view a different page, the box on top of the navbar changes into the default navigation/breadcrumb box.

Changelog:
V1.1
|-Changed file edit to global.php for tidier code.
|
|-Added file and new template edits for VbAdvanced CMPS so the welcome panel will work on CMPS.

V1.0
|-Welcome Panel Hack RELEASED! :)

Installation Time:
5 min.

Zip Contents:
Welcome_Panel_Hack.zip
|-instructions.txt -- Instructions on how to install this hack.
|-noavatar.gif -- Image for members who don't have an avatar yet.
|-guestavatar.gif -- Image for guests.
|-Welcome_Panel_Guest.jpg -- What the panel will look like to a guest
|-Welcome_Panel_loggedin.jpg -- What the panel will look like to a member with an avatar
|-Welcome_Panel_loggedin_noav.jpg -- What the panel will look like to a member without an avatar


Testing:
Tested on vBulletin 3.0.3

Files to Modify:
forumroot/global.php

Templates to Modify:
forumhome (Optional)
navbar

Images to Upload:
noavatar.gif
guestavatar.gif


Notes:
If you use this hack, please click on the INSTALL button.
You will be notifited via email about any updates or changes.

My first hack made, and thanks to Zero Tolerance for the Welcome Panel hack inspiration.

SmasherMaster 07-08-2004 06:41 PM

Argh, I must have missed the part where you agree to give support, as I wish to, I'll add it to the first post

Holidazed 07-08-2004 06:44 PM

Sweet hack. Thank you

Question. I am using vbAdvanced CMPS system. How do I add your hack to that as well?

edeab220 07-08-2004 08:17 PM

Very cool :). I just installed it.

SmasherMaster 07-08-2004 08:25 PM

Quote:

Originally Posted by bitg
Sweet hack. Thank you

Question. I am using vbAdvanced CMPS system. How do I add your hack to that as well?

Find in template navbar
PHP Code:

<if condition="THIS_SCRIPT == 'index'"

Replace with
PHP Code:

<if condition="THIS_SCRIPT == 'index' OR 'adv_index'"

EDIT: it works, look in the php code above for the answer...but if you got CMPS out of your fourms DIR, that's a slight problem as the avatar images don't show up. I'll find out that error and fix it right away. :)

Holidazed 07-08-2004 08:51 PM

seems to work. But you are right. My CMPS is outside of my forums directory and my avatar does not show up. Is there a variable or something i can use to automatically determin the path of the avatars directory?

turbidblue 07-08-2004 08:51 PM

hello, i was wondering if my forum would benefit from this being that i have a purchased style, and was wondering how i go about placing this under my nav bar, so that my image at the top stays intact...and so my nav bar stays the same?

if you have time,

turbidblue.com

thanks for any help you can provide

SmasherMaster 07-08-2004 09:00 PM

bitg: I just noticed that the welcome panel not only appears on the CMPS, but on every other page as well...This is puzzling indeed, and on top of that, the forum stats and the new posts varibles are also missing. I'll have to keep working on this.

turbidblue: Your navbar should remain intact, because all you have to do is edit the navbar template. The Banner will remain intact as well, as this does not edit the Header template. But since that is a type of style I have never dealt with before, I'm not certain, but all should remain. :)

turbidblue 07-08-2004 09:10 PM

wow smasher! it worked :) very nice hack and thanks for your help ;)

So i guess you can also say that this has been tested and works on 3.0.1 too :)

*clicks install

SmasherMaster 07-08-2004 09:29 PM

Wonderful, glad it worked! :)

I figured out the problem with the hack being on CMPS...The phrases that are in the file edit are not in the cmps file. I must figure out a way to include the phrases, and then, it will no doubt work. Hang in there bitg. ;)


All times are GMT. The time now is 11:25 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01179 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete