PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old September 26th, 2010, 12:03 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Sep 2010
Posts: 110
Constants

Just looking through the plugins after having problems integrating CMS pages with Vbgallery I noticed that the constants in Vbgallery were:
VB_AREA == 'vBGallery'

Rather than that I was expecting:
VB_AREA == 'forum'

what was the reason for the change and is there a way around this please.
Steff is offline   Reply With Quote
Old September 26th, 2010, 01:32 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
Hello not sure where your looking into plugins but that constrant basically tells those plugins only to execute when on vbgallery pages.

Any and all plugins included in our product should be coded accordingly. I am not aware of any CMS block contained in our vbgallery beta product.

Feel free to ask in the beta forum on that particular software to ask what features it may or may not have concerning the vb4 CMS product.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old September 26th, 2010, 04:38 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Sep 2010
Posts: 110
I wasn't wrapping vb4 cms I was wrapping Vbadvanced. But the way I understood the constants was to check if vbgallery was in admin or not. So just wondered why vbgallerry was called and not forum and if I can change it back to forum.
Steff is offline   Reply With Quote
Old September 26th, 2010, 05:55 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
You can not change our plugins they are designed to operate as they are coded.

I suppose you could ask how to show vbgallery in vbadvanced in THE MOD CORNER which is where one would discuss modifications outside our normal programs operation. vbAdvanced is another product which we make no claims to intergrate or show content in.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old September 26th, 2010, 06:10 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Sep 2010
Posts: 110
Ok fair enough!
Steff is offline   Reply With Quote
Old October 6th, 2010, 11:25 PM   #6 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
Chuck is correct.. the constant VB_AREA == 'vBGallery' is needed to tell the system that we are NOT in forums but in gallery.. This is Important as on most systems vbgallery is NOT installed inside the forum directory.
Easiest example..:
if VB_AREA == 'vBGallery' (if we are on a vbgallery page)
==> Highlight the Gallery tab..

if you want to have something on both, forum and gallery pages you can always do:
if(VB_AREA == 'vBGallery' OR VB_AREA == 'forum')
{

}
Luciano is offline   Reply With Quote
Old October 7th, 2010, 06:54 AM   #7 (permalink)
Member
Verified Customer
 
Join Date: Sep 2010
Posts: 110
Quote:
Originally Posted by Luciano View Post
Chuck is correct.. the constant VB_AREA == 'vBGallery' is needed to tell the system that we are NOT in forums but in gallery.. This is Important as on most systems vbgallery is NOT installed inside the forum directory.
Easiest example..:
if VB_AREA == 'vBGallery' (if we are on a vbgallery page)
==> Highlight the Gallery tab..

if you want to have something on both, forum and gallery pages you can always do:
if(VB_AREA == 'vBGallery' OR VB_AREA == 'forum')
{

}

That is very useful, thank you very much indeed. I'll try that out later on today and let you know if it worked.
Steff is offline   Reply With Quote
Old October 7th, 2010, 05:13 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Sep 2010
Posts: 110
I had a chance to try it out and it worked ... but if I tried to enter the admincp I got a PHP error.
Steff is offline   Reply With Quote
Old October 7th, 2010, 10:40 PM   #9 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
well i suppose you get the error when you had to login..because when you login you shortly (during redirection) have the login.php that has VB_AREA == 'forum' while the admincp has VB_AREA == 'AdminCP'. IMHO, I think, this has nothing to do with vbgallery.
You should get the error also if you only had:
if(VB_AREA == 'forum')
{

}
so I would test without the vbgallery part.. if it runs then just add OR VB_AREA == 'vBGallery'

Thats all i can say, as I never used vbadvanced and do not know how they do their check.
Luciano is offline   Reply With Quote
Old October 8th, 2010, 11:55 AM   #10 (permalink)
Member
Verified Customer
 
Join Date: Sep 2010
Posts: 110
That's ok. It would have been nice to integrate Vbadvanced with VBgallery, but its not the end of the world.
I can see why this is happening and that was one of the reasons I asked about the constant's change.
You gave a a good shot... so thanks for trying anyway
Steff is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Classifieds filling up error log - undefined constants ktmtalk Classifieds Bug Reports 8 November 17th, 2009 07:36 PM


All times are GMT -5. The time now is 07:30 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0