Advanced search  

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

Pages: [1]   Go Down

Author Topic: Multiple descriptions for category  (Read 4280 times)

0 Members and 1 Guest are viewing this topic.

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Multiple descriptions for category
« on: October 02, 2013, 12:47:23 pm »

How can I have 4 decsription fields for categories?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Multiple descriptions for category
« Reply #1 on: October 04, 2013, 01:24:43 pm »

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

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Multiple descriptions for category
« Reply #2 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

2. CUSTOM TEXT 2
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Multiple descriptions for category
« Reply #3 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Multiple descriptions for category
« Reply #4 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.
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Multiple descriptions for category
« Reply #5 on: October 09, 2013, 03:01:56 pm »

thanks
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Multiple descriptions for category
« Reply #6 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?
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Multiple descriptions for category
« Reply #7 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Multiple descriptions for category
« Reply #8 on: October 09, 2013, 04:50:53 pm »

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.
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Multiple descriptions for category
« Reply #9 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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Multiple descriptions for category
« Reply #10 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.
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Multiple descriptions for category
« Reply #11 on: October 09, 2013, 05:15:07 pm »

ok.thanks
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.