The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How to make the Home button not open in a new tab?

View previous topic View next topic Go down

How to make the Home button not open in a new tab?

Post by Sienna on July 2nd 2016, 7:10 am

Forum Version: phpBB3

Hello! The owner of our site bought us copyrights and we added a Home image to the toolbar. I was wondering how instead of it sends the user to a new tab, it just reloads the current tab to the website's home.

Just to clarify, I'm talking about the link option for the toolbar, we made it to where there's a home button on it. :-)
avatar
Sienna
Forumember

Female Posts : 68
Reputation : 4
Language : English

http://liveandnet.forumotion.com/

Back to top Go down

Re: How to make the Home button not open in a new tab?

Post by Vanityy on July 2nd 2016, 7:49 am

What's your forum link?
avatar
Vanityy
Helper
Helper

Male Posts : 2335
Reputation : 323
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

Re: How to make the Home button not open in a new tab?

Post by Sienna on July 2nd 2016, 8:27 am

avatar
Sienna
Forumember

Female Posts : 68
Reputation : 4
Language : English

http://liveandnet.forumotion.com/

Back to top Go down

Re: How to make the Home button not open in a new tab?

Post by SLGray on July 2nd 2016, 8:43 am

How did he add this image?


Also why do you have 2 images that do the same thing?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 39550
Reputation : 2651
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Re: How to make the Home button not open in a new tab?

Post by Sienna on July 2nd 2016, 8:59 am

Oh, it went to the forumotion website before, but it goes to our home now. I'll fix that. I used the Home button, using CSS and a background image to make it into a house.
avatar
Sienna
Forumember

Female Posts : 68
Reputation : 4
Language : English

http://liveandnet.forumotion.com/

Back to top Go down

Re: How to make the Home button not open in a new tab?

Post by SLGray on July 2nd 2016, 9:44 am

Wait a minute! Have you used credits to modify that link? If you have not, you can not use codes to change it. When you used credits to remove copyrights, the options to modify the toolbar copyrights become available.

AP > Modules > Toolbar


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 39550
Reputation : 2651
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Re: How to make the Home button not open in a new tab?

Post by Vanityy on July 2nd 2016, 10:25 am

THey have used credits, fairly sure. Considering the toolbar link is missing and Forumotion copyrights at bottom are gone.
avatar
Vanityy
Helper
Helper

Male Posts : 2335
Reputation : 323
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

Re: How to make the Home button not open in a new tab?

Post by Sienna on July 2nd 2016, 11:37 am

We have! :-)
avatar
Sienna
Forumember

Female Posts : 68
Reputation : 4
Language : English

http://liveandnet.forumotion.com/

Back to top Go down

Re: How to make the Home button not open in a new tab?

Post by SLGray on July 2nd 2016, 9:08 pm

Then all the founder has to do is add the image's URL in the correct box here: AP > Modules > Toolbar.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 39550
Reputation : 2651
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Re: How to make the Home button not open in a new tab?

Post by Ace 1 on July 3rd 2016, 1:51 am

Hey @Kelso!

Administration Panel >> Modules >> HTML & Javascript >> Javascript codes management >> Create new javascript

Title: Your choice
Placement: In all the pages

Code:
Code:
$(function() {
   $('#fa_service').attr("target", "");
});

This should preventing opening a new tab. And about that other FA Icon...

Code:
$('#fa_icon').attr("href", "http://help.forumotion.com");

Just add that code within the function and it should do the trick.

Have a nice day
avatar
Ace 1
Helper
Helper

Male Posts : 808
Reputation : 55
Language : English - French?
Location : Druid Hill Park

http://help.forumotion.com

Back to top Go down

Re: How to make the Home button not open in a new tab?

Post by Sienna on July 3rd 2016, 7:23 pm

@Ace 1 wrote:Hey @Kelso!

Administration Panel >> Modules >> HTML & Javascript >> Javascript codes management >> Create new javascript

Title: Your choice
Placement: In all the pages

Code:
Code:
$(function() {
   $('#fa_service').attr("target", "");
});

This should preventing opening a new tab. And about that other FA Icon...

Code:
$('#fa_icon').attr("href", "http://help.forumotion.com");

Just add that code within the function and it should do the trick.

Have a nice day

Hey! Thank you for responding. :-D Unfortunately, the code did not work. I implemented it, causing our chatbox to disappear and the Homepage still coming up in another tab.

Sad day :-(
avatar
Sienna
Forumember

Female Posts : 68
Reputation : 4
Language : English

http://liveandnet.forumotion.com/

Back to top Go down

Re: How to make the Home button not open in a new tab?

Post by Ace 1 on July 3rd 2016, 9:00 pm

Hm. Try replacing the following codes
Code:
('#fa_service')
,
Code:
('#fa_icon')
with these
Code:
('#fa_toolbar #fa_service')
,
Code:
('#fa_toolbar #fa_icon')
respectively.
avatar
Ace 1
Helper
Helper

Male Posts : 808
Reputation : 55
Language : English - French?
Location : Druid Hill Park

http://help.forumotion.com

Back to top Go down

Re: How to make the Home button not open in a new tab?

Post by SLGray on July 3rd 2016, 9:16 pm

All the founder has to do is enter the image's URL in the correct box under Modules > Toolbar.
Modify the copyrights:
Text of the link:
Site URL: Link to page to load.
Logo of the Toolbar: The image's URl will go here.
This options are only available when you used credits to remove copyrights which you said that the founder did.

What exactly is the founder trying to do?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 39550
Reputation : 2651
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Re: How to make the Home button not open in a new tab?

Post by Sienna on July 5th 2016, 11:12 am

@Ace_1 It didn't work. ;_;

@SLGray We're wanting to make it to where when we push the icon on the toolbar, instead of it opening a brand new tab, it will just reload the tab it's already on.

If I could find the HTML for the toolbar and remove the target="_blank" from it, that'll do the job.
avatar
Sienna
Forumember

Female Posts : 68
Reputation : 4
Language : English

http://liveandnet.forumotion.com/

Back to top Go down

Re: How to make the Home button not open in a new tab?

Post by Anzo on July 5th 2016, 1:43 pm

Remove the (target="_blank") from the HTML.
avatar
Anzo
Forumember

Posts : 332
Reputation : 7
Language : English/Arabic
Location : Baghdad - Iraq

http://www.duelacademy.net/forum

Back to top Go down

Re: How to make the Home button not open in a new tab?

Post by Sienna on July 5th 2016, 4:48 pm

@Anzo

No idea where to find it. =(
avatar
Sienna
Forumember

Female Posts : 68
Reputation : 4
Language : English

http://liveandnet.forumotion.com/

Back to top Go down

Re: How to make the Home button not open in a new tab?

Post by Anzo on July 6th 2016, 8:05 am

Since you said you bought the option with credits it should be in Templates > General > overall_header

If not then you can just keep looking through the templates until you find one that has "fa_service" in it. Though, I believe only forumotion is meant to be able to do that. Not quite sure.

As SLGray said, you should be able to avoid the hassle and do it from here: http://prntscr.com/bpdnzg
avatar
Anzo
Forumember

Posts : 332
Reputation : 7
Language : English/Arabic
Location : Baghdad - Iraq

http://www.duelacademy.net/forum

Back to top Go down

Re: How to make the Home button not open in a new tab?

Post by SLGray on July 6th 2016, 9:05 am

Everyone the topic starter is wanting to stop it from opening a new window only.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 39550
Reputation : 2651
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Re: How to make the Home button not open in a new tab?

Post by Sienna on July 8th 2016, 2:15 am

@SLGray wrote:Everyone the topic starter is wanting to stop it from opening a new window only.

This and bump. I love you
avatar
Sienna
Forumember

Female Posts : 68
Reputation : 4
Language : English

http://liveandnet.forumotion.com/

Back to top Go down

Re: How to make the Home button not open in a new tab?

Post by Sienna on July 11th 2016, 3:21 am

I'm not worried for this anymore, thank you to those who tried to help!

I'll find another way. :-D

Please lock!
avatar
Sienna
Forumember

Female Posts : 68
Reputation : 4
Language : English

http://liveandnet.forumotion.com/

Back to top Go down

Re: How to make the Home button not open in a new tab?

Post by SLGray on July 11th 2016, 3:28 am

Locked as Requested


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 39550
Reputation : 2651
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum