Disallow guests to view threads, must register first
This modification is in the archives.
Yes I know that there is already a a feature to stop guests from viewing threads, but then this also shows all the posts and threads counters to zero, and under Last Post it will say never (which sucks ). But, with my hack, it just asks guests to either login or register when viewing a thread and still shows all the right numbers
Instructions Open archive/index.php and find PHP Code:
$title .= ' - ' . $foruminfo['title'];
PHP Code:
if ($bbuserinfo['userid'] == 0 AND !preg_match("#(google|slurp@inktomi|yahoo! slurp)#si", $_SERVER['HTTP_USER_AGENT']))
PHP Code:
globalize($_REQUEST, array('perpage' => INT, 'pagenumber', 'highlight' => STR, 'goto'));
PHP Code:
if ($bbuserinfo['userid'] == 0 AND !preg_match("#(google|slurp@inktomi|yahoo! slurp)#si", $_SERVER['HTTP_USER_AGENT']))
PHP Code:
<td class="alt1Active" id="t$thread[threadid]" title="$thread[preview]">
PHP Code:
<td class="alt1Active" id="t$thread[threadid]" <if condition="$show['member']">title="$thread[preview]"</if>>
Download No files for download. |