1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

VBulletin Integration Problem

Discussion in 'Content Management' started by Nima, Jun 12, 2008.

  1. #1
    I'm trying to post the latest 5 threads in my VBulletin forum (located in /shisha-forum/ directory) on the Index.php of the root directory.

    I'm trying to use VBExternal Mod, but having some problems.

    I have loaded the codes on a test page in the following URL:
    
    http://www.hookahlounge.net/test.php
    
    Code (markup):

    I am getting this error message:
    
    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
    
    Code (markup):

    but it's not working, can anyone help me out ?

    Thanks
     
    Nima, Jun 12, 2008 IP
  2. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    405
    Best Answers:
    21
    Trophy Points:
    295
    #2
    What does line 67 of that file say. It looks like you simply have a wrong path somewhere. Its not finding the file its looking for to actually pull the posts.

    Nigel
     
    Nigel Lew, Jun 12, 2008 IP
  3. Nima

    Nima Well-Known Member

    Messages:
    3,489
    Likes Received:
    243
    Best Answers:
    0
    Trophy Points:
    175
    #3
    i know, there has to be a path problem here:

    
    <?php
    chdir('./shisha-forum');
    require_once('./vBExternal.php');
    ?>
    
    Code (markup):

    on the
    
    require_once('./vBExternal.php');
    
    Code (markup):
    Should I be doing anything different? VBExternal.php is in the /shisha-forum/ directory.
     
    Nima, Jun 12, 2008 IP
  4. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    405
    Best Answers:
    21
    Trophy Points:
    295
    #4
    try ('../vBExternal.php'); not exactly sure I would have to poke around your ftp a sec to be sure. Someone in the programming forum could likely help you quicker without having to go into your server and check the paths.
    Nigel
     
    Nigel Lew, Jun 12, 2008 IP
  5. Nima

    Nima Well-Known Member

    Messages:
    3,489
    Likes Received:
    243
    Best Answers:
    0
    Trophy Points:
    175
    #5
    i dont think ('../vBExternal.php') would work. because the page is in the root directory (/index.php) but the forum is in /shisha-forum/index.php).


    and the VBExternal.php file is located in the root folder
     
    Nima, Jun 12, 2008 IP
  6. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    405
    Best Answers:
    21
    Trophy Points:
    295
    #6
    I would have to crawl in there and look. You likely get a quick answer in programming or the site admin forum. I would post it there. Its a simple issue.

    Nigel
     
    Nigel Lew, Jun 12, 2008 IP
  7. Nima

    Nima Well-Known Member

    Messages:
    3,489
    Likes Received:
    243
    Best Answers:
    0
    Trophy Points:
    175
    #7
    thanks, i will post it there.
     
    Nima, Jun 12, 2008 IP