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



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

Male Posts : 51463
Reputation : 3519
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 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

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

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

Male Posts : 19084
Reputation : 1988
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 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.

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

Male Posts : 51463
Reputation : 3519
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