2009-11-29, 01:12 AM
I need to replace the first with the second in a plugin i am working on in the functions_forumlist.php however the only hook i can find is just above the first quoted code. Any idea how to do it?
At the moment I Have.
In the plugin file, but it isn't working as it is above the $forum_url = get_forum_link($forum['fid']);
// Build the link to this forum
$forum_url = get_forum_link($forum['fid']);
if (!$forum['linkto'])
{
$forum_url = get_forum_link($forum['fid']);
}
else
{
$forum_url = "redirect.php?fid=".$forum['fid']."";
}
At the moment I Have.
$plugins->add_hook('build_forumbits_forum', 'redirecthits');
function redirecthits()
{
global $forum;
// Build the link to this forum
if (!$forum['linkto'])
{
$forum_url = get_forum_link($forum['fid']);
}
else
{
$forum_url = "redirect.php?fid=".$forum['fid']."";
}
}
In the plugin file, but it isn't working as it is above the $forum_url = get_forum_link($forum['fid']);