PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   vBGallery How Do I...? (http://www.photopost.com/forum/vbgallery-how-do-i/)
-   -   <If condition> To Change To Gallery Header? (http://www.photopost.com/forum/vbgallery-how-do-i/128658-if-condition-change-gallery-header.html)

ricker November 12th, 2006 08:17 PM

<If condition> To Change To Gallery Header?
 
I used to use:

<if condition="VBA_SCRIPT == 'gallery'">

to toggle my gallery header. This no longer works. Is there another way?

Thanks so much,
Sarah

Sybaris November 13th, 2006 02:18 AM

I use
Code:

Content visible to verified customers only.
To show something on the index page only...

ricker November 13th, 2006 01:28 PM

Thanks Sybaris, I'll give that a try.

In the meantime, any ideas on how to show one header for the forums and another for the gallery?

Zachariah November 13th, 2006 03:48 PM

vbgallery 2.1, 1.1
- They have the option to choose a custom style for the gallery and for each category.

AdminCP => vBGallery => Modify Settings
- Main Options

ricker November 13th, 2006 07:29 PM

I don't think that solves my problem. If it does, I'm not sure I understand how. I guess I will have to re-code my templates.

Zachariah November 14th, 2006 07:42 AM

Styles & Templates / The Style Manager

Create a child style under your main style. This child style will have all the the custom templates created in your main style.

You can re-code the child style as you wish (colors, images, template changes). You can then set the gallery to use the child style.

ricker November 14th, 2006 06:49 PM

Great, thanks. I'll give that a try!

ricker November 14th, 2006 07:00 PM

It works, if I go into each category and manually set an override. I have 20-some categories though, so that kinda sucks. Then, the slideshow header is broken, along with the main page header.

It's been 2 days now and I haven't gotten this resolved .... back to my original idea ... is there any way to modify this script so I can get my gallery running properly?

<if condition="VBA_SCRIPT == 'gallery'">

oldengine November 14th, 2006 08:36 PM

http://www.photopost.com/forum/showthread.php?t=127975

Zachariah November 14th, 2006 09:49 PM

Quote:

Originally Posted by ricker (Post 1179875)
It works, if I go into each category and manually set an override. I have 20-some categories though, so that kinda sucks. Then, the slideshow header is broken, along with the main page header.

It's been 2 days now and I haven't gotten this resolved .... back to my original idea ... is there any way to modify this script so I can get my gallery running properly?

<if condition="VBA_SCRIPT == 'gallery'">

There is 2 overrides in the gallery.
- Gallery level
- Category level

Main settings of the gallery.
AdminCP => vBGallery => Modify Settings
- Main Options
-- Default Style (choose)
-- Allow Users To Change Styles (yes/no)

This will change the default style the gallery uses. This includes each category. If you have a 3rd style (custom theme related to the subject) you can edit the category and use that style vs. the default gallery style.

The forums has its default style, and each forum has a choice of default or custom.

The gallery has a choice of default forums style or custom default, and each category has a choice of gallery default (if enabled else forum default) or custom style.


This should be in every file that shows an image.
Code:

Content visible to verified customers only.
Code:

Content visible to verified customers only.

ricker November 15th, 2006 01:16 AM

Ok, thanks, I'll give this a try. Maybe I'm missing one of those codes in my template from fooling around with this frantically.

*edit*
Apparently I was just missing the option to force the stylesheet.
Yay! Thanks for the help.

Does this version have documentation out?

Zachariah November 15th, 2006 11:34 AM

Quote:

Originally Posted by ricker (Post 1179898)
Does this version have documentation out?

- I am working on that as I go. I have started by adding comments in the php files. I'll yell @ the guys about starting a PDF, CHM, On-line.


All times are GMT -5. The time now is 09:05 AM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97