collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Who's Online

  • Dot Guests: 65
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • BCNPalomino: lol, that search doe :O
    July 18, 2014, 09:26:27 AM
  • RohailPro23: hi all
    July 18, 2014, 08:09:00 AM
  • samborabora: sorry, thought this was search, lol
    June 29, 2014, 04:45:12 AM
  • samborabora: sp_embed_image
    June 29, 2014, 04:45:01 AM
  • stanyy: Was it merely correcting the mistake made in 2.0.7 or is 2.0.8 actually faster than 2.0.6?
    June 20, 2014, 07:51:21 AM
  • AngelinaBelle: Smf 2.0.8 has been released. -- uses less memory than 2.0.7 [link]
    June 19, 2014, 03:46:47 PM
  • iSamp: [link]
    June 14, 2014, 06:42:38 AM
  • iSamp: SiNaN Plz Help
    June 14, 2014, 06:42:12 AM
  • iSamp: I need Help Plz Help Me I posted a Thing In English Support Plz read it
    June 14, 2014, 06:21:15 AM
  • Cyberkid: hey!
    June 12, 2014, 02:29:42 AM
  • AngelinaBelle: Hello!
    June 03, 2014, 01:06:04 PM
  • kal: also, hello. :)
    June 03, 2014, 08:36:43 AM
  • kal: I haven't been here in a couple months I don't think.
    June 03, 2014, 08:36:35 AM
  • AngelinaBelle: Welcome back, David
    June 02, 2014, 06:18:46 AM
  • David: I've missed this place!
    June 02, 2014, 01:04:01 AM

* Team Blog

* Recent Posts

how to remove simpleportal 100% by crshep
[Today at 07:38:20 AM]


theme buged after installing simpleportal by danget
[Today at 03:05:45 AM]


Re: Members of a membergroup in footer block by Smasher
[Yesterday at 04:19:26 PM]


Happy birthday Block link? by Itchigo
[Yesterday at 09:02:16 AM]


Re: Download System Block by Itchigo
[July 21, 2014, 09:34:09 PM]

Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Author Topic: Forum button opening a new tab  (Read 879 times)

0 Members and 1 Guest are viewing this topic.

Offline Paley

  • Newbie
  • Posts: 2
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Forum button opening a new tab
« on: January 07, 2013, 04: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.

Offline velorooms

  • Jr. Member
  • **
  • Posts: 74
    • Velorooms
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Forum button opening a new tab
« Reply #1 on: January 07, 2013, 04:57:46 PM »
whats the site address.. will test here in a few browsers and have a quick look at the code..
Admin and Owner of Velorooms.com - Using SMF 2.0.3 and Simpleportal 2.3.5

Offline Paley

  • Newbie
  • Posts: 2
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Forum button opening a new tab
« Reply #2 on: January 07, 2013, 05: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.

Offline velorooms

  • Jr. Member
  • **
  • Posts: 74
    • Velorooms
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Forum button opening a new tab
« Reply #3 on: January 07, 2013, 05: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,
Admin and Owner of Velorooms.com - Using SMF 2.0.3 and Simpleportal 2.3.5

Offline AngelinaBelle

  • Support
  • *
  • Posts: 4881
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Forum button opening a new tab
« Reply #4 on: March 11, 2013, 01: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)


Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?