SimplePortal
Customization => Custom Coding => Topic started by: Adjacent on May 12, 2011, 06:22:01 PM
-
Forum: http://mainmedia.me/index.php
SMF Version: 1.1.xx
Hello, I enjoy simpleportal and have successfully added "Home" and "Forums" buttons. They work properly
I am having trouble with the "About" button... It works as you can see, but when you click it and it takes you to http://mainmedia.me/forum/index.php?page=about it doesn't highlight the "About" button, it highlights "Forum"...
Can someone tell me what to edit/add so that highlights "About" in blue like the rest of the buttons do? I know this may sound dumb, sorry! :nervous-happy:
Thanks,
Jason
-
Bump.
Edited:
Well.. I managed to get it working after doing some research.. by replacing this in my theme's index.template.php
$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';
if (empty($context['disable_sp']) && (isset($_GET['board']) || isset($_GET['topic']) || in_array($context['current_action'], array('unread', 'unreadreplies'))) && in_array($modSettings['sp_portal_mode'], array(1, 3)))
$current_action = 'forum';
with
$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';
if (empty($context['disable_sp']) && (isset($_GET['board']) || isset($_GET['topic']) || in_array($context['current_action'], array('unread', 'unreadreplies'))) && in_array($modSettings['sp_portal_mode'], array(1, 3)))
$current_action = 'forum';
if ($_REQUEST['page'] == 'about')
$current_action = 'about';
However... This leaves loads of errors in my error log... any idea how to fix this error?
Apply Filter: Only show the error messages of this member Adjacent Today at 17:40
Apply Filter: Only show the error messages of this IP address xx.xx.xx.xx.xx Apply Filter: Only show the error messages of this session f7f09298d956b2a2c1940554cc09715e
Apply Filter: Only show the error messages of this URL http://mainmedia.me/forum/index.php?action=admin
Apply Filter: Only show the errors with the same message
8: Undefined index: page
File: /web/users/xxxxx/forum/Themes/default/languages/Shop.english.php (main_above sub template - eval?)
Line: 370
Thanks, Jason :)
Edited 2:
Oh snap. Looks like my portal page ( http://mainmedia.me/index.php ) didn't like that undefined index one bit! :-x
Notice: Undefined index: page in /web/users/xxxxx/forum/Sources/Load.php(2024) : eval()'d code on line 370
-
Solved.