PDA

View Full Version : Dual Styles


Intex
August 10th, 2006, 03:20 PM
I have two styles for a vbulletin forum. How does photopost handle the use of multiple styles that a user can select?

Specifically, if a member chooses style 1, will Photopost select the appropriate style and display it when entering the gallery? Likewise, if they then switch to style 2, does it display that style? How is this controlled in PP?

Michael P
August 10th, 2006, 03:38 PM
Yes, it does pick up the "style" (i.e. colors and such). If your style uses custom template changes, then you would need to create a directory using the styleid and then modify the PhotoPost templates to use the custom templates. But by default, PhotoPost does pick up the color/stylesheet changes between styles.

http://www.viperalley.com/gallery/index.php

You can select different styles here to see.

Intex
August 11th, 2006, 12:09 AM
Thanks for the quick response Michael.

I'm not quite sure quite what you mean by creating a directory with the style ID. Do you mean that if the style has a style ID of say "11", then you'd create a directory named 11? Where would the directory be placed and what would be contained within it? Additionally, what template changes would then need to be made within photopost?


Yes, it does pick up the "style" (i.e. colors and such). If your style uses custom template changes, then you would need to create a directory using the styleid and then modify the PhotoPost templates to use the custom templates. But by default, PhotoPost does pick up the color/stylesheet changes between styles.

http://www.viperalley.com/gallery/index.php

You can select different styles here to see.

Chuck S
August 11th, 2006, 07:47 AM
Photopost integrates with the style classes of vbulletin without any modifications.

http://www.reeftalk.com/gallery/index.php

What Michael is referring to is if your specific custom style has HARD CODED HTML TABLE WRAPPERS or such that you would need to alter our templates to match that hard coded wrappers since we pull style classes not hard coded templates changes ;)

Intex
August 11th, 2006, 07:51 AM
Thanks for the reply Chuck.

I'm still a bit confused as to how it works. Surely if I alter the PP templates, then this will adversely affect the style that is working? Perhaps you could explain where you mean or what I need to look for specifically.

If I can get this sorted, I'll get my older version 4.8x up-dated to the latest.

Thanks

Chuck S
August 11th, 2006, 08:13 AM
To try and understand what Michael and I are saying you are going to need to upgrade to the latest code and then possibly use one of these ultra custom styles to see what is needed. You do nothing for a normal vb style as the classes are used automatically. I showed an explicit example and can show many more than normal styles you need to do nothing for things to work. I honestly dont think I can explain it different as the result of what you want to do would depend on the style your using and its hard coded html if any but as Michael stated if it is a style with hardcoded template changes you can create a new template directory with the numeric ID of the style to load an optional template set which would be used only for that style.

Intex
August 11th, 2006, 02:02 PM
I won't pretend to understand - but I think I get the drift. Thanks anyway :).

To try and understand what Michael and I are saying you are going to need to upgrade to the latest code and then possibly use one of these ultra custom styles to see what is needed. You do nothing for a normal vb style as the classes are used automatically. I showed an explicit example and can show many more than normal styles you need to do nothing for things to work. I honestly dont think I can explain it different as the result of what you want to do would depend on the style your using and its hard coded html if any but as Michael stated if it is a style with hardcoded template changes you can create a new template directory with the numeric ID of the style to load an optional template set which would be used only for that style.

Intex
August 12th, 2006, 03:04 AM
I was thinking a bit more about this. I've attached the header template, so perhaps you can take a look and let me know what you think.

Chuck S
August 12th, 2006, 07:05 AM
I would suggest you have an issue you post in our support forum with your questions and post urls to your forum and gallery if you feel you have an issue that needs attention.

Also please follow the instructions in this thread to verify yourself to obtain support

http://www.photopost.com/forum/announcement.php?f=64