wat function or declaration.

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

  • icedroplet1987
    replied
    its nt done.. name not coming with normal topics. obly done for pinned.

    Leave a comment:


  • Mysterio
    replied
    Originally posted by kiLLeR-eyEd_14 View Post
    Hehe.,it's ok mate..Author already know you have the answer, too..I'll give you his half thanks..
    and the other half?

    Leave a comment:


  • icedroplet1987
    replied
    it worked. thnx allot. topic closed.

    Leave a comment:


  • icedroplet1987
    replied
    it worked sucessfully for pinned topics. but nt working in normals.

    Leave a comment:


  • icedroplet1987
    replied
    something wron in it. it is done wat i said. but the hell, it is showing unlimited same topics which page didnt got fully load even on broadband. // showing 1 topic many many many times. when i did this.

    Leave a comment:


  • kiLLeR-eyEd_14
    replied
    Hehe.,it's ok mate..Author already know you have the answer, too..I'll give you his half thanks..

    Leave a comment:


  • icedroplet1987
    replied
    ok thnx mate. m trying it.

    Leave a comment:


  • Mysterio
    replied
    I was happy i had an answer, but killer_eyed-14 answered before me! No luck!

    Leave a comment:


  • kiLLeR-eyEd_14
    replied
    Add authorid in the array..
    PHP Code:
    $topics = mysql_query("SELECT id, name, closed, views, pollid, authorid FROM ibwf_topics WHERE fid='".$fid."' AND pinned='1' ORDER BY lastpost DESC, name, id LIMIT 0,5"); 
    
    and this is what you want:
    PHP Code:
    echo "<a href=\"index.php?action=viewtpc&amp;sid=$sid&amp;tid=$topic[0]\">".getnick_uid($topic[5]).": $pltx$tnm($nop[0])$atxt</a><br/>"; 
    

    Leave a comment:


  • icedroplet1987
    started a topic wat function or declaration.

    wat function or declaration.

    wat function or declaration sud i add in this to also show topic poster name with the topic. // it is the code.

    PHP Code:
    ///////////pinned topics
          $topics = mysql_query("SELECT id, name, closed, views, pollid FROM ibwf_topics WHERE fid='".$fid."' AND pinned='1' ORDER BY lastpost DESC, name, id LIMIT 0,5");
          while($topic = mysql_fetch_array($topics))
        {
          //$iml = "<img src=\"http://coding-talk.com/images/normal.gif\" alt=\"*\"/>";
          $iml = "*";
          $atxt ="";
          if($topic[2]=='1')
          {
            //closed
            $atxt = "(X)";
          }
          if($topic[4]>0)
          {
            $pltx = "(P)";
          }else{
            $pltx = "";
          }
          $tnm = htmlspecialchars($topic[1]);
          $nop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE tid='".$topic[0]."'"));
          echo "<a href=\"index.php?action=viewtpc&amp;sid=$sid&amp;tid=$topic[0]\">[COLOR="Red"](i need to add it here)[/COLOR]$pltx$tnm($nop[0])$atxt</a><br/>";
    
        }
        echo "<br/>";
        echo "<br/>";
      } 
    
    but nt getting the function to declair it.
    Last edited by Anshul; 09.11.09, 22:17. Reason: use tags
Working...
X