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.

Editing Source Code of Registration Page

View previous topic View next topic 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 : 38
Reputation : 3
Language : English

http://onyxlegion.forumotion.net/

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 http://www.forumotion.com/ page!

JS

JScript
Forumember

Male Posts : 741
Reputation : 167
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 : 38
Reputation : 3
Language : English

http://onyxlegion.forumotion.net/

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

JScript
Forumember

Male Posts : 741
Reputation : 167
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 : 38
Reputation : 3
Language : English

http://onyxlegion.forumotion.net/

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





APE
Manager
Manager

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

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

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