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)

erinys 03-29-2007 06:07 AM

I cant get this to work at all, not with filling out the dbase instructions or whatever

I'ts either a blank page or a dbase error, not going to bother anymore ;(

Zizou_SCD 03-29-2007 10:18 AM

I just can't get this to work.

I have uploaded the folder and the file in my forums root.

Then on the web page I want to use these templates I have this code:
Code:

</head>

<body>
<?php
chdir('http://soniccagedome.com/forums');
require_once('./vBExternal.php');
?>
<table bord....

....<td class="bodymiddle" style="height:408px;"><?php
output_NewestMembers(5);
?></td>....

And I am getting this error:
Code:

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/soniccag/public_html/dev7/site/index.php on line 157

Warning: main(./vBExternal.php) [function.main]: failed to open stream: No such file or directory in /home/soniccag/public_html/dev7/site/index.php on line 158

Fatal error: main() [function.require]: Failed opening required './vBExternal.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/soniccag/public_html/dev7/site/index.php on line 158

This error can be seen @:
http://www.soniccagedome.com/dev7/site/

Can anyone tell me where I am going wrong?

BTW I am using vB Version 3.6.4.

jeramie78 03-30-2007 03:36 AM

PHP Code:

<?php
chdir
('http://soniccagedome.com/forums');
require_once(
'./vBExternal.php');
?>

to

PHP Code:

<?php
chdir
('/path/to/your/forums');
require_once(
'./vBExternal.php');
?>

change "/path/to/your/forums/" to whatever is the path to your forums not the URL to your forums

Zizou_SCD 03-30-2007 09:29 AM

Quote:

Originally Posted by jeramie78 (Post 1215852)
change "/path/to/your/forums/" to whatever is the path to your forums not the URL to your forums

This seems to have worked, however, there is a new problem:

http://www.soniccagedome.com/dev7/site/

It just says 'Database Error', doesn't tell me what it is. Do you think it is because of the forums version difference?

mertron 03-30-2007 05:33 PM

Quote:

Originally Posted by Zizou_SCD (Post 1215975)
This seems to have worked, however, there is a new problem:

http://www.soniccagedome.com/dev7/site/

It just says 'Database Error', doesn't tell me what it is. Do you think it is because of the forums version difference?


Running fine in 3.6.5
Open vBExternal.php
find line 96
Just replaced:

$db->connect(
$config['Database']['dbname'],
$config['MasterServer']['servername'],
$config['MasterServer']['username'],
$config['MasterServer']['password'],
$config['MasterServer']['usepconnect'],
$config['SlaveServer']['servername'],
$config['SlaveServer']['username'],
$config['SlaveServer']['password'],
$config['SlaveServer']['usepconnect'],
$config['Mysqli']['ini_file']
);

with

$db->connect(
$config['Database']['dbname'],
$config['MasterServer']['servername'],
$config['MasterServer']['usepconnect'],
$config['MasterServer']['username'],
$config['MasterServer']['password'],
$config['SlaveServer']['servername'],
$config['SlaveServer']['usepconnect'],
$config['SlaveServer']['username'],
$config['SlaveServer']['password'],
$config['Mysqli']['ini_file']
);

Lord Kirken Mor 03-31-2007 12:05 AM

Can I Export Forum Stats wit this?

Zizou_SCD 03-31-2007 10:07 AM

Quote:

Originally Posted by mertron (Post 1216274)
Running fine in 3.6.5
Open vBExternal.php
find line 96
Just replaced:

Nice one. Works a dream!

Now, I want to limit a thread title to a certain amount of characters. Can anyone help me out with this?

Also, how about adding the total users online stat and amount of guests online stat to the users online function

upnorth 04-02-2007 07:56 PM

Anyone able to help me with this. Seems like it would be an easy fix....just can't get my head around what I need to do to make this happen though. :(

Quote:

Originally Posted by upnorth (Post 1188524)
Anyone have any ideas how to filter out posts that need to be moderated?


Lord Kirken Mor 04-02-2007 10:10 PM

It was just the template i was using. but now a few includes are scrambled randomly around the page.

Zizou_SCD 04-04-2007 12:52 AM

Has anyone written a piece of code that will limit the length of a result? E.G. Cut the length of a topic title from 50 to 20 characters:

HOT NEWS COMI....


Like that.


All times are GMT. The time now is 04:48 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.01817 seconds
  • Memory Usage 1,746KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)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