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.

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

3 posters

Go down

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

Post by Lord Iron Sun 11 Jun - 16:38

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?



Lord Iron
Lord Iron
New Member

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

http://castle-europa.forumotion.com/

Back to top Go down

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

Post by Guest Sun 11 Jun - 17:25

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?
avatar
Guest
Guest


Back to top Go down

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

Post by Lord Iron Sun 11 Jun - 19:56

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.
Lord Iron
Lord Iron
New Member

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

http://castle-europa.forumotion.com/

Back to top Go down

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

Post by SLGray Sun 11 Jun - 21:23



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.
SLGray
SLGray
Administrator
Administrator

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

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

Back to top Go down

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

Post by Lord Iron Sun 11 Jun - 22:28


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

http://castle-europa.forumotion.com/

Back to top Go down

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

Post by Lord Iron Sun 11 Jun - 22:44

Automatic redirection now happens with polls, but not with +ing or -ing a posted message.
Lord Iron
Lord Iron
New Member

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

http://castle-europa.forumotion.com/

Back to top Go down

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

Post by Ape Sun 11 Jun - 22:45

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
Ape
Ape
Administrator
Administrator

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

http://chatworld.forumotion.co.uk/

Back to top Go down

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

Post by Lord Iron Tue 13 Jun - 10:11

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.

Lord Iron
Lord Iron
New Member

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

http://castle-europa.forumotion.com/

Back to top Go down

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

Post by SLGray Tue 13 Jun - 18:33

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51554
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