vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Fix animated smilies after clicking (https://vborg.vbsupport.ru/showthread.php?t=34808)

Kier 02-04-2002 10:00 PM

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:
Code:

<a href="javascript:smilie('$smilie[smilietext]')"><img src="$smilie[smiliepath]" alt="$smilie[title]" border="0"></a>
to this
Code:

<img src="$smilie[smiliepath]" alt="$smilie[title]" border="0"
        onmouseover="this.style.cursor='hand';"
        onclick="smilie('$smilie[smilietext]');">


snyx 02-05-2002 01:39 PM

hey this is really cool kier, installing it now, thx!

Sephi 02-05-2002 01:43 PM

Good :)
It works :D
Thx !

FWC 02-05-2002 04:53 PM

Thanks, Kier. :)

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:
Code:

<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
Code:

<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

Quote:

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:
Code:

<a href="javascript:opensmiliewindow(240,280,'$session[sessionhash]')">
and replace that with:
Code:

<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.

Kier 02-05-2002 08:43 PM

Edit the vbcode_smilies_getmore template to this:
Code:

<a href="javascript:opensmiliewindow(240,280,'$session[sessionhash]')">Get More</a>
to this
Code:

<span onmouseover="this.style.cursor='hand';" onclick="opensmiliewindow(240,280,'$session[sessionhash]');">
Get More
</span>

edited to prevent smilie parsing

haas 02-05-2002 08:59 PM

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

Quote:

Originally posted by Kier
Edit the vbcode_smilies_getmore template to this:
Code:

<a href="javascript:opensmiliewindow(240,280,'$session[sessionhash]')">Get More</a>
to this
Code:

<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. :)

KISS 03-14-2002 04:20 AM

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

Quote:

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!

John 10-19-2002 10:38 PM

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

Quote:

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!

flup 01-03-2003 12:53 PM

Thiz iz a template mod :|

Big J 01-03-2003 04:03 PM

Quote:

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...

Code:

<a href="javascript:smilie('$smilie[smilietext]')">
<img src="$smilie[smiliepath]" alt="$smilie[title]" border="0"></a>

to:
Code:

<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/..._20308449.html

ChuanSE 02-19-2003 01:28 AM

works fine :D
thx dudes


All times are GMT. The time now is 02:46 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01202 seconds
  • Memory Usage 1,768KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (12)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (26)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete