would like to make the subject board look like the main board using the On, Off

Started by nemoekim, December 21, 2008, 06:20:01 PM

Previous topic - Next topic

nemoekim

would like to make the subject board look like the main board using the On, Off, icons, I saw a smf forum i would like to duplicate the theme I got it real close but not exact. which template do i need to chane to make it do this?

let me know if you want a link to this forum to see for your self! thanks.

Tyrsson

There is a couple things you will have to do to accomplish this and a couple ways to do it.

1. One resize the post icon images and rename them on your comp with the same file name as the default images you want to replace on the boards.

2. Upload the new images to the theme images folder where the default images are located.
*Note: Doing it this way will change the default images to the new ones throughout the entire forum.

To call the third image to the post legend of the index you will need to post what version of SMF you are using so someone can tell you which files to edit and how.


Also, you can call the images without overwriting the old ones but you will have to edit the template files for the Display.template.php (I think that's the right one)

Hope this helps.
PM at your own risk, some I answer, if they are interesting, some I ignore.

nemoekim

thanks for the reply, I'm using smf 1.1.7 so far I have had to edit the files, MessageIndex.template.php, index.template.php, BoardIndex.template.php. and I'm thinking ill need to change the Display.template.php its started getting confusing! but im gonna keep trying! i was able to use the style.css i got from the temp. internet folder.

Tyrsson

To add the third image to the post legend you will have to edit the file here:

Do NOT use this code its just an example**

Note: Please pay attention to the fact the if you want the icons text to show you have to add this in the language file.

Boardindex.template.php (line #193 in a default file)

if ($context['user']['is_logged'])
{
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="5">
<tr>
<td align="', !$context['right_to_left'] ? 'left' : 'right', '" class="smalltext">
<img src="' . $settings['images_url'] . '/new_some.gif" alt="" align="middle" /> ', $txt[333], '
<img src="' . $settings['images_url'] . '/new_none.gif" alt="" align="middle" style="margin-left: 4ex;" /> ', $txt[334], '
<img src="' . $settings['images_url'] . '/new_child.gif" alt="" align="middle" style="margin-left: 4ex;" /> ', $txt[335], '
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '">';


To make the text such as 'New Child Post' show you must do this: (example only)

index.english.php

Important!! Make sure the value for the new string below has NOT already been assigned as I did not look through the entire file

$txt[333] = 'New Posts';
$txt[334] = 'No New Posts';
$text[335] = 'New Child Post';


It is important to note that the child post icon should be the same as on2.gif only smaller to match the new_some.gif and new_none.gif.

Hope this helps.....

* Tyrsson I have done this before but it has been awhile and I hope I did not miss anything.
PM at your own risk, some I answer, if they are interesting, some I ignore.


Tyrsson

Also, You should be doing these edits to a copy of the default file. It is never advisable to modify the default theme directly.

If this is the default you are editing then download a copy of this theme when you get it finished so you can install it as a additional theme and restore the default theme. Because it will will help in several ways. Plus if this is the default and you decide to upgrade to the 2.0 you will loose these changes.
PM at your own risk, some I answer, if they are interesting, some I ignore.

Advertisement: