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
Welcome Panel v1.0 Details »»
Welcome Panel v1.0
Version: 1.00, by Zero Tolerance Zero Tolerance is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 03-30-2004 Last Update: Never Installs: 97
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 05-10-2004, 08:31 PM
JKeats JKeats is offline
 
Join Date: May 2004
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #23  
Old 05-15-2004, 04:00 AM
Chris|vB Chris|vB is offline
 
Join Date: Jan 2004
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice job.
Reply With Quote
  #24  
Old 05-21-2004, 08:09 PM
JKeats JKeats is offline
 
Join Date: May 2004
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #25  
Old 05-22-2004, 09:42 AM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.



Thanks.
Bump on this question.

Thanks
Reply With Quote
  #26  
Old 05-22-2004, 12:46 PM
JKeats JKeats is offline
 
Join Date: May 2004
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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";
}
Reply With Quote
  #27  
Old 05-22-2004, 03:26 PM
JKeats JKeats is offline
 
Join Date: May 2004
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

Reply With Quote
  #28  
Old 05-22-2004, 04:48 PM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #29  
Old 05-25-2004, 02:24 PM
CreedFeed's Avatar
CreedFeed CreedFeed is offline
 
Join Date: Apr 2002
Location: Milwaukee, WI
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ]
Reply With Quote
  #30  
Old 05-25-2004, 10:10 PM
DarkExplosion DarkExplosion is offline
 
Join Date: Mar 2004
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice job, was gonna make something like this but you beat me to it installed without a prob.
Reply With Quote
  #31  
Old 05-26-2004, 03:09 AM
Anub1s Anub1s is offline
 
Join Date: Jan 2004
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool

you share all the hacks in you forum

'xept inferno lol

thanks for this one =D
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 07:35 PM.


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.07728 seconds
  • Memory Usage 2,317KB
  • 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
  • (5)bbcode_code
  • (2)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