Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 04-12-2008, 09:55 PM
Belgrael Belgrael is offline
 
Join Date: Jan 2007
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help on what hook to use for positioning a plugin

Hi all,

I'm using the Photopostfeature plugin to display featured photos on the forum index and it works if I assign it the forumhome_complete hook but I want to display it in between 2 forums and hence I don't know what hook to use as it is not working currently.

http://test.aucado.us is the forum index page and down between the Fun Stuff forum and the Rescue Forum is where I want to display it, where the text currently shows TESTING APRIL 12.

Attachment 78646

The code in the forumhome_forumbit_level1_nopost template is as follows:

Code:
<if condition="$forum[forumid] == 5">

	</table>

	<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<thead>
		<tr align="center">
		  <td class="thead">&nbsp;</td>
		  <td>$photopostfeature</td>
                  <td>TESTING APRIL 12</td>
		</tr>
	</thead>
</table>
	</div>
	<br />

	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<thead>
		<tr align="center">
		  <td class="thead">&nbsp;</td>
		  <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
		  <td class="thead" width="175">$vbphrase[last_post]</td>
		  <td class="thead">$vbphrase[threads]</td>
		  <td class="thead">$vbphrase[posts]</td>
		  <if condition="$vboptions['showmoderatorcolumn']">
		  <td class="thead">$vbphrase[moderator]</td>
		  </if>
		</tr>
	</thead>

</if>
I would really appreciate some help urgently if anyone can provide assistance.
Reply With Quote
  #2  
Old 04-13-2008, 08:59 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You'll probably be looking for a forumbit_* hook or forumhome_forumbit (if that one exists - not entirely sure).
Reply With Quote
  #3  
Old 04-13-2008, 10:29 AM
Belgrael Belgrael is offline
 
Join Date: Jan 2007
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your advice. I tried all the forumbit_* hooks and none worked. In fact the front page came up blank for each one. I tried changing the Execution Order to numbers 1 to 16 and still nothing.
I've tried several of the forumhome_ hooks, also to no avail.
Any other ideas apart from me going mad trying every single hook and testing?
Reply With Quote
  #4  
Old 04-13-2008, 11:33 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What should this plugin be doing?
Reply With Quote
  #5  
Old 04-13-2008, 11:43 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is probably because the Plugin code relies on PHP code present when the forumhome_complete hook is executed. You'll need to speak to the Plugin Author about how you can edit the Plugin so it will work at the desired hook location, (if it is possible).
Reply With Quote
  #6  
Old 04-21-2008, 01:55 AM
Belgrael Belgrael is offline
 
Join Date: Jan 2007
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reply from the plugin author:

Quote:
Originally Posted by Plugin Author
The code has nothing to do with any plugin location at all it is simple php code to generate an html box with photos in it.

I dont play with vb much so sorry cant be of much assistance to you plus I dont really in general participate in code mod forums since I have literally no time.
So, I'm stuck. :down:

Crappola!
Reply With Quote
  #7  
Old 05-01-2008, 07:22 AM
Belgrael Belgrael is offline
 
Join Date: Jan 2007
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone help me plllleeeeeaaaasssseeee?
Reply With Quote
  #8  
Old 05-24-2008, 02:16 AM
Belgrael Belgrael is offline
 
Join Date: Jan 2007
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bumping. Desperate for a solution. Surely there is a vb programmer who can help?
Reply With Quote
Reply

Thread Tools
Display Modes

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 01:21 AM.


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.04442 seconds
  • Memory Usage 2,239KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • 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