[Answered: YES!] Alternate Row Color For OCF?
|
Posted
#89862
(In Topic #18211)
|
|
|---|---|
|
Community saint |
ocPortal 9; inquiry not a bug or problemI have a simple stylistic question. I am hoping that maybe one of the great master themers *cough*Jean*cough* could answer this one so Chris can go out and enjoy a break from answering my massive amounts of questions. But if Chris just can't help himself and wants to jump in, I understand and am appreciative lol. Anyway, I want to know if we can change the colors of the OCF forum index for the ros instead of columns? IE, have alternate row colors instead of different column colors so say even # rows could be one color, and odd # rows another color? I understand that doing this for rows would be more difficult because unlike columns, there could be many many forums or only one or two. But IF it were possible, it might look better I think. So is this a possibility? Or should I just find love with column coloring? BTW - I do love how the forum view page automatically updated the column colors as I was playing around with it, without me even having to save. Talk about immediate preview! Just simply awesome.
Last edit: by mythus
Legends of Nor'Ova: A site powered by ocPortal; a role playing community where you can purchase the LofN core rule book and participate in the forum-based RPG.
Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
"Those who want help should first be willing to give help."
|
|
Posted
|
|
|
Community saint |
Bob |
|
Posted
|
|
|
Community saint |
Legends of Nor'Ova: A site powered by ocPortal; a role playing community where you can purchase the LofN core rule book and participate in the forum-based RPG.
Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
"Those who want help should first be willing to give help."
|
|
Posted
|
|
|
Community saint |
I have some familiarity with being able to style columns with the old ocf.css, but a lot has changed with this new version. I like the idea of row styling and will certainly investigate this possibility eventually. Hopefully someone else can shed more light on this meanwhile! Cheers, Jean |
|
Posted
|
|
|
Community saint |
Yeah, as I continue to dive into OCF.css, I can't find a means to do so. The old css stylings (row1 and row 2 and the like) were changed to ocf_column followed by a number. I suppose that more accurately represents what those things did… For some reason, I feel like we were able to change row colors in the distant past… But my brain might be lieing to me again… So short of being able to add new css tags in to color rows… I just don't see a way to do so.
Legends of Nor'Ova: A site powered by ocPortal; a role playing community where you can purchase the LofN core rule book and participate in the forum-based RPG.
Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
"Those who want help should first be willing to give help."
|
|
Posted
|
|
|
Community saint |
|
|
Posted
|
|
|
ocStaff (admin) |
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Community saint |
if you're talking for forum index |
|
Posted
|
|
|
Community saint |
Duck, every where I tried within ocf_forum_in_grouping either did nothing with the a tag or make a new column with the td tag. This will definetly be a project to mess around with for a few days lol…
Legends of Nor'Ova: A site powered by ocPortal; a role playing community where you can purchase the LofN core rule book and participate in the forum-based RPG.
Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
"Those who want help should first be willing to give help."
|
|
Posted
|
|
|
Community saint |
Code
<tr class="{$CYCLE,forum_rows,row_even,row_odd}">
|
|
Posted
|
|
|
Community saint |
I am sure it is supposed to since you have tested it. Odd…
Legends of Nor'Ova: A site powered by ocPortal; a role playing community where you can purchase the LofN core rule book and participate in the forum-based RPG.
Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
"Those who want help should first be willing to give help."
|
|
Posted
|
|
|
Community saint |
This was just for Forum index though. I suppose another template is needed for an index of topics with a particular forum. |
|
Posted
|
|
|
Community saint |
I have to wonder if column color is somehow interfering with trying to use row color. I did append !important tags to my .row_even and .row_odd in CSS, but no cigar. It is perplexing. I feel it should be working… but yeah.
Legends of Nor'Ova: A site powered by ocPortal; a role playing community where you can purchase the LofN core rule book and participate in the forum-based RPG.
Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
"Those who want help should first be willing to give help."
|
|
Posted
|
|
|
Community saint |
|
|
Posted
|
|
|
Community saint |
|
|
Posted
|
|
|
Community saint |
.row_even td{ background-color: #F00; } this I tested on the one in topic list not forim index |
|
Posted
|
|
|
Community saint |
I guess the issue was the resulting .row_even and .row_odd needed to be in global.css and not ocf.css.
Legends of Nor'Ova: A site powered by ocPortal; a role playing community where you can purchase the LofN core rule book and participate in the forum-based RPG.
Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
"Those who want help should first be willing to give help."
|
|
Posted
|
|
|
Community saint |
Legends of Nor'Ova: A site powered by ocPortal; a role playing community where you can purchase the LofN core rule book and participate in the forum-based RPG.
Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
"Those who want help should first be willing to give help."
|
|
Posted
|
|
|
Community saint |
|
|
Posted
|
|
|
ocStaff (admin) |
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
1 guests and 0 members have just viewed this: None
Control functions:






Last edit: by 


