vBulletin Skins, IPB Skins, phpBB Skins and SMF Skins Support Forum
| ||||||
| Follow ForumThemes on Twitter! |
|
Acquiring Tweets |
| Follow us on Twitter! |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Customer | How it works: The way the colors are currently assigned is via CSS classes. The template changes remove the class definitions from the table cells, and add class definitions to the displayed rows. The CSS Classes used are the "Alt1" and "Alt2" classes - defined in the Admin Control Panel under Style Manager, (style), Main CSS, "First Alternating Color" and "Second Alternating Color". Place the following code at the top of each template you want to alternate colors. Code: <if condition="$altrow =& $GLOBALS['altrow']"></if>
<if condition="!isset($altrow)">
<if condition="$altrow = 0"></if>
</if>
<if condition="++$altrow % 2 == 0">
<if condition="$rowClass = 'alt1'"></if>
<else />
<if condition="$rowClass = 'alt2'"></if>
</if>
1) On the very first line, change Code: <tr> Code: <tr class="$rowClass"> 2) Find all ' class="alt1"' and remove 3) Find all ' class="alt2"' and remove forumhome_forumbit_level1_post updates 1) On the second line, change Code: <tr align="center"> Code: <tr class="$rowClass" align="center"> 2) Find all ' class="alt1"' and remove 3) Find all ' class="alt2"' and remove 4) Find all ' class="alt1Active"' and remove forumhome_forumbit_level2_post 1) On the very first line, change Code: <tr> Code: <tr class="$rowClass"> 2) Find all ' class="alt1"' and remove 3) Find all ' class="alt2"' and remove 4) Find all ' class="alt1Active"' and remove pm_messagelistbit 1) On the very first line, change Code: <tr> Code: <tr class="$rowClass"> 2) Find all ' class="alt1"' and remove 3) Find all ' class="alt2"' and remove 4) Find all ' class="alt1Active"' and remove memberlist_resultsbit 1) change Code: <tr align="center"> Code: <tr class="$rowClass" align="center"> 2) Find all ' AND exec_switch_bg()"' and remove 3) Find all ' class="$bgclass"' and remove 4) Find all ' class="alt1Active"' and remove 5) Find all ' class="alt2"' and remove NOTE: You Also could use the plugin method found here |
|
![]() |
| Bookmarks |
| Tags |
| alternating, color, plugin, row, vbulletin skins |
| Thread Tools | |
| Display Modes | |
| |