Latest 10 forum topics

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

    Latest 10 forum topics

    Can you post the codes and usage code of this script??
    THANKS IN ADVANCE!!
    LESS TALK. LESS MISTAKE.

    HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

    #2
    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.
    sigpichttp://happy.srecnica.com/web

    Comment


      #3
      Ill try this One! Thanks a lot SRECNICA!
      LESS TALK. LESS MISTAKE.

      HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

      Comment


        #4
        Its WORKING! Thanks a lot!
        LESS TALK. LESS MISTAKE.

        HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

        Comment


          #5
          you are welcome
          sigpichttp://happy.srecnica.com/web

          Comment


            #6
            why there is
            PHP Code:
            echo "<timer value=\"300\"/>"
            ?
            Nous Ne Dansos Pas, Nous Sommes Le Danse.!

            Comment


              #7
              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
              LDSWAPWORLD sigpic
              site closed.
              im busy with other things in life like facebook , send me PM so i can add you
              www.pinoySG.com

              don't ask for help if you're not even helping yourself!
              i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.


              Comment


                #8
                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?
                Nous Ne Dansos Pas, Nous Sommes Le Danse.!

                Comment


                  #9
                  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.

                  Comment


                    #10
                    any one have the coding with who post the last post on that pati topics list


                    ....................................
                    http://photomag.lk/
                    ....................................

                    Comment


                      #11
                      anywhere in the index.php file in the action = main
                      echo "<a href=\"index.php?action=last10topic&amp;sid=$sid\" >~Activ topic~</a><br/>";
                      sigpichttp://happy.srecnica.com/web

                      Comment


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

                        limit 2 ??
                        Nous Ne Dansos Pas, Nous Sommes Le Danse.!

                        Comment

                        Working...
                        X