2006-03-15, 02:58 PM
Hi
If i want to add the pid value on the url send with the message of "subrscribe this forum" what i must modify?
i think that the code to modify is this, take from usercp2.php
but how modify?
thz and as usual sorry for the english
If i want to add the pid value on the url send with the message of "subrscribe this forum" what i must modify?
i think that the code to modify is this, take from usercp2.php
$query = $db->query("SELECT tid, fid ,FROM ".TABLE_PREFIX."threads WHERE tid='".intval($mybb->input['tid'])."'");
$thread = $db->fetch_array($query);
if(!$thread['tid'])
{
error($lang->error_invalidthread);
}
$forumpermissions = forum_permissions($thread['fid']);
if($forumpermissions['canview'] == "no" || $forumpermissions['canviewthreads'] == "no")
{
nopermission();
}
add_subscribed_thread($thread['tid']);
if($_SERVER['HTTP_REFERER'])
{
$url = $_SERVER['HTTP_REFERER'];
}
else
{
$url = "showthread.php?tid=".$thread['tid'];
}
redirect($url, $lang->redirect_subscriptionadded);
}
}
but how modify?
thz and as usual sorry for the english