laatste 5 topics op phpBB forum

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

Marc

marc

05/03/2005 16:10:00
Quote Anchor link
beste php'ers, heeft iemand het php script om zo de laatste geposte topics of actieve topics op mijn phpBB forum te laten zien

alvast bedankt, marc
 
PHP hulp

PHP hulp

14/05/2024 05:06:32
 
Matthijs

Matthijs

05/03/2005 16:40:00
Quote Anchor link
Al gekeken bij de downloads van de maker zelf?
die hebben allerlei soorten add-ons voor phpBB

http://www.phpbb.com/phpBB/catdb.php?db=1
 
Marc

marc

05/03/2005 16:49:00
Quote Anchor link
nouw... daar staan alleen de mods, ik heb het script nodig wat op de homepage van de site komt te staan.
 
Marc

marc

05/03/2005 16:50:00
Quote Anchor link
net als dat op deze site is gedaan, aan je linkerkant ;)
 
Marc

marc

05/03/2005 16:57:00
Quote Anchor link
hebbes! :D naja dan hoeft ut niet meer :P
 
Ales

ales

05/03/2005 18:57:00
Quote Anchor link
waar moet k bij kijken? kan het nie vinden :S en wat is de naam.........
 
Jordi

Jordi

05/03/2005 22:03:00
Quote Anchor link
Zo moeilijk is het toch niet?

Gewoon de laatste vijf topictitels uit de db ophalen middels een SQL-query...
 
Legolas

Legolas

05/03/2005 23:16:00
Quote Anchor link
ik heb zelf zo'n plugin gemaakt voor mambo :)
 
Legolas

Legolas

05/03/2005 23:23:00
Quote Anchor link
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
// PHPBB Latest / Hotest
// Standalone (Legolas)


$posts = "5";
$forum = "1";
$url = "http://www.example.com/forum";

echo("<b>Last Posts</b><br>");

$latestquery = mysql_query("SELECT topic_title, topic_id
FROM phpbb_topics WHERE NOT (topic_status='1') ORDER BY topic_last_post_id DESC LIMIT "
. $posts);
$num = 1;
while ($row = mysql_fetch_array($latestquery)) {
   $topic = substr($row['topic_title'], 0, 20) . "...";
   echo '<b>' . $num . '.</b>&nbsp;<a href="' . $url . '/viewtopic.php?topic=' . $row['topic_id'] . '">' . $topic . '</a><br>';
   $num++;
}


echo("<b>Hot Topics</b><br>");

$hotestquery = mysql_query("SELECT topic_title, topic_id
FROM phpbb_topics WHERE NOT (topic_status='1') ORDER BY topic_replies DESC, topic_last_post_id DESC LIMIT "
. $posts);
$num = 1;
while ($row = mysql_fetch_array($hotestquery)) {
   $topic = substr($row['topic_title'], 0, 20) . "...";
   echo '<b>' . $num . '.</b>&nbsp;<a href="' . $url . '/viewtopic.php?topic=' . $row['topic_id'] . '">' . $topic . '</a><br>';
   $num++;
}
 



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.