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
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 June 11th 2017, 3: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 June 11th 2017, 4: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 June 11th 2017, 6: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 : 51554
    Reputation : 3523
    Language : English
    Location : United States

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

    Post by SLGray June 11th 2017, 8: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 June 11th 2017, 9: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 June 11th 2017, 9:44 pm

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


    Male Posts : 19432
    Reputation : 2010
    Language : fluent in dork / mumbojumbo & English haha

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

    Post by Ape June 11th 2017, 9: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 June 13th 2017, 9: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 : 51554
    Reputation : 3523
    Language : English
    Location : United States

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

    Post by SLGray June 13th 2017, 5: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.

      Current date/time is November 11th 2024, 4:13 pm