Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Latest XX posts ona non-vb page Details »»
Latest XX posts ona non-vb page
Version: 1.00, by Black Vivi Black Vivi is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-26-2003 Last Update: Never Installs: 63
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 07-30-2003, 09:42 AM
vB-Host.com's Avatar
vB-Host.com vB-Host.com is offline
 
Join Date: Apr 2003
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #23  
Old 08-11-2003, 02:53 PM
Burgy Burgy is offline
 
Join Date: Aug 2002
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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";

??????????????????
Reply With Quote
  #24  
Old 08-17-2003, 02:32 AM
unit3029 unit3029 is offline
 
Join Date: Dec 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #25  
Old 08-17-2003, 06:23 AM
Black Vivi's Avatar
Black Vivi Black Vivi is offline
 
Join Date: Dec 2002
Location: United Kingdom
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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/
Reply With Quote
  #26  
Old 08-17-2003, 11:32 AM
unit3029 unit3029 is offline
 
Join Date: Dec 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #27  
Old 08-17-2003, 06:49 PM
unit3029 unit3029 is offline
 
Join Date: Dec 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #28  
Old 08-17-2003, 09:53 PM
j0ncc j0ncc is offline
 
Join Date: Apr 2003
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack
Reply With Quote
  #29  
Old 08-28-2003, 06:04 AM
CardMSG CardMSG is offline
 
Join Date: Nov 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:05 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04983 seconds
  • Memory Usage 2,276KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete