View Full Version : Notification on external page
skariko
01-27-2010, 08:20 AM
Hello,
anyone know how put the VB4 notification on an external page?
I've found this phrase:
{vb:raw notifications_total}
but i don't know how to include it on an external page.
Thanks.
Lynne
01-27-2010, 02:01 PM
You can probably include it if you external page includes global.php also.
skariko
01-27-2010, 02:23 PM
Yes, i am able to take different thing from this external page like the username:
$vbulletin->userinfo['username']
and the forum url:
get_option('vbb_VBURL')
and the userid:
$vbulletin->userinfo['userid']
and a field:
$vbulletin->userinfo['field56']
But i don't understand how i can include the notification.. i've tried with:
<?php echo {vb:raw notifications_total} ?>
and with
<?php echo $notifications_total ?>
..but it doesn't works.... any idea? :)
thanks
Lynne
01-27-2010, 04:23 PM
You don't use echo in a template. The correct code for the notifications dropdown is in the header template. Copy it from there. You may also have to copy the css for it, if you are wanting a drop down like that.
I've always just included the header template on my external pages, so I'm not really sure how to just grab part of the template for use.
skariko
01-29-2010, 09:36 AM
I'll try, thanks for the help. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.