for Tutorials v 4.61 IPB mod -Jaddo.net
By default the "Add Tutorial" Link is displayed to guests as well as members in the Tutorials v 4.61 IPB mod by Jaddo.net. This is the case even if the "Allow guests to submit Knowledge Base Articles" Admin CP option is set to disallow guest posting of articles. If this option is chosen guests cannot actually post (they are forwarded to a login screen when they hit "submit") but they may spend a lot of time composing a tutorial only to have it lost on submission.
To show the "Add Tutorial" Links only to registered members and hide them from guests you can use my little hack...
FIND (in /sources/Tutorial.php):
$add= "<a href='{$ibforums->base_url}act=Tutorials&CODE=05&CID=".$ibforums->input['CID']."'><{TUT}></a>";
REPLACE WITH: // Permissions Hack
if ($ibforums->member['id']) {
$add= "<a href='{$ibforums->base_url}act=Tutorials&CODE=05&CID=".$ibforums->input['CID']."'><{TUT}></a>";
}
else {
$add= " ";
}
// end Permissions Hack
That's it. -=DKC=-














