![]() |
Alternating POST Colors?
How can I create alternating row post colors? For example post 1. has a gray row background and post 2. has a green background.
The avatars and such should stay on the left side. I found ways to do this for the home and threads list but not posts inside threads. For example see this thread. It has alternating light and darker gray post colors. Can anyone please tell how to do this? |
You can edit the postbit/postbit_legacy template and use a conditional to decide on a colour (and insert the appropriate CSS/HTML).
Code:
<if condition="$post['postcount'] % 2">POST IS EVEN<else />POST IS ODD</if> |
Okay well I'm not a savvy html coder though. Can I paste that in the postbit and what else needs to be added?
|
All times are GMT. The time now is 06:44 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|