Latest topics
» Mobile Version
by  Yesterday at 21:03

» Icons
by  Yesterday at 21:03

» Change the style of tooltips with tooltipster !
by white Yesterday at 05:25

» [GAME] What are you doing right now?
by Valoish Mon 16 Jan 2017, 21:24

» Star in navbar
by Kisskiss Mon 16 Jan 2017, 13:10

» Chit Chat Thread
by  Mon 16 Jan 2017, 12:25

» Starred Forums
by Milouze14 Mon 16 Jan 2017, 12:11

» [GAME] Post a random picture
by  Sun 15 Jan 2017, 22:31

» [GAME] Count to 999 using odd numbers Van-Helsing Edition
by Valoish Sun 15 Jan 2017, 17:23

» [GAME] What are you listening to right now?
by Valoish Sun 15 Jan 2017, 17:23

» Flat Browser Buttons
by  Sun 15 Jan 2017, 12:15

» #12 Pick a Theme
by SLGray Sat 14 Jan 2017, 20:07

» IconSkouliki
by skouliki Sat 14 Jan 2017, 03:07

» _userdata.usergroup
by STBW Sat 14 Jan 2017, 01:11

» Add more topic title colors
by Samantha Fri 13 Jan 2017, 19:43

Recent Tutorials
Top posting users this month
Who is online?
In total there are 8 users online :: 1 Registered, 0 Hidden and 7 Guests :: 1 Bot

Dr Jay

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

[SUGGESTION] Show Smiley Meanings on Hovering

View previous topic View next topic Go down

Guest
Guest
View all awards

PostGuest on Wed 03 Aug 2016, 14:38

I've always wanted to request this one. When hovering over a smiley in a post one cannot see the meaning of it. I want to be able to see what it means, like when hovering over a Rose it says 'rose' or Evil or Very Mad shows 'evil'. I never uderstood why that never got noticed or implemented before.

And perhaps you'd be so kind to share the code... Smile


Last edited by Samantha on Wed 03 Aug 2016, 15:52; edited 1 time in total
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4202
Points : 8667
Reputation : 2108
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Wed 03 Aug 2016, 15:00

@Samantha that is an interesting idea and should be easy to accomplish. Surprised

Here's a draft that I wrote :
Code:
$.get('/smilies.forum?action=smilies&js=no&mode=smilies_frame', function(d) {
  window.smilies_data = {};

  for (var a = $('img', d), i = 0, j = a.length; i < j; i++) {
    smilies_data[a[i].src] = a[i].title;
  }

  $(function() {
    for (var a = $('.post img'), i = 0, j = a.length; i < j; i++) {
      if (smilies_data[a[i].src]) {
        a[i].title = smilies_data[a[i].src];
      }
    }
  });
 
  'par ange tuteur';
});

At the moment :
- it doesn't cache the smiley data, so it'll send a request to get the smiley data each time, but it should achieve the result you mentioned.
- it only grabs the titles from images viewable on the front page : http://fmdesign.forumotion.com/smilies.forum?action=smilies&js=no&mode=smilies_frame

I'll touch this up later when I get more time. The latter problem I mentioned might be a bit more difficult and I'll probably refrain from implementing it because it'll add to the request load.. Think
Samantha

Title :
CSS Admirer
Gender : Female
Age : 28
Posts : 452
Points : 946
Reputation : 117
Location : Wherever God wants me
Language : Cryptic
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile

PostSamantha on Fri 02 Dec 2016, 11:39

The cached version is available right here.

--------


Lovely, Satisfy, World

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum