Obtaining automatic return to topic after voting or +ing / -ing a post Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
3 posters

    Obtaining automatic return to topic after voting or +ing / -ing a post

    Lord Iron
    Lord Iron
    New Member


    Male Posts : 24
    Reputation : 2
    Language : English
    Location : United Kingdom

    Solved Obtaining automatic return to topic after voting or +ing / -ing a post

    Post by Lord Iron Sun Jun 11, 2017 2:38 pm

    Version: phpBB3

    After voting in a poll or giving a +/- to a posted message, the user is taken to a static display which reads:

    "Your vote has been cast.
    Click here to return to the topic
    Click here to return to the forum"

    I would like there to be an automatic return to topic in such situations. Is this possible?



    avatar
    Guest
    Guest


    Solved Re: Obtaining automatic return to topic after voting or +ing / -ing a post

    Post by Guest Sun Jun 11, 2017 3:25 pm

    I'm not sure I understood what you want. After the user is redirected to the page displaying "Your vote has...", you want the user to be redirected back to the topic without pressing anything?
    Lord Iron
    Lord Iron
    New Member


    Male Posts : 24
    Reputation : 2
    Language : English
    Location : United Kingdom

    Solved Re: Obtaining automatic return to topic after voting or +ing / -ing a post

    Post by Lord Iron Sun Jun 11, 2017 5:56 pm

    Wolfuryo wrote:I'm not sure I understood what you want. After the user is redirected to the page displaying "Your vote has...", you want the user to be redirected back to the topic without pressing anything?
    Yes, exactly.
    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: Obtaining automatic return to topic after voting or +ing / -ing a post

    Post by SLGray Sun Jun 11, 2017 7:23 pm




    Obtaining automatic return to topic after voting or +ing / -ing a post Slgray10

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


    Male Posts : 24
    Reputation : 2
    Language : English
    Location : United Kingdom

    Solved Re: Obtaining automatic return to topic after voting or +ing / -ing a post

    Post by Lord Iron Sun Jun 11, 2017 8:28 pm


    There is already automatic redirection for the things mentioned there, but I'll try it. Thanks.
    Lord Iron
    Lord Iron
    New Member


    Male Posts : 24
    Reputation : 2
    Language : English
    Location : United Kingdom

    Solved Re: Obtaining automatic return to topic after voting or +ing / -ing a post

    Post by Lord Iron Sun Jun 11, 2017 8:44 pm

    Automatic redirection now happens with polls, but not with +ing or -ing a posted message.
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19324
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Obtaining automatic return to topic after voting or +ing / -ing a post

    Post by Ape Sun Jun 11, 2017 8:45 pm

    Hello

    you can use this code to remove it

    ACP >> Modules >> HTML & JAVASCRIPT >> Javascript codes management >> Create A new JavaScript

    Settings:
    Name - Remove Vote made code
    set as - In the topics "Only"

    copy the code and save
    Code:
    /\/post/.test(window.location.pathname) === true && $("meta[http-equiv='refresh'][content]:first").each(function(){window.location.href=$(this).attr("content").replace(/^.*;url=/,"")});

    EDIT: This will only remove the poll one thou. if you use this code made by @Ange Tuteur
    then you will not have a problem with the likes system.



    Obtaining automatic return to topic after voting or +ing / -ing a post Left1212Obtaining automatic return to topic after voting or +ing / -ing a post Center11Obtaining automatic return to topic after voting or +ing / -ing a post Right112
    Obtaining automatic return to topic after voting or +ing / -ing a post Ape_b110
    Obtaining automatic return to topic after voting or +ing / -ing a post Ape1010
    Lord Iron
    Lord Iron
    New Member


    Male Posts : 24
    Reputation : 2
    Language : English
    Location : United Kingdom

    Solved Re: Obtaining automatic return to topic after voting or +ing / -ing a post

    Post by Lord Iron Tue Jun 13, 2017 8:11 am

    APE wrote:Hello

    you can use this code to remove it

    ACP >> Modules >> HTML & JAVASCRIPT >> Javascript codes management >> Create A new JavaScript

    Settings:
    Name - Remove Vote made code
    set as - In the topics "Only"

    copy the code and save
    Code:
    /\/post/.test(window.location.pathname) === true && $("meta[http-equiv='refresh'][content]:first").each(function(){window.location.href=$(this).attr("content").replace(/^.*;url=/,"")});

    EDIT: This will only remove the poll one thou. if you use this code made by @Ange Tuteur
    then you will not have a problem with the likes system.

    Thanks APE. I have used Ange Tuteur's program which works, so the problem is effectively . . . SOLVED.

    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: Obtaining automatic return to topic after voting or +ing / -ing a post

    Post by SLGray Tue Jun 13, 2017 4:33 pm

    Problem solved & topic archived.
    Please read our forum rules:  ESF General Rules



    Obtaining automatic return to topic after voting or +ing / -ing a post Slgray10

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