Ok, I got the links script installed and decided to do a quick test. I registered a user, validated the registration and was able to then log into my site. Problem I have is that I get logged out whenever I click one of the tabs on the navigation bar (luna template). Why is the login not being retained? I am sure there is something simple in the setup I missed but I have no idea what that may be. Thanks.
Apr 7, 2008, 12:03 PM
Veteran / Moderator (18436 posts)
Apr 7, 2008, 12:03 PM
Post #2 of 5
Views: 2761
Hi,
Mmm.. are you using static?
Also, what cookie domain do you have setup in Setup > User Options > user_cookie_domain
You should have it set to .domain.com
i.e on our site, we have it as:
.ultranerds.com
This lets it work on test.ultranerds.com (example), www.ultranerds.com and ultranerds.com - instead of just the URL they were on when it was set.
Hope that helps.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Mmm.. are you using static?
Also, what cookie domain do you have setup in Setup > User Options > user_cookie_domain
You should have it set to .domain.com
i.e on our site, we have it as:
.ultranerds.com
This lets it work on test.ultranerds.com (example), www.ultranerds.com and ultranerds.com - instead of just the URL they were on when it was set.
Hope that helps.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Apr 7, 2008, 12:10 PM
Novice (30 posts)
Apr 7, 2008, 12:10 PM
Post #3 of 5
Views: 2734
I did originally set the build options to use Dynamic but turned that off and rebuilt the site to see if that was the problem. However, I still have the issue. My domain is www.kidsrate.com and I have the user_cookie_domain to ".kidsrate.com". Not sure what else it could be. Thanks
Apr 7, 2008, 12:16 PM
Veteran / Moderator (18436 posts)
Apr 7, 2008, 12:16 PM
Post #4 of 5
Views: 2733
Hi,
If you send over admin panel access (andy@ultranerds.com), I'll take a quick look for you. Shouldn't be anything too hard
(at least, not when you've dealt with as many installations as me ;))
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
If you send over admin panel access (andy@ultranerds.com), I'll take a quick look for you. Shouldn't be anything too hard

Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Apr 7, 2008, 2:02 PM
Veteran / Moderator (18436 posts)
Apr 7, 2008, 2:02 PM
Post #5 of 5
Views: 2751
For anyone interested, the reason its not working - is because hes edited the login bar HTML from:
..instead of:
<a href="<%config.db_cgi_url%>/user.cgi<%if user.Username%>?logout=1<%endif%>" class="<%if user.Username%>in<%else%>out<%endif%>"> <%if user.Username%><img src="<%Links::Utils::image_url('logoff_img.gif')%>" alt="Logoff" /><%else%><img src="<%Links::Utils::image_url('logon_img.gif')%>" alt="Logon/Register" /><%endif%></a>
</div>
This means the JS code in the header can't do its job right then =)
The only solution I can think of, is using mod_rewrite.
Anyway - I'm off for bed now , been a long day
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Code:
<div id="loginbar"><a href="<%config.db_cgi_url%>/user.cgi<%if user.Username%>?logout=1<%endif%>" class="<%if user.Username%>in<%else%>out<%endif%>"><%if user.Username%>Logout<%else%>Login/Register<%endif%></a></div>..instead of:
Code:
<div id="loginbar"> <a href="<%config.db_cgi_url%>/user.cgi<%if user.Username%>?logout=1<%endif%>" class="<%if user.Username%>in<%else%>out<%endif%>"> <%if user.Username%><img src="<%Links::Utils::image_url('logoff_img.gif')%>" alt="Logoff" /><%else%><img src="<%Links::Utils::image_url('logon_img.gif')%>" alt="Logon/Register" /><%endif%></a>
</div>
This means the JS code in the header can't do its job right then =)
The only solution I can think of, is using mod_rewrite.
Anyway - I'm off for bed now , been a long day

Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!