vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Notification on external page (https://vborg.vbsupport.ru/showthread.php?t=234272)

skariko 01-27-2010 08:20 AM

Notification on external page
 
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. :)


All times are GMT. The time now is 07:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00965 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete