Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-28-2017, 10:06 AM
paradoxG(r)eek paradoxG(r)eek is offline
 
Join Date: Feb 2017
Location: Thessaloniki, Greece
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 02-28-2017, 03:31 PM
paradoxG(r)eek paradoxG(r)eek is offline
 
Join Date: Feb 2017
Location: Thessaloniki, Greece
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Attached Images
File Type: jpg navbar.jpg (34.0 KB, 0 views)
Reply With Quote
  #3  
Old 03-01-2017, 03:33 PM
paradoxG(r)eek paradoxG(r)eek is offline
 
Join Date: Feb 2017
Location: Thessaloniki, Greece
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #4  
Old 03-01-2017, 03:40 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.)
Reply With Quote
Благодарность от:
paradoxG(r)eek
  #5  
Old 03-01-2017, 03:44 PM
paradoxG(r)eek paradoxG(r)eek is offline
 
Join Date: Feb 2017
Location: Thessaloniki, Greece
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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
Reply With Quote
  #6  
Old 03-01-2017, 04:26 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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).
Reply With Quote
Благодарность от:
paradoxG(r)eek
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:48 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04134 seconds
  • Memory Usage 2,237KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (2)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (1)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete