vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Plugin for ad_showthread_firstpost, which hook Localtion? (https://vborg.vbsupport.ru/showthread.php?t=190896)

fabioski 09-14-2008 11:47 AM

Plugin for ad_showthread_firstpost, which hook Localtion?
 
I am writing a plug-in for ad_showthread_firstpost template.
It doesn't work.

In the Hook Location I choice: showthread_complete...

Which hook location I have to choiche?

Dismounted 09-14-2008 11:49 AM

Why don't you just edit the ad location template?

fabioski 09-14-2008 12:27 PM

Because I have to choice many promos from mysql table:
SELECT * FROM adv WHERE adv_type = 'forum_post' AND macrosez = '$id_forum'

Can't I do a plugin for thia template?:eek::confused::mad::mad:

Opserty 09-14-2008 02:18 PM

showthread_getinfo

fabioski 09-14-2008 02:33 PM

I just tried with showthread_start and showthread_getinfo but they doesn't work because in my plug-in I need to know in which forum_id the thread is;
at the beginning of plugin I use:
$id_forum = $forum['forumid'];

this variable is read only with showthread_complete... :( :( :(

Opserty 09-14-2008 02:35 PM

Try instead:
PHP Code:

$id_forum $thread['forumid']; 


fabioski 09-18-2008 07:20 PM

Ah for a similar plugin which has to working in HEADER template?
Which hook location have I to choose?
I try with showthread_complete and showthread_getinfo but it doesn't work :(

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

The plug-in generate correctly the variable:
$testo_adv_header .= "$row_adv_header[adv_text]";
and I stamp it on site correctly:
echo "$testo_adv_header";

But in the template the variable does not appear!
<td>$testo_adv_header</td>
</tr>
</table>

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

And for footer template?


All times are GMT. The time now is 09:20 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.01177 seconds
  • Memory Usage 1,718KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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