News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

ColorizeBoards

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

Previous topic - Next topic

Bulakbol

@lazanya
That's great! Enjoy.  :)

@simsek97
Download the package again and re-install.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

SISPro

lots of error on this and i am running the new beta 2.04b something like that here is a screenshot of it


Bulakbol

@SISPro
I apologize for being late here. If you still need assistance, please attach your Sources/Recent.php
and the default/BoardIndex.template.php. Ignore the other files that failed the test if you are using the default theme.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

RoH

hey working great.. but somehow i don't see the TITLE Color ?

forum is http://hosting-offers.info

can you plz help


Bulakbol

@RoH
Make sure the following are in your default/languages/Modifications.english.php. If you are not using English, then add them to your default/languages/Modification.{your_language}.php.

This is for SMF version 1.1.7

$txt['colorize_color'] = 'Color';
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

RoH

#245
its already there.. :(

I still remember seeing colored titles before applying the icon set MOD cbi 1.5

since then, i guess there is something in boardindex.template.php that i am not able to catch.

check this code

// If the board is new, show a strong indicator.
if ($board['new']) {
if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/on.png'))
$board_new_img=$settings['theme_url']. '/icons/' . $board['id'] . '/on.png';
else
$board_new_img=$settings['images_url']. '/on.png';

echo '<img src="', $board_new_img,'" alt="', $txt['no_icon'], '" title="', $txt['no_icon'], '" border="0" />';
} elseif ($board['children_new']) {
if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/on2.png'))
$childboard_new_img=$settings['theme_url']. '/icons/' . $board['id'] . '/on2.png';
else
$childboard_new_img=$settings['images_url']. '/on2.png';

echo '<img src="', $childboard_new_img,'" alt="', $txt['no_icon'], '" title="', $txt['no_icon'], '" border="0" />';
} else {
if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/off.png'))
$board_nonew_img=$settings['theme_url']. '/icons/' . $board['id'] . '/off.png';
else
$board_nonew_img=$settings['images_url']. '/off.png';

echo '<img src="', $board_nonew_img,'" alt="', $txt['no_icon'], '" title="', $txt['no_icon'], '" border="0" />';
}
// Is it a redirection board?
if ($board['is_redirect'])
echo '<img src="', $settings['images_url'], '/redirect.png" alt="*" title="*" border="0" />';


echo '</a>
</td>
<td class="windowbg2">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b>';

if (!empty($board['description']))
echo '<br /><span style="color: ', $board['dcolor'], ';">', $board['description'], '</span>';


when i remove the cbi MOD, the title color displays as it shud.

So i guess there is something in that code that causing it NOT to work.

can you please take a look.

Thank you

~RoH

RoH

:) I fixed it... wwoooo


Just this line in boardindex.template.php

</td>
<td class="windowbg2">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b>';


should actually look like this

</td>
<td class="windowbg2">
<b><a href="', $board['href'], '" name="b', $board['id'], '" style="color: '. $board['bcolor']. ';">', $board['name'], '</a></b>';

ibulseco

can someone help, how to incorporate this mod to my SMF Forum  :(

Bulakbol

@RoH
haha glad you fixed it yourself.  It feels good when you fixed something that you thought you can't fix it.

@ibulseco
Download the mod from here and upload it to your package folder via FTP. Then use the package manager to install it.
Admin => Packages => Browse Packages. Then click "Apply Mod" link. If there's problem, post it here.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

superlalynx

Hi,
I got this message after I ran the installation (All test were on green):
Quote
Fatal error: require() [function.require]: Failed opening required '/mnt/sites/huahinfrenchalliance.org/web/hhfaforum/Packages/temp/./ColorizeBoardsDB114.php' (include_path='.') in /mnt/sites/huahinfrenchalliance.org/web/hhfaforum/Sources/Packages.php on line 556
It said then, after reloading the page, that the installation went successful but in reality nothing appears when attempting to modify a section ...
Any idea?
Alliance Francophone de Hua Hin.
http://huahinfrenchalliance.org/hhfaforum/index.php

Bulakbol

Try uninstalling the mod, create a "temp" folder inside the packages folder and chmod to 777 or 655, then reinstall the mod.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

superlalynx

Quote from: Bulakbol on January 12, 2009, 06:41:42 PM
Try uninstalling the mod, create a "temp" folder inside the packages folder and chmod to 777 or 655, then reinstall the mod.

That way, it worked! Thank you.
Alliance Francophone de Hua Hin.
http://huahinfrenchalliance.org/hhfaforum/index.php

Whimsical

Very useful mod, and no probs with installation.

Thanks! :)

Bulakbol

Thanks for the compliments.  8)
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

adp


Bulakbol

Not too sure. I will update this mod soon. Sorry for the delay.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Bulakbol

This mod is now updated for SMF 2.0 RC1 version. Thanks for waiting patiently.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

TDNY

Thanks for this mod Bulakbol, I'm using vers. 3.0 of yours that Duncan85 posted back on page 11. I'm using 1.1.8 with the default-core theme. uploaded it with package installer, installed it and changed the board colors in minutes. I am by no means familiar with computer workings, this was very easy to do thanks again.

TD

edi67

CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

eddie8

Hi very nice Mod!

works great just one color question
under boards, in admin

Description:
            A short description of your board.

When I set a color for that  it only changes the text color
in the admin WYSIWYG box only, not the description text in
the board itself.

Thanks
Ed

Advertisement: