vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   New Templates and registering variables (https://vborg.vbsupport.ru/showthread.php?t=279334)

clubvr4 03-07-2012 04:28 PM

Hi,

I also managed to get it to work in my navbar template, the set up I have is follows.

Custom template called cvr4_search profile, this is called from withIn the navbar template using the raw code, I then have a hook which calls this template and it shOws just fine.

Inside the cvr4_searchprofile I need to place the notification code to show new notifications, it's here where it's not working. So notifications need to be working inside a custom template which is called from within the navbar template.

Does that make sense?

Thanks for your testing, it's very mug appreciated.

kh99 03-07-2012 07:03 PM

OK, maybe I don't understand, but in the test I did I put {vb:raw notifications_menubits} in the custom template, and in the screen grab I posted you can see that it says "2 Unread Private Messages", which is what's in notifications_menubits.

clubvr4 03-08-2012 10:29 AM

Ok, I replicated your method and indeed it works - Let me review what i did originally and how this differs from what you did, i'm a little confused now cos it doesnt appear to be any different from how i set it up in the 3rd place, /scratcheschin.

Anyways, its working now and i can take lessons learnt from this and hopefully progress :)
Thank you very much for your help!


All times are GMT. The time now is 04:11 AM.

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.01454 seconds
  • Memory Usage 1,707KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete