(Solved) Alternating Comment Background
joshrodgers
Joined: 2008-08-31
Posts: 5 |
![]() |
Ok, The idea is really simple. In a nutshell...the page is at: http://ourpictureshare.com/gallery2/main.php?g2_itemId=127. What I am trying to do is alternate the background colors, so the comment with the subject of "Test" would have a grey background, the comment with the subject of "Oops" would have a white background, and the comment with the subject of "Great Picture" would have a grey background. Any ideas? Thanks, Josh |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
You need to edit the comment module template: Dave |
|
joshrodgers
Joined: 2008-08-31
Posts: 5 |
![]() |
floridave, Thanks for the help! After experimenting I actually had to edit gallery2/modules/templates/blocks/ViewComments.tpl, however the Smarty function worked like a charm! Thanks, Josh |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Great! Perhaps you can share what you did with others. Dave |
|
joshrodgers
Joined: 2008-08-31
Posts: 5 |
![]() |
You bet. I replaced: <div class="one-comment gcBorder2"> with: <table> {include file="gallery:modules/comment/templates/Comment.tpl" </td> Its not pretty and I am trying to see how I can apply it to a div, but it does work. Thanks again, Josh |
|