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 |
#17
|
||||
|
||||
I added something to it, phrases to be exact.
Enter the following phrases on GLOBAL: home_sincelastvisit = since your last visit home_newthreadssincelastvisit = new threads home_newpostsssincelastvisit = new posts and then use this code in the navbar-template: Code:
<br /><b>$getnewthread[threads]</b> $vbphrase[home_newthreadssincelastvisit], <b>$getnewpost[posts]</b> $vbphrase[home_newpostsssincelastvisit] $vbphrase[home_sincelastvisit] |
#18
|
||||
|
||||
All you need is one phrase.
Just call it "home_sincelastvisit" "There have been {1} threads and {2} posts since your last visit!" Then use this in navbar: Code:
<phrase 1="$getnewthread[threads]" 2="$getnewpost[posts]" />$vbphrase[home_sincelastvisit]</phrase> |
#19
|
||||
|
||||
true... I still have to get used to some things on the new system. Thanks Link
|
#20
|
||||
|
||||
Which one do I use if I don't want the thread count to go up if someone posts into a thread?
|
#21
|
||||
|
||||
This is also possible to be done in one query instead of two.
And you should also give credit to the orignal author for the vb2 one as the query has barley changed. |
#22
|
||||
|
||||
Quote:
Thankz Link |
#23
|
||||
|
||||
Okay I'll be integrating all this new information into the next version of this hack, so stay tooned!
|
#24
|
||||
|
||||
Quote:
|
#25
|
||||
|
||||
Okay the instructions have been updated slightly to be able to incorporate the phrases feature of vB 3. This update is strictly optional, so you do not have to install it, but if you want to have this hack in a different language, then you can install the hack with the updated instructions
Thanks to Bernd Glasstett for the idea of using phrases and Link14716 because I'm actually using the phrases that he suggested |
#26
|
||||
|
||||
Quote:
|
#27
|
|||
|
|||
ok, i'm really stupid.... i just managed to upgrade to rc2 myself with no prior experience and it worked out good. i didn't install this hack into it yet cause i was probably going to upgrade first. now i did look for the global.php file and found it in the admincp folder but i couldn't find this text:
****************************** OPEN global.php AND FIND ****************************** echo "End call of global.php: $aftertime\n"; echo "\n<hr />\n\n"; and i looked in the same directory and i looked in the templates folder and i couldn't find this text either: <if condition="$show['pmstats']"><br /><a href="private.php?$session[sessionurl]">$vbphrase[private_messages]</a>: $vbphrase[unread] <if condition="$bbuserinfo['pmunread']"><strong>$bbuserinfo[pmunread]</strong><else />$bbuserinfo[pmunread]</if>, $vbphrase[total] $bbuserinfo[pmtotal].</if> can someone give me step by step where everything is and how it's done. thanks a lot. |
#28
|
||||
|
||||
i put it here so its easier for users to understand
|
#29
|
||||
|
||||
Quote:
Which one do I use if I don't want the thread count to go up if someone posts into a thread? |
#30
|
||||
|
||||
just use the second query
|
#31
|
||||
|
||||
Quote:
I just asked for the query, instead of just saying it's possible to do in one query Also, I can't seem to find the COUNT() function in your code? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|