Editing Source Code of Registration Page

Go down

Solved Editing Source Code of Registration Page

Post by ian2000 on April 14th 2015, 10:57 pm

Greetings. I would like my users to have some restrictions such as only names with alphabetical characters (a-z,A-Z) when registering. I found a nifty piece of javascript that allows this to happen. The problem is, users can easily disable javascript and then they can bypass this system.

Thus, it would be beneficial if I could just go into the source code of the registration page and modify some of the html a little bit. Is this possible? Or does forumotion not allow these pages to be edited?


Thanks,
Ian

ian2000
Forumember

Posts : 42
Reputation : 3
Language : English

https://forum.somiibo.com

Back to top Go down

Solved Re: Editing Source Code of Registration Page

Post by JScript on April 15th 2015, 1:12 am

@ian2000 wrote:(...)The problem is, users can easily disable javascript and then they can bypass this system.
Hello!
To avoid this add the following code under the <head> tag located in Overall_header template:
Code:

    <noscript>
        <style>html{display:none;}</style>
        <meta http-equiv="refresh" content="0; url=http://www.forumotion.com/">
    </noscript>

It should look like this:


If JavaScript is disabled, the person will be redirected to https://www.forumotion.com/ page!

JS
avatar
JScript
Forumember

Male Posts : 741
Reputation : 173
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Solved Re: Editing Source Code of Registration Page

Post by ian2000 on April 15th 2015, 5:17 am

Great answer! I learned a lot from this believe it or not.

Here's my final result: no java installed page

SOLVED!!

Thanks again

ian2000
Forumember

Posts : 42
Reputation : 3
Language : English

https://forum.somiibo.com

Back to top Go down

Solved Re: Editing Source Code of Registration Page

Post by JScript on April 15th 2015, 2:26 pm

@ian2000
Your final result was excellent!
I am very glad you have not been content with the redirect and made his own warning page.

This demonstrates interactivity, more ideas and creativity: That's what we need!

JS
avatar
JScript
Forumember

Male Posts : 741
Reputation : 173
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Solved Re: Editing Source Code of Registration Page

Post by ian2000 on April 15th 2015, 7:04 pm

@JScript wrote:@ian2000
Your final result was excellent!
I am very glad you have not been content with the redirect and made his own warning page.

This demonstrates interactivity, more ideas and creativity: That's what we need!

JS
Yes, thank you @Jscript

I am still learning too since I am relatively new to coding. 

Thanks again for your help!

ian2000
Forumember

Posts : 42
Reputation : 3
Language : English

https://forum.somiibo.com

Back to top Go down

Solved Re: Editing Source Code of Registration Page

Post by APE on April 15th 2015, 7:55 pm

Topic solved and archived



avatar
APE
Administrator
Administrator

Male Posts : 12333
Reputation : 1285
Language : fluent in dork / mumbojumbo & English haha

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

Back to top Go down

Back to top


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