Page 1 of 1

bulletproof as category template

Posted: Wed Oct 31, 2007 10:53 pm
by JWalker
Hi,

I have bulletrpoof theme as blog theme and decided to use it as individual theme for one of the categories (just to change the header image). I followed the procedure at http://s9y-bulletproof.com. Well, I could open the theme options form from the category options form but the color scheme list was empty. As a result the purple theme was always selected.

The color scheme list is not empty, when I open this form to configure bulletproof as overall blog theme. All other options seem to be OK... Is this intended behavior or there is a bug or there is something wrong with my installation?

Posted: Wed Oct 31, 2007 11:47 pm
by Don Chambers
The post Dave made on s9y-bulletproof.com was a copy and paste of a post from Garvin on this forum. He speculated that such a thing could be done, but I do not think he tried it.

Nor have I tried it.

If you are seeing "purple" as the only choice - that is because it is showing you the default value for that field.... not necessarily because it is the only colorset available. I get the feeling it is not looking in the right place for the stylesheets. Does it work when you select purple?

Posted: Thu Nov 01, 2007 7:45 am
by JWalker
Hi,

I use blue color schema for overall bulletproof theme, not the purple one. In the bulletproof configuration form for the particular category, the color schema list is empty, not with а single choice. It is with zero choices. As a hint, I say that the five links are empty, while I have put several links in the overall bulletproof configuration.

Well, if this functionality should exist, I think that when selecting bulletproof for a category, the overall bulletproof settings should be copied, not some initial settings..... :idea:

Posted: Thu Nov 01, 2007 2:07 pm
by Don Chambers
Can you post a link to your blog and any particular category where you have tried to make the settings in bp different than the main site?

Posted: Thu Nov 01, 2007 2:45 pm
by JWalker
That's the problem - my blog in behind firewall (I use it in my company)....
I'll install a test blog and will try again.

Posted: Thu Nov 01, 2007 4:47 pm
by Don Chambers
No need... I verified your problem on my own sandbox. Unlike all other template options, the colorset selection list is populated by listing all files in the bulletproof folder with names that end in "_style.css".... only the portion that preceeds that is shown as an available colorset, which means the stylesheet for "blue" is actually named blue_style.css. Since nothing is showing up, I suspect it is not looking in the correct folder for those files. We do identify purple as the default, and that colorset does seem to load.

Although I do not see this text on screen, when I view source, I see the following within the <select> (dropdown for colorset choice):

Code: Select all

<select class="direction_ltr" name="serendipity[template][colorset]"  >
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>F:\server\xampp\htdocs\serendipity\include\functions_plugins_admin.inc.php</b> on line <b>450</b><br />
                    </select>
Pure speculation here, but that function and/or config.inc.php needs to be looked at... probably by Garvin, since he is the one who created this functionality to begin with.

Garvin???? Can you lend a hand here?

Also - I have a suggestion for the plugin itself... Truncate the template names in the dropdown of available templates. A really long filename can/will/does break the admin theme as everything in that column becomes as wide as the longest template name.

Posted: Thu Nov 01, 2007 6:45 pm
by d_cee
Hi
Don's correct, I didn't try Garvins suggestion - although I should have before I posted it on the s9y-bulletproof.com document site :-( sorry

Like Don, I tried this myself a few minutes ago on my development site to see what was happening and got the same result.

Let's see what Garvin has to say

Dave

Posted: Fri Nov 02, 2007 11:43 am
by garvinhicking
Hi!

Please try out version 0.23 of the categorytemplates plugin.

Regards,
Garvin

Posted: Fri Nov 02, 2007 1:51 pm
by Don Chambers
I didn't try the header replacement, but the stylesheets are certainly available to choose from now. Thanks for the fix Garvin!

Posted: Fri Nov 02, 2007 4:31 pm
by JWalker
Header replacement works too.

Posted: Fri Nov 02, 2007 4:51 pm
by Don Chambers
BTW Garvin - Open any info.txt file, change the name to something REALLY long and you will see why I am making this suggestion.

Posted: Fri Nov 02, 2007 5:33 pm
by garvinhicking
Hi!

Yeah, long template names are evil :)

Regards,
Garvin