Looking for HTML/BBC Code per categories Looking for HTML/BBC Code per categories
 

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

Looking for HTML/BBC Code per categories

Started by tsakes, April 06, 2007, 11:25:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tsakes

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.