PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > vBGallery Support > vBGallery How Do I...? > How Do I? - vBulletin 3.6x

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old November 12th, 2008, 06:57 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Nov 2008
Posts: 38
vbGallery does not use default style when user is not logged in

Hi,
I use vbGallery 2.43 with vBulletin 3.7.4 (or 3.7.3)
I set for vbGallery and vb different styles in vb admin cp.

For example, for vb I use FORUM_style and for gallery GALLERY_style.

In vbGallery settings I set default style GALLERY_style and choose "No" for
"Allow style changes". See the attach.

(for forum i did the same earlier)


Now, I open main forum page and I see FORUM_style (its right), after that I open vbGallery page and I see the same FORUM_style (its wrong). If I logged in due this than style will be changed.
It looks like bug. Can you help to resolve this issue?

Thanks in advance!
Attached Images
File Type: png 1.PNG (33.4 KB, 14 views)
Zakhar is offline   Reply With Quote
Old November 13th, 2008, 10:25 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,704
Works fine from what I see. You must read the options there. The setting below must be set to NO for this to work as noted. You can not allow people to change styles otherwise the style is going to be what they want.

Allow Style to be Changed?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old November 13th, 2008, 03:40 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Nov 2008
Posts: 38
I'm try to explain.
I'm use design with tabs, where each tab contains different content -
Forum, Repository,Gallery, etc..
How to do this whith many different products?
I'm think up use different style for each page, and use vbulletin template system for vbulletin integrated products.
I'm create couple templates with only difference in active tab. If I open gallery page than i load gallery style (with active gallery tab).

Now, about configuration:
For every product i set own default style and choose "No" for
"Allow style changes". You can see setting for vbgallery in attach at first post.

Settings for vbulletin see there:
vbsettings.JPG

After that I'm test my work. I'm click to forum tab and I see that forum was opened and forum style loded (because forum tab is active):
forum1_loggedin.JPG

After that I'm open gallery page by clicking gallery tab and I see that gallery page loaded and gallery tab is active. That mean vbgallery use own style that I seted in settings:
gallery1_loggedin.JPG

Now I'm do logout. After that click to forum tab, i see:
forum2_notloggedin.JPG

I'm try to click gallery tab, and:
gallery2_notloggedin.JPG

Thats mean that vbgallery use forum style if user not logged in.

right?
Zakhar is offline   Reply With Quote
Old November 13th, 2008, 03:42 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,704
Make sure your using the latest vbgallery because as I see it if I set allow users to change style is NO and I set an alternate style it is shown.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old November 13th, 2008, 03:43 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,704
Code:
Content visible to verified customers only.
It is pretty specific do not allow users to change style and we load whatever style you specify in vbgallery style box.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old November 14th, 2008, 04:30 AM   #6 (permalink)
Member
Verified Customer
 
Join Date: Nov 2008
Posts: 38
Quote:
Make sure your using the latest vbgallery
I'm using vbGallery 2.43

Quote:
I see it if I set allow users to change style is NO and I set an alternate style it is shown
Yes, if you authorized... else you can see default forum style.

Quote:
we load whatever style you specify in vbgallery style box.
May be I'm wrong somewhere but I do the _same_ thing for vbadvaced and its work fine! It does not matter I'm logged in or not, vbadvanced always use assigned default style. I can do snapshot for vbadvaced settings (that i set own default style and choose "No" for "Allow style changes") and you can compare it. Unfortunately I can't show it in live

May be problem in my template assigned to vbgallery?
I don't think so.
Because when i'm authorized I see gallery template, when I'm not authorized i see template assigned to forum. If problem in my template I'm must always see only forum template and does not matter I'm authorized or not.
Zakhar is offline   Reply With Quote
Old November 14th, 2008, 08:39 AM   #7 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
Well I think I know what the problem is..
it comes from your style.. I had a similar problem once.. it was a different style but I think the same problem.

by the screenshots I assume it is a complex style that uses tabs..
the tabchange can be done done with a plugin or by css in the template..
(i dont know how yours is done) (mine used both)

the problem is that the style uses in the code: $vbulletin->userinfo['styleid] in the code and $bbuserinfo[styleid] in the template...

For registered users this is no problem.. but for guests its not working.. because it always uses the forums styleid.

at the time i fixed that by replacing $vbulletin->userinfo['styleid] by STYLEID in the plugin and $bbuserinfo[styleid] with $styleid in headinclude template.. that worked..

If it only uses plugin.. it could also be that your style plugin in fetch_style is executed before the plugin that sets the style for vbgallery.. in that case (if the style only uses plugin and does not load a different styledependant css) your special style with tab is set BEFORE the style is defined for vbgallery. In that case you will have to change the execution order of the style plugin: try 100 so it will be executed after the style is defined in the vbgallery plugin. (the vbgallery plugin has execution order 5 the cmps one has 3 --- maybe you would have to change the cmps plugin order also..)


Maybe those ideas help.

Luc

Last edited by Luciano; November 14th, 2008 at 08:53 AM.
Luciano is offline   Reply With Quote
Old November 14th, 2008, 08:42 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,704
Yes you might need to look at plugins if you have too look at that but as always when seeking support you might want to post actual links to your site so we can assist.

If I do as I have instructed in a stock vbgallery install guests definately see a different style.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old November 14th, 2008, 09:17 AM   #9 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
Right chuck! but on some special styles out there that use plugins for functionallity its different..
I thought of a quick fix but it could create new problems (I dont see any) so maybe you can look into it:
open forums/includes/vbgallery/style_fetch.php
find:
Code:
Content visible to verified customers only.
replace with:
Code:
Content visible to verified customers only.
as i said i dont know if there is a drawback.. but i dont think so as the plugin is only used in vbgallery.
Explain:
just before the plugin is called..
in forum/global.php
styleid is defined the following way:
// no style specified - use default
$styleid = $vbulletin->options['styleid'];
$vbulletin->userinfo['styleid'] = $styleid;

vbgallery changes $styleid but $vbulletin->userinfo['styleid'] is still the forum style..
so if a template uses $vbulletin->userinfo['styleid'] for unregged users.. it does not use $ppg_options['gallery_style'] but still the old $styleid defined a couple of lines above.



Luc
Luciano is offline   Reply With Quote
Old November 14th, 2008, 09:20 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,704
I dont think that would cause an issue something he could try.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old November 16th, 2008, 08:07 AM   #11 (permalink)
Member
Verified Customer
 
Join Date: Nov 2008
Posts: 38
Luc thanks for your response! But, I don't use any plugins for tab changing and I can't find $bbuserinfo[styleid] in template. I'm still think that problem in bug in vbGallery.

Chuck, I can't give you access to my site for your assist, but i can give you very simple instructions for bug reproducing in your lab.

Needed:
vbGallery 2.4.3
vBulletin 3.7.4
"Default Style" - everybody who have Vbulletin also have Default Style.

In my examle vbGallery placed in forum folder (/forum/gallery)

1. Add new style: Styles & Templates -> Style Manager -> [Add New Style]. Set the following settings for that style:
Parent Style: Default Style
Title: GALLERY_DEFAULT_STYLE
Allow User Selection: No
Display Order: 1
2. Change GALLERY_DEFAULT_STYLE. Just add to header one line:
Code:
Content visible to verified customers only.
before:
Code:
Content visible to verified customers only.
3. Set "Default Style" as default style to forum.
vBulletin Options -> Style and Language Settings
1.JPG

4. Set "GALLERY_DEFAULT_STYLE" as defaut style for vbGallery.
vBGallery -> Modify Settings
2.JPG

5. Check that all works fine.
http://localhost/forum/ (you will see "Default Style")
http://localhost/forum/gallery (you will see "GALLERY_DEFAULT_STYLE")

6. LOGOUT

7. Check it again
http://localhost/forum/ (you will see "Default Style")
http://localhost/forum/gallery (you will see "Default Style")

Last edited by Zakhar; November 16th, 2008 at 08:24 AM.
Zakhar is offline   Reply With Quote
Old November 16th, 2008, 10:25 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,704
I have a test vbgallery setup and it works fine to switch the style if you follow what I posted and you posted. The style changes when I go to the gallery both logged in or logged out.

Therefore for me to assist with your issue any further I would need to see your site.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old November 16th, 2008, 10:29 AM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,704
Just to show you here is a test example. I do not run vbgallery publically its just a test site I use to find bugs

Reeftalk Forums - Powered by vBulletin

PhotoPost vBGallery

You can clearly see this option works as long as users are not allowed to change styles. The if query is pretty specific in style_fetch.php
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old November 17th, 2008, 05:05 AM   #14 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
well i did your tests.. and it works fine with me..
only differences to your install:

1. my gallery directory is outside of my forum directory..

2. in the file: forums/includes/vbgallery/style_fetch.php I changed
Code:
Content visible to verified customers only.
to
Code:
Content visible to verified customers only.
I still think it has todo with your tabs..
for forum i do not see GALLERY_DEFAULT_STYLE.. for Gallery index I do See the GALLERY_DEFAULT_STYLE. as logged in.. as logged out as logged in again.

if you go to edit categories you can set different styles for each category... (that works also)

Luc
I am on holiday so only checking sites and mail every 2 days

Last edited by Luciano; November 17th, 2008 at 05:20 AM.
Luciano is offline   Reply With Quote
Old November 17th, 2008, 07:27 AM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,704
Luciano yep you get the same as I do definately see the gallery loading the alternate style. As I have stated before if Zahkar needs assistance from support he would need to give us details to actually view his site.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old November 17th, 2008, 08:22 AM   #16 (permalink)
Member
Verified Customer
 
Join Date: Nov 2008
Posts: 38
Luc, thanks! Now I got evidence that problem in my site

Chuck, in neare future I will try give you access to site.
Where I can send URL and other info? I can't post it there in public access...
Zakhar is offline   Reply With Quote
Old November 17th, 2008, 08:26 AM   #17 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,704
You can send details though the contact us link in the header of our site.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old November 25th, 2008, 03:41 PM   #18 (permalink)
Member
Verified Customer
 
Join Date: Nov 2008
Posts: 38
Quote:
Originally Posted by Chuck S View Post
You can send details though the contact us link in the header of our site.
Hi Chuck!
I sent info for your access to site via "Contact Us" form. If you need something else - ask.
Thanks!
Zakhar is offline   Reply With Quote
Old November 25th, 2008, 04:00 PM   #19 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,704
Not a problem but as noted it seems your issue is your site not the gallery code and we will confirm once we can see the site.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old November 25th, 2008, 04:43 PM   #20 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,704
WORKS FINE THAT I SEE!!!!!!!!!!!!!!

I set your style to use default gallery style and I view source of page it says styleid 10 whereas before it was loading style 3
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   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
How do i ensure photopost uses a specific style and not the default user style? Joshua van Aalst Photopost Pro How Do I...? 2 June 7th, 2008 01:01 AM
How to change the vBulletin style from default to another? trifletraxor ReviewPost How do I...? 5 January 6th, 2008 08:51 AM
Problems with default style ruhrpottforum Photopost Pro Installation & Upgrades 4 January 17th, 2007 07:07 AM
Defining logged in user vs not logged in in PP? DefenceTalk.com Photopost Pro How Do I...? 8 November 17th, 2006 11:24 AM
Default Style & Category Splitting imported_BRC2 How Do I? - vBulletin 3.0.X 3 June 7th, 2005 11:38 AM


All times are GMT -5. The time now is 06:13 PM.

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