The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

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

5 posters

Go down

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

Post by Sienna 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. :-)
Sienna
Sienna
Forumember

Female Posts : 93
Reputation : 6
Language : English

http://liveandnet.forumotion.com/

Back to top Go down

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

Post by Take Notes July 2nd 2016, 7:49 am

What's your forum link?
Take Notes
Take Notes
Helper
Helper

Male Posts : 2337
Reputation : 324
Language : English
Location : Forumountain

Back to top Go down

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

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

Sienna
Sienna
Forumember

Female Posts : 93
Reputation : 6
Language : English

http://liveandnet.forumotion.com/

Back to top Go down

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

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

How did he add this image?


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


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

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

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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

Post by Sienna 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.
Sienna
Sienna
Forumember

Female Posts : 93
Reputation : 6
Language : English

http://liveandnet.forumotion.com/

Back to top Go down

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

Post by SLGray 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


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

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

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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

Post by Take Notes 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.
Take Notes
Take Notes
Helper
Helper

Male Posts : 2337
Reputation : 324
Language : English
Location : Forumountain

Back to top Go down

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

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

We have! :-)
Sienna
Sienna
Forumember

Female Posts : 93
Reputation : 6
Language : English

http://liveandnet.forumotion.com/

Back to top Go down

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

Post by SLGray 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.


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

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

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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

Post by Ace 1 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 How to make the Home button not open in a new tab? 1f60a
Ace 1
Ace 1
Helper
Helper

Male Posts : 843
Reputation : 64
Language : English - French?
Location : Druid Hill Park

https://help.forumotion.com

Back to top Go down

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

Post by Sienna 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 How to make the Home button not open in a new tab? 1f60a

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 :-(
Sienna
Sienna
Forumember

Female Posts : 93
Reputation : 6
Language : English

http://liveandnet.forumotion.com/

Back to top Go down

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

Post by Ace 1 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.
Ace 1
Ace 1
Helper
Helper

Male Posts : 843
Reputation : 64
Language : English - French?
Location : Druid Hill Park

https://help.forumotion.com

Back to top Go down

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

Post by SLGray 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?


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

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

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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

Post by Sienna 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.
Sienna
Sienna
Forumember

Female Posts : 93
Reputation : 6
Language : English

http://liveandnet.forumotion.com/

Back to top Go down

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

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

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

Posts : 358
Reputation : 8
Language : English/Arabic
Location : Baghdad - Iraq

http://www.duelacademy.net/forum

Back to top Go down

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

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

@Anzo

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

Female Posts : 93
Reputation : 6
Language : English

http://liveandnet.forumotion.com/

Back to top Go down

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

Post by Anzo 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
Anzo
Anzo
Forumember

Posts : 358
Reputation : 8
Language : English/Arabic
Location : Baghdad - Iraq

http://www.duelacademy.net/forum

Back to top Go down

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

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

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


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

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

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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

Post by Sienna 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
Sienna
Sienna
Forumember

Female Posts : 93
Reputation : 6
Language : English

http://liveandnet.forumotion.com/

Back to top Go down

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

Post by Sienna 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!
Sienna
Sienna
Forumember

Female Posts : 93
Reputation : 6
Language : English

http://liveandnet.forumotion.com/

Back to top Go down

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

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

Locked as Requested


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

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

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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