Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help
Author Message
kmarion
Regular
Regular



Joined: Nov 23, 2003
Posts: 64

PostPosted: Fri May 05, 2006 6:52 pm Reply with quote

The first symptom I had from this problem was not being able to create a new account. It kept telling me that whatever name I put in there was taken. Upon further inspection I quickly noticed that the name kept getting changed to "Guest". The best I can figure is that in the theme I am using if you are not logged in the empty username space it says guest by default. Whenever I hit submit it is pulling data from the default "guest" information. I guess the best way for me to explain it is for you guys to have a look at me site up top left you will see a login box. Any ideas on how I can disable "guest" from showing there? Thanks
[ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message Visit poster's website MSN Messenger
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Fri May 05, 2006 7:15 pm Reply with quote

well if you look in your theme and open up your theme.php or header.html...(whatever you have) you can look for :

<input type="login" name="username" class="login"
value="Guest" onBlur="if(this.value=='') this.value='Guest';"
onFocus="if(this.value=='Guest') this.value='';" size="14"
maxlength="25" style="height: 14px; width: 74px;">

just take out guest or change to:

<input type="login" name="username" class="login"
value="" size="14"
maxlength="25" style="height: 14px; width: 74px;">

And backup before you touch anything.
 
View user's profile Send private message
kmarion







PostPosted: Fri May 05, 2006 8:13 pm Reply with quote

I found this in the theme.html file


Code:
</tr>

</table>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="login-bg" width="208"><table class="login-block">
<tr>
<td><?php  if ($username == "Guest") {
        echo "<form action=\"account.html\" method=\"post\"
style=\"margin:0\">\n"
        ."&nbsp;<img src=\"themes/$thename/images/username.gif\"
align=\"absbottom\">&nbsp;"
    ."<input type=\"login\" name=\"username\" class=\"login\"
value=\"Guest\"  onBlur=\"if(this.value=='') this.value='Guest';\"
onFocus=\"if(this.value=='Guest') this.value='';\" size=\"14\"
maxlength=\"25\" style=\"height: 14px; width: 74px;\">\n<br />"
    ."&nbsp;<img src=\"themes/$thename/images/password.gif\"
align=\"absbottom\">&nbsp;"
    ."<input type=\"password\" name=\"user_password\" class=\"login\"
value=\"*********\"  onBlur=\"if(this.value=='') this.value='*********';\"
onFocus=\"if(this.value=='*********') this.value='';\"size=\"14\"
maxlength=\"25\" style=\"height: 14px; width: 74px;\" size=\"16\">\n<br />"
    ."<input type=\"hidden\" name=\"url\" value=\"index.php\">\n"
    ."<input type=\"hidden\" name=\"t\" value=\"\">\n"
    ."<input type=\"hidden\" name=\"op\" value=\"login\">\n"
    ."&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"image\" value=\"Login\"
name=\"loginbutton\" src=\"themes/$thename/images/loginaccount.gif\" title=\"Login to
your account.\">\n"
    ."&nbsp;<a href=\"index.php\"></a>\n"
    ."</form>\n";
    } else {
        $theuser = "&nbsp;&nbsp;Welcome $username!";
echo "<font class=\"pn-normal\"><b>Hello $username.</b></font><br />
<a href=\"modules.php?name=Your_Account&op=edituser\"><img
src=\"themes/$thename/images/editaccount.gif\" title=\"Edit Your Account\"
/></a><br />
<a href=\"account.html\"><img
src=\"themes/$thename/images/myaccount.gif\" border=\"0\" title=\"Access Your
Account\" /></a><br />
<a href=\"account-logout.html\"><img
src=\"themes/$thename/images/logout.gif\" title=\"Logout?\" /></a>";
   }
   ?>


I took out the "guest"
And had this
Code:
</tr>

</table>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="login-bg" width="208"><table class="login-block">
<tr>
<td><?php  if ($username == "") {
        echo "<form action=\"account.html\" method=\"post\"
style=\"margin:0\">\n"
        ."&nbsp;<img src=\"themes/$thename/images/username.gif\"
align=\"absbottom\">&nbsp;"
    ."<input type=\"login\" name=\"username\" class=\"login\"
value=\"\"  onBlur=\"if(this.value=='') this.value='';\"
onFocus=\"if(this.value=='') this.value='';\" size=\"14\"
maxlength=\"25\" style=\"height: 14px; width: 74px;\">\n<br />"
    ."&nbsp;<img src=\"themes/$thename/images/password.gif\"
align=\"absbottom\">&nbsp;"
     
name=\"loginbutton\" src=\"themes/$thename/images/loginaccount.gif\" title=\"Login to
your account.\">\n"
    ."&nbsp;<a href=\"index.php\"></a>\n"
    ."</form>\n";
    } else {
        $theuser = "&nbsp;&nbsp;Welcome $username!";
echo "<font class=\"pn-normal\"><b>Hello $username.</b></font><br />
<a href=\"modules.php?name=Your_Account&op=edituser\"><img
src=\"themes/$thename/images/editaccount.gif\" title=\"Edit Your Account\"
/></a><br />
<a href=\"account.html\"><img
src=\"themes/$thename/images/myaccount.gif\" border=\"0\" title=\"Access Your
Account\" /></a><br />
<a href=\"account-logout.html\"><img
src=\"themes/$thename/images/logout.gif\" title=\"Logout?\" /></a>";
   }
   ?>
</td>
</tr>
</table></td>
<td background="{image-path}w-tungsten_05.jpg">&nbsp;</td>
<td width="561"><img src="{image-path}w-tungsten_06.jpg"
width="561" height="121" /></td>
</tr>


Its acting real funny now. It now shows as "Welcome guest" even though I deleted that account. I cleared my cookies to be sure. Won't let me login with any account.
 
kmarion







PostPosted: Fri May 05, 2006 8:29 pm Reply with quote

Hitwalker this is one of a couple problems I am having, I have tried to import unsuccesfully my previous users from another install as well as the forums from that install. If you would be willing to help me with these three things personally I would be willing to pay you for your services. (I have Paypal) Thanks either way.
 
hitwalker







PostPosted: Sat May 06, 2006 3:19 am Reply with quote

well you can contact me naturally,ive send a pm.
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sat May 06, 2006 4:56 pm Reply with quote

Some other code must be changing the username to Guest before it ever gets to the theme code you posted.

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©