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. ;)

SmasherMaster 07-09-2004 07:11 PM

I've finally gotton it to work, but the welcome panel appears on every page instead of just on the CMPS and Index, just a minor issue but will be adressed, then i'll update the hack to 1.1! ;) Unfortunatly, the file edit will now be in global.php instead of index.php. I doubt having file edits for both will hurt anything, but when I release it I advise you to remove the hack from index.php. ;)


EDIT: Issue fixed, new version uploaded with full instructions, GO GET 1.1! :D

Henry-RS 07-09-2004 08:13 PM

There is no attachment. ;)

Edit; Nevermind.

SmasherMaster 07-09-2004 08:19 PM

Hehem I had to reupload it because of a slight instructions error. I had below instead of above and that can cause something nasty errors. ;)

Holidazed 07-10-2004 02:23 AM

Quote:

Originally Posted by SmasherMaster
Hehem I had to reupload it because of a slight instructions error. I had below instead of above and that can cause something nasty errors. ;)

I noticed that. I made the change automatically. Thansk for the awesome hack. The update works great with vbadvanced now.

SmasherMaster 07-10-2004 06:05 PM

Quote:

Originally Posted by bitg
I noticed that. I made the change automatically. Thansk for the awesome hack. The update works great with vbadvanced now.

Great! :D

Rambo 07-13-2004 11:52 AM

Installed very nicely ^_^

Bro_Joey_Gowdy 07-22-2004 11:59 AM

clicks install

Caiman 07-22-2004 03:26 PM

Installed with ease, thanks.

*clicked install

The Coldwood 07-28-2004 02:04 PM

It has a weird affect with the theme vBulletin Classic. Try logging in and you will still see the box.

fatefellshort 08-02-2004 11:49 PM

I am having some problems. I followed the instructions and when I hit Save for the Navbar edit, it says:

Quote:

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/mikeydef/public_html/forums/includes/adminfunctions_template.php(3055) : eval()'d code on line 118

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

Dead End Society 08-03-2004 03:31 AM

So if we have the default theme (all I did was edit mine) we will have problems?

bspiller82 08-09-2004 06:14 AM

Quote:

Originally Posted by fatefellshort
I am having some problems. I followed the instructions and when I hit Save for the Navbar edit, it says:

I had same error and clicked continue anyway and it seems to work just fine.

Symbian.info 08-24-2004 11:51 PM

Works great, only you forgot the Languages Phrases. But ok I can do that by my self (done that).... (there are more people in the world then English speaking people :squareeyed: )

And it goes wrong if you use the extra pages with vBadvanced CMPS like: adv_index.php?page=extra
Then the welcome panel must NOT be showing... Can you fix that??

Other problem is when I switch of the Welcome module of CMPS the avatar is gone, switch I the stats module off de newest member is also gone in the welcome panel :surprised: But I want thoose modules switch off because everything is now standing in the welcome panel!
Can you fix this??

And why this? I try both (with and without the <if> and no difference
PHP Code:

<if condition="THIS_SCRIPT == 'adv_index'">
Welcome to our newest member
<
a href="member.php?$session[sessionurl]u=$newuserid">$newusername</a>
<else />
<
phrase 1="member.php?$session[sessionurl]u=$newuserid2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase>
</if> 


But thanks for the great hack!

moethelawn 08-26-2004 06:01 AM

Nice job buddy :D

Ig@r 08-26-2004 05:50 PM

Thanks for hack!:up:

DarkWarriorXII 08-26-2004 06:02 PM

Great hack! Installed. :D I like the title design on the instructions file :p.

Loki12 09-18-2004 09:30 AM

I have installed, but then uninstalled again. Reason: My users' avatars are too big, and thus the block creates a lot of empty space that is unused....

hinch 09-21-2004 09:05 AM

installed it works fine looks cool

www.furious-angels.com

Ber|Art 10-14-2004 02:17 PM

Thx works great and is easy to install :)

Ber|Art 10-20-2004 11:53 AM

I was wondering how to get more statistics in the panel, I trying to get the number of Arcade games in there but don't now how? Is there a way to create a second colum for other stats?

Like this hacks:
https://vborg.vbsupport.ru/showthread.php?t=69392
http://www.v3arcade.com/play/showthread.php?t=1604
http://www.v3arcade.com/play/showthread.php?t=1382

Thanks!

Ugur CETIN 10-28-2004 07:31 PM

lol :) thats great hack!

rex_b 10-29-2004 02:48 AM

Would there be any way to shrink the info in this area so it's not so big?

Lethal 11-03-2004 02:17 AM

Quote:

Originally Posted by Symbian.info
Works great, only you forgot the Languages Phrases. But ok I can do that by my self (done that).... (there are more people in the world then English speaking people :squareeyed: )

And it goes wrong if you use the extra pages with vBadvanced CMPS like: adv_index.php?page=extra
Then the welcome panel must NOT be showing... Can you fix that??

Other problem is when I switch of the Welcome module of CMPS the avatar is gone, switch I the stats module off de newest member is also gone in the welcome panel :surprised: But I want thoose modules switch off because everything is now standing in the welcome panel!
Can you fix this??

And why this? I try both (with and without the <if> and no difference
PHP Code:

<if condition="THIS_SCRIPT == 'adv_index'">
Welcome to our newest member
<
a href="member.php?$session[sessionurl]u=$newuserid">$newusername</a>
<else />
<
phrase 1="member.php?$session[sessionurl]u=$newuserid2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase>
</if> 


But thanks for the great hack!


Same here, and also, when the welcome is switched off my avatar gets all messed up. I am going to mess around and see if I can come up with something.

TruthElixirX 11-03-2004 11:27 PM

<a href="http://www.punktek.com" target="_blank">www.punktek.com</a>

See the avatar thing doesn't show up on CMPS. I am running the newest version. Plus it shows up on every page (I think this has already been brought up?) any ideas?

ambumann 11-12-2004 05:50 AM

Can anyone tell me why the counter in the navbar says

Threads: 5141
Posts: 50747

while the "what's up" stats says:

Threads: 4937
Posts: 50734

Another that's giving me some trouble is to get "New threads" in the navbar appearing as a link.

Sweet Evil 11-13-2004 11:34 PM

The noavatar image was not showing up for users..

had to change:

PHP Code:

$bbuserinfo['user_avatar']="<img src='/images/avatars/noavatar.gif' alt='Edit Your Avatar' border='0'>"

to:

PHP Code:

$bbuserinfo['user_avatar']="<img src='/forums/images/avatars/noavatar.gif' alt='Edit Your Avatar' border='0'>"

Because your code was pointing to blah.com/images/ instead of blah.com/forums/images - FYI

Nice mod though thanks!

ChrisBaktis 11-14-2004 12:16 AM

Quote:

Originally Posted by ambumann
Can anyone tell me why the counter in the navbar says

Threads: 5141
Posts: 50747

while the "what's up" stats says:

Threads: 4937
Posts: 50734

Another that's giving me some trouble is to get "New threads" in the navbar appearing as a link.

Same here - my count is different - is there maybe a forum that one count picks up and not another?

SmasherMaster 11-14-2004 12:47 AM

Oh i'm so sorry people, I had taken a break from vbulletin and had not know my hack thread got posts! Thanks for your feedback, and although it's my first hack i'll make sure to try to fix these things. :)

Loki12: Can you specify, like alot of unused space in between the avatar and the borders?

Ber|Art: I'm not sure on those, i'll try to whip them up for a V2 if I can. :D

Ambumann: I'm supposing it picks up the forums that have "Count posts" As off. Or it could be that it doesn't really update after you update the posts/treads in the management. I'll look into it. :)

Punktek: Did you download the new update? I'm very positive I fixed that in 1.1.

Symbian.info: This is strange, i'll have a look at the coding.

Again, sorry about the delay people, been having internet and computer AND forum problems but i'll do my best to help you guys out. :)

NSeXcellent 11-15-2004 07:48 PM

Installed.. nice addition.. however, I seem to have lost this... can anyone help?

ChrisBaktis 11-15-2004 11:39 PM

That will no longer show up on the Forum Home page...the welcome panel will - once you go into a forum or thread that part of the navigational bar will come back.


All times are GMT. The time now is 02: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.01514 seconds
  • Memory Usage 1,839KB
  • 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
  • (6)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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