News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Anyway to limit access to help page for non logged in users?

Started by Sig, June 23, 2010, 09:22:27 PM

Previous topic - Next topic

Sig

I don't like the fact people that can't browse the forum can still browse the help which includes all the custom smilies of the forum.

Sig

Surely there is someway to either A) prevent guests from seeing help when guest access to the board is disabled or B) somehow prevent the smilie help from showing the smilies of the BBS.


JBlaze

./Sources/Help.php
Code (find) Select
function ShowHelp()
{
global $settings, $user_info, $language, $context, $txt, $sourcedir, $options, $scripturl;

loadTemplate('Help');
loadLanguage('Manual');

$manual_areas = array(

Code (replace with) Select
function ShowHelp()
{
global $settings, $user_info, $language, $context, $txt, $sourcedir, $options, $scripturl;

loadTemplate('Help');
loadLanguage('Manual');

if ($context['user']['is_guest'])
fatal_lang_error('no_access', false);

$manual_areas = array(


./Sources/Subs.php
Code (find) Select
'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
),
),

Code (replace with) Select
'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => !$context['user']['is_guest'],
'sub_buttons' => array(
),
),
Jason Clemons
Former Team Member 2009 - 2012


JBlaze

Marked solved. If you have any further questions, please open a new topic.
Jason Clemons
Former Team Member 2009 - 2012

Advertisement: