![]() |
Latest XX posts ona non-vb page
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 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. |
screen shot:
|
great thnx!!
|
:) congrats on releasing your first hack @ vb.org
|
|
|
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*
|
Quote:
|
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? |
Yeah, i perfer tube's
|
Quote:
|
got a blank output only.. need some help .. to get it run
sample: http://www.spielplanet2.de/forum/latest_threads_.php |
you need to make a new file and use this in it:
PHP Code:
PHP Code:
|
ahh okay :) thx.. i see :)
|
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 |
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 |
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?
|
Quote:
Nope, it would have to be PHP as well. |
sweet hack.
/me Whacks the install Button |
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
|
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"; ?????????????????? |
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 |
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/
|
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. |
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 |
nice hack :)
|
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?
|
All times are GMT. The time now is 04:46 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:
|