![]() |
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? |
Why don't you just edit the ad location template?
|
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: |
showthread_getinfo
|
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... :( :( :( |
Try instead:
PHP Code:
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|