SimplePortal
Customization => Blocks and Modifications => Topic started by: ccbtimewiz on May 19, 2009, 04:20:17 PM
-
SMF v2.0; SP v2.2.2
Open ./Themes/default/Portal.template.php
Find:
while ($article = $context['get_articles']())
{
Replace with:
$i = 0;
while ($article = $context['get_articles']())
{
// Incrementing...
$i++;
// Making the article backgrounds alternate!
$windowcss = $i % 2 ? 'windowbg' : 'windowbg2';
Find:
<tr class="windowbg">
<td class="sp_regular_padding" colspan="2">';
Replace with:
<tr class="', $windowcss, '">
<td class="sp_regular_padding" colspan="2">';
-
Moved to the Blocks and Modifications board.
Thanks ccbtimewiz. :)
-
Updated for SP 2.2.2.
-
preview please...
-
I have it live here:
http://zelda-coalition.com/index.php
-
is it possible to add backgorund image for article?
-
Yes there is, of course.
Do you want altering background images?
-
Is the alternating backrounds possbiel for the newest version?
because i have no sportal.template
greetings
-
i found it by myself :-)
THX
But is this possible to Boxes to?
Didnt get it in the other threat.
Greetings