Help - Search - Members - Calendar
Full Version: Wierd skinning dilemma...
Invision Power Services > Community Forums > Community General Chat
XanthicBB
EDIT: Dilemma solved. Thanks Jockey. biggrin.gif

Hey guys,

As we're finalizing our new skin for our board (2.0.4), I've run into a bit of an odd dilemma with the render_forum_row template bit of the Forum Index section. The classes of the table cells are variables (obviously to allow for the row to be colored for queued topics/posts), and by default $class1 is set to the row2 class, and $class2 is set to the row1 class (as is $classposts, for the replies column). I wanted to swap these. I looked in the template bit incoming data variables and saw this:
CODE
$data="",$class1='row2',$class2='row1',$classposts='row2',$inforum=0
so I tried to changed to this:
CODE
$data="",$class1='row1',$class2='row2',$classposts='row1',$inforum=0
thinking that would clearly be the way to swap them. Problem is that even after doing this, saving the template bit, and rebuilding the cache, it seems to have no effect.

This has really got me boggled, and I'm wondering if it's perhaps just my installation, or maybe something I'm overlooking, or maybe a problem in IPB 2.0.4. Could some kind soul please try changing the incoming data variables as I did to see if it will indeed swap the cell colors? Any help would be most appreciated. original.gif
Dan C
Have you tried just swapping instances of $class1 for $class2 in the skin bit itself? (and vice versa)
RedEnzian
open the file: /sources/forums.php

search for "render_entry($topic)" (must be at the end of the file).

change the content for the variables $class1 and $class2 here and they should swap in the final output.
XanthicBB
QUOTE(DanC @ Jun 22 2005, 02:04 PM) *
Have you tried just swapping instances of $class1 for $class2 in the skin bit itself? (and vice versa)

Thought about that, but then I'd still have $classposts to worry about, which is necessary for queued posts (rather than whole queued topics).

QUOTE(Jockey @ Jun 22 2005, 02:09 PM) *
open the file: /sources/forums.php

search for "render_entry($topic)" (must be at the end of the file).

change the content for the variables $class1 and $class2 here and they should swap in the final output.

Thanks Jockey, that seems to have done the trick. original.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.