The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

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

View previous topic View next topic Go down

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

Post by Lord Iron on June 11th 2017, 9:38 am

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

Male Posts : 20
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 Justice™ on June 11th 2017, 10:25 am

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
Justice™
Forumember

Posts : 517
Reputation : 119
Language : Romanian and English

http://board.realmsn.com

Back to top Go down

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

Post by Lord Iron on June 11th 2017, 12: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.
avatar
Lord Iron
New Member

Male Posts : 20
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 on June 11th 2017, 2:23 pm



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

avatar
SLGray
Administrator
Administrator

Male Posts : 40509
Reputation : 2733
Language : English
Location : United States

https://fmthemes.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 on June 11th 2017, 3:28 pm


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

Male Posts : 20
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 on June 11th 2017, 3:44 pm

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

Male Posts : 20
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 on June 11th 2017, 3: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.



avatar
APE
Manager
Manager

Male Posts : 10817
Reputation : 1008
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

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 on June 13th 2017, 3: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.

avatar
Lord Iron
New Member

Male Posts : 20
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 on June 13th 2017, 11:33 am

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


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

avatar
SLGray
Administrator
Administrator

Male Posts : 40509
Reputation : 2733
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum