vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v3.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 10-19-2007, 03:39 PM
blyk blyk is offline
Junior Member
 
Join Date: Oct 2006
Posts: 7
Default Alternating Rows

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.
Reply With Quote
  #2  
Old 10-20-2007, 12:51 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Alternating Rows

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.
Reply With Quote
  #3  
Old 10-20-2007, 08:49 PM
blyk blyk is offline
Junior Member
 
Join Date: Oct 2006
Posts: 7
Default Re: Alternating Rows

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.
Reply With Quote
  #4  
Old 10-21-2007, 11:42 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Alternating Rows

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".
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -4. The time now is 03:42 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.