PDA

View Full Version : Help on what hook to use for positioning a plugin


Belgrael
04-12-2008, 09:55 PM
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.

78646

The code in the forumhome_forumbit_level1_nopost template is as follows:

<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.

Opserty
04-13-2008, 08:59 AM
You'll probably be looking for a forumbit_* hook or forumhome_forumbit (if that one exists - not entirely sure).

Belgrael
04-13-2008, 10:29 AM
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? :)

Marco van Herwaarden
04-13-2008, 11:33 AM
What should this plugin be doing?

Opserty
04-13-2008, 11:43 AM
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).

Belgrael
04-21-2008, 01:55 AM
Reply from the 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: :confused:

Crappola!

Belgrael
05-01-2008, 07:22 AM
Can anyone help me plllleeeeeaaaasssseeee?

Belgrael
05-24-2008, 02:16 AM
Bumping. Desperate for a solution. Surely there is a vb programmer who can help?:confused: