vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   template_hook.navtab_end (https://vborg.vbsupport.ru/showthread.php?t=324544)

paradoxG(r)eek 02-28-2017 10:06 AM

template_hook.navtab_end
 
Hell all,

Which <hookname> do I need to use in a plugin so I can add the code below?

Code:

$templater = vB_Template::create('modreg_navbar');
$template_hook['navtab_end'] .= $templater->render();

I tried all navbit* hooks plus cache_templates and others but nothing appears on the right of "Quick Links" where I want to add a popup menu.

Thank you
Chris

--------------- Added [DATE]1488302193[/DATE] at [TIME]1488302193[/TIME] ---------------

I read somewhere an example using process_templates_complete but even this does not works.

paradoxG(r)eek 02-28-2017 03:31 PM

1 Attachment(s)
Strange. Didn't noticed that the menu created but in the tabs row. How I can add it on the right of Quick Links? What is the hookname there. From what I seen in the template is navtab_end

paradoxG(r)eek 03-01-2017 03:33 PM

I tried navbar_end ... No results... And a dozen others like before_community, after_community etc etc. The code appears only in tabs (end). The template code is:
Code:

<li class="popupmenu" id="vbmenu_modreg">
        <a href="javascript://" class="popupctrl">{vb:var vbphrase.modreg_link_registrations}</a>
        <ul class="popupbody popuphover">                               
                <li id="modreg_moderate"><a href="modreg.php?do=moderate">{vb:var vbphrase.modreg_link_moderate}</a></li>
                <li id="modreg_log"><a href="modreg.php?do=log">{vb:var vbphrase.modreg_link_log}</a></li>
                <li id="modreg_fylkes"><a href="modreg.php?do=fylkes">{vb:var vbphrase.modreg_link_fylkes}</a></li>                                                       
        </ul>
</li>


Lynne 03-01-2017 03:40 PM

You may have to do some sort of str_replace to add it in where you want it.

(Everything is done in the navigation manager now and so there really isn't a way to hook to the sub-nav menu.)

paradoxG(r)eek 03-01-2017 03:44 PM

Quote:

Originally Posted by Lynne (Post 2583088)
You may have to do some sort of str_replace to add it in where you want it.

(Everything is done in the navigation manager now and so there really isn't a way to hook to the sub-nav menu.)

The old good trick from vB3 :) ..... I thought that there is a hook somewhere there that's why I wasted my time searching around. I'll use str_replace.

Thank you Lynne !

--------------- Added [DATE]1488390563[/DATE] at [TIME]1488390563[/TIME] ---------------

Another question. I used at register_form_complete
Code:

$human_verify .= $templater->render();
and I was able to add some extra fields in registration form.

Why similar code does not works? Which hookname is the correct to add something in navbar? Now I'm using process_templates_complete

Paul M 03-01-2017 04:26 PM

Quote:

Originally Posted by Lynne (Post 2583088)
You may have to do some sort of str_replace to add it in where you want it.

(Everything is done in the navigation manager now and so there really isn't a way to hook to the sub-nav menu.)

They are ways to hook into the nav manager.
I think there are even some posts about it, if you search.

Links are also stored in the product XML if they are just static.
I havent had to do anything on NavMan for a very long time so I dont remember off the top of my head how you do all of it.

(Some of my products do it, List Reported Items is one).


All times are GMT. The time now is 10:04 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.00988 seconds
  • Memory Usage 1,725KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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