vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBExternal v1.6 (https://vborg.vbsupport.ru/showthread.php?t=83005)

Webs007 03-23-2006 09:13 AM

Ok.....

I'v got it now to work! WAhoooooo !!:banana: "Banana Dance"

This may not be a bit complicated - but someone super smart may know this...

How would i make it show the thread itself i.e the text (news story) - and have it truncated (cut off) after 200 words?

So we would have:

Title
Story (only show 200 words)
Posted by

Can anyone help me out here?

Webs

webgeek247 03-24-2006 07:09 AM

I tried using it on my homepage but got the error

Quote:

Warning: chdir(): No such file or directory (errno 2) in /home/fhlinux190/c/christopher-powell.co.uk/user/htdocs/index.php on line 2

Warning: main(./home/fhlinux190/c/christopher-powell.co.uk/user/htdocs/forum/vBExternal.php): failed to open stream: No such file or directory in /home/fhlinux190/c/christopher-powell.co.uk/user/htdocs/index.php on line 3

Fatal error: main(): Failed opening required './home/fhlinux190/c/christopher-powell.co.uk/user/htdocs/forum/vBExternal.php' (include_path='.:/usr/share/pear') in /home/fhlinux190/c/christopher-powell.co.uk/user/htdocs/index.php on line 3
Ive gone through this whole thread, is there something i missed? their uploaded?? im using 3.5.4 :confused:

Webs007 03-24-2006 01:44 PM

This works well if the external file - is on the same server as the forum...

What if I wanted to pull the news onto another website - not located on the vb server?

i.e i have www.vbinstallion.org/forum/ and I actually want to pull the headlines so they appear on www.news-site.org ? (these forums are examples not my actual fsites) - how does this work with vBExternal? - is it even possible?

Webs

idwf 03-24-2006 11:51 PM

I've got this to work via many mods and changes posted throughout the 18pages. So good work team! keep it up!

I've got a new sugesstion though. Is is posible to have forum stats? Such as 'total posts, total members, total threads' Maybe in the following format?

Quote:

Total Threads :: 1638
Total Posts :: 35643
Total Members :: 647
Newest Member :: Ashbeard
Any luck?

boduzapho 03-26-2006 04:15 PM

running vb 3.5.4

Installed ok..

following error message:

Warning: main(./includes/db_mysql.php): failed to open stream: No such file or directory in C:\xxxxxxxxxxx\forum\vBExternal.php on line 67

Fatal error: main(): Failed opening required './includes/db_mysql.php' (include_path='.;c:\php4\pear') in C:\xxxxxxxxxx\forum\vBExternal.php on line 67

--------------------------------------------------------------------

it seems the file '/includes/db_mysql.php' is not even in the install of vb 3.5.4 , any suggestions?

**** Note was informed by Jel this hack needs to be upgraded for use with 3.5.4

DrewM 03-26-2006 06:27 PM

Quote:

Originally Posted by boduzapho
running vb 3.5.4

Installed ok..

following error message:

Warning: main(./includes/db_mysql.php): failed to open stream: No such file or directory in C:\xxxxxxxxxxx\forum\vBExternal.php on line 67

Fatal error: main(): Failed opening required './includes/db_mysql.php' (include_path='.;c:\php4\pear') in C:\xxxxxxxxxx\forum\vBExternal.php on line 67

--------------------------------------------------------------------

it seems the file '/includes/db_mysql.php' is not even in the install of vb 3.5.4 , any suggestions?


**** Note was informed by Jel this hack needs to be upgraded for use with 3.5.4

I'm running 3.5.4 and it's fine! Also it vbexternal doesn't even requrie this! Either you've modded it or I would try re-downoading.

boduzapho 03-26-2006 08:26 PM

Quote:

Originally Posted by Larrysw
I'm running 3.5.4 and it's fine! Also it vbexternal doesn't even requrie this! Either you've modded it or I would try re-downoading.

really? Ok can you point me to the appropiate Download link?

In the download in this thread the vbexternal.php file containes this:

----------------------------------------------------------------------------------------

<?php
/*================================================= =====================*\
|| ################################################## ################## ||
|| # vBExternal v1.6 By Zero Tolerance [http://gzevolution.net] ||
|| # This file may not be redistributed, copied in whole or part ||
|| # without written permission. ||
|| # Copyright (C) 2005 Inferno Technologies. ||
|| ################################################## ################## ||
\*================================================ ======================*/

// ---------------------------------------------------
// Start Set PHP Environment
// ---------------------------------------------------

error_reporting(E_ALL & ~E_NOTICE);

// ---------------------------------------------------
// End Set PHP Environment
// ---------------------------------------------------

// ---------------------------------------------------
// Start Define Important Constants
// ---------------------------------------------------

define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'vBExternal');

// ---------------------------------------------------
// End Define Important Constants
// ---------------------------------------------------

// ---------------------------------------------------
// Start Cache Of Any Needed Templates/Phrase's
// ---------------------------------------------------

$phrasegroups = array();

$specialtemplates = array(
'options',
);

$actiontemplates = array();

$globaltemplates = array();

// ---------------------------------------------------
// End Cache Of Any Needed Templates/Phrase's
// ---------------------------------------------------

// ---------------------------------------------------
// Start Call DB & Establish Connection
// ---------------------------------------------------

if(!file_exists('./includes/config.php')){
echo "includes/config.php does not exist. Cannot continue.";
exit;
}

require('./includes/config.php');

define('TABLE_PREFIX', $tableprefix);
define('COOKIE_PREFIX', (empty($cookieprefix)) ? 'bb' : $cookieprefix);
define('DEBUG', 0);
define('DB_EXPLAIN', false);
define('DB_QUERIES', false);

require_once('./includes/db_mysql.php'); <----------- there it is...

----------------------------------------------------------------------------------------

So maybe i need another download link?

DrewM 03-26-2006 09:02 PM

Re-download that I think was 3.0 I just downloaded from this thread and it does not contain that I would try CTRL-F5

boduzapho 03-26-2006 09:03 PM

Quote:

Originally Posted by Larrysw
Re-download that I think was 3.0


I did, that was from the link on this page...

do you know another link?

DrewM 03-26-2006 09:04 PM

I just updated my post try it if it doesn't work I'll PM you the code I have.


All times are GMT. The time now is 12:14 AM.

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.01562 seconds
  • Memory Usage 1,751KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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