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.

Javascrpt Code Management

View previous topic View next topic Go down

Solved Javascrpt Code Management

Post by Norton on March 30th 2016, 6:31 pm

I cant seem to get the redirect script operational in my forum after posting Quick replies. I've submitted the code in each of the options; "In the Home Page">"Sub forums">"topics. I get redirected to the information page.

Code:

(function() {
for (var meta = document.getElementsByTagName('META'), i = 0, j = meta.length; i < j; i++) {
if (meta[i].httpEquiv && /refresh/i.test(meta[i].httpEquiv)) {
window.location.href = meta[i].content.replace(/^.*;url=/, '');
break;
}
}
}());

After entering a quick reply it directs to the information page.



Last edited by Norton on March 30th 2016, 10:52 pm; edited 1 time in total

Norton
Forumember

Male Posts : 125
Reputation : 8
Language : English
Location : Ontario Canada

http://Norfolk Friends forumotion.net

Back to top Go down

Solved Re: Javascrpt Code Management

Post by Norton on March 30th 2016, 6:41 pm

@Norton wrote:I cant seem to get the redirect script operational in my forum after posting Quick replies. I've submitted the code in each of the options; "In the Home Page">"Sub forums">"topics. I get redirected to the information page.

Code:

(function() {
for (var meta = document.getElementsByTagName('META'), i = 0, j = meta.length; i < j; i++) {
if (meta[i].httpEquiv && /refresh/i.test(meta[i].httpEquiv)) {
window.location.href = meta[i].content.replace(/^.*;url=/, '');
break;
}
}
}());

After entering a quick reply it directs to the information page.


Am I expecting too much. I just posted here on this forum and it directs back to the information page after posting a reply?

Norton
Forumember

Male Posts : 125
Reputation : 8
Language : English
Location : Ontario Canada

http://Norfolk Friends forumotion.net

Back to top Go down

Solved Re: Javascrpt Code Management

Post by APE on March 30th 2016, 7:00 pm


@Norton
Please don't double post.
Your post needs to be separated by at least 24 hours before bumping.
Please use the edit button instead!





APE
Manager
Manager

Male Posts : 8333
Reputation : 718
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: Javascrpt Code Management

Post by SLGray on March 30th 2016, 7:21 pm

Is this the tutorial you used: http://help.forumotion.com/t144929-immediate-redirection?highlight=redirection ?

Is JavaScript Management activated?


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


SLGray
Administrator
Administrator

Male Posts : 35667
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Javascrpt Code Management

Post by Norton on March 30th 2016, 10:52 pm

@SLGray
Yes that was the tutorial I followed and JSM was activated.
I recently installed Fire Fox until MS Edge has a little more security with the final release late this spring. Through the process of (browsers) elimination, I traced my (Immediate redirect) problem down to Fire Fox. FF was blocking page redirects. Changed FF permissions and all is well on this forum and my own.

Thanks again for your timely response.

Topic marked solved by member.

Norton
Forumember

Male Posts : 125
Reputation : 8
Language : English
Location : Ontario Canada

http://Norfolk Friends forumotion.net

Back to top Go down

Solved Re: Javascrpt Code Management

Post by SLGray on March 30th 2016, 10:56 pm

You're welcome.

Topic solved and archived


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


SLGray
Administrator
Administrator

Male Posts : 35667
Reputation : 2375
Language : English
Location : United States

http://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