View Full Version : Plugin for ad_showthread_firstpost, which hook Localtion?
fabioski
09-14-2008, 11:47 AM
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:
$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 1221770174 at 1221770174 ---------------
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 1221816017 at 1221816017 ---------------
And for footer template?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.