The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
3 posters

    Editing Source Code of Registration Page

    avatar
    ian2000
    Forumember


    Posts : 42
    Reputation : 3
    Language : English

    Solved Editing Source Code of Registration Page

    Post by ian2000 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
    JScript
    JScript
    Forumember


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

    Solved Re: Editing Source Code of Registration Page

    Post by JScript 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:
    Editing Source Code of Registration Page CfQL9fg

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

    JS
    avatar
    ian2000
    Forumember


    Posts : 42
    Reputation : 3
    Language : English

    Solved Re: Editing Source Code of Registration Page

    Post by ian2000 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
    JScript
    JScript
    Forumember


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

    Solved Re: Editing Source Code of Registration Page

    Post by JScript 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
    ian2000
    Forumember


    Posts : 42
    Reputation : 3
    Language : English

    Solved Re: Editing Source Code of Registration Page

    Post by ian2000 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!
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19325
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Editing Source Code of Registration Page

    Post by Ape April 15th 2015, 7:55 pm

    Topic solved and archived



    Editing Source Code of Registration Page Left1212Editing Source Code of Registration Page Center11Editing Source Code of Registration Page Right112
    Editing Source Code of Registration Page Ape_b110
    Editing Source Code of Registration Page Ape1010

      Current date/time is September 23rd 2024, 4:27 am