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.

Register Problem

3 posters

Go down

Solved Register Problem

Post by Kaizer Lee November 8th 2013, 7:03 am

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 @.@.
Kaizer Lee
Kaizer Lee
Active Poster

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

View user profile http://www.medievalchaos.net/forum

Back to top Go down

Solved Re: Register Problem

Post by romanzo November 8th 2013, 7:34 am

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)
avatar
romanzo
Forumember

Posts : 75
Reputation : 3
Language : English

View user profile

Back to top Go down

Solved Re: Register Problem

Post by Ange Tuteur November 8th 2013, 7:42 am

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?
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13244
Reputation : 2990
Language : English & 日本語
Location : Pennsylvania

View user profile https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Register Problem

Post by Kaizer Lee November 8th 2013, 8:20 am

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
Kaizer Lee
Kaizer Lee
Active Poster

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

View user profile http://www.medievalchaos.net/forum

Back to top Go down

Solved Re: Register Problem

Post by Ange Tuteur November 8th 2013, 8:25 am

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.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13244
Reputation : 2990
Language : English & 日本語
Location : Pennsylvania

View user profile https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Register Problem

Post by Kaizer Lee November 8th 2013, 8:30 am

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
Kaizer Lee
Kaizer Lee
Active Poster

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

View user profile http://www.medievalchaos.net/forum

Back to top Go down

Solved Re: Register Problem

Post by Ange Tuteur November 8th 2013, 8:32 am

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 : 13244
Reputation : 2990
Language : English & 日本語
Location : Pennsylvania

View user profile https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Register Problem

Post by Ange Tuteur November 9th 2013, 8:54 pm

Topic unarchived as requested by the user
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13244
Reputation : 2990
Language : English & 日本語
Location : Pennsylvania

View user profile https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Register Problem

Post by Kaizer Lee November 10th 2013, 5:20 am

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

View user profile http://www.medievalchaos.net/forum

Back to top Go down

Solved Re: Register Problem

Post by Kaizer Lee November 12th 2013, 4:23 pm

Just found out this isn't installed anymore. You guys can archive this back again Smile
Kaizer Lee
Kaizer Lee
Active Poster

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

View user profile http://www.medievalchaos.net/forum

Back to top Go down

Solved Re: Register Problem

Post by Ange Tuteur November 12th 2013, 4:29 pm

Thanks for letting us know.

Archived
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13244
Reputation : 2990
Language : English & 日本語
Location : Pennsylvania

View user profile https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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