View previous topic :: View next topic |
Author |
Message |
mikelittle
Joined: 11 May 2002 Posts: 376 Location: UK
|
Posted: Sat Aug 17, 2002 4:16 pm Post subject: Smilie Tooltips |
|
|
Another quickie.
Right at the end of b2vars.php
change the line
Code: |
$b2_smiliesreplace[] = "<img src='$smilies_directory/$img' alt='$smiley_masked' />";
|
to
Code: |
$b2_smiliesreplace[] = "<img src='$smilies_directory/$img' alt='$smiley_masked' title='$smiley'/>";
|
And you get a tooltip of the text mode smiley.
It doesn't work so well for some smilies, so I'd like to a word or short phrase as the tooltip like 'oh dear!', 'woop!', or 'sob sob'.
I'll get to that later. |
|
Back to top |
|
 |
SAS
Joined: 04 Jun 2002 Posts: 26
|
|
Back to top |
|
 |
Gadget Girl
Joined: 25 Jan 2002 Posts: 305 Location: Virginia
|
Posted: Fri Aug 30, 2002 12:51 pm Post subject: |
|
|
I used this hack and it didn't change anything. Anyone else have a clue as to make a tool bar of smilies appear magically?
Sara |
|
Back to top |
|
 |
SAS
Joined: 04 Jun 2002 Posts: 26
|
|
Back to top |
|
 |
Gadget Girl
Joined: 25 Jan 2002 Posts: 305 Location: Virginia
|
Posted: Fri Aug 30, 2002 1:09 pm Post subject: |
|
|
Ok, thanks...it wasn't really clear in the post what it was for. Or maybe I didn't read it right.
Sara |
|
Back to top |
|
 |
mikelittle
Joined: 11 May 2002 Posts: 376 Location: UK
|
Posted: Wed Oct 09, 2002 8:35 pm Post subject: |
|
|
SAS was asking if this hack still works in V0.6?
Yes it does:
At the bottom of b2-include\b2vars.php
Code: | $b2_smiliesreplace[] = "<img src='$smilies_directory/$img' alt='$smiley_masked' />"; |
becomes:
Code: | $b2_smiliesreplace[] = "<img src='$smilies_directory/$img' alt='$smiley_masked' title='$smiley'/>"; |
That's it. |
|
Back to top |
|
 |
|