The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
New Posts on page besides forumhome
I put the following code into the navbar template:
$vbphrase[new_posts_nav] ({$vbulletin->userinfo['newposts']}) which displays New Posts (#) and it works fine on the forumhome, but as soon as you go to another part of the forum the new posts don't show so all you see is New Posts () and is not showing the new posts. Is there a way to show this throughout the entire forum? |
#2
|
|||
|
|||
I tried to look at this but I don't find any reference to $vbulletin->userinfo['newposts'] anywhere in the code or any templates, and it doesn't work for me on any pages. Are you sure that's not from a mod or something?
|
#3
|
|||
|
|||
It was located at the top of the page where it said
Welcome User: blah blah blah Private Messages: # unread New Posts: # I just moved that from the top of the page and put it into the navbar |
#4
|
|||
|
|||
I may be totally wrong here but this looks like a problem I had before... The second post in the thread might clear it up for you? Hope this helps, if not, sorry.
https://vborg.vbsupport.ru/showthread.php?t=249175 |
#5
|
|||
|
|||
I think that's exactly it (and it explains the php in the template from your other thread ). I was going to help figure out what code might be needed to make it work, but I still don't see that newposts thing - it might be due to a version difference.
|
#6
|
|||
|
|||
I took a look at the link you sent, and it does make sense. However, I'm just editing the navbar template, which appears on every page.
To the showthreads template (just for testing) I added $numNewPosts = $vbulletin->userinfo['newposts']; and then replaced the code on the navbar to this: $vbphrase[new_posts_nav] ($numNewPosts) and it removed the number from the navbar and I got "= Array['newposts'];" BTW, I'm using v 3.5.4 Update: I wasn't able to manually create the code, but I did find a place where it created a global variable (which may have been what you guys were getting at) and just inserted some PHP code into it. Found here in case anyone's interested. Thanks for leading me down the right path guys! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|