Style Select

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Style Select

    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
    Want something coded email me at sales@webnwaphost.com for a prices.





    #2
    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[/b]
    here is it

    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>

    Comment


      #3
      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[&#39;theme&#39;];</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=&#39;".$theme."&#39; WHERE id=&#39;".$uid."&#39;");
      </div>
      below this line

      if($utru[0]>0) {

      Comment


        #4
        try this and tell me if it works ok

        Comment


          #5
          cheers m8 its not a lavalair script, its a simular to old scotspaul but new tools features and its web
          Want something coded email me at sales@webnwaphost.com for a prices.




          Comment


            #6
            pmpl i thought so lol... can i see the site

            Comment


              #7
              yeh go for it it&#39;s http://barmy-army.uk.to
              Want something coded email me at sales@webnwaphost.com for a prices.




              Comment


                #8
                yeh go for it it&#39;s http://barmy-army.uk.to[/b]
                hmm i don&#39;t have such script pmpl it look simular to lavalair script maybe my coding will help change up the sql and stuff

                Comment


                  #9
                  lol thanks for trying anyways
                  Want something coded email me at sales@webnwaphost.com for a prices.




                  Comment


                    #10
                    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

                    Click here!!!

                    Comment


                      #11
                      wer u teste ? cos a ip banned u lol
                      Want something coded email me at sales@webnwaphost.com for a prices.




                      Comment


                        #12
                        No i wasnt lol

                        Click here!!!

                        Comment


                          #13
                          pmsl lol posted this months ago lol
                          Want something coded email me at sales@webnwaphost.com for a prices.




                          Comment

                          Working...
                          X