vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Show Latest Threads Outside VBulletin (https://vborg.vbsupport.ru/showthread.php?t=182234)

nima6 06-12-2008 01:06 AM

Show Latest Threads Outside VBulletin
 
is there a way to show the latest 5 VBulettin Threads outside the VB? Ex, on the website's homepage (assuming forum is in /forum/ folder)

ssslippy 06-12-2008 01:50 AM

Inferno external will do this for u.

sR Craig 06-12-2008 02:11 AM

Quote:

Originally Posted by nima6 (Post 1547185)
is there a way to show the latest 5 VBulettin Threads outside the VB? Ex, on the website's homepage (assuming forum is in /forum/ folder)

PHP & MySQL will do the trick...

Something like this for the SQL:
Code:

SELECT threadid, title FROM TABLE-PREFIX_thread WHERE `visible`=1 ORDER BY threadid DESC LIMIT 10
Notes:
  • TABLE-PREFIX_ = the table prefix you use on your forums, if any...
  • Never do something like SELECT * FROM if you dont need everything from that row...
  • Use visible=1 to show only threads which have not been deleted...
  • Change the 10 in LIMIT 10 to change the number of rows selected...

The rest which would be in PHP should en easy enough...

nima6 06-12-2008 02:26 AM

I found VBExternal, but im trying to figure out why im getting the error that i am getting

Dismounted 06-12-2008 05:58 AM

What's the error?

@sR Craig: Your SQL will not take into account permissions - so it will show threads from private forums as well.

nima6 06-12-2008 02:42 PM

Im getting this error:
Quote:


Warning: main(./includes/db_mysql.php) [function.main]: failed to open stream: No such file or directory in /home/nima/public_html/hookahlounge/shisha-forum/vBExternal.php on line 67

Fatal error: main() [function.require]: Failed opening required './includes/db_mysql.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nima/public_html/hookahlounge/shisha-forum/vBExternal.php on line 67

Opserty 06-12-2008 02:55 PM

<a href="http://www.vbulletin.com/forum/showthread.php?t=158895" target="_blank">HowTo Display Latest Active Threads on ANY normal HTML page</a>

nima6 06-12-2008 03:55 PM

i saw that, but VBExternal seems better and easier. I'm tyring to integrate that, but having troubles with it

Dismounted 06-13-2008 10:14 AM

Your error indicates that some required file do not exist. Please post in the specific modification thread for help with that modification.

nima6 06-13-2008 09:33 PM

i did but didnt receive any help


All times are GMT. The time now is 05:02 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.01138 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete