View Full Version : Cannot Login From Welcome Module
dieselpowered
10-05-2005, 02:05 AM
Alright I was thinking I was having the same issue as this POST (http://www.vbadvanced.com/forum/showthread.php?t=11341) but it appears he is doing other things...
All I need is for people to be able to login. As the previous thread stated, it seems as though it is looking for login at the root level.
Also, if you attempt to logout from the welcome module, it errors out.
Thanks!
caimakale
10-05-2005, 02:45 AM
I am building my test site before I go live with it. I noticed that when I do a site speed test, it shows 4 scripts being run. Here are the results:
1 33034 SCRIPT hxxp://www.blah.com/new/clientscript/vbulletin_global.js
1 15181 SCRIPT hxxp://www.blah.com/new/clientscript/vbulletin_menu.js
1 9661 SCRIPT hxxp://www.blah.com/new/clientscript/vbulletin_md5.js
1 9661 SCRIPT hxxp://www.blah.com/new//clientscript/vbulletin_md5.js
As you can see in the last line, there are two slashes before clientscript. I viewed the source of my page and narrowed it down to the welcome block in vBaCMPS. The first vbulletin_md5.js is for the navbar.
I don't know if this is the cause of your problem or if I have something configured wrong. I checked my settings and everything seems to be ok.
Maybe Brian can shed some light on this problem for us.
Brian
10-05-2005, 02:11 PM
xtremeoff-road - Edit your STANDARD_ERROR template and add $vboptions[bburl]/ in front of all references to login.php and register.php.
caimakale - Have you modified the template or the Form Code for that module at all? It shouldn't have the extra slash on a default installation.
dieselpowered
10-05-2005, 08:18 PM
Alright thanks Brian I will do that.
You have a support ticket from me as well :)
caimakale
10-05-2005, 08:27 PM
caimakale - Have you modified the template or the Form Code for that module at all? It shouldn't have the extra slash on a default installation.
Nope, it is set with the vbulletin default template. I haven't touched that module at all. I noticed this last night before I started adding/changing anything on my site. The only template I have touched in vba is the footer.
I will try re-installing.
caimakale
10-06-2005, 01:02 AM
Brian -
Here is what I found. I went into my Admin Control Panel >> vBa CMPS >> Edit Modules >> Welcome Block. With that open I went down to Form Code and seen this:
<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" />
Notice how clientscript has two slashes in front of it (in red text)? I decided to look into this so naturally the first place I look is the install script. About half way down the install script, I found this code for the welcome block:
9 => array('title' => 'Welcome Block', 'identifier' => 'welcomeblock', 'filename' => 'welcomeblock.php', 'inctype' => 'php_file', 'modcol' => '1', 'displayorder' => '1', 'templatelist' => 'adv_portal_welcomeblock, postbit_reputation', 'userperms' => '', 'parent' => '', 'active' => '1', 'colspan' => '2', 'formcode' => '<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" />', 'cleanoutput' => '0', 'useshell' => '1', 'link' => '{$vbulletin->options[bburl]}/usercp.php?$session[sessionurl]', 'options' => ''),
The double slash before clientscript is in the install script(in red text), so it is like this from the install. I don't know if everyones is like this. My vBa CMPS download is about 3 or 4 days old, and it is version 2.0 for vBulletin 3.5.
dieselpowered
10-06-2005, 03:21 AM
xtremeoff-road - Edit your STANDARD_ERROR template and add $vboptions[bburl]/ in front of all references to login.php and register.php
Well I found two instances of login.php and one of register.php, I placed the additional code you mentioned, however, it still does not work. Same problems.
agiacosa
10-06-2005, 07:00 AM
Same problem here.
Do we remove the double slash in front of clientscript?
I don't have a double slash in front of clientscript and mine's not working either, it just keeps looking for login.php in the root. I tried adding $vboptions[bburl]/ and it had no effect, it still looked in the wrong place.
dieselpowered
10-07-2005, 01:23 AM
I don't have a double slash in front of clientscript and mine's not working either, it just keeps looking for login.php in the root. I tried adding $vboptions[bburl]/ and it had no effect, it still looked in the wrong place.
Yup me too :(
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.