View Full Version : Fix animated smilies after clicking
Not much of a hack, this one... and it only works in IE4+ and the very latest of the other browsers.
Basically, it stops the animated smilies in the clickable list from halting their animation cycle after you click one.
Very simple really... change the vbcode_smiliebit template from this:<a href="javascript:smilie('$smilie[smilietext]')"><img src="$smilie[smiliepath]" alt="$smilie[title]" border="0"></a>to this<img src="$smilie[smiliepath]" alt="$smilie[title]" border="0"
onmouseover="this.style.cursor='hand';"
onclick="smilie('$smilie[smilietext]');">
hey this is really cool kier, installing it now, thx!
Sephi
02-05-2002, 01:43 PM
Good :)
It works :D
Thx !
voogru
02-05-2002, 05:00 PM
thanks
Mystics
02-05-2002, 05:42 PM
Big Thx @Kier!
One small addon:
You also should fix the "Smilies List Popup" (misc.php?action=getsmilies&s=)
To do that, change the vbcode_popup_smiliesbits template from this:<td bgcolor="$backcolor"><a href="javascript:opener.smilie('$smilie[text]')"><img src="$smilie[path]" border="0" alt="$smilie[title]"></a></td>
<td bgcolor="$backcolor"><normalfont>$smilie[text]</normalfont></td>to this<td bgcolor="$backcolor"><img src="$smilie[path]" border="0" alt="$smilie[title]"
onmouseover="this.style.cursor='hand';"
onclick="opener.smilie('$smilie[text]');"></td>
<td bgcolor="$backcolor"><normalfont>$smilie[text]</normalfont></td>
JJR512
02-05-2002, 08:15 PM
I've applied both of these template mods and they are great. However, one little thing...and I mean really little...When you click the link that says "Get More," the smilies there still do stop animating. Could someone tell us how to fix that, too? :)
Mystics
02-05-2002, 08:42 PM
Originally posted by JJR512
When you click the link that says "Get More," the smilies there still do stop animating. Could someone tell us how to fix that, too? :) One solution would be to remove the javascript from the "Get More"-Link and to open just a normal Page, but then you can't let open the Smilie Window with a special size (for example 240x280 as default), because it just opens a new, normal Browser Instance.
However, to do this you have to change the Template vbcode_smilies_getmore
Search:<a href="javascript:opensmiliewindow(240,280,'$session[sessionhash]')">and replace that with:<a href="misc.php?action=getsmilies&s=$session[sessionhash]" target="_blank">[EDIT]
Ok, the solution of Kier is of course much better, so please ignore (or delete @Mods) this Posting.
Edit the vbcode_smilies_getmore template to this:<a href="javascript:opensmiliewindow(240,280,'$session[sessionhash]')">Get More</a>to this<span onmouseover="this.style.cursor='hand';" onclick="opensmiliewindow(240,280,'$session[sessionhash]');">
Get More
</span>edited to prevent smilie parsing
Great hack!! Installing now!
DarkReaper
02-06-2002, 12:00 AM
Cool...how can I make it so the Get more link is the same color as all other links though?
JJR512
02-06-2002, 01:45 AM
In the template vbcode_smilies_getmore where it says "Get More", change it to <font color="xx">Get More</font>, where xx is the color, either by name (white) or by hex code (#FFFFFF), or by using the variable for the link color set through the Styles part of the admin cp (that's { linkcolor } without the spaces inside the curly brackets).
Gutspiller
02-07-2002, 08:46 PM
Originally posted by Kier
Edit the vbcode_smilies_getmore template to this:<a href="javascript:opensmiliewindow(240,280,'$session[sessionhash]')">Get More</a>to this<span onmouseover="this.style.cursor='hand';" onclick="opensmiliewindow(240,280,'$session[sessionhash]');">
Get More
</span>edited to prevent smilie parsing
FYI to anybody that runs 2.0.3 this still doesn't work. :)
Worked like a charme. Thanks been looking for htis one.
ZiRu$
03-20-2002, 01:50 AM
the get more fix does not work
Beams
03-20-2002, 02:17 PM
kewl just fixed all my problems
Only thing i have noticed is the get more smile box does not stay on top after you click the smile. I know its only a matter of clicking on it to bring it to the top but is there anyway to keep it on top like before??
Hot Dogg get more fix works on my 2.2.4 forum
Beams :D
Tech_Koss
03-20-2002, 06:56 PM
so when you click on the smilie, the animation should stop as well?
is there a way to make it so that there is no animation at all?
ZiRu$
03-23-2002, 08:26 PM
Originally posted by Tech_Koss
so when you click on the smilie, the animation should stop as well?
is there a way to make it so that there is no animation at all?
sure dont add smilies that are animated
ZiRu$
03-27-2002, 06:02 PM
the getmore still dont work for me!
Fantastic! No freezes anywhere!
Trabia
12-21-2002, 09:03 PM
Great hack thanks!!! That had been really bugging me.
The Get More works fine for me on 2.2.9
Big J
01-03-2003, 08:02 AM
Originally posted by Beams
kewl just fixed all my problems
Only thing i have noticed is the get more smile box does not stay on top after you click the smile. I know its only a matter of clicking on it to bring it to the top but is there anyway to keep it on top like before??
BUMP FOR A FIX!!! How to keep smilie window from moving behind main page after clicking ?? HELP!
Thiz iz a template mod :|
Big J
01-03-2003, 04:03 PM
Originally posted by Big J
BUMP FOR A FIX!!! How to keep smilie window from moving behind main page after clicking ?? HELP!
Bump
feldon23
02-14-2003, 09:11 AM
Kier presents an interesting workaround, but another solution is to change what is considered deprecated javascript...
<a href="javascript:smilie('$smilie[smilietext]')">
<img src="$smilie[smiliepath]" alt="$smilie[title]" border="0"></a>
to:
<a href="#" onclick="smilie('$smilie[smilietext]');return false">
<img src="$smilie[smiliepath]" alt="$smilie[title]" border="0"></a>
I am not sure if this limits you to HTML4 browsers or not but I know it works great on my board.
I read about it here:
http://www.experts-exchange.com/Web/Web_Languages/HTML/Q_20308449.html
ChuanSE
02-19-2003, 01:28 AM
works fine :D
thx dudes
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.