![]() |
Last new posts
i want to show the last 20 posts made on the forum on a seperate page does anyone have an idea on how to do this ??
|
I think it will be something like this.
PHP Code:
|
u nearly there m8
i get a Warning: Cannot modify header information - headers already sent by (output started then it shows one new post underneath it |
ok i took out the error reporting bit
and no error now but it only shows one post still |
Try
PHP Code:
|
same m8
no error but only one latest thread/post is showing |
$DB_site->query_first() will only return one result, no matter now may rows you tell it to fetch from the DB. You need to use $DB_site->query() and use $DB_site->fetch_array() in a while loop to get more than one item from the DB.
|
Quote:
It should be this PHP Code:
|
works perfect :)
can i use <smallfont> in a php file to make text a lot smaller ? also thanks to assassingod and NTLDR |
sorry one final question
i knwo u helped enough but the above is fine but it only gets new threads dont it,how can i do the exact same but for posts. |
You can probably use the smallfont tag yes.
As for posts, I'll look into it |
Use this:
PHP Code:
|
cheers assassingod i have suzzed the posts out by ripping it out of another hack :)
i still cant get em to show in me frame in small font - it still shows em as big text even though ive used the <smallfont> command which looks untidy as i have it in an iframe and posts stretch over to 2 lines |
The code I posted above works perfectly for new posts;)
If smallfont doesnt work, youll have to use Code:
<font size=\"2\"><a href=\"$bburl\showthread.php?s=$session[sessionhash]&threadid=$latestthreads[threadid]\">$latestthreads[title]</a></font> |
All times are GMT. The time now is 03:53 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|