Jump to content
WebFlake
  • 0

Show forum stats on another page


Courage

Question

Hi webflakers.

 

I have my forum on domain.com/forum and a simple index.html page on domain.com

 

How can I add to index.html the forum stats? (total members , posts, etc)

 

In other words, I would like to show stuff from globalTemplate or boardIndexTemplate on another page.

Edited by Courage
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

uportal, ip.portal and ip.content could all recreate that.

 

In the older versions of ipbwilki it could easily interface the IPB forums and get the data for you. So you could take some time and try that.

 

Otherwise you would have to write a php that would interface with IPB and call the stats function.

Link to comment
Share on other sites

  • 0

You can always import tables etc.. using PHP and then use a code something like this to display the results:

 

<?php while($row = mysql_fetch_array($result)) { ?>
                    
                        <li>
                            <a href="/forums/index.php?showtopic=<?= $row["tid"] ?>" title="<?= $row["title"] ?>"><?= $row["title"] ?></a>
                            
                            <?php
                            
                                $indexed = $row["last_post"];
                                $realtime = strftime("%e %b", $indexed);                             
                            
                            ?>
                            
                            <date>Last post by <?= $row["last_poster_name"] ?> at <?= $realtime ?></date>
                        </li>
                    
                    <?php } ?>
  • Upvote 1

Achievements:

February 14 2013 - Joined WebFlake & Became Moderator.
March 26 2013 - Became a Dad of 1 kid.
April 8 2015 - Became a Dad of 2 kids.
July 15 2015 - Retired as a Moderator.
November 11 2016 - Passed my Car Driving Licence.
April 13 2017 - Became apart of the Junior Moderator Team.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...