vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Gallery 2.1 and vBulletin 3.5.X integration (https://vborg.vbsupport.ru/showthread.php?t=111931)

tuanluu 04-03-2006 07:01 AM

thanks it work great!

Brent H 04-03-2006 09:04 AM

No problem :) I had a tough time getting this to work because it was so spread out, and primarily had to do with the older versions... A huge thanks goes to johnmont for helping me through it and for providing his excellent coding.

albertsch9 04-03-2006 03:46 PM

Can someone help me?
The gallery2.php gives me only a white Page.

kompakt 04-03-2006 06:06 PM

Thanks a lot for the update. I will be upgrading to 2.1 soon...

SilVert 04-03-2006 06:41 PM

Quote:

Originally Posted by Brent H
No problem :) I had a tough time getting this to work because it was so spread out, and primarily had to do with the older versions... A huge thanks goes to johnmont for helping me through it and for providing his excellent coding.

yea, it was kinda a pain since the old thread died off with support. but alas, we got it to work :) and now that somebody who knows PHP(Johnmount) is on this again, it might go places :)

Quote:

Originally Posted by albertsch9
Can someone help me?
The gallery2.php gives me only a white Page.

you need to edit the gallery2.php(or whatever the name) files referance to the VBB template name.

did that make sence? ;)

you created a VBB template called "X"(most likley Gallery). now you need to go into yout gallery2.php file and edit the referances that say "Y"(most likley Gallery2 if you copied Brent's code ) to say "X".. that better ;)

albertsch9 04-03-2006 06:47 PM

Quote:

Originally Posted by SilVert



you need to edit the gallery2.php(or whatever the name) files referance to the VBB template name.

did that make sence? ;)

you created a VBB template called "X"(most likley Gallery). now you need to go into yout gallery2.php file and edit the referances that say "Y"(most likley Gallery2 if you copied Brent's code ) to say "X".. that better ;)

I created a template named gallery2 the gallery2.php calls the template gallery2 and it dosent work:confused:

SilVert 04-03-2006 06:49 PM

Quote:

Originally Posted by albertsch9
I created a template named gallery2 the gallery2.php calls the template gallery2 and it dosent work:confused:

does it output just a white screen, or does it put your style with no content?

i had this problem, and resolved it. i am trying to remember how i fixed it

Brad 04-03-2006 11:37 PM

Quote:

Originally Posted by Brent H
I tried messing around with a directory structure like that a while back. You'd have to make sure that every reference to an external vBulletin file like
PHP Code:

require_once('./global.php'); 

was changed to something like
PHP Code:

require_once('../home/global.php'); 

The problem I ran in to was that it expected files referenced by global.php to be located in places that they aren't...

Here is something helpful when you are dealing with problems like this. In whatever file you are using to call global.php (in this case a gallery file in another directory), use something like this:

PHP Code:

    // Full path to vBulletin
    
define('CWD''/path/to/html/vBulletin');

    
// Call global.php
    
require_once(CWD '/global.php');

    
// Get some custom functions from vBulletin directory
    
require_once(CWD '/includes/functions_loo.php'); 

The CWD constant will insure that all calls to vBulletin files point to the right directory, even the ones vBulletin makes on its own when you include global.php. Just make sure you always use the constant in the require_once(); function and everything should work correctly (unless you set the wrong path!).

Hope that helps.

SilVert 04-04-2006 12:52 AM

Quote:

Originally Posted by Brad
Here is something helpful when you are dealing with problems like this. In whatever file you are using to call global.php (in this case a gallery file in another directory), use something like this:

PHP Code:

    // Full path to vBulletin
    
define('CWD''/path/to/html/vBulletin');

    
// Call global.php
    
require_once(CWD '/global.php');

    
// Get some custom functions from vBulletin directory
    
require_once(CWD '/includes/functions_loo.php'); 

The CWD constant will insure that all calls to vBulletin files point to the right directory, even the ones vBulletin makes on its own when you include global.php. Just make sure you always use the constant in the require_once(); function and everything should work correctly (unless you set the wrong path!).

Hope that helps.

im not 100% why
PHP Code:

global.php 

is called, but i assume it is to get VBB to integrate correctly. but what is
PHP Code:

functions_loo.php 

usefull for?

SHoeSTeR 04-04-2006 02:29 AM

<a href="http://www.purephat.net/forum/gallery2.php" target="_blank">http://www.purephat.net/forum/gallery2.php</a>

thats my problem a huge list of php errors


All times are GMT. The time now is 11:56 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01831 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
  • (6)bbcode_php_printable
  • (6)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