Forums / Cotonti / Support / Div Odd Even

chobblr
#1 2009-05-14 00:25
Is it possible to add more odd even type codes, as one is not enough for me and i would like to create a few more in the page section but i don't have the knowledge to do it myself
Lombi
#2 2009-05-14 00:55
You'll first need to describe your problem better...

You want odd/even/steven?
<a href="http://www.domenlo.com">Surreal Art</a>
chobblr
#3 2009-05-14 01:17
This is what i mean.

normal odd/even:
below would be in a .tpl file
div class="{\FORUMS_POSTS_ROW_ODDEVEN\}"

below is in a .css file
.odd {background-color:red;}
.even {background-color:blue;}


custom div1/div2:
below would be in a .tpl file
div class="{\FORUMS_POSTS_ROW_ODDEVEN\}"

below is in a .css file
.div1 {background-color:orange;}
.div2 {background-color:yellow;}


basicaly like the odd and even but another lot of my own
This post was edited by chobblr (2009-05-14 01:22, 14 years ago)
Lombi
#4 2009-05-14 01:21
You'll need to corehack then. Depending on how complex your new variables will be - if you just want to duplicate it should be fairly easy.
<a href="http://www.domenlo.com">Surreal Art</a>
chobblr
#5 2009-05-14 01:23
is this located in the function.php file ?
Lombi
#6 2009-05-14 01:25
Depends on what you want to hack. If you want to hack list view it's in system/core/list/ if you want to hack forums it's in system/core/forums/
<a href="http://www.domenlo.com">Surreal Art</a>
chobblr
#7 2009-05-14 01:29
thank you, hopefully wont be to hard to add something like the odd/even tag, *crosses fingers*

Edit: i can seem to find the part
This post was edited by chobblr (2009-05-14 01:50, 14 years ago)