PDA

View Full Version : Mysterious problem with login


JohnBee
11-08-2004, 08:17 AM
I have been working on some color / template changes over the weekend
and this morning I noticed when I tried a fresh login I got this error:

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

http://www.***.net/web/login.php

Instead of:

http://www.***.net/web/forum/login.php

Could it be that adding a new style caused this, or is it something else?

JohnBee
11-08-2004, 08:32 AM
Yep I just confirmed it, I switched back and forth between my old
style and my newly created style and it logs in properly with -default style-
but not my new -custom style-.

Any ideas what could cause this?

Our Sponsors
 

Artayick
11-08-2004, 09:21 AM
could be.. did you change your paths in the vb settings when you added the new style?

JohnBee
11-08-2004, 09:45 AM
No nothing I just clicked the Add style button at the bottom of the
Style manager and selected an independant style (not a child) etc.

I will try a Child of the default style to see if it will do the same problem.

I am wondering if when we install vBadvanced if it doesn't modify the
default styles to accomodate the addon and so when I would add a new
style those modifications are no longer present.

Just a wild guess I really don't know the difference.

If there is a way to copy a style I could work around it. But I did make
many changes to my custom style and I would hate to loose my work :(

Any help on this matter would be greatly appreciated.

Our Sponsors
 

Brian
11-08-2004, 10:12 AM
Do you allow guests to view your forum? If not, you'll need to edit your 'STANDARD_ERROR' template and add $vboptions[bburl]/ in front of the two calls to 'login.php', 'clientscript', and 'register.php'.

JohnBee
11-08-2004, 11:00 AM
There are none of the references you mentioned in my STANDARD_ERROR
template


$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$pagetitle</title>
$headinclude
$headinsert
</head>
<body>
$header

<br />
<br />
<br />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="70%" align="center">
<tr>
<td class="tcat">$vbphrase[vbulletin_message]</td>
</tr>
<tr>
<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">

<if condition="$show['permission_error']">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)">
<input type="hidden" name="do" value="login" />
<input type="hidden" name="forceredirect" value="1" />
<input type="hidden" name="url" value="$scriptpath" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
$postvars

<input type="hidden" name="s" value="$session[sessionhash]" />

<!-- permission error message - user not logged in -->


<div class="smallfont">$vbphrase[not_logged_no_permission]</div>

<ol>
<li class="smallfont">$vbphrase[not_logged_in_fill_in_form]</li>
<li class="smallfont">$vbphrase[may_not_have_sufficient_privileges]</li>
<li class="smallfont">$vbphrase[administrator_may_disabled_account]</li>
</ol>

<fieldset class="fieldset">
<legend>$vbphrase[log_in]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" align="center">
<tr>
<td>$vbphrase[username]:<br /><input type="text" class="bginput" name="vb_login_username" size="50" accesskey="u" tabindex="1" /></td>
</tr>
<tr>
<td>$vbphrase[password]:<br /><input type="password" class="bginput" name="vb_login_password" size="50" accesskey="p" tabindex="1" /></td>
</tr>
<tr>
<td>
<span style="float:$stylevar[right]"><a href="login.php?$session[sessionurl]do=lostpw">$vbphrase[forgotten_your_password]</a></span>
<label for="cb_cookieuser"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser" checked="checked" tabindex="1" />$vbphrase[remember_me]</label>
</td>
</tr>
<tr>
<td align="$stylevar[right]">
<input type="submit" class="button" value="$vbphrase[log_in]" accesskey="s" tabindex="1" />
<input type="reset" class="button" value="$vbphrase[reset_fields]" accesskey="r" tabindex="1" />
</td>
</tr>
</table>
</fieldset>

<div class="smallfont"><phrase 1="register.php?$session[sessionurl]do=signup">$vbphrase[admin_required_register]</phrase></div>
</form>

<!-- / permission error message - user not logged in -->
<else />
<!-- main error message -->


<blockquote><p>$errormessage</p></blockquote>


<!-- / main error message -->
</if>

</div>
</div>
<!--
<div style="margin-top:$stylevar[cellpadding]px">
<input type="submit" class="button" value="$vbphrase[go_back]" accesskey="s" onclick="history.back(1); return false" />
</div>
-->
</td>
</tr>
</table>

<br />

<if condition="!$show['enableforumjump']">
<!-- forum jump -->
<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td>$forumjump</td>
</tr>
</table>
<!-- / forum jump -->
</if>

<br />

$footer

</body>
</html>

Could it be that the vBadvanced configuration is not applied to this new style?

JohnBee
11-08-2004, 11:05 AM
Okay, I think I may have fixed it...

I took the original "default style" STANDARD_ERROR template
and I copied it over to my new style and the login seems to
properly re direct.

This raises a question though.

If we create new styles do we loose some vBadvance data?
If so is there a way to update the vBadvance php config
with other styles?

or is this an isolated incident?

I want to create a few styles and generate several different vBadvance
pages throughout my site so I am concerned about this as I expand my
site design.

Brian
11-08-2004, 11:34 AM
There are none of the references you mentioned in my STANDARD_ERROR template
You must not have searched it... This is straight from the code you posted.

<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>

<form action="login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)">

<a href="login.php?$session[sessionurl]do=lostpw">$vbphrase[forgotten_your_password]</a>

<phrase 1="register.php?$session[sessionurl]do=signup">$vbphrase[admin_required_register]</phrase>




If we create new styles do we loose some vBadvance data?
If so is there a way to update the vBadvance php config
with other styles?
You really should have one 'main' style and then create any new styles a a child of that main style. That way when you add a new style or make a change to something it should affect all of your styles without having to edit each one.

JohnBee
11-08-2004, 11:37 AM
Well thanks! :rolleyes: I can't beleive I missed that I did search it
but sometimes the cursor is highliting a bit of text and it shows no
return or something.

I will take your expert advice and create my styles as children of
my default style, do you recomend this even if my styles are
dramatically different from each other?

Brian
11-08-2004, 11:53 AM
It still usually helps, and definitely won't hurt anything.