vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Breadcrumb needed in Plugin (https://vborg.vbsupport.ru/showthread.php?t=253484)

Melchior 11-11-2010 04:40 AM

Breadcrumb needed in Plugin
 
Hi,

I need the breadcrumb in a plugin. Is there any way to get them there? It is necessary because we need to integrate the breadcrumb into a separate layout, by the plugin.

Many thanks in advance,
Melchior

kh99 11-11-2010 09:01 AM

The problem I see is that the way the breadcrumb is built is different depending on which page you're on, and it's often built near the end of code that builds the page. Do you need it for every page? Then I think you'd either need to figure out how to build it yourself for every page, or else figure out how to make your plugin do its work using one of the hooks in the function construct_navbits (in includes/function.php).

If you only needed it on some pages, that might simplify things. For instance if you only needed the thread and forum display pages then you could steal the code for building it from showthread.php or forumdisplay.php.

Or maybe someone else can think of something that I missed.


All times are GMT. The time now is 12:03 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.00918 seconds
  • Memory Usage 1,704KB
  • 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
  • (2)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