+ Reply to Thread
Results 1 to 3 of 3

Thread: Tutorial In Changing Bckgounds

  1. #1
    Member keanvn
    Join Date
    Sep 2008
    Posts
    87
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    hello please help how cn u change bckground colors @ methos script....is it css foud here?





    <?php
    define (&#39;USER_NOT_FOUND&#39;,0);
    define (&#39;MIME_TYPE&#39;,&#39;application/xhtml+xml&#39;);


    function gettheme($sid)
    {
    $uid = getuid_sid($sid);
    $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
    if($thid[0]==""||$thid[0]==0)$thid[0]=1;
    $thinfo = mysql_fetch_array(mysql_query("SELECT bgc, txc, lnk, hdc, hbg, boxbg FROM ibwf_mainthemes WHERE id=&#39;".$thid[0]."&#39;"));
    $ret = "<style type=\"text/css\">\n";
    $ret .= "body {background-color:#$thinfo[0]; color:#$thinfo[1]}\n";
    $ret .= "h5 {background-color:#$thinfo[4]; color:#$thinfo[3]}\n";
    $ret .= "a:link {color:#$thinfo[2]}\n";
    $ret .= "a:visited {color:#$thinfo[2]}\n";
    $ret .= "img {border: 0;}\n";
    $ret .= "div.mblock1 {margin: 2px 0px 2px 0px; padding: 0px 0px 0px 0px; background-color: #$thinfo[5]; border: 1px solid #$thinfo[4]; text-align: left;}\n";
    $ret .= "div.mblock2 {margin: 2px 0px 2px 0px; padding: 0px 0px 0px 0px; background-color: #$thinfo[5]; border: 1px solid #$thinfo[4]; text-align: left;}\n";
    $ret .= "</style>";
    return $ret;
    }

    function geticonsetid($sid)
    {
    $uid = getuid_sid($sid);
    $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
    $iconsetid = mysql_fetch_array(mysql_query("SELECT iconset FROM ibwf_mainthemes WHERE id=&#39;".$thid[0]."&#39;"));
    return $iconsetid[0];
    }

    function xhtmlhead($page_title, $page_style="")
    {
    $ret = "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
    $ret .= "\n<head>\n<title>$page_title</title>\n";
    $ret .= "<meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-1\" />";
    $ret .= "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />";
    $ret .= "<meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>";
    $ret .= "\n".$page_style;
    $ret .= "\n</head>\n<body>";
    return $ret;
    }
    function xhtmlheadchat1($page_title, $page_style="",$rid,$sid)
    {
    $ret = "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
    $ret .= "\n<head>\n<title>$page_title</title>\n";
    $ret .= "<meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-1\" />";
    $ret .= "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />";
    $ret .= "<meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>";
    $ret .= "<meta http-equiv=\"refresh\" content=\"20; URL=chat.php?sid=$sid&amp;rid=$rid\"/>";
    $ret .= "\n".$page_style;
    $ret .= "\n</head>\n<body>";
    return $ret;
    }
    function xhtmlheadchat($page_title, $page_style="")
    {
    $ret = "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
    $ret .= "\n<head>\n<title>$page_title</title>\n";
    $ret .= "<meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-1\" />";
    $ret .= "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />";
    $ret .= "<meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>";
    $ret .= "\n".$page_style;
    $ret .= "\n</head>\n<body>";
    return $ret;
    }
    function xhtmlfoot()
    {
    $ret = "\n</body>\n</html>";
    return $ret;
    }
    function gettheme1($thid)
    {
    if($thid[0]==""||$thid[0]==0)$thid[0]=1;
    $thinfo = mysql_fetch_array(mysql_query("SELECT bgc, txc, lnk, hdc, hbg FROM ibwf_mainthemes WHERE id=&#39;".$thid[0]."&#39;"));
    $ret = "<style type=\"text/css\">\n";
    $ret .= "body {background-color:#$thinfo[0]; color:#$thinfo[1]}\n";
    $ret .= "h3 {background-color:#$thinfo[4]; color:#$thinfo[3]}\n";
    $ret .= "a:link {color:#$thinfo[2]}\n";
    $ret .= "a:visited {color:#$thinfo[2]}\n";
    $ret .= "</style>";
    return $ret;
    }
    ?>





    how can i edit the theme???from green to black bckground hope u will help...........thanks a lot
    <span style="font-size:36pt;line-height:100%"><span style="font-family:Impact">join and visit


    proud to be a filipino........</span></span>


    or view in xhtml http://outcastwap.freehostia.com/xhtml/index.php

  2. #2
    Senior Member amylee is an unknown quantity at this point
    Join Date
    Jun 2006
    Posts
    1,032
    Thanks
    0
    Thanked 30 Times in 12 Posts
    Rep Power
    0

    Default

    Code:
    $thinfo = mysql_fetch_array(mysql_query("SELECT bgc, txc, lnk, hdc, hbg FROM ibwf_mainthemes WHERE id=&#39;".$thid[0]."&#39;"));
    
    try looking in ibwf_mainthemes :rolleyes: you would of known that if you bothered to actually read the coding

  3. #3
    Senior Member learner
    Join Date
    Jul 2007
    Location
    United States
    Posts
    604
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    amy how to in user profile show his theme? like in personal site?
    Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

    <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%"></span></span>


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. .htaccess Tutorial
    By GumSlone in forum Tutorials
    Replies: 8
    Last Post: 27-03-10, 23:19
  2. Tutorial In Creating Your Own Community Site
    By globetel in forum Tutorials
    Replies: 6
    Last Post: 17-04-09, 23:38
  3. Changing Perm
    By learner in forum Coding Forum
    Replies: 34
    Last Post: 16-02-08, 12:37
  4. Html Tutorial
    By lamar-wap in forum Tutorials
    Replies: 5
    Last Post: 29-09-06, 22:36
  5. XHTML Tutorial
    By GumSlone in forum Tutorials
    Replies: 1
    Last Post: 08-12-05, 13:48

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO