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 11-30-2009, 04:25 PM
ARP ARP is offline
 
Join Date: Mar 2009
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help with this code in navbar

Hi all,

I have tried to include a code in the end of navbar or under it

Picture in attach will explain it more

Specially like if you add any code under

PHP Code:
    {vb:raw navbar
So How to add any addtional code under "{vb:raw navbar}" in forum home ?

I have tried this but it doesn't work

PHP Code:
$templater vB_Template::create('ARP_template'); 
    
$templater $templater->render();
    
$navbar .= $templater
Any help will be great!
Attached Images
File Type: jpg vb.jpg (20.7 KB, 0 views)
Reply With Quote
  #2  
Old 11-30-2009, 06:24 PM
BBR-APBT's Avatar
BBR-APBT BBR-APBT is offline
 
Join Date: Feb 2009
Location: Maryland
Posts: 946
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Either add your code below:
Code:
{vb:raw navbar}
Or you can make a plugin that will use the following template hook location.
Code:
{vb:raw template_hook.navbar_end}
Make a new plugin and add something like this. Set the hook location to global_start.
Code:
    $templater = vB_Template::create('ARP_template');
    $template_hook['navbar_end'] .= $templater->render();

See attached screen shot. I do believe this will work.
Attached Images
File Type: png codeundernavbar.PNG (26.8 KB, 0 views)
Reply With Quote
  #3  
Old 11-30-2009, 06:56 PM
ARP ARP is offline
 
Join Date: Mar 2009
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BBR-APBT View Post
Either add your code below:
Code:
{vb:raw navbar}
Or you can make a plugin that will use the following template hook location.
Code:
{vb:raw template_hook.navbar_end}
Make a new plugin and add something like this. Set the hook location to global_start.
Code:
    $templater = vB_Template::create('ARP_template');
    $template_hook['navbar_end'] .= $templater->render();

See attached screen shot. I do believe this will work.
Yes That's worked but it's not in the correct place

See



But I need it here :



Thanks For your reply,

Much Appreciated :up:
Attached Images
File Type: jpg vb.jpg (19.4 KB, 0 views)
File Type: jpg vb2.jpg (17.0 KB, 0 views)
Reply With Quote
  #4  
Old 11-30-2009, 06:58 PM
BBR-APBT's Avatar
BBR-APBT BBR-APBT is offline
 
Join Date: Feb 2009
Location: Maryland
Posts: 946
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Let me find the correct hook.

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

Ok here you go.

Go to your navbar template and add the following at the very end or where ever you want it to show.
Code:
{vb:raw template_hook.BBR_below_navbar}

And this will be your plugin code.
Code:
    $templater = vB_Template::create('ARP_template');
    $template_hook['BBR_below_navbar'] .= $templater->render();

Let me know how it works.
Reply With Quote
  #5  
Old 12-01-2009, 07:22 AM
ARP ARP is offline
 
Join Date: Mar 2009
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So If I want my mod work should any one add template_hook in the forumhome to get the Mod work
Is there any way to didn't make it with any manual changes ?
Reply With Quote
  #6  
Old 12-01-2009, 02:25 PM
BBR-APBT's Avatar
BBR-APBT BBR-APBT is offline
 
Join Date: Feb 2009
Location: Maryland
Posts: 946
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't find a hook that is in the location so my only thought was to add my own hook.
Reply With Quote
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 05:48 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.04059 seconds
  • Memory Usage 2,242KB
  • Queries Executed 12 (?)
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
  • (8)bbcode_code
  • (2)bbcode_php
  • (1)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
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (4)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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete