The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
How many threads and posts since your last visit! Details »» | |||||||||||||||||||||||||||
How many threads and posts since your last visit!
Developer Last Online: Jun 2020
PLEASE CLICK ON THE INSTALL BUTTON IF YOU INSTALLED THIS! THANKS!
What does this hack do? This hack basically shows the number of new threads and posts since your last visit, in the navbar (under your nick.) Check out the attached screenshot for more information Installation This is a pretty simple hack to install. Instructions are as follows: FILE MODIFICATIONS global.php TEMPLATE MODIFICATIONS navbar PHRASES navbar_sincelastvisit OPEN global.php AND FIND PHP Code:
UNDER IT, ADD PHP Code:
UNDER IT, ADD PHP Code:
HTML Code:
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase></if> HTML Code:
<br /><phrase 1="$getnewthread[threads]" 2="$getnewpost[posts]" />$vbphrase[navbar_sincelastvisit]</phrase> WITH THE FOLLOWING CONTENT: Code:
There have been {1} threads and {2} posts since your last visit! Screenshots Attached Show Your Support
|
Comments |
#32
|
||||
|
||||
There is no COUNT() because that wouldn't do the job I use a totally different method in order to get the three sets of data I need from just the one query, which with testing on a usual new post/thread count seems equally as fast as two queries.
Remember also thats more queries can sometimes be better and quicker. |
#33
|
||||
|
||||
Quote:
|
#34
|
||||
|
||||
Yours hacks are used rather often!
|
#35
|
||||
|
||||
Is it just me, or will this let people who have no access to a certain forum realize that a new post has been made even if they can't check it?
I make a post in my Central Command, some registered user sees that the posts since last visit went up by 1, even though he has no permission to view the post. Anybody know a way to fix this? Check for permission somehow in or after the query? |
#36
|
|||
|
|||
Am I the only person that has no idea where to find the hack installer listed in the txt? installer.php?
:/ |
#37
|
||||
|
||||
I think Gary W made an error, I don't think you need to run an installer with this hack, just make the changes listed
|
#38
|
||||
|
||||
LOL its just one file edit, like a mini mod
|
#39
|
|||
|
|||
Yeah I figured it was just a accident. I got it working, now I'm working on trying out vbIndex and eventually replacing vbportal when I switch to 3.0. I got to post on the vbindex topic about an error I'm getting there now
|
#40
|
|||
|
|||
i really want this hack on my forum but when i try to look in the global.php file, i cannot find those commands listed anywhere on that file. i did a search on the global.php file and i can't find anywhere it says echo or anything. and i'm not sure if the navbar template file is the same as the template file in the admincp directory or not.... can someone please help? thanks.
|
#41
|
|||
|
|||
/me clicks install
Thanks mate! Christian |
#42
|
|||
|
|||
Does it properly parse new threads and new posts yet? A new post in an old thread is not a new thread.
|
#43
|
|||
|
|||
Hack not working for me!! I've got VB 3.0 RC2
|
#44
|
||||
|
||||
Quote:
|
#45
|
||||
|
||||
Quote:
|
#46
|
|||
|
|||
Like Linear Helix mentioned earlier.
Is there anyway to make it so that the totals only show threads/posts forums that users have permission to view. i.e if a member posts in a private forum,the total only goes up for other users that have permission to view it. Would solve any possible complaints from members when the stats show new threads/posts have been made,but when they click on "new posts" the totals don't match. BTW, clicks Install. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|