HTML Logo by World Wide Web Consortium ( Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS. ocPortal 9 is superseded by Composr 10.

Head over to for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.

Question what is com code????

Login / Search

 [ Join | More ]
 Add topic 
#57518 (In Topic #12523)

Fan in training

What Is com code??? IS it like smart tagging????
Back to the top

Community saint

Hi Garymchu!

You could say that; much like smart tagging on steroids. Check this video tut out:

ocPortal video tutorial

Comcode allows one to use "shortcuts" to introduce a wide variety of functionality to almost all components in OCP. Examples are always great and here is but one of many possibilities:


<script type="text/javascript" src="js/tabber.js">
<script type="text/javascript">

/* Optional: Temporarily hide the "tabber" class so it does not "flash"
   on the page as plain HTML. After tabber runs, the class is changed
   to "tabberlive" and it will appear. */

document.write('<style type="text/css">.tabber{display:none;}<\/style>');

<div class="tabber">



I have that code defined by the custom comcode tag "tabber", so wherever I put the tag, the above code will be rendered instead. Sky is the limit! ;-)

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved

OCP V7 | Advocating monetary reform - FreeOurMoney

Need OCP friendly hosting? Look no further:
Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal.
Back to the top
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: