Advertisement:

Is their anyway to turn off message icons?

Aloittaja eric123, tammikuu 22, 2005, 11:31:31 AP

« edellinen - seuraava »

guider


guider

I just had a look at the original but I can't see any reference to xx in it either. COuld you take a look at the file I posted above and point the err?

DeadMetal

Unknown: a fragment of the code from Post.template.php that you cited is
<select name="icon" id="icon" onchange="showimage()">';

However, in 1.0 and 1.01 it is:
<select name="icon" onchange="showimage()">';

How come?

guider

Yeah and the original contains no reference to xx at all. So I can't see where it went wrong as I editted out more than this topic describes. Have a look if you will and tell me what's missing.

http://www.guider.atwebhosting.com/files/Post.template.php.txt

[Unknown]

Please don't bump your posts, it makes me not want to answer you.

-[Unknown]

guider

There was a 24-hour gap. Since you are a regular I was afraid you missed it.

guider


helenbpd

#27
Guider, go through the Post.template.php using any editor and use the search function to find all instances of .gif

From the source code of the thread you linked on your site, it looks like somewhere in the template you erased the xx from in front of a .gif  Just find the one .gif with no file name and put the xx back in.  :)


No, I misled you, I think.  Sorry!

guider

I love your support but that killed all the emoticons  ;D
I think it's some kind of formula. "THIS + THAT + .gif". So leave that stuff alone I guess. Oh well.

helenbpd

LOL - I just rushed back to holler STOP!  ;D

Yeah, it's something to do with the javascript & what it calls up - it's not putting the right name (or any name) onto those .gifs.

Puchu

#30
Lainaus käyttäjältä: [Unknown] - tammikuu 22, 2005, 05:38:07 IP
Oh, sorry, I hadn't looked at what A.M.A suggested.

Find, MessageIndex.template.php:

Remove:
<td class="windowbg2" valign="middle" align="center" width="4%">
<img src="', $settings['images_url'], '/post/', $topic['first_post']['icon'], '.gif" alt="" />
</td>


-[Unknown]


Thats all you need to do with RC2 that I can tell...  had to go back and find out how to do it again and thought I would go ahead and help with it ;)


EDIT:

Find
<td width="9%" colspan="2" class="catbg3"></td>

replace with
<td width="5%" class="catbg3"></td>


that will let the columns line up to the column titles... stupid me...

Puchu

Okay, with the Helios TP 1.1 RC2 theme in the messageindex.template.php


the main code is different that needs removed...

Find and remove:
               <td class="windowbg2" valign="middle" align="center" width="4%">
<img src="', $topic['first_post']['icon_url'], '" alt="" />
</td>


Find:
<td width="9%" colspan="2"></td>

Replace:
<td width="5%" class="catbg3"></td>

it might be that way with all RC2 theme files...

Puchu

tp remove the option to choose an icon in post.template.php


find and delete
// Start with message icons - and any missing from this theme.
echo '
var icon_urls = {';
foreach ($context['icons'] as $icon)
echo '
"', $icon['value'], '": "', $icon['url'], '"', $icon['is_last'] ? '' : ',';
echo '
};';

// The actual message icon selector.
echo '
function showimage()
{
document.images.icons.src = icon_urls[document.forms.postmodify.icon.options[document.forms.postmodify.icon.selectedIndex].value];
}';



find and delete:

<tr>
<td align="right">
<b>', $txt[71], ':</b>
</td>
<td>
<select name="icon" id="icon" onchange="showimage()">';

// Loop through each message icon allowed, adding it to the drop down list.
foreach ($context['icons'] as $icon)
echo '
<option value="', $icon['value'], '"', $icon['value'] == $context['icon'] ? ' selected="selected"' : '', '>', $icon['name'], '</option>';

echo '
</select>
<img src="', $context['icon_url'], '" name="icons" hspace="15" alt="" />
</td>
</tr>

Advertisement: