![]() |
|
#1
|
|||
|
|||
|
My attempt is to alternate background colors row by row in the Recent Threads module.
So for example: The first row could be alt1 then the next listing would be alt2 followed by alt1 again and so on and so forth. Right now the default Recent Thread module alternates colors by column. Does anyone know of a way to make it do it row by row. |
|
#2
|
||||
|
||||
|
If you edit your 'adv_portal_recthreads_exp' template and replace each instance of 'class="alt1"' and 'class="alt2"' with 'class="$bgclass"', then that should do the trick.
|
|
#3
|
|||
|
|||
|
Thank you very much. I need to add another question to this; I would like to use a custom CSS class, I looked into the php file from which the module is pulling from and altered it however it is not picking that up. How can I go about using two custom classes for my alternating rows.
Last edited by blyk; 10-20-2007 at 09:08 PM. Reason: Added. |
|
#4
|
||||
|
||||
|
The easiest way would probably be to name your classes something like 'custom_alt1' and 'custom_alt2'. Then you could change the classes in your template to "custom_$bgclass".
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Two rows with letters | lordm | "How Do I..." Questions | 2 | 02-08-2007 04:19 PM |
| Querying a db and displaying rows in a vB template? | randominity | Troubleshooting / "How do I..." Questions | 2 | 11-12-2005 05:15 PM |
| Change module title rows | vbusers11 | "How Do I..." Questions | 2 | 09-12-2005 01:27 AM |
| Publish News in columns instead of rows | Black_Widow | Troubleshooting / "How do I..." Questions | 1 | 02-05-2005 04:43 PM |
| Alternating colours for consecutive rows in module | theMusicMan | Troubleshooting / "How do I..." Questions | 2 | 01-16-2005 11:52 AM |