SimplePortal

Support => English Support => Topic started by: Paley on January 07, 2013, 05:34:39 PM

Title: Forum button opening a new tab
Post 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.
Title: Re: Forum button opening a new tab
Post by: velorooms on January 07, 2013, 05:57:46 PM
whats the site address.. will test here in a few browsers and have a quick look at the code..
Title: Re: Forum button opening a new tab
Post by: Paley on January 07, 2013, 06:25:16 PM
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.
Title: Re: Forum button opening a new tab
Post by: velorooms on January 07, 2013, 06:41:21 PM
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

Code: [Select]
// 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.

Code: [Select]
$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,
Title: Re: Forum button opening a new tab
Post by: AngelinaBelle on March 11, 2013, 03:26:51 PM
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)


SimplePortal 2.3.8 © 2008-2024, SimplePortal