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 08-08-2012, 11:06 AM
Liff Liff is offline
 
Join Date: Aug 2011
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Merging Template Hook Ins?

Hey Guys,

Can one of you guys please take a look at this problem for me?

Lynne, or any other admin - Excuse me if this is an inappropriate place to post this but I have asked on the relevant Template thread and the OP has told me he is not a programmer and cannot help me so I'm looking for information on the most relevant place I can think of )

I have Chiploves thumbnails installed which is great and I want to keep it. I also want to install the Novo Slider for Logo rotation and I've linked to both mods below. The problem is that they both hook in to 'parse_templates' and these modifications are not compatible. The thumbnails always work fine which is great however the banner slider only works on the forum home page (ie listing the forums) but fails to work when in forumdisplay presumably because the Thumbnails are there already. When I disable the thumbnails it works fine again.

I'm on the very edge of my skill set even figuring that out, so I'm pretty unsure of where to go next to integrate the two hook ins. Would anyone be kind enough to advise me where to go next? I have included the coding on my last posts on the relevant threads below as well as a link to my forum with the details of the trial style I am using.

I sincerely thank anyone for taking the time to look, even if you cannot offer a solution of advice.

Installed: Chiplove.9xpro - Thread Thumbnails 2.2.9 ( 1 2 3 4 5 ... Last Page)

Logo Rotation

http://twistsnturns.net

Style: Slider TNT67
Reply With Quote
  #2  
Old 08-08-2012, 04:27 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tried changing the execution order of the two plugins that use the same hook location?
Reply With Quote
  #3  
Old 08-08-2012, 04:43 PM
Liff Liff is offline
 
Join Date: Aug 2011
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Lynne,

Thanks very much for the suggestion.. It's a great idea but I've tried moving them and to no effect.. I've tried moving them both up and down the pecking order and it still does the exact same thing.
Reply With Quote
  #4  
Old 08-08-2012, 05:34 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't even see a plugin in the Logo Rotation code that uses the parse_templates hook location - it uses the template_register_var hook location.
Reply With Quote
  #5  
Old 08-08-2012, 05:42 PM
Liff Liff is offline
 
Join Date: Aug 2011
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
I don't even see a plugin in the Logo Rotation code that uses the parse_templates hook location - it uses the template_register_var hook location.
Yeah, when I use that it generates a 503 error - When I pointed this out Thundercat (the OP) told me he had similar and used the Parse_Template hook in instead.

I had figured that if that one worked with the forum listings I could duplicate it and try another location for that would work in forumdisplay but sadly that didn't work either.

I take it that you run the w3schools site in your sig? I might need to spend a few weeks studying to catch up with what's going on, tbh
Reply With Quote
  #6  
Old 08-08-2012, 10:35 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, I don't run the w3schools site - it's just a site that I find very, very helpful!

Have you tried just combining the two plugins? Either put the thumbnail code at the beginning or end of the other plugin.
Reply With Quote
  #7  
Old 08-09-2012, 12:12 PM
Liff Liff is offline
 
Join Date: Aug 2011
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks again, Lynne - Still the same though.. The Thumbnails seem bulletrpoof, they always seem to work but the banner only works outside forumdisplay.

The slider works fine inside threads too..

Is there any way around using a plugin by putting this code anywhere else, or even creating a php file at server level or is that just being silly?

PHP Code:
$templater vB_Template::create('banner_rotator');
$templatevalues['banner_rotator'] = $templater->render();
vB_Template::preRegister('header'$templatevalues); 
Reply With Quote
  #8  
Old 08-09-2012, 02:51 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I honestly don't see why that code would cause issues, but you can certainly try using different hooks. Here's a list of the hooks used in order around where parse_templates is used (you could get this in debug mode on your test site). Try some other and see what happens.

Code:
fetch_foruminfo
load_show_variables
load_forum_show_variables
global_state_check
global_bootstrap_complete
global_start
style_fetch
global_setup_complete
forumdisplay_start
cache_templates
cache_templates_process
template_register_var
template_render_output
fetch_template_start
fetch_template_complete
fb_opengraph_array
parse_templates
notices_check_start
friendlyurl_clean_fragment
friendlyurl_geturl
notifications_list
process_templates_complete
friendlyurl_redirect_canonical
cache_ordered_forums
Reply With Quote
  #9  
Old 08-11-2012, 03:02 PM
Liff Liff is offline
 
Join Date: Aug 2011
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Lynne, sorry for taking so long to thank you for giving me those options to try - Work commitments get in the way too often lol!

I've tried each of those in order with no different results.

I guess the two plugins must be incompatible, but I'll see if I can fluke it by playing about with it.

Or some other thumbnail user may decide they fancy both mods and beat me to it *crosses fingers*
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 10:55 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.04134 seconds
  • Memory Usage 2,243KB
  • Queries Executed 11 (?)
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
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete