Javascrpt Code Management
3 posters
Page 1 of 1
Javascrpt Code Management
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.
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 Wed 30 Mar - 20:52; edited 1 time in total
Re: Javascrpt Code Management
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?
Re: Javascrpt Code Management
| @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! |
Re: Javascrpt Code Management
Is this the tutorial you used: https://help.forumotion.com/t144929-immediate-redirection?highlight=redirection ?
Is JavaScript Management activated?
Is JavaScript Management activated?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Javascrpt Code Management
@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.
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.
Re: Javascrpt Code Management
You're welcome.
Topic solved and archived
Topic solved and archived
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» New Update: JavaScript Code Management
» ModernBB - Javascript code management and templates managment
» When i paste a long code via [code][/code] the page expands
» Management
» Hide Code? or Post to See Content Code?
» ModernBB - Javascript code management and templates managment
» When i paste a long code via [code][/code] the page expands
» Management
» Hide Code? or Post to See Content Code?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum