PDA

View Full Version : Welcome Block Module Login problem


yaaho
12-27-2005, 05:42 PM
The login button in my CMPS welcome block points to:

domain.com/login.php

and I need it to point to:

domain.com/forums/login.php

How do I fix this? I just upgraded to vB3.5.2 and I'm not sure if it was doing this before the upgrade or not. Any help would be much appreciated.
Thanks!

Brian
12-28-2005, 10:40 AM
Admin CP => vBa CMPS => Edit Modules => Welcome Block

Make sure you have the following code in the 'Form Code' option for that 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" />

Our Sponsors
 

yaaho
12-28-2005, 11:35 AM
Some variation of that code was in there but I replaced it with what you posted and now it works fine. Thank you!

surfdude
12-29-2005, 04:47 PM
When I try to log in from Welcome Block, I get redirected to this url:

http://www.bigislandworld.com/{$vbulletin->options[bburl]}/login.php

I got no idea what and where things went wrong. I did apply your code above, but same error occurs.

Our Sponsors
 

Brian
12-30-2005, 03:44 PM
That's the exact URL you're being directed to, with the variable name and all? Are you running vB 3.0 or vB 3.5?

surfdude
12-31-2005, 05:42 PM
vB 3.5.2 and few weeks old download of CMPS. And yes, that is exact url, copy and pasted here from resulting 'page missing' page. I messed something up big time. I reverted 'Welcome Block' code just in case, but no luck, same error occurs.

Brian
12-31-2005, 06:46 PM
Does it actually log you in, or do you get redirected straight to that page without being logged in?

surfdude
01-01-2006, 03:26 AM
No, it does not log me in, it goes straight to that page. When I go back to index, one is still not logged in.

Brian
01-02-2006, 08:40 PM
Would you mind submitting a support ticket so I can have a look at things? There's really not any reason I can think of that should be happening.