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 v1.0 (https://vborg.vbsupport.ru/showthread.php?t=63228)

Zero Tolerance 03-30-2004 10:00 PM

Welcome Panel v1.0
 
This will add a welcome box, but this time as a seperate "panel"
2 previews below gives examples of this, and if that isnt good enough, just view my profile and click on my site for an online demo :)

Features:
- Logged In
---- Shows Avatar (If not it shows "noavatar.gif" [Included Inside Download])
---- Avatar Links To Edit Avatar In User CP
---- Welcome Back Message (Includes: New Posts/Threads Since Your Last Vists + Get New Posts Link)
---- Shows: Number Of User's/Guests Online And Total Online
---- Shows: Max Number Of People Online Ever In 1 Day
---- Link To Your Profile
---- Shows: Total Posts/Threads
---- Shows: Total Members/Newest Member
- Logged Out
---- No Avatar Displayed
---- Shows: Total Posts/Threads
---- Shows: Total Members/Newest Member
---- Register Link
---- Guest Message

Also supports Expand/Collapse

Its good if like me you dont like the "layout" of the other welcome box here on vb.org
Enjoy

Dan 03-31-2004 02:08 PM

Quote:

Originally Posted by Zero Tolerance
This will add a welcome box, but this time as a seperate "panel"
2 previews below gives examples of this, and if that isnt good enough, just view my profile and click on my site for an online demo :)

Features:
- Logged In
---- Shows Avatar (If not it shows "noavatar.gif" [Included Inside Download])
---- Avatar Links To Edit Avatar In User CP
---- Welcome Back Message (Includes: New Posts/Threads Since Your Last Vists + Get New Posts Link)
---- Shows: Number Of User's/Guests Online And Total Online
---- Shows: Max Number Of People Online Ever In 1 Day
---- Link To Your Profile
---- Shows: Total Posts/Threads
---- Shows: Total Members/Newest Member
- Logged Out
---- No Avatar Displayed
---- Shows: Total Posts/Threads
---- Shows: Total Members/Newest Member
---- Register Link
---- Guest Message

Also supports Expand/Collapse

Its good if like me you dont like the "layout" of the other welcome box here on vb.org
Enjoy

Nice one I might use this.

msimplay 03-31-2004 02:11 PM

is this in the navbar or seperate panel ?
if its in the navbar then the pm info needs to be put back

trainer 03-31-2004 03:06 PM

just wondering about the server load this might cause, i know the welcome panel for vb2 was an issue for alot of bigger sites.

Vivi Ornitier 03-31-2004 04:42 PM

NIIIICCEEEE!! I've been waitin for this. I loved this hack for the vb2 and finally it's for the vb2, good job man. Now i await the great battle hack that has yet to come.

tomp 03-31-2004 10:13 PM

nice work

*installs

SVTBlackLight01 03-31-2004 10:28 PM

Nice work!


Quote:

Originally Posted by msimplay
is this in the navbar or seperate panel ?
if its in the navbar then the pm info needs to be put back

Quote:

Originally Posted by Zero Tolerance
2 previews below gives examples of this, and if that isnt good enough, just view my profile and click on my site for an online demo

Are there plans to make this work on a non-vb page?

Yuber 03-31-2004 10:29 PM

Thanks

Zero Tolerance 04-01-2004 07:45 AM

This is a seperate panel, as my first post explains

On a seperate page, can be done, just exactly would you want it, exactly the same?

gmarik 04-01-2004 04:43 PM

Hmm, more desing work to do?

misterfade 04-01-2004 07:57 PM

Looks very good! I'm going to try this one out, it's much better with the avatar on the left side. But why is the info spread across like this?
https://vborg.vbsupport.ru/attachmen...chmentid=17775

Total threads/posts and the numbers are all the way across. Would this be simple for me to modify, straight HTML?

SVTBlackLight01 04-01-2004 08:24 PM

Quote:

Originally Posted by misterfade
Looks very good! I'm going to try this one out, it's much better with the avatar on the left side. But why is the info spread across like this?
https://vborg.vbsupport.ru/attachmen...chmentid=17775

Total threads/posts and the numbers are all the way across. Would this be simple for me to modify, straight HTML?

It looks like the users online cell is removed in the guest panel allowing the rest of it to stretch to the full width.

Zero Tolerance 04-02-2004 12:17 PM

Quote:

Originally Posted by misterfade
Looks very good! I'm going to try this one out, it's much better with the avatar on the left side. But why is the info spread across like this?
https://vborg.vbsupport.ru/attachmen...chmentid=17775

Total threads/posts and the numbers are all the way across. Would this be simple for me to modify, straight HTML?

You could modify it, if you really wanted

But at the moment its only like that for guest view :)

misterfade 04-02-2004 07:55 PM

I've modified it a bit but the main thing that I don't like (not with this hack but with Vbulletin) is that there's still the default panel at the top which also shows the user's info. :( It would have been nice if they had of made that panel like this instead!

SVTBlackLight01 04-02-2004 10:43 PM

That stuff can easily be removed from the navbar template. The only problem is this hack only displays on the forums home page. Of course you could always make a navbar template for this page only.

calvinnguyen 04-18-2004 01:42 AM

This is great hack, thanks zero

Can you show me to change the font size to small? I like all to change font-size:10pt

dmatthams 04-18-2004 08:20 PM

hey cool hack, i have it installed it and it works well!

Although is there a way I can not have the welcome block display for a guest?

thanks for this :)

joeychgo 04-18-2004 09:28 PM

ok--------- the text you tell me to look for in index.php, I couldnt find. So I started looking and is actually in index2.php........... ????????? do I ahve a conflict with another hack?

neocorteqz 05-07-2004 11:11 PM

Quick question, I've been working at it, and am not sure where to put the <br> tags to make the Total Threads, Total Posts, Newest Member, Total Members, all on separate lines. Also how do I get these Numbers closer to the Words. See Attached image.

https://vborg.vbsupport.ru/

Thanks. :)

neocorteqz 05-07-2004 11:13 PM

Quote:

Originally Posted by joeychgo
ok--------- the text you tell me to look for in index.php, I couldnt find. So I started looking and is actually in index2.php........... ????????? do I ahve a conflict with another hack?

What version of vBulletin?

in Index.php Look for

PHP Code:

require_once('./includes/functions_forumlist.php'); 

And underneath that paste the code in the install text.

JKeats 05-10-2004 08:31 PM

this was my first hack ever on VB!

i'm a phpBB vet who's recently switched to VB.

i had a welcome bar on my phpBB so it was awesome to find a similar beast for VB.

i customized this a bit... i have a screen shot but can't seem to get the .gif to attach.

i changed around the text that's displayed a bit. added a PM and mark all link and moved stuff around a little. i also removed some of the text included like the newest member and total posts and things like that.

anyway... awesome hack. thanks!

Chris|vB 05-15-2004 04:00 AM

nice job.

JKeats 05-21-2004 08:09 PM

i have a question about this one. one of my members just pointed out something interesting.

let's say that since your last visit there's 10 new posts in 3 different threads (all old threads that have been around for a while).

the welcome panel will say there's 10 new post and 3 new threads. well... the threads aren't really new... the posts are, but not the threads. there's new posts IN the threads, but the threads themselves aren't new.

did i install something wrong? is there a way to get this so that it'll only show a X number of new threads if the thread is actually NEW (i.e. created since your last visit)?

thanks for the info.

neocorteqz 05-22-2004 09:42 AM

Quote:

Originally Posted by neocorteqz
Quick question, I've been working at it, and am not sure where to put the <br> tags to make the Total Threads, Total Posts, Newest Member, Total Members, all on separate lines. Also how do I get these Numbers closer to the Words. See Attached image.

http://www.neocorteqz.com/junior/welcome.png

Thanks. :)

Bump on this question. :)

Thanks

JKeats 05-22-2004 12:46 PM

neo... that's all in the index.php edit. look for the following block and make whatever changes you want to alter the layout...

Code:

// Cell 2 - Quick Forum Stats
$welcome_new_posts=$DB_site->query_first("select count(*) as new_posts from ".TABLE_PREFIX."post where dateline > '{$bbuserinfo['lastvisit']}'");
$welcome_new_topics=$DB_site->query_first("select count(*) as new_topics from ".TABLE_PREFIX."thread where lastpost > '{$bbuserinfo['lastvisit']}'");
$total_members=$DB_site->query_first("select count(*) as all_users from ".TABLE_PREFIX."user");
$total_posts=$DB_site->query_first("select count(*) as all_posts from ".TABLE_PREFIX."post");
$total_topics=$DB_site->query_first("select count(*) as all_topics from ".TABLE_PREFIX."thread");
$welcome_members="<b>Total {$vbphrase['members']}</b>:</td><td> {$total_members['all_users']}";
$welcome_topics="<b>Total Threads</b>:</td><td> {$total_topics['all_topics']}";
$welcome_posts="<b>Total Posts</b>:</td><td> {$total_posts['all_posts']}";
if($bbuserinfo['userid']!=0){
$welcome_intro="Welcome back {$bbuserinfo['username']}, there has been {$welcome_new_posts['new_posts']} new posts and {$welcome_new_topics['new_topics']} new threads since your last visit. <a href='search.php?{$session['sessionurl']}&do=getnew'>Search For New Posts</a>";
} else {
$welcome_intro="Welcome to the forums Guest, please take a look around, if your already a member login, if not then please register. Enjoy Your Stay";
}


JKeats 05-22-2004 03:26 PM

okay... i think i've figured out the thread issue (reading up on some other hacks that count new threads). there's basically two forms of the query for the new threads.

one, the one that this hack uses, counts new threads as any thread that has a new post in it... whether or not it's actually NEW or not.

the other, will only count NEW threads (i think).

it's a matter of preference really... but here's some code to count NEW threads only

Code:

$getnewthread=$DB_site->query_first("SELECT COUNT(*) AS threads FROM ".TABLE_PREFIX."thread WHERE dateline > '".$bbuserinfo['lastvisit']."'");
i got that code from HERE

notice the very small difference... instead of "thread where lastpost >, it's "thread WHERE dateline >.

i THINK this is working on my board. i'll have to wait for some new threads and more posts to know for sure.

i simply replaced the following line in index.php...

Code:

$welcome_new_topics=$DB_site->query_first("select count(*) as new_topics from ".TABLE_PREFIX."thread where lastpost > '{$bbuserinfo['lastvisit']}'");
with

Code:

$welcome_new_topics=$DB_site->query_first("select count(*) as new_topics from ".TABLE_PREFIX."thread where dateline > '{$bbuserinfo['lastvisit']}'");
hope this helps some of you.

:)

neocorteqz 05-22-2004 04:48 PM

Quote:

Originally Posted by JKeats
neo... that's all in the index.php edit. look for the following block and make whatever changes you want to alter the layout...

Code:

// Cell 2 - Quick Forum Stats
$welcome_new_posts=$DB_site->query_first("select count(*) as new_posts from ".TABLE_PREFIX."post where dateline > '{$bbuserinfo['lastvisit']}'");
$welcome_new_topics=$DB_site->query_first("select count(*) as new_topics from ".TABLE_PREFIX."thread where lastpost > '{$bbuserinfo['lastvisit']}'");
$total_members=$DB_site->query_first("select count(*) as all_users from ".TABLE_PREFIX."user");
$total_posts=$DB_site->query_first("select count(*) as all_posts from ".TABLE_PREFIX."post");
$total_topics=$DB_site->query_first("select count(*) as all_topics from ".TABLE_PREFIX."thread");
$welcome_members="<b>Total {$vbphrase['members']}</b>:</td><td> {$total_members['all_users']}";
$welcome_topics="<b>Total Threads</b>:</td><td> {$total_topics['all_topics']}";
$welcome_posts="<b>Total Posts</b>:</td><td> {$total_posts['all_posts']}";
if($bbuserinfo['userid']!=0){
$welcome_intro="Welcome back {$bbuserinfo['username']}, there has been {$welcome_new_posts['new_posts']} new posts and {$welcome_new_topics['new_topics']} new threads since your last visit. <a href='search.php?{$session['sessionurl']}&do=getnew'>Search For New Posts</a>";
} else {
$welcome_intro="Welcome to the forums Guest, please take a look around, if your already a member login, if not then please register. Enjoy Your Stay";
}



Thanks. :)

CreedFeed 05-25-2004 02:24 PM

I have a question about this hack - how would you go about getting the Welcome Panel to display on ALL pages and not just the home page? Is there a better way to do this than have to copy/paste the code into each vBulletin page file? For example, I'd like to have the Welcome Bar shown just below the navbar.

[ breadcrumb links]
[ navbar ]

[ welcome panel ]

[ forum content ]

DarkExplosion 05-25-2004 10:10 PM

nice job, was gonna make something like this but you beat me to it :) installed without a prob.

Anub1s 05-26-2004 03:09 AM

cool

you share all the hacks in you forum

'xept inferno lol

thanks for this one =D

Rambo 07-13-2004 03:51 PM

Nice One

Installed without any errors ^_^

Bounce 07-18-2004 09:43 PM

Installed and workin a treat:)

I have a "Who's In Chat" hack installed too, is it possible to get the user info etc showing within the panel??

blakkboy 07-18-2004 10:03 PM

The Hack works fine but where do i upload the .gifs to?

Vega 07-18-2004 10:24 PM

No need to upload these.

NietzscheKid 07-29-2004 07:58 PM

Thank you for this great hack. :)

I just have a tiny problem. For some reason, as a guest the guestavatar does not display at all. This is strange.

You can view it here:

http://www.currentswillshift.net/havenbbs/index.php?

The guest avatar table is empty. All code etc. for FORUMHOME and navbit are correct though. I think this must be a permissions problem maybe?

I'd be very grateful for any hints/tipps :)

Vega 07-29-2004 08:19 PM

Did you upload the guestavatar.gif into that folder? :)http://www.currentswillshift.net/hav...mages/avatars/

NietzscheKid 07-29-2004 08:37 PM

Geez, Vega. Thanks. Not sure how anyone can be this stupid. lol. I had tested the hack on my testforum and uploaded the avatars as well. But I forgot to do it on my main forum and sat there for two hours pondering why that damn avatar won't show up.

Many thanks for your quick response and help, Vega. :)

sv1cec 07-30-2004 05:43 AM

By looking at this hack, it looks as if there are five queries which are run every time the user sees index.php.

Since the information presented is not (that much) time critical, couldn't those queries stay in index.php (or be moved somewhere else), and then use just the variables defined, to show the welcome panel in all other pages?

I am not a php expert, but I guess one could define the variables in global.php (or even put the queries there) and then use the variables everywhere.

Am I that wrong?

Marky 08-03-2004 04:35 PM

very cool mod ZT :D
Thnx loads :)

- Marky

sv1cec 08-05-2004 04:54 AM

I also installed it, but I didn't like the way the various elements of the hack were spread around (no pan intended, I just prefer things in a different way), so I took the time to modify things a bit.

First, I added a profile field, where users can select if they want the welcome panel shown or not. Then I created a template called welcome_panel, where I moved all the presentation things, from the index.php. I left the queries there only. Finally, I modified my FORUMHOME to present the template, if the user has selected it in its Profile.

Click here to see how my welcome panel looks:

If someone is interested, I could post the code here.

Rgds


All times are GMT. The time now is 02:48 AM.

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.01453 seconds
  • Memory Usage 1,841KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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