vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Latest XX posts ona non-vb page (https://vborg.vbsupport.ru/showthread.php?t=52235)

Black Vivi 04-26-2003 10:00 PM

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.

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 (if u install it) ;)

afterlab 04-27-2003 08:56 PM

Sorry, but you're only 2 years behind. ;)

https://vborg.vbsupport.ru/showthrea...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

Quote:

Yesterday at 10:56 PM afterlab said this in Post #6
Sorry, but you're only 2 years behind. ;)

https://vborg.vbsupport.ru/showthrea...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?

RDX1 04-29-2003 05:45 AM

Yeah, i perfer tube's

Black Vivi 04-29-2003 02:50 PM

Quote:

Yesterday at 10:23 PM Littlebit said this in Post #9
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:
PHP Code:

include("latest_threads.php"); 

then where you want it to appear, add this:
PHP Code:

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...

mx3 05-13-2003 02:15 AM

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

Quote:

05-19-03 at 08:28 AM Littlebit said this in Post #18
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.

chad 07-21-2003 04:32 AM

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?


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
  • Page Generation 0.01136 seconds
  • Memory Usage 1,774KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (28)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete