![]() |
Last X Threads From A Particular Forum On Non-VB Page
Hi everyone,
By request, I have released this script which will display the last X number of thread titles from a specified forum. It will only show the thread starter so the thread doesn't look like it was started from a commenter or visitor. Well, pictures are worth a thousand words so here's a screenshot: https://vborg.vbsupport.ru/ -------------------------------------------------------------------------------------------- Instructions: 1) Download the script (of course). 2) Change the settings in the script. 3) Use include("/path/to/lastthreads3.php"); in your PHP page. That's it! Enjoy. |
I requested this... brilliant work, and so fast! Thank you.
|
Can we also set it to all forums? Is it possible to limit the amount of characters?
Thanks. |
Ignore that last post...
|
Great hack man, this is outstanding!
|
Wow, I'll test this later...
|
i have tried to set this one up with the multiple sub-domains, just like the lastposts3, but for some reason, i just can't get it to work.
|
mmmmm I 'll try it
|
What about setting this up to display posts only from a certain category, or allowing multiple forums?
This is great by the way! ;) I was looking for something like this last night! |
nice work! thx a lot!
|
How does this differ from using external.php?
|
I would also be interested in pulling posts from various forums. Is there a way that one page could pull posts from forum X, and different page could pull posts from forum Y?
|
managed to get it working.
thanks for the hack. |
exactly what I need...thanks a mil.
|
$forum_id = "9"; // If you wish to display the posts from a specific forum, enter the forum id here. Otherwise, leave it blank
I left it blank but I get an error. Hows this? |
Me too:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/barnemix/public_html/lastthreads3.php on line 41 |
Is the other guy copying you with lastposts3, or what?
|
Could somebody clarify.... what are the advantages to using this method over external.php? :o
|
please could someone post of a slight modification of this hack so that it can display threads from multiple forums
|
There Is A Errorrrrrrrrr Dear :(
|
Quote:
Actually I have in my test index2.php it working but I only see the last 10 of a particular subforum (number9) NOT ALL THE MESAGES IN general. I don't understand This is a bug or no? Any idea? Regards: Palosanto :ermm: |
Where did you used the "tid" after all? this could be the problem of the hack.
See Ya |
Quote:
Code:
$tsql = mysql_query("SELECT threadid,title,lastpost,postusername FROM thread WHERE forumid=$forum_id ORDER BY threadid DESC LIMIT $limit"); |
I receive only an blank screen, no errors: http://www.fragpoint.de/lastthreads3.php
Why? Plz help. I have changed this: Code:
$tsql = mysql_query("SELECT threadid,title,lastpost,postusername FROM thread WHERE forumid=$forum_id ORDER BY threadid DESC LIMIT $limit"); Code:
$tsql = mysql_query("SELECT threadid,title,lastpost,postusername FROM vb3_thread WHERE forumid=$forum_id ORDER BY threadid DESC LIMIT $limit"); and i have changed this: Code:
$psql = mysql_query("SELECT postid FROM post WHERE threadid=$tid ORDER BY postid ASC"); Code:
$psql = mysql_query("SELECT postid FROM vb3_post WHERE threadid=$tid ORDER BY postid ASC"); |
|
Quote:
|
how can this hack be in the realeased forum when it doesn't work?
|
Quote:
anyone know how to fix this error |
Also this error, but i try it on version 3.0.3
So who knows the solution for this problem??? |
doesn't work for me. shows the wrong time. my server is in pacific time and the forum is offset to +8. the hack always follow the server time.
|
Nothing but a blank page :\
|
The Author(s) agreed to give support for this modification!
I haven't seen anything from the author in here since the first post 5 months ago. I'm looking for a way to display more than one forums as well. |
Anyone solved the problem?
|
Quote:
|
what version of vB3 does it work on and which versions does it not work on
im using vB3.0.3 and it dont work what version are u guys using that its working on? |
well looky there...
at: PHP Code:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/xxx/public_html/lastthreads3.php on line 41 if i just enter in 1 forum id it works great this is fior both the scripts the author made lastposts3.php and lastthreads3.php |
Can someone update this so that it will show multiple forums and not just one?
I know you can use external.php to do the same thing, but it's much more convenient to use this script and it's easier to customize the colors and look. I'm using it now and like it, but would prefer it if I could show threads from several different forums. |
can you just double up the row?
PHP Code:
|
Quote:
Nope it picks the last number... I dont think you can use more then one forum on this script... Its a wonderful script but thats the problem... |
Easy - find the following code:
Code:
if ($forum_id) { Code:
if ($forum_id) { Code:
$forum_id2 = "FORUM YOU WANT POSTS FROM"; Craig |
All times are GMT. The time now is 04:43 PM. |
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:
|