forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: allvip on October 02, 2013, 12:47:23 pm

Title: Multiple descriptions for category
Post by: allvip on October 02, 2013, 12:47:23 pm
How can I have 4 decsription fields for categories?
Title: Re: Multiple descriptions for category
Post by: Αndré on October 04, 2013, 01:24:43 pm
What's the advantage of 4 fields instead of 1, where you can add any information?
Title: Re: Multiple descriptions for category
Post by: allvip on October 09, 2013, 03:13:13 am
I want to make a fancy theme  ;D

4 descriptions to be able to aply diffrent styles.

I used bbcode in the category description field on the add and edit category page to have 2 diffrent description for now:


1. CUSTOM TEXT 1  (http://yoursite.com/)

2. CUSTOM TEXT 2
Title: Re: Multiple descriptions for category
Post by: allvip on October 09, 2013, 03:17:59 am
sorry mistake code is:

Code: [Select]
[url=http://yourlink.com/]CUSTOM TEXT 1[/url]
CUSTOM TEXT 2

the curve theme has .bblink class in the style.css to make the link CUSTOM TEXT 1 diffrent from text CUSTOM TEXT 2
Title: Re: Multiple descriptions for category
Post by: Αndré on October 09, 2013, 08:55:14 am
If it's just a styling issue, it's probably easier to add a mod that applies just different styles. 4 separated description fields would require to adjust the frontend and backend code and the database. Instead I suggest to either apply a different style to each row (if that's possible), or to add custom BBCode tags like [style1], [style2] etc.
Title: Re: Multiple descriptions for category
Post by: allvip on October 09, 2013, 03:01:56 pm
thanks
Title: Re: Multiple descriptions for category
Post by: Αndré on October 09, 2013, 03:04:19 pm
Thanks means you know how to solve your issue? If not, is it possible to distinguish your different styles by row (= each row gets a custom style), or do you want to use custom BBCodes?
Title: Re: Multiple descriptions for category
Post by: allvip on October 09, 2013, 04:47:32 pm
thanks for the BBCode tags like [style1], [style2]
I thought I can only use the bbcode specified in the coppermine docs

I would like to use custom bbcode.thanks for this ideea too.didn't knew it exists.
I will still have to search google and how to use style1 and custom bbcodes.

multiple desc needs edits to catmgr.php and database and token under function dispaly cat or something and I did made it to do and have all that  but you right is not a good ideea.people that will use my theme will have to edit catmgr.php and database to ad column description2
Title: Re: Multiple descriptions for category
Post by: Αndré on October 09, 2013, 04:50:53 pm
You probably want to look at the BBCode Control (http://forum.coppermine-gallery.net/index.php/topic,57432.0.html) plugin, which adds some custom BBCodes to Coppermine. Feel free to adjust it to your needs. Maybe it's also possible to include that functionality directly to your theme, but I haven't checked that.
Title: Re: Multiple descriptions for category
Post by: allvip on October 09, 2013, 05:02:55 pm
I already have this plugin is only for the comments.
adds bbcode for the comments and does not have many option in config just yes and no for every bbcode.
yes admin  or yes user
I will look to see what it uses for font color and font size maybe aplyes to the theme too.
thanks.
Title: Re: Multiple descriptions for category
Post by: Αndré on October 09, 2013, 05:09:42 pm
I think you misunderstood or skipped the important part:
Feel free to adjust it to your needs.
means: have a look how the custom BBCodes are added with this plugin and add your own accordingly.
Title: Re: Multiple descriptions for category
Post by: allvip on October 09, 2013, 05:15:07 pm
ok.thanks