The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
Why don't you just edit the ad location template?
|
#3
|
|||
|
|||
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? |
#4
|
|||
|
|||
showthread_getinfo
|
#5
|
|||
|
|||
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... |
#6
|
|||
|
|||
Try instead:
PHP Code:
|
#7
|
|||
|
|||
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? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|