Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Looking for HTML/BBC Code per categories  (Read 2153 times)

0 Members and 1 Guest are viewing this topic.

tsakes

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Looking for HTML/BBC Code per categories
« on: April 06, 2007, 11:25:14 pm »

Hello

Is it possible to specify which categories to use a certain BBCode/HTML output code?

I was told that it might be possible to use a  if statement and specify the category ID.

Here is the layout of my site

10 categories
.. 3 categories are to use this code. Now this is the code output from the script
Quote
<a href="http://yoursite.com" target="_blank"><img src=http://www.yoursite.com/gal/data/media/50/18_1_304.gif border="0"/></a>


7 categories are to use this code. Also outputted from the script
Quote
<style>
.contactTable { width: 300px !important; height: 150px !important; padding: 0px !important; background-image: url('http://www.yoursite.com/gal/data/media/50/18_1_304.gif'); background-attachment: scroll; background-position: center center; background-repeat: no-repeat; background-color: transparent; }
.contactTable table, table.contactTable td { padding: 0px !important; border: 0px; background-color: transparent; background-image: none; }
.contactTable a img { visibility: hidden; border: 0px !important; }
.contactTable a { display: block; height: 28px; width: 115px; }
.contactTable .text { font-size: 1px !important; }
.contactTable .text, .contactTable a, .contactTable img { filter: none !important; }
</style><br><a href=http://www.yoursite.com></a>

Does that make sense? So I would set the script to say categories 1-3 are to use this code and 4-10 are to use the other.

Thanks for the help and sorry if it seems confusing.

Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.