SimplePortal
Support => English Support => Topic started by: Paley on January 07, 2013, 05:34:39 PM
-
For some reason my forum button is opening in a new window as opposed to simply redirecting to the forum page in the same window. How do I fix this?
Thanks.
-
whats the site address.. will test here in a few browsers and have a quick look at the code..
-
It will not let me post the url on here for some reason. I feel like there is some code I simply need to remove somewhere but haven't the foggiest idea where to look for something like that.
-
Right, couple of starters.
First you can post the name of the website without the www and the .com or .co.uk, google can do the rest.
Do you have portal set in the options as standalone, front page, or integration?
Second, you can have a look in the following file (assuming you have ftp access)..
Sources/subs.php
find where it says
// All the buttons we can possible want and then some, try pulling the final list of buttons from cache first.
and below you should see the array for the buttons on the menu bar, something like this.
$buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left']
),
'forum' => array(
'title' => 'Forum',
'href' => $scripturl . '?action=forum',
'show' => true,
'sub_buttons' => array(
),
),
if it looks something like that , then theres no reason it should open in new window and its a forum settings somewhere.
my portal is set as FRONT PAGE.. I think standalone might cause it to see the forum as an external site and open in new window,
-
Standalone vs Front page should not cause an issue like this.
Please check the following
* consider your "disable portal redirect" setting (see http://simpleportal.net/index.php?action=docs;area=general_settings)
* Also, check the following SMF and Simple Portal settings
* Administration Center » Server Settings » Database and Paths -- forum URL
* Administration Center » Server Settings » Cookies and Sessions -- Use subdomain independent cookies
* action=admin;area=portalconfig;sa=generalsettings -- Standalone URL
(though this is more related to login/logout oddities than to URL redirection)