Jump to content

Forum Topic Grabber Thing


shervin2

Recommended Posts

You know on the main site? on the left bar which has all the hot topics in the forum? Where can I download that script, cause the only one i could find was "topics anywhere" and that only worked for phpBB forums, I want one to work with IPB.

Share this post


Link to post
Share on other sites

I'm sure you could find a script that does it on the IBF support forums or google...

 

Though it's really nothing more than a SQL statement grabbing the topics from the DB, and a php loop displaying the information...

 

<?php

/* Some PHP/MySQL stuff to define the query, 
   connect to the DB,
   execute the query, 
   get the info from the DB,
   count the number of records,
   and close the connection. */

 while ($i < $value){     //Where $value = number of records from the DB stuff above

   echo "<A HREF=\"http://forums.overclockersclub.com/?showtopic=".$topicid."\" target=\"_blank\">".$topictitle."</A><BR />";

   $i++
 }
?>

Share this post


Link to post
Share on other sites

I don't know what your looking for... I gave you what you asked for.... :huh:

 

Youl select what you want from your database (i.e. Title, Last post, i, etc.) and you can limit it to 5, or select everything... up to you.

 

After it's selected, you'll run a loop like what was posted.

 

"he made his entire webpage in php and notepad."

So have I.... so has Matt... so have a million other people who do PHP.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...