![]() |
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 |
Quote:
|
is this in the navbar or seperate panel ?
if its in the navbar then the pm info needs to be put back |
just wondering about the server load this might cause, i know the welcome panel for vb2 was an issue for alot of bigger sites.
|
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.
|
nice work
*installs |
Nice work!
Quote:
Quote:
|
Thanks
|
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? |
Hmm, more desing work to do?
|
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? |
Quote:
|
Quote:
But at the moment its only like that for guest view :) |
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!
|
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.
|
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 |
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 :) |
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?
|
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. :) |
Quote:
in Index.php Look for PHP Code:
|
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! |
nice job.
|
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. |
Quote:
Thanks |
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 |
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']."'"); 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']}'"); Code:
$welcome_new_topics=$DB_site->query_first("select count(*) as new_topics from ".TABLE_PREFIX."thread where dateline > '{$bbuserinfo['lastvisit']}'"); :) |
Quote:
Thanks. :) |
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 ] |
nice job, was gonna make something like this but you beat me to it :) installed without a prob.
|
cool
you share all the hacks in you forum 'xept inferno lol thanks for this one =D |
Nice One
Installed without any errors ^_^ |
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?? |
The Hack works fine but where do i upload the .gifs to?
|
No need to upload these.
|
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 :) |
Did you upload the guestavatar.gif into that folder? :)http://www.currentswillshift.net/hav...mages/avatars/
|
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. :) |
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? |
very cool mod ZT :D
Thnx loads :) - Marky |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|