hi there, i want to be able to selectm a css them from a menu on the front page so that members can choose a theme they like, How Would i Go about doing this? thnaks
Style Select
Collapse
X
-
Guest
here is ithi there, i want to be able to selectm a css them from a menu on the front page so that members can choose a theme they like, How Would i Go about doing this? thnaks[/b]
on your index.php edit to the main page where the user enter their detail to log in
and put
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
echo "<form action=\"login.php\" method=\"get\">";
echo "Username:";
echo "
";
echo "<input type=\"text\" name=\"uid\" size=\"8\" maxlength=\"15\" />";
echo "
";
echo "Password:";
echo "
";
echo "<input type=\"password\" name=\"pwd\" size=\"8\" maxlength=\"15\" />";
echo "
";
echo "<input type=\"hidden\" name=\"svw\" value=\"$svw\"/>";
$themes = mysql_query("SELECT id, name, theme FROM ibwf_themes ORDER BY id, name");
echo "Theme: <select name=\"theme\">";
while($theme=mysql_fetch_array($themes))
{
echo "<option value=\"$theme[2]\">$theme[1]</option>";
}
echo "</select>
";
echo "<input type=\"submit\" value=\"login\"/>";
echo "</form>";
</div>
-
Guest
now u need to edit the login.php page
below this
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>}else{
echo dberror($mime);
}
}
</div>
add
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>$theme = $_POST['theme'];</div>
place this code below
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>$res = mysql_query("UPDATE ibwf_users SET theme='".$theme."' WHERE id='".$uid."'");
</div>
below this line
if($utru[0]>0) {
Comment
-
Guest -
Guest -
-
Guest
hmm i don't have such script pmpl it look simular to lavalair script maybe my coding will help change up the sql and stuffyeh go for it it's http://barmy-army.uk.to[/b]
Comment
-
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@barmy-army.uk.to and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.37 Server at barmy-army.uk.to Port 80
Comment

Comment