FM Design
Would you like to react to this message? Create an account in a few clicks or log in to continue.

IMPORTANT

FM Design is in read-only mode, please click here for more information.

Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49

» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21

» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28

» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15

» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11

» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24

» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58

» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50

» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22

» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12

» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10

» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51

» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11

» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19

» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34

Recent Tutorials
Top posting users this month

Who is online?
In total there are 15 users online :: 0 Registered, 0 Hidden and 15 Guests

None

[ View the whole list ]


Most users ever online was 515 on Tue 14 Sep 2021, 15:24

Change the style of tooltips with tooltipster !

View previous topic View next topic Go down

Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12004
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Tue 15 Mar 2016, 07:05

With tooltipster you can enhance the style of the tooltips on your forum, allowing you to make them fit with your theme or personal tastes. Smile

Change the style of tooltips with tooltipster ! Untitl10

Click to view demo

This plugin is already pre-installed on all forumotion forums thanks to a recent update. All we need to do is execute a script on all elements with a title attribute. Wink


Installation


For this to work you first need to enable the following option. Go to Admin Panel > General > Messages > Configuration and enable the option entitled "Activate the preview of profiles on the tag usernames." Click save and then go to Modules > JavaScript codes management and create a new script with the following settings.

Title : Tooltipster Tooltips
Placement : In all the pages
Code:
$(function(){
  // general options for editing the tooltip
  // see more : http://iamceege.github.io/tooltipster/#options
  var options = {
    animation : 'fade',
    arrow : true,
    speed : 300,
    delay : 300,
    onlyOne : true,
    theme : 'tooltipster-default'
  },
 
  // delay execution by placing the function into another queue
  // helps with applying to other JS created elements such as the editor
  queue = true,
  titles,
 
  parse = function() {
    titles = $('[title]');
    titles.tooltipster && titles.not('[title=""], .mentiontag, .tooltipstered').tooltipster(options);
  };
 
  queue ? $(parse) : parse();
});

When you're finished click save and your tooltips should now display differently ! Yes To find out how to change the options and more please see the next section.


Modifications


At the top of the script you should see an options object. This object contains the general settings for the tooltip, such as the display animation, delay, and theme. To find a full explanation on the options please see this page. Options that aren't included can be added in by creating a new property and value in the object. Wink


theme : As the main options are already covered I'll go over how to install and change the theme. The tooltip themes are installed via a CSS classname --
Code:
.tooltipster-default
for example. To change the theme all you need to do is change the classname, which can be found in the options object under the "theme" property. These are the currently existing themes for tooltipster :
https://github.com/iamceege/tooltipster/tree/master/css/themes

You can preview them here : ( FYI Forumotion uses "shadow" as the .tooltipster-default theme. )
http://iamceege.github.io/tooltipster/#themes

Click on one of the files and then copy and paste the code to Display > Colors > CSS stylesheet. For example, if I chose the "tooltipster-punk" theme, I'd change this part of the script :
Code:
    theme : 'tooltipster-default'

into this :
Code:
    theme : 'tooltipster-punk'

Thus making my tooltips more punkish. Rock


If you have any questions or comments feel free to leave them below. Be creative and make your tooltips awesome ! Banana

Notice
Tutorial written by Ange Tuteur.
Tooltipster jQuery plugin by Caleb Jacob.
Reproduction not permitted without consent from the author.


Last edited by Ange Tuteur on Tue 19 Apr 2016, 18:05; edited 3 times in total
SLGray
SLGray
Valued Member
Gender : Male
Age : 51
Posts : 2465
Points : 7097
Reputation : 290
Location : United States
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : ModernBB
http://www.fmthemes.forumotion.com https://www.facebook.com/FM-Themes-655055824604957 https://twitter.com/FMThemes https://pinterest.com/FMThemes

PostSLGray Tue 15 Mar 2016, 17:03

Is there a place where we can see the different themes in action?

Thanks for sharing this amazing tutorial.

Edit: I have noticed one issue. The tooltips appears to cover the thing I have the cursor on. It does not appear above it.
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12004
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Tue 15 Mar 2016, 17:37

Oh right, you can see the themes here. I'll add that in, thanks. Smile

I think it might be related to the theme, try adding the CSS code below :
Code:
#wrap {
  margin-top:30px;
}

If that doesn't work try changing the 30px to -30px.
SLGray
SLGray
Valued Member
Gender : Male
Age : 51
Posts : 2465
Points : 7097
Reputation : 290
Location : United States
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : ModernBB
http://www.fmthemes.forumotion.com https://www.facebook.com/FM-Themes-655055824604957 https://twitter.com/FMThemes https://pinterest.com/FMThemes

PostSLGray Tue 15 Mar 2016, 18:41

-30 worked. Thanks.
Van-Helsing
Van-Helsing

Gender : Male
Age : 49
Posts : 853
Points : 4794
Reputation : 84
Location : Somewhere out there!
Language : English, Greek
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : punBB
http://itexperts.forumgreek.com/

PostVan-Helsing Wed 16 Mar 2016, 10:36

Very nice tutorial Thumb left Thank you very much @Ange Tuteur.
Wilson
Wilson

Gender : Unspecified
Age : 37
Posts : 868
Points : 4573
Reputation : 124
Language : Filipino and Engrish
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
http://generalaxis.forums.com.bz/

PostWilson Thu 31 Mar 2016, 11:22

I've been looking for this kind of tutorial, google doesn't always helps. Thanks for the tutorial!
white
white
New Member
Gender : Unspecified
Posts : 6
Points : 2916
Reputation : 0
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : punBB

Postwhite Wed 11 Jan 2017, 17:05

Does not work here, there seems to be a problem? can you help me

http://3arb-way.a7larab.net/
SLGray
SLGray
Valued Member
Gender : Male
Age : 51
Posts : 2465
Points : 7097
Reputation : 290
Location : United States
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : ModernBB
http://www.fmthemes.forumotion.com https://www.facebook.com/FM-Themes-655055824604957 https://twitter.com/FMThemes https://pinterest.com/FMThemes

PostSLGray Fri 13 Jan 2017, 16:28

white wrote:Does not work here, there seems to be a problem? can you help me

http://3arb-way.a7larab.net/
How does it not work?
white
white
New Member
Gender : Unspecified
Posts : 6
Points : 2916
Reputation : 0
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : punBB

Postwhite Sat 14 Jan 2017, 07:02

I do not know why
SLGray
SLGray
Valued Member
Gender : Male
Age : 51
Posts : 2465
Points : 7097
Reputation : 290
Location : United States
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : ModernBB
http://www.fmthemes.forumotion.com https://www.facebook.com/FM-Themes-655055824604957 https://twitter.com/FMThemes https://pinterest.com/FMThemes

PostSLGray Sat 14 Jan 2017, 13:44

Not why, but how does it not work?


Administrator
Gender : Male
Posts : 95
Points : 4077
Reputation : 26
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://github.com/SethClydesdale https://twitter.com/sethc1995

Post Sat 14 Jan 2017, 14:32

Did you make sure to enable the following option ?
For this to work you first need to enable the following option. Go to Admin Panel > General > Messages > Configuration and enable the option entitled "Activate the preview of profiles on the tag usernames."
white
white
New Member
Gender : Unspecified
Posts : 6
Points : 2916
Reputation : 0
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : punBB

Postwhite Sun 15 Jan 2017, 05:04

SLGray wrote:Not why, but how does it not work?

I do not know why Can you find out why?
white
white
New Member
Gender : Unspecified
Posts : 6
Points : 2916
Reputation : 0
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : punBB

Postwhite Sun 15 Jan 2017, 05:05

 wrote:Did you make sure to enable the following option ?
For this to work you first need to enable the following option. Go to Admin Panel > General > Messages > Configuration and enable the option entitled "Activate the preview of profiles on the tag usernames."

Yes it is already activated


Administrator
Gender : Male
Posts : 95
Points : 4077
Reputation : 26
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://github.com/SethClydesdale https://twitter.com/sethc1995

Post Sun 15 Jan 2017, 12:17

Hmm.. it may or may not be related to a JS error on your forum. Try disabling all scripts except the one you want to use.
white
white
New Member
Gender : Unspecified
Posts : 6
Points : 2916
Reputation : 0
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : punBB

Postwhite Tue 17 Jan 2017, 05:25

 wrote:Hmm.. it may or may not be related to a JS error on your forum. Try disabling all scripts except the one you want to use.

I'll do it now
Sponsored content

PostSponsored content

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