View Full Version : Latest XX posts ona non-vb page
Black Vivi
04-26-2003, 10:00 PM
As requested by Highlander (not in a thread ;))
This displays the latest amount of posts (you decide) on a non-vb page.
Everything you need to know is in the actual file.
You can stop showing posts from certain forums and only show posts from certain forums.
Config in the file aswell.
don't forgt to press install (https://vborg.vbsupport.ru/misc.php?s=&action=install&threadid=52235)
Screenshot in next post
Read all the comments in the file!
Note: I know this works on 2.2.8 and 2.3, as I have tested both on my hard drive and online.
If it's easier as an instruction file on how to add it to a page instead of in it's own file, add other stuff, say here, and I'll make it, and make em like that in future.
Black Vivi
04-27-2003, 06:08 PM
screen shot:
rudyfcg
04-27-2003, 07:44 PM
great thnx!!
Koutaru
04-27-2003, 07:49 PM
:) congrats on releasing your first hack @ vb.org
Black Vivi
04-27-2003, 07:56 PM
thanx
don't forgt to press install (https://vborg.vbsupport.ru/misc.php?s=&action=install&threadid=52235) (if u install it) ;)
afterlab
04-27-2003, 08:56 PM
Sorry, but you're only 2 years behind. ;)
https://vborg.vbsupport.ru/showthread.php?s=&threadid=12324
Highlander
04-28-2003, 02:57 AM
ohh many thx vivi .. call me please again in msn / icq i have just another question..to magae some sql thing.. i need professional help *lol*
Black Vivi
04-28-2003, 03:09 PM
Yesterday at 10:56 PM afterlab said this in Post #6 (https://vborg.vbsupport.ru/showthread.php?postid=388145#post388145)
Sorry, but you're only 2 years behind. ;)
https://vborg.vbsupport.ru/showthread.php?s=&threadid=12324
well i searched for it a couple of times, couldn't find anything...
Littlebit
04-28-2003, 08:23 PM
Hi :) this sounds neat...
does this give the ability to add latest posts from a forum-A on a non vB page1 and also latest posts from forum-B on non vB page2?
Black Vivi
04-29-2003, 02:50 PM
Yesterday at 10:23 PM Littlebit said this in Post #9 (https://vborg.vbsupport.ru/showthread.php?postid=388599#post388599)
Hi :) this sounds neat...
does this give the ability to add latest posts from a forum-A on a non vB page1 and also latest posts from forum-B on non vB page2?
yes
Highlander
05-01-2003, 06:54 AM
got a blank output only.. need some help .. to get it run
sample:
http://www.spielplanet2.de/forum/latest_threads_.php
Black Vivi
05-01-2003, 02:22 PM
you need to make a new file and use this in it:
include("latest_threads.php");
then where you want it to appear, add this:
echo($latestthread);
or at the bottom of file add the second php code in the above.
Highlander
05-02-2003, 05:55 PM
ahh okay :) thx.. i see :)
sonic3d
05-02-2003, 07:55 PM
ok it didn't work for me. echo($latestthread); and include("latest_threads.php"); just show up and thats it.
its a index.php file, so it should work.
l8er
sonic
Black Vivi
05-02-2003, 09:16 PM
can u pm me your index.php file, ill see if i can find out why...
umm...its not showing anything. i have the include part and the echo part its on an index.php...
www.ugfederation.com/index.php
*edit*
i found my error. i still had the "" around the echo part. works great now, thanks for the cool hack :D
Littlebit
05-19-2003, 06:28 AM
Hi, another quick question. my main page is php....but if I wanted to have a threads list feed to an html file as well...would it be possible?
Ryan Ashbrook
05-29-2003, 09:10 PM
05-19-03 at 08:28 AM Littlebit said this in Post #18 (https://vborg.vbsupport.ru/showthread.php?postid=397052#post397052)
Hi, another quick question. my main page is php....but if I wanted to have a threads list feed to an html file as well...would it be possible?
Nope, it would have to be PHP as well.
sweet hack.
/me Whacks the install Button
vB-Host.com
07-30-2003, 09:42 AM
Can you tell me how to do this to get forum home to look like this? http://www.elitetrader.com/vb/ it list all your forums and last 5 threads
Burgy
08-11-2003, 02:53 PM
i get the error
Fatal error: Cannot instantiate non-existent class: db_sql_vb in /is/htdocs/26894/www.tanzgemein.de/v2/latest_threads.php on line 35
whats wrong?
in my latest_threads.php there is:
$dbclassname = $bburl."/admin/db_mysql.php";
??????????????????
unit3029
08-17-2003, 02:32 AM
help please
where have i gone wrong
Warning: main(http://www.deadly-forces.com/Forum/admin/db_.php): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/deadly-f/public_html/mainnews/latest_threads.php on line 33
Fatal error: main(): Failed opening required 'http://www.deadly-forces.com/Forum/admin/db_.php' (include_path='') in /home/deadly-f/public_html/mainnews/latest_threads.php on line 33
its all gone pete tong
attached is ure file with my changes incase ive gone wrong somewhere.
Please help
Black Vivi
08-17-2003, 06:23 AM
it will only work if you're using the hack on the same server, so you'd have to use this hack on http://www.deadly-forces.com/
unit3029
08-17-2003, 11:32 AM
the page i want it displayed on is in a folder called mainnews, the page itself is called index.php
your hack latest_threads.php resides in the same folder, all are on the same server http://www.deadly-forces.com/
yes i still get the same errors as above.
If i look in my forum/admin/ folder i see the db_ file named db_mysql.php so it seems its not finding the classname, sorry i dont know much in the way of php.
I am running another hack on the same page , would this interfere with your hack? or is there another problem that needs to be addressed. your help much appreciated.
unit3029
08-17-2003, 06:49 PM
due to the above not working i asked about a bit n changed some of the code.
found this
$dbservertype = strtolower($dbservertype);
$dbclassname = $bburl."/admin/db_$dbservertype.php";
require($dbclassname);
$DB_site=new DB_Sql_vb;
and replaced wiv this
include($bburl."/admin/db_mysql.php");
$DB_site = new DB_Sql_vb();
now i get this error
Fatal error: Cannot instantiate non-existent class: db_sql_vb in /home/deadly-f/public_html/mainnews/latest_threads.php on line 33
I'll try anything just to get it to work help please please please please help me
reply here or
msn messenger me unit3029@hotmail.com if u can help
j0ncc
08-17-2003, 09:53 PM
nice hack :)
CardMSG
08-28-2003, 06:04 AM
I would like to display the last 5 posts for 1 forum on my home page, then below that, show the last 5 posts for all the forums except the 1 listed on top. Is this possible? If so, how?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.