Simple Machines Community Forum

General Community => Scripting Help => Aiheen aloitti: bodyboard_jerez - toukokuu 11, 2007, 03:26:13 IP

Otsikko: Programming the aplication from onmouseover_effects mod
Kirjoitti: bodyboard_jerez - toukokuu 11, 2007, 03:26:13 IP
Hello, sorry for my english...

I'm tring to install manually this mod:

http://custom.simplemachines.org/mods/index.php?mod=13

I have the 1.1.2 SMF (diberlMC theme) and I would like to do the action to  this

issue....

Please, could somebody who did it good to help me with it please?

Thank you very much !! 
Otsikko: Re: Programming the aplication from onmouseover_effects mod
Kirjoitti: Kindred - toukokuu 11, 2007, 03:43:36 IP
Straight out of that text file...

Lainaa
Okay, now open the new MessageIndex.template.php and find this phrase in your file:

$topic['first_post']['link']

That's what generates each link. Okay, now the line above that should,
in theory, be a <td> tag. Mine looks like this:

<td class="windowbg" valign="middle">

So, what do we do with this? Easy stuff really... just paste this into
the middle:

onMouseOver="this.className=\'windowbg2\'" onMouseOut="this.className=\'windowbg\'"

so the result looks like this, or near this:

<td class="windowbg" valign="middle" onMouseOver="this.className=\'windowbg2\'" onMouseOut="this.className=\'windowbg\'">
Otsikko: Re: Programming the aplication from onmouseover_effects mod
Kirjoitti: bodyboard_jerez - toukokuu 11, 2007, 03:59:46 IP
Yes, of course... I tried it... but not good results... I need somebody who install it in 1.1.2 and hel me with the problem.

Thank you very much, I wait !!! . Good weekend !!
Otsikko: Re: Programming the aplication from onmouseover_effects mod
Kirjoitti: bodyboard_jerez - toukokuu 12, 2007, 02:23:30 IP
I do all the work about the BoardIndex.template.php (different how the mod instructions says... but runs fine).

However, I can't modificate well the  MessageIndex.template.php because the .txt of the mod says:

1º Open the MessageIndex.template.php and find this phrase in your file:

$topic['first_post']['link']

2º That's what generates each link. Okay, now the line above that should,
in theory, be a <td> tag. Mine looks like this:

<td class="windowbg" valign="middle">

So, what do we do with this? A result looks like this:

<td class="windowbg" valign="middle" onMouseOver="this.className=\'windowbg2\'" onMouseOut="this.className=\'windowbg\'">

3º It's all !!

::) Then, I did the problem is that the <td class="windowbg" valign="middle"> isn't above $topic['first_post']['link'] and all changes don't runs enought well...

I tried to do a lot of changes / possibilities.. but not good results...

Please, help me with this issue. Thank you very very much !!