Archived Boards and Threads... > Classic Themes

[Theme] Loon Themes for SMF 1.0.x and 1.1 RC1 + RC2

<< < (4/22) > >>

GGPassion:
Just one question, we can't see news with this theme?
I can set the news, but I don't see them anywhere...
Perhaps we can add it like in the Yabb Se Default theme.
I'm not good enough to don't make a mistake with that  ;)

Mystica:
i didn't include the news in this theme since the forum i made this theme for only uses the news fader. the fader should work fine, if you want to use the normal news items instead, this is what you could do:
open index.template.php
find this:

--- Code: --- echo '
</td></tr></table>
</div>

</td>
<td width="440" style="padding-left: 5px;" valign="top">';


--- End code ---

and replace with:

--- Code: --- echo '
</td></tr>';


if (!empty($settings['enable_news']))
echo '
<tr>
<td colspan="2" height="24" style="padding-left: 1ex;">
<b>', $txt[102], ':</b> ', $context['random_news_line'], '
</td>
</tr>
</table>
</div>
</td>
<td width="440" style="padding-left: 5px;" valign="top">';

--- End code ---

the news should then be displayed under the user info stuff.

Oldiesmann:
Mystica - you need to do it like this so it won't look "funky" if the news isn't enabled :)


--- Code: --- echo '
</td></tr>';


if (!empty($settings['enable_news']))
echo '
<tr>
<td colspan="2" height="24" style="padding-left: 1ex;">
<b>', $txt[102], ':</b> ', $context['random_news_line'], '
</td>
</tr>'; // "If" statement should end here, not at the end of this chunk of code
//Always output this stuff
echo '</table>
</div>
</td>
<td width="440" style="padding-left: 5px;" valign="top">';

--- End code ---

GGPassion:
Thank You, I try that tonight.

Mystica:

--- Quote from: Oldiesmann on January 07, 2005, 11:35:24 AM ---Mystica - you need to do it like this so it won't look "funky" if the news isn't enabled :)

--- End quote ---

d'oh! thanks, didn't think about that!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version