Goodbye Wml Hello Xhtml

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

    #16
    oh so i have 2 make another table at user database and then another just 4 themes???????

    also....

    then i dnt need this echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />"; and i cn get rid of this????
    and then i need 2 put this code at evry file

    $getuthm = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE name=&#39;".$uid."&#39; AND pass=&#39;".$upw."&#39;"));
    $uth = $getuthm[0];

    if($getuthm[0]!="")
    {
    $uthm = "$uth";
    $uthm = utheme($uthm);
    }else{
    $uthm = "default.css";
    }
    AM I RIGHT?????[/b]

    not that simple

    Comment


      #17
      yeah i knw.... evrythng with database is not simple 4 me...... lol ill try it anyway....
      sigpiceeeeerrr....

      Comment


        #18
        Code:
        $getuthm = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE name=&#39;".$uid."&#39; AND pass=&#39;".$upw."&#39;"));
        
        if($getuthm[0]==""){
          $uthm = "default.css";
        }else{
          $uthm = $getuthm[0];
        }
        
            echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"styles/$uthm\" />";
        that&#39;s untested but i see no reason why it wouldnt work if you place this code in the <head>...</head> section (where the other stylesheet code is) and you adjust the href=\"styles... to suit your own directory structure

        you woud also need to setup the database to include &#39;theme&#39; in the &#39;ibwf_users&#39; table
        SELECT theme FROM ibwf_users

        just get back to me if any of this doesnt make sense or something isnt working etc .. if im not around on wapforum,org.uk you might be better contacting me at kwah90@gmail.com

        ----

        if you are using the lavalair script, you might also want to try this one instead:
        Code:
        $uid = getuid_sid($sid);
        $getuthm = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
        
        if($getuthm[0]==""){
          $uthm = "default.css";
        }else{
          $uthm = $getuthm[0];
        }
        
            echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"styles/$uthm\" />";

        Comment


          #19
          thank u...yes im using lava script... nd i thought its boring if i just make it in 1 color... cuz more ppl, more taste, right...?

          i understand wht u said, but i have 2 try it 1st... 2 c if i understood it corectly..... thanx
          sigpiceeeeerrr....

          Comment


            #20
            thank u...yes im using lava script... nd i thought its boring if i just make it in 1 color... cuz more ppl, more taste, right...?

            i understand wht u said, but i have 2 try it 1st... 2 c if i understood it corectly..... thanx[/b]
            let me know if it works =]

            Comment


              #21
              of course i will....

              but, it will pass sum time b4 i make all script in xhtml.... and a day has only 24hrs....lol
              sigpiceeeeerrr....

              Comment


                #22
                of course i will....

                but, it will pass sum time b4 i make all script in xhtml.... and a day has only 24hrs....lol[/b]
                lol if you want any help with making it into xhtml, you know where i am

                and yeah, so what if if there are only 24hours in a day? thats 1440 minutes and 86400seconds every day and now ive forgotten where this is leading :/ hmmm ...

                but yh anyways, the offer still stands

                Comment

                Working...
                X