View Full Version : Include number of notifications in title
dabvastur
09-22-2014, 08:25 PM
<font face="Franklin Gothic Medium">Dears members of this community,
I need guidance on how to set the number of notifications in the title of my forum, similar to what Facebook do when you have notifications, indication in the title of the web the number of notifications without seeing.
I tried setting the variable {vb: raw notifications_total} in the title, but does not work. Please help me
Thanks in advance
Greetings.</font>
tbworld
09-22-2014, 09:16 PM
If all you did was reposition the variable within the "header" template, then it should have worked.
Not sure what else we can tell you, you haven't given us anything to work with. :)
dabvastur
09-23-2014, 12:46 AM
My title tag: <title>( {vb: raw notifications_total} ) Game Rol.net</title>, This on header template.
Tell me you need to work.
Regards and thanks.
tbworld
09-23-2014, 01:12 AM
My title tag: <title>( {vb: raw notifications_total} ) Game Rol.net</title>, This on header template.
Tell me you need to work.
Regards and thanks.
<title>( {vb:raw notifications_total} ) Game Rol.net</title>
Do not add a space between the "vb:" and the "raw". That is all I see. :)
dabvastur
10-05-2014, 03:48 AM
Sorry for the late reply.
The code not work:
https://vborg.vbsupport.ru/external/2014/10/20.png
Thanks for all help.
tbworld
10-05-2014, 04:19 AM
A variable has to be registered (made available) to a particular template. I thought you were just moving the variable on the "header" template, but your picture shows a different template.
In the future please take the time to provide us with enough details so we can determine what you are doing, extra information cannot hurt especially if you are not English speaking. Make appropriate attachments. In this case attaching your template code would have helped.:)
What is the template name you trying to post this variable on?
:)
dabvastur
10-05-2014, 06:50 PM
Sorry, but i'm newbie in this forum, for this, I say you: Tell me you need to work.
The template name is: FORUMHOME
EDIT: I've tested also in the template "headinclude" but not work
Regards and thanks.
tbworld
10-06-2014, 05:35 PM
Create a plugin at hook: "forumhome_complete"
// Hook: forumhome_complete
vB_Template::preRegister('FORUMHOME',array('notifi cations_total' => $notifications_total));
This registers the variable "notifications_total" on the FORUMHOME page, which is available.
Here is a great guide by @Cellarius on the subject.
https://vborg.vbsupport.ru/showthread.php?t=228078
:)
dabvastur
10-06-2014, 07:05 PM
Solved. I appreciate very much your help, thanks.
Regards.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.