boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Smilie Tooltips

 
Post new topic   Reply to topic    boardom Forum Index -> Hacks
View previous topic :: View next topic  
Author Message
mikelittle



Joined: 11 May 2002
Posts: 376
Location: UK

PostPosted: Sat Aug 17, 2002 4:16 pm    Post subject: Smilie Tooltips Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
SAS



Joined: 04 Jun 2002
Posts: 26

PostPosted: Mon Aug 19, 2002 6:55 pm    Post subject: Reply with quote

umm i am using version 4 and i dont seem to have a b2vars.php file :'(

doh! found it in b2-include
_________________
http://www.projectigi2.co.uk
IGI 2 Covert Strike Fan Site
http://deltaforcecommand.org.uk
General Special Forces Games.
http://flashpoint.deltaforcecommand.org.uk
Flashpoint Site
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Gadget Girl



Joined: 25 Jan 2002
Posts: 305
Location: Virginia

PostPosted: Fri Aug 30, 2002 12:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
SAS



Joined: 04 Jun 2002
Posts: 26

PostPosted: Fri Aug 30, 2002 1:04 pm    Post subject: Reply with quote

its not for that it Makes a popup message over a smilie when you move the mouse over it.

As for making a smilie toolbar there are instructions http://tidakada.com/board/viewtopic.php?t=978&highlight=smilies]Here
_________________
http://www.projectigi2.co.uk
IGI 2 Covert Strike Fan Site
http://deltaforcecommand.org.uk
General Special Forces Games.
http://flashpoint.deltaforcecommand.org.uk
Flashpoint Site
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Gadget Girl



Joined: 25 Jan 2002
Posts: 305
Location: Virginia

PostPosted: Fri Aug 30, 2002 1:09 pm    Post subject: Reply with quote

Ok, thanks...it wasn't really clear in the post what it was for. Smile Or maybe I didn't read it right.

Sara
Back to top
View user's profile Send private message
mikelittle



Joined: 11 May 2002
Posts: 376
Location: UK

PostPosted: Wed Oct 09, 2002 8:35 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Hacks All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group