PDA

View Full Version : VBB integration problem with PP VBGallery 2.1


EricR
12-09-2006, 10:47 PM
First, thanks for finding a way to easily integrate all VBB pages via the global.php edit! Unfortunately doing it that way breaks PP VBGallery and I get a blank page when viewing the gallery :(

Is there an update to the global.php edit so that I don't have to individually integrate every vbb page like the old days? Here's tonight's upgrade history:


Updated from VBB 3.5.3 to 3.6.4. Success! :)
Updated from VBa 2.1.0 to 2.2.1. Success! :)
Edited global.php to integrate every VBB page. Success! :)
Updated PP VBGallery from 1.1 to 2.1, gallery became a blank page :(
Removed the global.php integration edit and the gallery was restored. :confused:
Searched here but didn't find any relevant threads.

EricR
12-10-2006, 12:20 AM
I came up with a workaround for this, which simply excludes the integration from the problem gallery pages.

Change the global.php edit from:
if (THIS_SCRIPT != 'adv_index')

to:
if (THIS_SCRIPT != 'gallery_search' and THIS_SCRIPT != 'browseimages' and THIS_SCRIPT != 'gallery_index' and THIS_SCRIPT != 'adv_index')

I'll add more pages to the list as they're discovered. This is clearly a PP VBGallery issue and not with VBadvanced so I don't expect to find a solution here, I'm just sharing this in case someone else tries to integrate pages via global.php.

Our Sponsors
 

StuntFactoryX
12-10-2006, 03:29 AM
i followed the instructions per brians tutorial and it worked ... galleries where intergrated and worked perfect on 3.6.4

EricR
12-10-2006, 05:27 PM
i followed the instructions per brians tutorial and it worked ... galleries where intergrated and worked perfect on 3.6.4
Well I'm glad to hear that method works for some. I double and triple checked the edits, so it must be a server-related issue. I found I didn't care for the total integration anyway, for example it really clutters the UserCP since that has its own sidebar. I changed my if statement above to include only the pages I DO want integrated as opposed to the pages I DON'T want as it is originally setup. Just change the "and"s to "or"s and it'll look something like this:


if (THIS_SCRIPT=='announcement' or
THIS_SCRIPT=='calendar' or
THIS_SCRIPT=='editpost' or
THIS_SCRIPT=='faq' or
THIS_SCRIPT=='forumdisplay' or
THIS_SCRIPT=='index' or
THIS_SCRIPT=='login' or
THIS_SCRIPT=='member' or
THIS_SCRIPT=='memberlist' or
THIS_SCRIPT=='newreply' or
THIS_SCRIPT=='newthread' or
THIS_SCRIPT=='online' or
THIS_SCRIPT=='poll' or
THIS_SCRIPT=='postings' or
THIS_SCRIPT=='profile' or
THIS_SCRIPT=='register' or
THIS_SCRIPT=='search' or
THIS_SCRIPT=='sendmessage' or
THIS_SCRIPT=='showgroups' or
THIS_SCRIPT=='showpost' or
THIS_SCRIPT=='showthread' or
THIS_SCRIPT=='subscription' or
THIS_SCRIPT=='threadrate')
{
define('VBA_PORTAL', true);
define('VBA_PAGE', 'include');
}


Works like a champ, this is exactly how I had it setup before except this way only one file needs edited (global.php). So everything is working great now :)

Our Sponsors
 

easyskillz
12-11-2006, 06:15 AM
Hello, Is this what i need to do in order to display like a side column on my showimage.php ? cause with this code on my global it only displays on browsimages but not on showimages. :

<?php

if (!defined('VBA_PORTAL'))
{
define('VBA_PORTAL', true);
define('VBA_PAGE', 'publicité');
}


Can you please let me know what code to insert ? im not a coder at all :)

Thank you

StuntFactoryX
12-11-2006, 09:41 AM
opps maybee i misunderstood

i did the edit on each page i wanted it to show on.

EricR
12-19-2006, 07:36 PM
FWIW Zachariah over at the photopost forums showed me a much cleaner way to accomplish the same task:
if(in_array(THIS_SCRIPT, array(
'announcement',
'calendar',
'editpost',
'faq',
'forumdisplay',
'index',
'login',
'member',
'memberlist',
'newreply',
'newthread',
'online',
'poll',
'postings',
'profile',
'register',
'search',
'sendmessage',
'showgroups',
'showpost',
'showthread',
'subscription',
'threadrate')))
{
define('VBA_PORTAL', true);
define('VBA_PAGE', 'include');
}

All is well now, just wanted to share the cleaner solution.

SheGoYa
02-23-2007, 04:57 PM
EricR

can you help me to show up my random gallery in my CMPS & forum

i tried many ways to set it up but nothing works for me :confused:

my site info:
vb 3.6.4
vbAdvanced 2.2.1
PhotoPost vBGallery v2.1

dricho
06-14-2007, 01:29 AM
i have vbadvance 3.0, getting a blank page when direct my browser to the gallery page.... Currently running vBGallery 2.2 and vBulletin 3.6.7, i looked in my global.php file but couldnt find any lines or phrases that was suggested.. Anyone got a solution to this problem?