and now i've read about this topic of placing the last 5 topics here:
http://www.phpbb.com/community/viewtopi ... 2&t=952855
my only problem is that the links that it can generate are php queries like ...forums/viewtopic.php?f=3455
how can i transform it to links like those of PHPBB SEO? (...forums/FORUM_NAME/TOPIC_TITLE/TILE.html)
here are the codes that i used:
connect.php
- Code: Select all
<?
require_once("forums/config.php");
$connection = mysql_connect('MY_SQL_HOST', $dbuser, $dbpasswd) or die(mysql_error());
mysql_select_db($dbname, $connection) or die(mysql_error());
?>
test.php
- Code: Select all
<?
require_once("connect.php");
$forumQ=mysql_query("SELECT topic_id, forum_id, topic_title, topic_last_post_time FROM phpbb_topics WHERE topic_approved=1 ORDER BY topic_last_post_time DESC LIMIT 10");
while($forumRow = mysql_fetch_row($forumQ)){
$date=date('D M d, Y g:i a', $forumRow[3]);
echo $number."<a href=forums/viewtopic.php?f=".$forumRow[1]."&t=".$forumRow[0].">".$forumRow[2]."</a><br>".$date."<br><br>";
}
?>
if you want to look, here is my url to the test file:
www.itspot.co.cc/testest.php

English |
French



