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)

gael11 10-20-2005 08:29 AM

Oooops great it works now. Thanks welo

VaaKo 10-20-2005 09:27 AM

I just have one question, can we like post information from our forums on another website?
my forum is www.lebforces.org/forum and I wanna poste some info on www.lebanese-forces.com
is it posssible?

welo 10-20-2005 01:34 PM

Quote:

Originally Posted by Don Corleone
I just have one question, can we like post information from our forums on another website?
my forum is www.lebforces.org/forum and I wanna poste some info on www.lebanese-forces.com
is it posssible?

If both sites are on the same server you can do this by using the full path in your chdir and require_once statements:

Code:

chdir('/home/username/public_html/forums');
require_once('/home/username/public_html/forums/vBExternal.php');

This is also the workaround if your forum occupies a subdomain on a separate server account.

jugo 10-22-2005 04:45 AM

Quote:

Originally Posted by Simms
Has anybody has any luck getting images to appear properly? That's the only thing still tripping me up.


Change this line (towards the end of the file):

Code:

        $Data = str_replace('images/',"{$vbulletin->options[bburl]}/images/",$Data);
to

Code:

//        $Data = str_replace('images/',"{$vbulletin->options[bburl]}/images/",$Data);
PS if anyone is interested I have this working with DeanC's "DC SEO Plugin" https://vborg.vbsupport.ru/showthread.php?t=91324

See my WIP here http://www.ejuan.com/index2.php

Let e know and i'll do a write up.

Xtrm2Matt 10-22-2005 10:17 AM

Great plugin. The news script my friend wrote no longer works with 3.5.0 but this works fantastically.

One problem though. A script I made to just display basic user info (such as username via $vbulletin->userinfo[xxx]) no longer works. I can include one of the needed files (/includes/functions_user.php), but once global.php is included, everything breaks giving this error:
Fatal error: Cannot redeclare class vbulletinhook in C:\dir\to\forums\class_hook.php on line 29

I believe Kru (hi Kru :p) also had a problem with this a few pages back where the "Login on a Non-VB page" required global.php to be included also and gave the same error.

Any ideas how I can fix this? :)

---
Also, the images/smileys showed perfect for me without needing to edit anything :)
---

Ta,

Matt

jugo 10-22-2005 12:09 PM

Comment out the following two lines:

Code:

$vbulletin =& new vB_Registry(); // Fake an OOP Object
and

Code:

class vBulletinHook { function fetch_hook() { return false; } }


Quote:

Originally Posted by Xtrm2Matt
Great plugin. The news script my friend wrote no longer works with 3.5.0 but this works fantastically.

One problem though. A script I made to just display basic user info (such as username via $vbulletin->userinfo[xxx]) no longer works. I can include one of the needed files (/includes/functions_user.php), but once global.php is included, everything breaks giving this error:
Fatal error: Cannot redeclare class vbulletinhook in C:\dir\to\forums\class_hook.php on line 29

I believe Kru (hi Kru :p) also had a problem with this a few pages back where the "Login on a Non-VB page" required global.php to be included also and gave the same error.

Any ideas how I can fix this? :)

---
Also, the images/smileys showed perfect for me without needing to edit anything :)
---

Ta,

Matt


Xtrm2Matt 10-22-2005 12:19 PM

Quote:

Originally Posted by jugo
Comment out the following two lines:

Code:

$vbulletin =& new vB_Registry(); // Fake an OOP Object
and

Code:

class vBulletinHook { function fetch_hook() { return false; } }

Gives an error when I do this:
Fatal error: vB_Database::Registry object is not an object in C:\dir\to\forums\includes\class_core.php on line 203

Matt

VaaKo 10-22-2005 09:58 PM

Quote:

Originally Posted by welo
If both sites are on the same server you can do this by using the full path in your chdir and require_once statements:

Code:

chdir('/home/username/public_html/forums');
require_once('/home/username/public_html/forums/vBExternal.php');

This is also the workaround if your forum occupies a subdomain on a separate server account.

no, both sites are not on the same server!
would it work if I insert the full url not the path, or what?

jugo 10-22-2005 10:18 PM

Quote:

Originally Posted by Xtrm2Matt
Gives an error when I do this:
Fatal error: vB_Database::Registry object is not an object in C:\dir\to\forums\includes\class_core.php on line 203

Matt


make sure you have global.php included or else it will not work.

Xtrm2Matt 10-22-2005 11:27 PM

Quote:

Originally Posted by jugo
make sure you have global.php included or else it will not work.

Global.php is included.

Matt


All times are GMT. The time now is 02:56 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.01405 seconds
  • Memory Usage 1,750KB
  • 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
  • (8)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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