News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

ColorizeBoards

Started by Bulakbol, December 18, 2007, 06:34:51 PM

Previous topic - Next topic

Bulakbol

#40
awww let me look at your BoardIndex.template.php and MessageIndex.php again. It looks like you need a custom made ColorizeBoards mod.  I'll let you know.

<edit again> Joomlamz, sorry, your theme is multicolor and it's using it's own color. The category color is the only one that work in the ay isigi theme. Sorry, can't do anything. </edit again> lol
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Apllicmz

Yes i try...
see my forum..www.joomlamz.com  and forum
Board is now have color....

Where can edit...



Bulakbol

I saw the category color is working. Looking good site eh.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Apllicmz

Thank you
Did Have soluction for mi...



Eliana Tamerin

QuoteIt looks like you need a custom made ColorizeBoards mod.

QuoteJoomlamz, sorry, your theme is multicolor and it's using it's own color. The category color is the only one that work in the ay isigi theme. Sorry, can't do anything.

Doesn't look like there is one.
Do NOT PM me for support.

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

Bulakbol

Quote from: Eliana Tamerin on December 26, 2007, 12:48:26 PM
QuoteIt looks like you need a custom made ColorizeBoards mod.

QuoteJoomlamz, sorry, your theme is multicolor and it's using it's own color. The category color is the only one that work in the ay isigi theme. Sorry, can't do anything.

Doesn't look like there is one.

Joomlamz theme I think uses css and java script to change board colors.   
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

allumius

i have one problem
I use the scribles2 theme

in the BoardIndex.template.php i'm finding for this code

// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
', $board['posts'], ' ', $txt[21], ' <br />
', $board['topics'],' ', $txt[330], '
</span></td>
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">';


Buy i dont have this code!
Here is my BoardIndex.template.php. Can you help me please?

Eliana Tamerin

Wow, that's even weird for Bloc. I checked out your BoardIndex.template.php and I had to double check against one from a Scribbles 2 theme that I downloaded.

I think I see what you have to do, but I'm not entirely sure. Make sure JohnyB either agrees with me or posts the correct way before you do this.

// Show some basic information about the number of posts, etc.
echo '
</td>';
if(!empty($settings['use_redirect']))
{
if(!$board['is_redirect'] || !$modSettings['redirect_hide_columns'])
{
if(!$board['is_redirect'])
{
echo '
<td class="windowbg" align="center">', $board['posts'], '</td>
<td class="windowbg" align="center">', $board['topics'],'</td>';
}
else
echo '
<td colspan="2" class="windowbg" align="center">Redirected</td>';
}
}
else
echo '
<td class="windowbg" align="center">', $board['posts'], '</td>
<td class="windowbg" align="center">', $board['topics'],'</td>';


echo '
<td class="windowbg2 smalltext" valign="middle" width="26%">';


This is the section in question.

Find this:

else
echo '
<td class="windowbg" align="center">', $board['posts'], '</td>
<td class="windowbg" align="center">', $board['topics'],'</td>';


And replace it with this:

else
echo '
<td class="windowbg" align="center">';
if (!empty($board['bcolor']))
echo '<span style="color: ', $board['bcolor'], ';" class="smalltext">';
else
echo '<span class="smalltext">';
echo '
', $board['posts'], '</span></td>
<td class="windowbg" align="center">';
if (!empty($board['bcolor']))
echo '<span style="color: ', $board['bcolor'], ';" class="smalltext">';
else
echo '<span class="smalltext">';
echo '
', $board['topics'],'</span></td>';


Please note: I haven't tested this. Either wait for JohnyB or use at your own risk. If it fails, just go back and replace the entire section with the one I posted above.
Do NOT PM me for support.

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

Bulakbol

#48
I'll take a look at your BoardIndex.template.php Allumius. I'll let you know.

Have you tried Eliana's sulution?


<edit>

Eliana Tamerin is correct. Just change the class="smalltext" part to class="normaltext". Do the same thing with your MessageIndex.template.php. If you have problem, just let me know.

Also, if you installed version 2.0 (not supported by verion 1.0), find this code

Quote$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';

and replace with

Quote$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')"><span style="color: '.$child['bcolor']. ';">' . $child['name'] . '</span></a>';

That will display colors of childboards in board index.


I noticed that the list of childboard in board index has a white part at the right side. It could only be my copy but in case you also have it, just find:

Quote<td colspan="3" class="windowbg', !empty($settings['seperate_sticky_lock']) ? '3' : '', '">

and change the colspan="3" to colspan="5". Like this.

Quote<td colspan="5" class="windowbg', !empty($settings['seperate_sticky_lock']) ? '3' : '', '">

</edit>
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

allumius

First, Sorry, my english is very  :(

Thank you very much to you two
I have tried Eliana's solution and it seems to be that it me works well!!!
Tomorrow I want to try your solution for childboards'colors JohnyB
Thanks  :D

Google does small miracles translating  :)

Bulakbol

Have fun with modifying your files and with colors. :)
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Eliana Tamerin

Wow, I was actually right. And I was scared, Bloc's code makes me want to run and hide most days. Glad I could be of help, allumius.
Do NOT PM me for support.

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

allumius

Well i have a problem with:

Quote
Also, if you installed version 2.0 (not supported by verion 1.0), find this code

Quote
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';

and replace with

Quote
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')"><span style="color: '.$child['bcolor']. ';">' . $child['name'] . '</span></a>';

That will display colors of childboards in board index.

If I do it that indicates me, the names of the childboards do not appear in the principal index of the forums, under the name of the forums

Categoria
   |_Forum: Sport
        |_Childboard: (nothing appear!!!!)

Bulakbol

#53
Quote from: allumius on December 28, 2007, 04:19:22 AM
Well i have a problem with:

Quote
Also, if you installed version 2.0 (not supported by verion 1.0), find this code

Quote
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';

and replace with

Quote
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')"><span style="color: '.$child['bcolor']. ';">' . $child['name'] . '</span></a>';

That will display colors of childboards in board index.

If I do it that indicates me, the names of the childboards do not appear in the principal index of the forums, under the name of the forums

Categoria
   |_Forum: Sport
        |_Childboard: (nothing appear!!!!)

I hope you are not talking about the linktree. Check the attached pic with arrow. Thats the list of childboard in the board index. Make sure that you installed ColorizeBoards2.0 (version 2.0).

If you will look closely to the replacement of original codes, the only difference is the (blue)<span style="color: '.$child['bcolor']. ';">' . $child['name'] . '</span></a>';
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

allumius

Yes i have the 2.0 version installed
Look the attachd pic please

Bulakbol

#55
Did you get errors when you installed the version 2.0?

If not, then you must have done the editing wrong.  Attach your BoardIndex.template.php and a link to your board.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

allumius

Here is mi boardindex.template.php
No, i have not error in the installation
the link is www.losamigotes.com/forum

Bulakbol

Quote from: allumius on December 30, 2007, 06:33:06 AM
Here is mi boardindex.template.php
No, i have not error in the installation
the link is www.losamigotes.com/forum


You accidentally deleted one line of codes. Find
Quote$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')"><span style="color: '.$child['bcolor']. ';">' . $child['name'] . '</span></a>';

and after it, add

Quote$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];

It should looks like this:

Quoteforeach ($board['children'] as $child)
               {
                     $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')"><span style="color: '.$child['bcolor']. ';">' . $child['name'] . '</span></a>';
                     $children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
               }

Anyway, I edited your BoardIndex.template.php and I attached it here. You can download it and try. It should work.

Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

allumius

Thanks!!!
Now all ok!!!
Happy New Year 2008!!!!

Bulakbol

That's good to hear. Happy New Year to all!
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Advertisement: