Announcement

Collapse
No announcement yet.

Last 10 threads in a different page.

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

  • Ugur Cetin
    replied
    if that's possible, anyone please write me the code for last 10 topics for the forum which i selected. i think this mustn't be long as up..

    Leave a comment:


  • freehtml
    replied
    How do we display this on a php file?

    For my case I am trying to display the post from one of my anniucement forums at

    http://www.myvdh.com/news2.php

    While I had enabled all JS, XML as well as RSS feed.

    What should be the code to use?

    I tired using the following :

    Code:
    <script type="text/javascript" src="http://forums.myvdh.com/external.php?type=js"></script> <script type="text/javascript"> <!-- for (var i = 0; i < threads.length; i++) { document.write('<a href="http://fprums.myvdh.com/showthread.php?t=' + threads[i]['threadid'] + '">' + threads[i]['title'] + '</a> <em>Posted on: ' + threads[i]['threaddate'] + ' by ' + threads[i]['threadtime'] + '</em><br />'); } //--> </script>
    However it does not seems to display the threads or post.

    My coding for news2.php is :
    Code:
     <html>
     <head>
     <title>::My Venture Domain Hosting - Your One Stop Venture Domain Hosting Support Hub::</title>
     
     <link rel="stylesheet" href="style.css">
     <script language="javascript" type="text/javascript" src="script_myvdh.js"></script>
     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
     
     <body bgcolor="#ffffff" topmargin="0" leftmargin="0" marginwidth="0" maginheight="0">
     <table border="0" cellspacing="0" cellpadding="0" align="center" width="770">
     <tr>
     <td valign="top" width="770">
     <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="770" height="86">
     	<param name="movie" value="topbanner.swf">
     	<param name="quality" value="high">
     <embed src="topbanner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="770" height="86"></embed>
       </object></td>
     </tr>
     <tr><td width="1" background="images/border.gif"><img src="images/border.gif" border="0"></td></tr>
     </table>
     
     <table border="0" cellspacing="0" cellpadding="0" align="center" width="770">
     
     <tr>
     <td width="179" valign="top" background="images/menuback.gif" align="center"><br><br><A href="index.php" 
     			onmouseout="onoff('link1','off')" 
     		 onmouseover="onoff('link1','over')"><img src="images/home_off.gif" border="0" name="link1" alt="Home"></a><br><img src="images/menuback.gif" border="0"><br> <A href="news.php" onmouseout="onoff('link5','off')" onmouseover="onoff('link5','over')"><img src="images/news_off.gif" border="0" name="link5" alt="News"></a><br>
     <img src="images/menuback.gif" border="0"><br><A href="http://client.myvdh.com" 
     			onmouseout="onoff('link2','off')" 
     		 onmouseover="onoff('link2','over')"><img src="images/am_off.gif" border="0" name="link2" alt="My Account Manager"></a><br><img src="images/menuback.gif" border="0"><br><A href="http://forums.myvdh.com" 
     			onmouseout="onoff('link3','off')" 
     		 onmouseover="onoff('link3','over')"><img src="images/forums_off.gif" border="0" name="link3" alt="Community"></a><br><img src="images/menuback.gif" border="0"><br><A href="http://helpdesk.myvdh.com" 
     			onmouseout="onoff('link4','off')" 
     		 onmouseover="onoff('link4','over')"><img src="images/helpdesk_off.gif" border="0" name="link4" alt="Helpdesk"></a><br><br>
     		<!-- Powered by: Crafty Syntax Live Help	 http://www.craftysyntax.com/ -->
     <script type="text/javascript" src="http://vdomainhost.com.sg/livechat/livehelp_js.php?department=1&amp;pingtimes=30"></script>
     <!-- copyright 2003 - 2005 by Eric Gerdes --></td>
     
     <td width="20" bgcolor="#ffffff">&nbsp;</td>
     
     
     <td valign="top" bgcolor="#ffffff" width="571">
     <br>
     <span class="header1">News</span>
     <p class="bodytext">
     19 Apr 2005 - Launch of new "Fantastico De Luxe", one click auto-installer for many popular scripts.
     <br><br>
     18 Apr 2005 - Launch of new wed design for our <a href="http://www.vdomainhost.com.sg" target="_blank">corporate web site</a>.
     <br><br>
     1 Apr 2005 - Launch of MyVDH.
     <BR>
     <BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
     
     <script type="text/javascript" src="http://forums.myvdh.com/external.php?type=js"></script> <script type="text/javascript"> <!-- for (var i = 0; i < threads.length; i++) { document.write('<a href="http://fprums.myvdh.com/showthread.php?t=' + threads[i]['threadid'] + '">' + threads[i]['title'] + '</a> <em>Posted on: ' + threads[i]['threaddate'] + ' by ' + threads[i]['threadtime'] + '</em><br />'); } //--> </script> 
     
     </td>
     
     <td width="9" bgcolor="#ffffff"></td>
     
     <td width="1" background="images/border.gif"><img src="images/border.gif" border="0"></td>
     </tr>
     
     
     </table>
     
     <table border="0" cellspacing="0" cellpadding="0" width="770" align="center">
     
     <tr>
     <td width="770" height="11" align="center" bgcolor="#485568"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><font color="#FFFFFF"><a href="http://www.vdomainhost.com.sg">Venture Domain Hosting</a> &copy; 2002-2005</font></font></td>
     </tr>
     </table>
     </body>
     </html>

    Leave a comment:


  • Jake Bunce
    replied
    You can use a RSS feed. This thread has some links.

    Leave a comment:


  • Ugur Cetin
    started a topic Last 10 threads in a different page.

    Last 10 threads in a different page.

    My forum is visible for guests and i want to make a php file, only shows last 10 topic, starter and date about a forum.(like last 10 topics at thread vBulletin 3.0 'How Do I' Questions)


    is there any way to do this?
Loading...
Working...
X