Multiple descriptions for category Multiple descriptions for category
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Multiple descriptions for category

Started by allvip, October 02, 2013, 12:47:23 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

allvip

How can I have 4 decsription fields for categories?

Αndré

What's the advantage of 4 fields instead of 1, where you can add any information?

allvip

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

2. CUSTOM TEXT 2

allvip

sorry mistake code is:


[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

Αndré

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.

allvip


Αndré

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?

allvip

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

Αndré

You probably want to look at the BBCode Control 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.

allvip

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.

Αndré

I think you misunderstood or skipped the important part:
Quote from: Αndré on October 09, 2013, 04:50:53 PM
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.

allvip