vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   hook location for breadcrumbs template? (https://vborg.vbsupport.ru/showthread.php?t=188900)

mooreaa 08-23-2008 12:23 PM

hook location for breadcrumbs template?
 
Hello,

I dropped my breadcrumbs code into a custome template... but I can't get the $navbits to fill in correctly... what hook should I use for this to work?

Dismounted 08-23-2008 12:37 PM

How are you calling your custom template?

mooreaa 08-23-2008 07:18 PM

I dropped the following code into a custom template called simple_breadcrumbs:

Code:

<!-- breadcrumb -->
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
        <tr>
                <td>
                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                        <tr valign="bottom">
<td>
<a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
                                <td>&nbsp;</td>
                                <td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]                                </td>
                        </tr>
                </table>                       
                </td>       
        </tr>
</table>
<!-- / breadcrumb -->

in my plugin I am trying to call: eval('$simple_breadcrumbs = "' . fetch_template('simple_breadcrumbs') . '";');

and I also have the necessary bit for the template cache, but I'm not sure where to hook this in.

From various templates I add $simple_breadcrumbs to call the template.

I looked at the "navbar below forum posts" example, and theirs only gets called when you view threads. I tried various hook locations forumdata_* global_*, etc but it looks like the $navbits never populate correctly :(

RLShare 08-24-2008 05:04 AM

navbits_complete?


All times are GMT. The time now is 05:46 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.01046 seconds
  • Memory Usage 1,716KB
  • 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)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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