PDA

View Full Version : cmps logout error


Grae
09-17-2005, 11:41 AM
I am getting the following error when trying to logout from the cmps:
An error occurred while attempting to log you out. Click here to log out.

cmps logout link:
/forum/login.php?do=logout&u=1

The forum logout link (working) has a hascode, should the cmps have one as well? I tried reverting the cmps welcome block, but that did not help.

I was having other related cmps login problems, but fixed them with brian's fix in the faq forum (.mysite.com)

Thanks :)

Brian
09-18-2005, 04:37 PM
I could have swore that was corrected in a previous version, but apparently not. If you'll look in your adv_portal_welcomeblock template for 2 instances of this code:
login.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]

And replace both with this:
login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]

Then that should take care of the problem.

Our Sponsors
 

Grae
09-19-2005, 11:40 AM
Works :)

Thanks again for the great support here at vba!

forumpup
10-02-2005, 04:14 PM
Hello.

I just upgraded to vb 3.5.0 from vb 3.0.9 and from vba 2.0 (for vb 3.0.x) to vba 2.0 (for vb 3.5.0) after downloading on vb & vba on 9/30/05. I made the above change in both places as mentioned because I couldn't logout in the welcome block.

The revision fixed the logout link in the welcome block, but I still have a problem logging out from the link in the navbar. The login in the navbar works. The login in the welcome block doesn't work since it hasn't added the '/forum' prefix to 'login.php' url.

How to fix these 2 problems?

Thanks in advance.

Our Sponsors
 

Brian
10-03-2005, 01:40 PM
Revert your navbar template. Then make sure you have this for the 'Form Code' option in your welcome block module:
<script src="{$vbulletin->options[bburl]}/clientscript/vbulletin_md5.js" type="text/javascript"></script> <form action="{$vbulletin->options[bburl]}/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)"> <input name="vb_login_md5password" type="hidden" /> <input name="s" type="hidden" value="" /> <input name="do" type="hidden" value="login" />

forumpup
10-03-2005, 06:46 PM
Thanks for your reply.

Reverting the navbar solved that logout problem.

Regarding the Welcome Block, exactly 'where' should I put this? Also, where is the closing </form> tag located? Keep the old login/logout code?

Maybe I'm reading too much into this; trying to make sure I'm putting this in the correct spot...

Thanks.

Brian
10-04-2005, 02:01 PM
Admin CP => vBa CMPS => Edit Modules => Welcome Block => Form Code

When you have something entered there then the </form> tag is automatically added in the module.

forumpup
10-04-2005, 02:14 PM
That did it, Brian.

Thanks Much!!!:D

weirdpixels
10-04-2005, 05:56 PM
I also noticed this was happen with the whos online module

So I changed the 'Form Code' from

$vboptions[bburl]/online.php?$session[sessionurl]

to

{$vbulletin->options[bburl]}/online.php?$session[sessionurl]

in the Online Users users module settings

Raze
10-05-2005, 03:57 PM
I could have swore that was corrected in a previous version, but apparently not. If you'll look in your adv_portal_welcomeblock template for 2 instances of this code:
login.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]

And replace both with this:
login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]

Then that should take care of the problem.

Just to let you know Brian I had to do this fix on the package I downloaded a few days ago...

forumpup
10-06-2005, 01:48 PM
There are other modules also with this problem.

See http://www.vbadvanced.com/forum/showthread.php?t=11371

coldblooded
10-09-2005, 11:43 PM
I could have swore that was corrected in a previous version, but apparently not. If you'll look in your adv_portal_welcomeblock template for 2 instances of this code:
login.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]

And replace both with this:
login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]

Then that should take care of the problem.

I'm also experiancing the logout issue, but the form area only seems to show login code, nothing similar to the code mentioned above. :confused:

coldblooded
10-10-2005, 07:10 PM
Disregard my previous post, I figured it out. phpbb convert here, still getting the hang of vb and advanced. :)

forumpup
10-13-2005, 03:21 PM
Brian,

I just received an E-mail for this subscribed thread BUT...

it has this link for the thread as 'http://www.vbadvanced.com/forum/showthread.php?t=10976&goto=newpost'

but that takes me to this thread. This thread doesn't show your reply as:

~~~~~~~~~~~~~
Thursday, October 13, 2005 1:31 PM (EDT)
Reply to post 'cmps logout error'

Brian has just replied to a thread you have subscribed to entitled - cmps logout
error - in the vBulletin 3.5.X forum of vBadvanced Forums.

This thread is located at:
http://www.vbadvanced.com/forum/showthread.php?t=10976&goto=newpost

Here is the message that has just been posted:
***************
For those having a problem with the welcome block not posting to the right file,
apply the fix posted here
(http://www.vbadvanced.com/forum/showpost.php?p=64572&postcount=5). (Don't
revert your navbar template, just make sure that's what you have for the Form
Code option).

If your homepage is simply not showing you as logged in even though you are,
that is a cookie issue that should be able to be fixed by following the
instructions in the FAQ forum.
***************
~~~~~~~~~~~~~

Why doesn't your post show up here?

Thanks.

Brian
10-14-2005, 02:35 PM
That's because I was checking something in this thread so I could post a link to it, but accidentally replied to this thread instead of the one I was reading. ;)

karrerax
10-16-2005, 08:18 AM
I could have swore that was corrected in a previous version, but apparently not. If you'll look in your adv_portal_welcomeblock template for 2 instances of this code:
login.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]

And replace both with this:
login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]

Then that should take care of the problem.

This correct my error!
THANKS A LOT Brian

majorj0nny1
10-16-2005, 10:28 AM
That's because I was checking something in this thread so I could post a link to it, but accidentally replied to this thread instead of the one I was reading. ;)


{$vbulletin->options[bburl]}/ seems to have become my new best friend - Ive found that the search module and the welcome module both seem to show the 'old' code and subsiquently I had issues with them... Ive also had to add {$vbulletin->options[bburl]}/ to my shoutbox template so that the incorrectly pointing .php pointed to the right place.

all i have problems with now is why my search and quicklink buttons dont seem to work anymore - the search is pointing in the right direction (ie - /forum/search.php but when I click that link it just does nothing - no drop down menu ?

this is very strange because I have a second page that acts as a staff introduction page ... this too has the default navbar/header - but those search and quick links work fine from there ?

:confused: