![]() |
Social Bookmarks not showing?
I am modifying the default VB4.0.2 template files.
I intend to move the Social Book marks bit into the footer section. For some reason though they are not showing up... :confused: They showed up perfectly fine in their default position under a thread but when I move the code into the footer section I only get the word "Bookmarks" (which is the title of the original block) shown but no bookmark links. I removed the conditional <vb:if...> to see if that was causing the problem but alas not? Also - secondary to the above - I would like the bookmarks to appear on ALL pages in the footer. How do I enable them to be shown no matter what page the user is viewing? Here is the current snippet of code from the 'footer' template: Code:
{vb:raw ad_location.ad_footer_start} |
My guess would be you didn't preregister the variable for use in the footer template. Cellarius wrote a really good article that you may be interested in - [vB4] Rendering templates and registering variables - a short guide Also, I'm not even sure if that will do the trick since the footer gets rendered pretty early on (when global.php is called). So, your best bet is to use a template_hook (may have to add one) instead.
|
Thanks for the pointers - I'll have a look at the guides and work something out then see what happens :)
--------------- Added [DATE]1268002308[/DATE] at [TIME]1268002308[/TIME] --------------- Okay. I've read the guides but I am at a loss as to exactly what I should be doing here. From my point of view I shouldn't need to register a variable that is already part of the vBulletin core variables. So, maybe my question should be: How do I make the {vb:raw bookmarksites} accessible in the footer template? Where do I have to register this variable for it to be used in the footer? Don't get me wrong - I know how to handle PHP coding and all that but vBulletin's template system is downright confusing. I mean - I can't write raw php in these templates without some long-winded process explained in the guide linked to by Lynne - which hairbrain thought that up?! :down: :confused: :rolleyes: |
All times are GMT. The time now is 11:45 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|