View Full Version : Possible to display the notification bits in navbar without the popup?
nxvc
Tue 29th Jan '08, 7:40pm
Like the title says, I'm looking for how to show the notification bits in a table instead of in a popup. Any chance?
Onimua
Tue 29th Jan '08, 10:23pm
It's possible. I think you'd have to take the code from the pop-up (near the bottom of the navbar template) and take the notification menu out, and then place it where you want. Might need to make some minor template changes as well to make it appear correctly.
nxvc
Wed 30th Jan '08, 8:25am
Thank you Onimua, it works for now..
Do you also know where I can modify the menubits itselfs?
In example, there is a lot of free space between the menuoptions that I want to remove, also I want to remove some of the options within the menubits.
Thats why I need the (hook location?) part, where I can modify it.
Onimua
Wed 30th Jan '08, 2:21pm
Everything that you need is within that template; you just have to edit the table that it's in (and be very careful as there are many conditionals in that section).
nxvc
Wed 30th Jan '08, 8:38pm
All I got right now is just the variable $notifications_menubits.
How is the name of the template I have to look for to edit this variable itselfs?
Onimua
Thu 31st Jan '08, 11:08am
Are you referring to the actual rows? The that's navbar_notifications_menubit that edits the actual rows of the table.
nxvc
Mon 4th Feb '08, 9:47pm
Okay yes this was what I'm looking for, but I'm also searching the variable for the actual amount of unread visitor messages in example and I'm also looking for the whole content of the notification popup, if I would like to add or to remove a line from this box.
Onimua
Wed 6th Feb '08, 12:38am
You mean $notification[total] in that template which shows the number of each?
nxvc
Fri 15th Feb '08, 12:40am
We get's closer, but I'm still blind I think. I am looking for the single element number.
I want to move every bitcounter ( number field ) of a single notification bit to another position. I need to know the variable of the amount of a sinlge menubit, like I got already for private messages amount number.
Give me an example please: Where is the numbervariable part for the unread picture comments bit, which links the user to "album.php?do=unread" ?
Understood?
nxvc
Mon 18th Feb '08, 7:05pm
Are these numbers hidden, or why I can't find them in a template?
Onimua
Mon 18th Feb '08, 7:18pm
I'm confused. What exactly are you looking for? $notification[total] shows the total number of notifications you have, and it's in the navbar_notifications_menubit template.
nxvc
Wed 12th Mar '08, 10:29am
Sorry about the confusion :)
Check the attachment please, I'm looking for every single variable(number), not the total notificationsnumber.
Onimua
Wed 12th Mar '08, 11:24am
I'm still not sure what you mean... Are you wanting to say, get the number of ONLY profile VMs (like you highlighted in your attachment), and not a variable that shows up for every one of those options?
nxvc
Wed 12th Mar '08, 11:51am
I want every one of these option.
The VM number was just an expample.
.. but can you tell me, where's the VM number located? I guess that the other numbers are also located there.
Onimua
Wed 12th Mar '08, 12:10pm
That's the thing, it's not like they're separate, at least how it's used here. I believe (code wise) it's running through a loop filling each option. You might have to jump into the code itself to see how vBulletin's compiling the array and outputting it.
More than likely you might need to look into the code and see if there's a way to get individual counts; I tried it look through some files which I thought might have it but I can't locate it at the moment.
nxvc
Wed 12th Mar '08, 12:17pm
Yes, that's exactly my problem, I can't find the location of these numbers.
I'd like to use the numbers in the navbar itself, similiar to the "Private Messages: Unread (x)".
vBulletin® v3.8.0 Beta 4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.