News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Irritating stylesheets

Started by trekkie2444, January 12, 2008, 06:01:06 PM

Previous topic - Next topic

trekkie2444

Using the Soft MC blue theme on my site, I found the stylesheet reference to changing the page numbers color. I did that, but it only changes the ones that are linked. How the hell do I change the ones that don't have links on them? www.deck-one.net/testforum is my forum.

Eliana Tamerin

Find the "middletext" (without the quotes) class in your css and change the color codes. That should work.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

trekkie2444


trekkie2444

Ok, so a little problem. That changes every other text to white as well if I change the page numbers to white. There's no way to isolate them?

Eliana Tamerin

Sure. Not sure which file they're in, either Boardindex.template.php or index.template.php. Not sure how it's listed either, but when you find it, change the class to one you create and change the text color in that.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

greyknight17

Need a little more detail....which page numbers are you referring to here? The topic index or the posts themselves?

Eliana Tamerin

Thread pages, like the Pages: [1] at the bottom of this thread.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

greyknight17

Do you want the Pages text to change also? The following will change that as well. If you don't want that, just use the font HTML code after ', $txt[139], ':

Open up /Themes/SoftMC_Blue/Display.template.php:

Code (Search for) Select
<td class="middletext" valign="bottom" style="padding-bottom: 4px;">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#lastPost"><b>' . $txt['topbottom5'] . '</b></a>' : '', '</td>

Code (Replace with) Select
<td class="middletext" valign="bottom" style="padding-bottom: 4px;"><font color=red>', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#lastPost"><b>' . $txt['topbottom5'] . '</b></a>' : '', '</font></td>

Code (Search for) Select
<td class="middletext">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#top"><b>' . $txt['topbottom4'] . '</b></a>' : '', '</td>

Code (Replace with) Select
<td class="middletext"><font color=red>', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#top"><b>' . $txt['topbottom4'] . '</b></a>' : '', '</font></td>

Replace red with whatever color you want.

Eliana Tamerin

<font> tags are depreciated. Use <span style="color: red;"></span> instead.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

trekkie2444

That fixed topic view, but board view is still the old color. How do I go about changing that on my forum?

greyknight17

That's why I asked you where you want it to be changed....you said thread/topic pages. Board Index also then....;)

Sounds good...span it is :)

Open up /Themes/default/MessageIndex.template.php:

Code (Search for) Select
<td class="middletext">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '&nbsp;&nbsp;<a href="#bot"><b>' . $txt['topbottom5'] . '</b></a>' : '', '</td>

Code (Replace with) Select
<td class="middletext"><span style="color: red;">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '&nbsp;&nbsp;<a href="#bot"><b>' . $txt['topbottom5'] . '</b></a>' : '', '</span></td>

Code (Search for) Select
<td class="middletext">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '&nbsp;&nbsp;<a href="#top"><b>' . $txt['topbottom4'] . '</b></a>' : '', '</td>

Code (Replace with) Select
<td class="middletext"><span style="color: red;">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '&nbsp;&nbsp;<a href="#top"><b>' . $txt['topbottom4'] . '</b></a>' : '', '</span></td>

Advertisement: