vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Help on what hook to use for positioning a plugin (https://vborg.vbsupport.ru/showthread.php?t=175982)

Belgrael 04-12-2008 09:55 PM

Help on what hook to use for positioning a plugin
 
1 Attachment(s)
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.

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:

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


All times are GMT. The time now is 08:13 AM.

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.01027 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete