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.
The forum of the forums
5 posters

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

    Sienna
    Sienna
    Forumember


    Female Posts : 93
    Reputation : 6
    Language : English

    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 Sat Jul 02, 2016 6: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. :-)
    Take Notes
    Take Notes
    Helper
    Helper


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

    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 Sat Jul 02, 2016 6:49 am

    What's your forum link?
    Sienna
    Sienna
    Forumember


    Female Posts : 93
    Reputation : 6
    Language : English

    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 Sat Jul 02, 2016 7:27 am

    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    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 Sat Jul 02, 2016 7: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.
    Sienna
    Sienna
    Forumember


    Female Posts : 93
    Reputation : 6
    Language : English

    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 Sat Jul 02, 2016 7: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.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    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 Sat Jul 02, 2016 8: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.
    Take Notes
    Take Notes
    Helper
    Helper


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

    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 Sat Jul 02, 2016 9:25 am

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


    Female Posts : 93
    Reputation : 6
    Language : English

    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 Sat Jul 02, 2016 10:37 am

    We have! :-)
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    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 Sat Jul 02, 2016 8: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.
    Ace 1
    Ace 1
    Helper
    Helper


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

    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 Sun Jul 03, 2016 12: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
    Sienna
    Sienna
    Forumember


    Female Posts : 93
    Reputation : 6
    Language : English

    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 Sun Jul 03, 2016 6: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 :-(
    Ace 1
    Ace 1
    Helper
    Helper


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

    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 Sun Jul 03, 2016 8: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.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    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 Sun Jul 03, 2016 8: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.
    Sienna
    Sienna
    Forumember


    Female Posts : 93
    Reputation : 6
    Language : English

    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 Tue Jul 05, 2016 10: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.
    Anzo
    Anzo
    Forumember


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

    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 Tue Jul 05, 2016 12:43 pm

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


    Female Posts : 93
    Reputation : 6
    Language : English

    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 Tue Jul 05, 2016 3:48 pm

    @Anzo

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


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

    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 Wed Jul 06, 2016 7: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
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    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 Wed Jul 06, 2016 8: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.
    Sienna
    Sienna
    Forumember


    Female Posts : 93
    Reputation : 6
    Language : English

    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 Fri Jul 08, 2016 1: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

    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 Mon Jul 11, 2016 2: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!
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    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 Mon Jul 11, 2016 2: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.

      Current date/time is Sun Sep 22, 2024 9:31 pm