Web/wap Html

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

    Web/wap Html

    hi can someone help me please im trying to sort a online list as when u view it it shows two images at one side with a username in center i tryed to remove stuff so it show one image only but not working i have a bit of coding from index.php if that helps what i mean

    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
    else if($action=="online")
    {
    $mmsg = htmlspecialchars(getsetmood(getuid_sid($sid)));
    addonline(getuid_sid($sid),"Online List ($mmsg)","index.php?action=online");
    echo "<head>";
    echo "<title>Online List</title>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
    echo "</head>";
    echo "<body>";
    echo "<div><img src=\"../images/onlinelist.gif\" alt=\"Online List\"/></div>";
    echo popup($sid);
    //////ALL LISTS SCRIPT <<

    if($page=="" || $page<=0)$page=1;
    $num_items = getnumonline(); //changable
    $items_per_page= 5;
    $num_pages = ceil($num_items/$items_per_page);
    if($page>$num_pages)$page= $num_pages;
    $limit_start = ($page-1)*$items_per_page;

    //changable sql
    $sql = "SELECT
    a.name,a.perm, b.place, b.userid FROM ibwf_users a
    INNER JOIN ibwf_online b ON a.id = b.userid
    GROUP BY 1,2
    LIMIT $limit_start, $items_per_page
    ";
    echo "<p align=\"center\">";
    $items = mysql_query($sql);
    echo mysql_error();
    while ($item = mysql_fetch_array($items))
    {
    if($item[1]==&#39;0&#39;)
    {
    $tit = "<img src=\"../images/member.gif\" alt=\"*\"/>";
    }if($item[1]==&#39;1&#39;)
    {
    $tit = "<img src=\"../images/moderator.gif\" alt=\"*\"/>";
    }if($item[1]==&#39;2&#39;)
    {
    $tit = "<img src=\"../images/admin.gif\" alt=\"*\"/>";
    } if($item[1]==&#39;3&#39;)
    {
    $tit = "<img src=\"../images/head.gif\" alt=\"*\"/>";
    } if($item[1]==&#39;4&#39;)
    {
    $tit = "<img src=\"../images/owner.gif\" alt=\"*\"/>";
    } if($item[1]==&#39;5&#39;)
    {
    $tit = "<img src=\"../images/tech.gif\" alt=\"*\"/>";
    } if($item[1]==&#39;6&#39;)
    {
    $tit = "<img src=\"../images/host.gif\" alt=\"*\"/>";
    }

    $sex = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE name=&#39;$item[0]&#39;"));
    if($sex[0]=="M"){$usersex = "<img src=\"../images/male.gif\" alt=\"(M)\"/>";}
    if($sex[0]=="F"){$usersex = "<img src=\"../images/female.gif\" alt=\"(F)\"/>";}
    if($sex[0]==""){$usersex = "";}
    $text = parsepm($item[2], $sid);
    if($item[1]>&#39;0&#39;)
    {
    $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\">$tit$item[0]$tit
    $usersex
    </a>
    ";
    }else{
    $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\">$tit$item[0]$tit
    $usersex
    </a>
    ";
    }

    echo "$lnk $text
    ";
    }
    //echo "</p>";
    //echo "<p align=\"center\">";
    if($page>1)
    {
    $ppage = $page-1;
    echo "<a href=\"index.php?action=online&amp;page=$ppage&amp ;sid=$sid\">«Prev</a> ";
    }
    if($page<$num_pages)
    {
    $npage = $page+1;
    echo "<a href=\"index.php?action=online&amp;page=$npage&amp ;sid=$sid\">Next»</a>";
    }
    echo "
    $page/$num_pages";
    if($num_pages>2)
    {
    echo getjumper($action, $sid,"index");
    }
    echo "</p>";
    ////// UNTILL HERE >>

    echo "<p align=\"center\">";
    echo "<a href=\"index.php?action=mood&amp;sid=$sid\">Online Mood</a>
    ";
    echo "6 <a accesskey=\"6\" href=\"inbox.php?action=main&amp;sid=$sid\">Inbox</a>
    ";
    echo "7 <a accesskey=\"7\" href=\"lists.php?action=buds&amp;sid=$sid\">BuddyL ist</a>
    ";
    echo "8 <a accesskey=\"8\" href=\"index.php?action=chat&amp;sid=$sid\">Chatro oms</a>
    ";
    echo forumlink($sid,9);
    echo "0 <a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
    echo "</p>";
    echo "</body>";

    }
    else if($action=="mood")
    {
    echo "<head>";
    echo "<title>Set OnlineList Mood</title>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";

    echo "</head>";
    echo "<body>";
    echo "<p align=\"center\">";
    $mmsg = htmlspecialchars(getsetmood(getuid_sid($sid)));
    $uid = getuid_sid($sid);
    echo "<form action=\"genproc.php?action=upmood&amp;sid=$sid\" method=\"post\">";
    echo "SET MOOD TO:
    <input name=\"mmsg\" maxlength=\"30\"/>
    ";
    echo "<input type=\"Submit\" name=\"submit\" Value=\"Submit\"></form>";
    echo "</p>";
    echo "<p align=\"center\">";
    echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"\"/>Home</a>";
    echo "</p>";
    echo "</body>";
    }
    </div>

    help be very greatful thanx

    #2
    take it no one knows then lol

    Comment


      #3
      can i get help please guys

      Comment


        #4
        i think this is what your tryin to say

        replace the original code with this codetry this code

        Code:
        {
        $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\">$tit$item[0]
        $usersex
        </a>
        ";
        }else{
        $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\">$tit$item[0]
        $usersex
        </a>
        ";
        }
        Want something coded email me at sales@webnwaphost.com for a prices.




        Comment


          #5
          <div class='quotetop'>QUOTE (crazybrumi @ Nov 20 2008, 04:02 PM) <{POST_SNAPBACK}></div>
          i think this is what your tryin to say

          replace the original code with this codetry this code

          Code:
          {
          $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\">$tit$item[0]
          $usersex
          </a>
          ";
          }else{
          $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\">$tit$item[0]
          $usersex
          </a>
          ";
          }
          [/b]
          what he trying to say is that he has ;)member then members name then member ;) and he only wants membr then members name

          Comment

          Working...
          X