Latest 10 forum topics

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

  • Vayne
    replied
    Originally posted by centi View Post
    any one have the coding with who post the last post on that pati topics list

    limit 2 ??

    Leave a comment:


  • srecnica
    replied
    anywhere in the index.php file in the action = main
    echo "<a href=\"index.php?action=last10topic&amp;sid=$sid\" >~Activ topic~</a><br/>";

    Leave a comment:


  • centi
    replied
    any one have the coding with who post the last post on that pati topics list

    Leave a comment:


  • l0rdrayven
    replied
    mates im just a noob where to paste that code? I mean in what part of index.php file please help.thnks for the considerations.

    Leave a comment:


  • Vayne
    replied
    Originally posted by capofret View Post
    it means it will autorefresh every 5 minutes. 5x60=300 seconds
    i know what means script timer :D but why it is needed there?

    Leave a comment:


  • capofret
    replied
    Originally posted by Vayne View Post
    why there is
    PHP Code:
    echo "<timer value=\"300\"/>"
    ?

    it means it will autorefresh every 5 minutes. 5x60=300 seconds

    Leave a comment:


  • Vayne
    replied
    why there is
    PHP Code:
    echo "<timer value=\"300\"/>"
    ?

    Leave a comment:


  • srecnica
    replied
    you are welcome

    Leave a comment:


  • robzky
    replied
    Its WORKING! Thanks a lot!

    Leave a comment:


  • robzky
    replied
    Ill try this One! Thanks a lot SRECNICA!

    Leave a comment:


  • srecnica
    replied
    index.php
    PHP Code:
    else if($action=="last10topic")
    {

      
    addonline(getuid_sid($sid),"<b> Last 10 topic</b>","index.php?action=$action");
        echo 
    "<card id=\"main\" title=\"Last 10 topic\">";


        echo 
    "<timer value=\"300\"/>";
           
    //////ALL LISTS SCRIPT <<

        
    if($page=="" || $page<=0)$page=1;
        
    $num_items regmemcount(); //changable
        
    $items_per_page10;
        
    $num_pages ceil($num_items/$items_per_page);
        if((
    $page>$num_pages)&&$page!=1)$page$num_pages;
        
    $limit_start = ($page-1)*$items_per_page;

        
    //changable sql

            
    $sql "SELECT id, name, lastpost FROM ibwf_topics ORDER BY lastpost DESC
           LIMIT 0 , 10 "
    ;



        echo 
    "<p align=\"center\">";
    echo 
    "<b> Last activ topic:</b><br/><br/>";

        
    $items mysql_query($sql);
        echo 
    mysql_error();
        if(
    mysql_num_rows($items)>0)
        {
        while (
    $item mysql_fetch_array($items))
        {
          
    $lnk "<a href=\"index.php?action=viewtpc&amp;sid=$sid&amp;tid=$item[0]&amp;go=last\">$item[1]</a>";
          echo 
    "$lnk<br/>";
        }
        }
        echo 
    "</p>";
          
    ////// UNTILL HERE >>
        
    echo "<p align=\"center\">";
        
        echo 
    "<img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/> <a href=\"index.php?action=main&amp;sid=$sid\">";
    echo 
    "Home</a>";
      echo 
    "</p>";
        echo 
    "</card>";



    index.php >>> if($action=="main")


    PHP Code:
    echo "<a href=\"index.php?action=last10topic&amp;sid=$sid\">~Activ topic~</a><br/>"
    Last edited by metulj; 11.07.09, 19:43.

    Leave a comment:


  • robzky
    started a topic Latest 10 forum topics

    Latest 10 forum topics

    Can you post the codes and usage code of this script??
    THANKS IN ADVANCE!!
Working...
X