PDA

View Full Version : Getting there.... but small logging problem


SelRahc
11-16-2004, 04:13 AM
Ok we're getting there slowly but surely. I am able to get into CMPS now and I can log-in. It seems the login/logout's aren't playing with eachother.

Before I start, I did follow the faq, closing all browsers and clearing cookies. Also, my cookie domain in VB options is set to ".mydomain.net" My path to save cookies is still the default "/" (both naturally without quotes, and my real domain of corse hehe).

I was able to narrow my problem down alittle. Just this little hich-up seems to be left.

Login @ CMS Index Navbar = OK :)
Logout @ CMS Index Navbar = OK :)
Login @ CMS Module (side bar) = No Reply :(
Login @ Forum = OK :)
Logout @ Forum = CMS still shows logged-in :(

So I have 2 issues. The first, is the CMS module side-bar login doesnt work. No error, just doesn't log me in. The Navbar login on the CMS page does work though.

The second issue is if I Logout at the Forum and return to the CMS Index, it still shows me as logged in. If I try do to anything, it doesnt work naturally, as it asks me to log in any time I touch the forum. Also, if I refresh the page, it will then show me as logged-out. However, until I refresh the CMS page, I see myself as still logged in.. like its caching it.

A reminder that my CMS is running off "mydomain.com" and my forum is running off "forum.mydomain.com". The physical folder structure is as follows:

\sites\mydomain.com\ (cmps index is here)
\sites\forum.mydomain.com\ (forum indes is here in root)

These appears to be the last little problems in the test install that I see. What did I miss? :rolleyes:

memobug
11-16-2004, 04:55 AM
where is the CMPS page? It would help a great deal to see how the HTML is rendered.

Regards,

Matt

Our Sponsors
 

SelRahc
11-16-2004, 05:31 AM
where is the CMPS page? It would help a great deal to see how the HTML is rendered.

Regards,

Matt

I edited my post to show the folder structure. Is this what you ment?

I'm wondering if theres any real advantage to running the folder in a subdomain like that........ do you think it would be better to run it just under the 1 mydomain.com?

Brian
11-16-2004, 12:39 PM
In your adv_portal_welcomeblock template look for this code:
<input name="vb_login_md5password" type="hidden" />

Right below it, add:
<input type="hidden" name="forceredirect" value="1" />

That should solve the login problem from the welcome block.


As for the cache issue, try adding this somewhere in the <head> tags of your adv_portal template:
<!-- nocache headers -->
<meta content="no-cache" http-equiv="pragma" />
<meta content="no-cache" http-equiv="no-cache" />
<meta content="-1" http-equiv="expires" />
<meta content="no-cache" http-equiv="cache-control" />
<!-- end nocache headers -->

Our Sponsors
 

SelRahc
11-16-2004, 11:35 PM
Brian,

Thank-you for the reply. I added the code as requested. The side login box is fixed now, thanks. :)

The CMS page still shows me as logged in if i visit it after I log out @ the forum though. :( It will still show registered user only items until i hit refresh on the page.

Brian
11-17-2004, 12:07 AM
Can you post your adv_portal template here?

SelRahc
11-17-2004, 01:06 AM
Sure thing. Here is my adv_portal:


$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>

<!-- nocache headers -->
<meta content="no-cache" http-equiv="pragma" />
<meta content="no-cache" http-equiv="no-cache" />
<meta content="-1" http-equiv="expires" />
<meta content="no-cache" http-equiv="cache-control" />
<!-- end nocache headers -->

<title>$vboptions[hometitle]</title>

$headinclude

</head>
<body>

$header

$navbar

<table align="center" class="page" cellspacing="0" cellpadding="0"width="100%">
<tr valign="top">

<if condition="$show['left_column']">

<td width="$vba_options[portal_leftcolwidth]">

$home[leftblocks]

</td>

<!-- Spacer Cell -->
<td width="$vba_options[portal_colspacing]"><img alt="" src="$vboptions[bburl]/$vboptions[cleargifurl]" width="$vba_options[portal_colspacing]" /></td>
<!-- / Spacer Cell -->

</if>


<if condition="$show['center_column']">
<td valign="top">

$home[centerblocks]

</td>
</if>


<if condition="$show['right_column']">

<!-- Spacer Cell -->
<td width="$vba_options[portal_colspacing]"><img alt="" src="$vboptions[bburl]/$vboptions[cleargifurl]" width="$vba_options[portal_colspacing]" /></td>
<!-- / Spacer Cell -->

<td valign="top" width="$vba_options[portal_rightcolwidth]">

$home[rightblocks]

</td>
</if>

</tr>
</table>

$footer

</body>
</html>

Brian
11-17-2004, 12:11 PM
Everything looks correct. I assume you've tried hitting ctrl+F5 to do a hard refresh on the page to make sure you're not still pulling from cache, right? If not please try that, then log in/out and see if it's still doing the same thing. If so, please fill out a support ticket via the Members' Area here and I'll be glad to take a look and see what the problem is.