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

    Register Problem

    Kaizer Lee
    Kaizer Lee
    Active Poster


    Female Posts : 1064
    Reputation : 54
    Language : English, Tagalog, Spanish and Chinese
    Location : Philippines

    Solved Register Problem

    Post by Kaizer Lee Fri 8 Nov - 7:03

    So I tried to do a bit of CSS coding...

    Code:
    #popup {
        position: fixed;
        bottom: 0px;
        line-height: 16px;
        right: 5px;
        z-index: 999;
        opacity: 0.8;
        width: 260px;
        border-radius: 3px;
        }

    #popup:hover {
        opacity: 1;
        }
    ^ CSS

    Code:
    <center><a href="/register" id="popup"><img src="http://i.imgur.com/Xl3vuD0.png"></img></a></center>
    ^ Widget.

    At any rate, the way it looks is what I aimed for but not the function. For some odd reason, when a person tries to register, it always ends up in the home page, same goes for navigation bar registration button.

    Did I use the proper selectors or anything?

    I asked what's wrong and here's what they said:

    - One: Sometimes redirects to home page
    - Two: Sometimes redirects to the login page
    - Three: Sometimes nothing at all

    It only works (For me) not sure yet for others that when I click on it in a new tab.

    Can someone check on this because I'm really confuzled @.@.
    avatar
    romanzo
    Forumember


    Posts : 75
    Reputation : 3
    Language : English

    Solved Re: Register Problem

    Post by romanzo Fri 8 Nov - 7:34

    I tried your widget and it's works fine for me. It redirects me to the register page. Try changing the link to whole (www.forum.forumtl.com/register)
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Register Problem

    Post by Ange Tuteur Fri 8 Nov - 7:42

    Hello Kaizer Lee,

    When I am on the /forum and click the register bouton it redirects me back to the forum. However, when I am on other pages all is fine.

    I went and search your scripts for any that contained the substring /forum and came up with this:
    Code:
    $(function(){$('a').filter(function(){var internal=!!(this.href.charAt(0)==='/'||this.href.indexOf(location.host)!==-1),url=this.href.replace(/(^http:\/\/)|(\?.*$)/g,'').replace(location.host,'').substr(1),tester=/^(|#\w+|portal|calendar|post|privmsg|memberlist|faq|forum|search|groups|profile|login|modcp|statistics|contact|abuse|admin(\/index.forum)?|viewonline|rss|ailto:|([tfhc]\d+(?:[pn]\d*)?-.*?)|(u\d+(\w+)?)|(s[tp]a\/.*?))$/g;return internal&&!tester.test(url)}).click(function(e){e.preventDefault();window.location='http://medievalchaos.topicboard.net/forum'})});
    I think that might be redirecting your users who click register while on the /forum?
    Kaizer Lee
    Kaizer Lee
    Active Poster


    Female Posts : 1064
    Reputation : 54
    Language : English, Tagalog, Spanish and Chinese
    Location : Philippines

    Solved Re: Register Problem

    Post by Kaizer Lee Fri 8 Nov - 8:20

    Yeah, that's the one I use for the custom 404 Page I made yesterday.

    Is that possible to fix because I don't want to get rid of the 404 page :s
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Register Problem

    Post by Ange Tuteur Fri 8 Nov - 8:25

    Have you tried temporarily disabling it to see if that's what is causing the issue? When you try, be on the index (/forum) and click any link which contains the location of the registration page to see if it works correctly.

    If it still doesn't work this issue may be occurring from somewhere else.
    Kaizer Lee
    Kaizer Lee
    Active Poster


    Female Posts : 1064
    Reputation : 54
    Language : English, Tagalog, Spanish and Chinese
    Location : Philippines

    Solved Re: Register Problem

    Post by Kaizer Lee Fri 8 Nov - 8:30

    Hello

    Thanks once again for the service, but I managed to solve it ^^

    Code:
        $(function(){$('a').filter(function(){var internal=!!(this.href.charAt(0)==='/'||this.href.indexOf(location.host)!==-1),url=this.href.replace(/(^http:\/\/)|(\?.*$)/g,'').replace(location.host,'').substr(1),tester=/^(|#\w+|portal|calendar|post|privmsg|memberlist|faq|forum|search|groups|profile|login|modcp|statistics|contact|abuse|admin(\/index.forum)?|viewonline|rss|ailto:|([tfhc]\d+(?:[pn]\d*)?-.*?)|(u\d+(\w+)?)|(s[tp]a\/.*?))$/g;return internal&&!tester.test(url)}).click(function(e){e.preventDefault();window.location='http://medievalchaos.topicboard.net/forum'})});
    In the part with many |, just add in |register| into any area you want then save Smile

    Best Regards,
    Kaizer Lee
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Register Problem

    Post by Ange Tuteur Fri 8 Nov - 8:32

    Ah, I just noticed that too! Razz

    Can we consider this solved? Nevermind I misread

    Topic Solved and Archived
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Register Problem

    Post by Ange Tuteur Sat 9 Nov - 20:54

    Topic unarchived as requested by the user
    Kaizer Lee
    Kaizer Lee
    Active Poster


    Female Posts : 1064
    Reputation : 54
    Language : English, Tagalog, Spanish and Chinese
    Location : Philippines

    Solved Re: Register Problem

    Post by Kaizer Lee Sun 10 Nov - 5:20

    Yo,

    I also consulted this problem with Blood Bath from AW. He said to just remove the | from the equation so it'd look a bit different.

    Code:
    /^(|#\w
    To this
    Code:
    /^(#\w
    I can see why he did it since it can act as a divider.

    Anyway, I have no experience in Regex lol. If anyone who's good at it can help, thanks a lot Very Happy
    Kaizer Lee
    Kaizer Lee
    Active Poster


    Female Posts : 1064
    Reputation : 54
    Language : English, Tagalog, Spanish and Chinese
    Location : Philippines

    Solved Re: Register Problem

    Post by Kaizer Lee Tue 12 Nov - 16:23

    Just found out this isn't installed anymore. You guys can archive this back again Smile
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Register Problem

    Post by Ange Tuteur Tue 12 Nov - 16:29

    Thanks for letting us know.

    Archived

      Current date/time is Mon 23 Sep - 16:29