News:

Wondering if this will always be free?  See why free is better.

Main Menu

Board icon

Started by KiroBot, June 23, 2010, 09:04:58 PM

Previous topic - Next topic

KiroBot

How do I change my Board Icons

  * New Posts
* No New Posts
  * Redirect Board


Kill Em All



My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.


Kill Em All

It should still work, I am using it on my RC3 board with no troubles.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

KiroBot

Quote from: Kill Em All on June 23, 2010, 09:45:55 PM
It should still work, I am using it on my RC3 board with no troubles.
well, it's not that stupid error message comes up and idk how to fix it because I just started my forum site today. you think you could help?

Kill Em All

Oh, ok. I remember, I had to edit the mod to get it to work.

Extract the package onto your desktop and open the modification file in notepad, then delete it all and replace it with this:

      <?xml version="1.0"?>
      <!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">

     <modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">

<id>bigguy:cbi05</id>

<version>1.5.7</version>



<file name="$themedir/BoardIndex.template.php">
<operation>
<search position="replace"><![CDATA[ // If the board or children is new, show an indicator.
if ($board['new'] || $board['children_new'])
echo '
<img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'on', $board['new'] ? '' : '2', '.png" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" />';
// Is it a redirection board?
elseif ($board['is_redirect'])
echo '
<img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
// No new posts at all! The agony!!
else
echo '
<img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';

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


<add><![CDATA[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 info">
               <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b>';]]></add>


</operation>
</file>


<file name="$themedir/MessageIndex.template.php">
<operation>
<search position="replace"><![CDATA[ // If the board or children is new, show an indicator.
if ($board['new'] || $board['children_new'])
echo '
<img src="', $settings['images_url'], '/' .$context['theme_variant_url'], 'on', $board['new'] ? '' : '2', '.png" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" border="0" />';
// Is it a redirection board?
elseif ($board['is_redirect'])
echo '
<img src="', $settings['images_url'], '/' .$context['theme_variant_url'], 'redirect.png" alt="*" title="*" border="0" />';
// No new posts at all! The agony!!
else
echo '
<img src="', $settings['images_url'], '/' .$context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';

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


<add><![CDATA[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>';]]>
</add>
</operation>
</file>
                        <file name="$languagedir/Modifications.english.php">
        <operation>
            <search position="end" />
            <add><![CDATA[$txt['no_icon'] = 'No icon set';]]>
        </add>
</operation>
</file>
</modification>


Please note that you will have trouble with redirect icons as the mod author has stated in his support topic. But I know he is working on it. But that will get you going.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

KiroBot

Quote from: Kill Em All on June 23, 2010, 10:36:49 PM
Oh, ok. I remember, I had to edit the mod to get it to work.

Extract the package onto your desktop and open the modification file in notepad, then delete it all and replace it with this:

      <?xml version="1.0"?>
      <!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">

     <modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">

<id>bigguy:cbi05</id>

<version>1.5.7</version>



<file name="$themedir/BoardIndex.template.php">
<operation>
<search position="replace"><![CDATA[ // If the board or children is new, show an indicator.
if ($board['new'] || $board['children_new'])
echo '
<img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'on', $board['new'] ? '' : '2', '.png" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" />';
// Is it a redirection board?
elseif ($board['is_redirect'])
echo '
<img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
// No new posts at all! The agony!!
else
echo '
<img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';

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


<add><![CDATA[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 info">
               <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b>';]]></add>


</operation>
</file>


<file name="$themedir/MessageIndex.template.php">
<operation>
<search position="replace"><![CDATA[ // If the board or children is new, show an indicator.
if ($board['new'] || $board['children_new'])
echo '
<img src="', $settings['images_url'], '/' .$context['theme_variant_url'], 'on', $board['new'] ? '' : '2', '.png" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" border="0" />';
// Is it a redirection board?
elseif ($board['is_redirect'])
echo '
<img src="', $settings['images_url'], '/' .$context['theme_variant_url'], 'redirect.png" alt="*" title="*" border="0" />';
// No new posts at all! The agony!!
else
echo '
<img src="', $settings['images_url'], '/' .$context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';

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


<add><![CDATA[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>';]]>
</add>
</operation>
</file>
                        <file name="$languagedir/Modifications.english.php">
        <operation>
            <search position="end" />
            <add><![CDATA[$txt['no_icon'] = 'No icon set';]]>
        </add>
</operation>
</file>
</modification>


Please note that you will have trouble with redirect icons as the mod author has stated in his support topic. But I know he is working on it. But that will get you going.
I dont think I understand. This is my first forum ever and I just started today

Bigguy

You should be able to see this thread here:

http://forum.pctweakr.com/index.php/topic,320.msg1593.html#msg1593

Download the attachment it will install on RC3. I still have to figure the bug out for the redirect boards but this will install.

shade3134

I too want to use this mod except I am using a 'custom theme based upon default'. How do I parse these files into it when I can't find some of the replacement .php files?

KiroBot

Quote from: Bigguy on June 23, 2010, 10:58:52 PM
You should be able to see this thread here:

http://forum.pctweakr.com/index.php/topic,320.msg1593.html#msg1593

Download the attachment it will install on RC3. I still have to figure the bug out for the redirect boards but this will install.
were do i go to customize them now? every thing installed right but it didnt say how to customize

Bigguy

It does say in the readme.

KiroBot

it says nothing about were i go to set it up

shade3134

Quote from: Bigguy on June 23, 2010, 11:25:35 PM
It does say in the readme.
I did as the readme told me to. I am using a 'custom theme based on default'. I added the folders the readme said into my default theme directory and added the jpeg, however I still don't see any changes made on my site.

Bigguy

Not .jpg it must be .png

shade3134

I just did it when you posted. You are the man!

KiroBot

Quote from: Bigguy on June 23, 2010, 11:37:58 PM
Not .jpg it must be .png
Can I give you my cPanel and do it because I'm not that good with editing the files yet

Bigguy

There are no files to edit. Make a folder named icons in your theme directory...in that make other files named the board id number. In there, for each board you will put an on.png, off.png and an on2.png.....that's it.

KiroBot

Quote from: Bigguy on June 23, 2010, 11:56:37 PM
There are no files to edit. Make a folder named icons in your theme directory...in that make other files named the board id number. In there, for each board you will put an on.png, off.png and an on2.png.....that's it.
I meant that too

Bigguy

Like this:

forum/Themes/default/icons
forum/Themes/default/icons/board_id/on.png
forum/Themes/default/icons/board_id/on2.png
forum/Themes/default/icons/board_id/off.png

Replace "default" with your themes name and "board_id" with the id of the board. One folder for each board, three .png's in each

KiroBot

Quote from: Bigguy on June 24, 2010, 12:12:27 AM
Like this:

forum/Themes/default/icons
forum/Themes/default/icons/board_id/on.png
forum/Themes/default/icons/board_id/on2.png
forum/Themes/default/icons/board_id/off.png

Replace "default" with your themes name and "board_id" with the id of the board. One folder for each board, three .png's in each
and were do i do that cPanel or moify themes?

Bigguy

Cpanel and then file manager.

KiroBot

IU went to theme's default and i dont see a icons folder

Kill Em All

You must create the icons folder. Same goes for your custom theme.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

KiroBot

how do i no what my board ID number is?

Kill Em All

When at your board index, then you click on a board, this will be at the end of your link:
board=29.0

29.0 is the board index. Now obviously that number will range from board to board. And you do not put the .0 at the end if I recall correctly on your folder name.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

Advertisement: