PDA

View Full Version : problem in plugin


MAORBARI
07-29-2009, 08:34 PM
i try do somthing in plugin Hook Location: global_start:

$title = $db->query_read("SELECT * FROM titlesit");
while($titleaf = $db->fetch_array($title))
{
eval('$titlesit .= "' . fetch_template('title_post') . '";');
}


and i add this $titlesit to forumhome template and it is dont show it..
why?
thx.

Lynne
07-30-2009, 12:14 AM
What is the content of your template?

MAORBARI
07-30-2009, 08:33 AM
<tr>
<td width="100%" valign="top">
<a href="$titleaf[iurl]">$titleaf[ititle]</a>
</td>
</tr>

thx for help.

Lynne
08-01-2009, 02:10 AM
Did you add the template to the globaltemplate array via the cache_templates hook location also?