Log in

View Full Version : Miscellaneous Hacks - Editor Toolbar Tooltips


MarkFL
03-11-2016, 10:00 PM
Overview:

This simple mod allows you to provide more information in the mouseover tooltips of your editor toolbar buttons.

https://vborg.vbsupport.ru/attachment.php?attachmentid=154454&stc=1&d=1457755430

For each button you wish to give more information, enter a separate line in the provided setting containing the BBcode tag name (including the square brackets), a more descriptive name for the tag, and then any addition instructions you wish to include. These 3 data should be separated by the pipe symbol ("|").

Updates:

Version 1.1:


Admin options processing optimized.
Javascript function rewritten so onload function does not interfere with other onload events.
Support added for quick editor.


Compatibility:

Tested and working on VB 4.2.x and should work on all 4.x versions of vBulletin.

Backup/Warning:

This product does not alter your database, however it is always good practice to make regular backups and you should make a backup before installing ANY new mod.

As always, products are USE AT YOUR OWN RISK. I will provide support and do my best to help but no absolute guarantee is offered.

To Install:


Download and extract the attached .zip file.
Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
Click "Import."
You MUST enable the product in the settings before it will function.
Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.


https://vborg.vbsupport.ru/attachment.php?attachmentid=154545&stc=1&d=1458420808

Support for this product can be found here:


MHB - Editor Toolbar Tooltips (http://mathhelpboards.com/vbulletin-products-61/editor-toolbar-tooltips-21814.html)
TAZ - Editor Toolbar Tooltips (https://theadminzone.com/threads/editor-toolbar-tooltips.145097/)

In Omnibus
03-12-2016, 02:23 AM
Brilliant. Why didn't anyone think of it sooner?

Stratis
03-12-2016, 02:06 PM
Very smart to make this mod. Before 2 years I have included info in tags where ever it was possible for me. Now with this, is very easy and I will include all others that I did not manage to do.

Questions:
* How can I remove "This is our xxxxx tag."
Which code I must delete from "Add Javascript Function" (I want to delete that line for my use)

* Does this work for other bbcode tags? that they are integrated by default in vb
like as bbcode (# CODE), (Quote) e.t.c. because I did not manage to find how. If it works to them to, I will try more.

Thank you Mark for mod. ;)

MarkFL
03-12-2016, 03:24 PM
Yes, it works for any button whose title already contains the tag name within square brackets, like QUOTE, CODE, HTML, PHP, etc. :)

Alan_SP
03-12-2016, 04:21 PM
Excellent idea. :up:

MarkFL
03-12-2016, 05:05 PM
Stratis, to remove that line, locate the line of code:

tags[n].title += (".\n\nThis is our " + tagdefs[m] + " tag.\n\n" + taginstructs[m]);

And change it to:

tags[n].title += (".\n\n" + taginstructs[m]);

You will still need to define something in the settings that would have been displayed, but using this edit, it will be ignored. :)

Stratis
03-12-2016, 06:36 PM
Stratis, to remove that line

Done, thanks Mark I appreciate this :)

MarkFL
03-19-2016, 01:41 AM
Update - Version 1.1:


Admin options processing optimized.
Javascript function rewritten so onload function does not interfere with other onload events.
Support added for quick editor.

IggyP
11-12-2017, 05:03 PM
hello,
i have noticed an issue here with a 4.2.5 im working with....

seems to only show the hover tooltip in quick reply now, and not normal adv editor....

any ideas?

IggyP
02-14-2018, 12:02 AM
thank you for the support on this at the other site i asked you before.....

by now i have another question tho....i have one button with a bit of a long description...i would like to add a line break in the middle, is that possible? no big deal just curious if there is an easy way

MarkFL
02-14-2018, 12:13 AM
thank you for the support on this at the other site i asked you before.....

Yes, I just reviewed that, and DBTech's editor buttons are dynamically created, which makes changing them much more difficult. Not much I can do about that. :)

by now i have another question tho....i have one button with a bit of a long description...i would like to add a line break in the middle, is that possible? no big deal just curious if there is an easy way

Can you provide a screen shot?

IggyP
02-14-2018, 01:52 AM
oh that button too haha yeah, would be nice... i meant the other issue u helped on taz tho....the java issue or whatever it was blocking loading on adv editor....

regarding the second comment, i just mean a simple line break in middle of description.....for example, there is a line break between the "this is our blahblah bbcode" sentence and the other lines...just want to be able to slip a <br> in there or some kinda thing idk...if possible, no biggie

MarkFL
02-14-2018, 03:04 AM
I have updated this product at the two sites in my signature.

If you could provide a screenshot of where you want a line break added, then I could easily tell exactly what you're asking.

IggyP
02-14-2018, 03:21 AM
like in your shot for example...these three sentences all have breaks between them....well i guess literally i mean paragraph break rather than line break but yeah like this

https://vborg.vbsupport.ru/attachment.php?attachmentid=154454&d=1457755429

MarkFL
02-14-2018, 03:51 AM
Oh, okay...I was confused and thought we were talking about the product I updated earlier...LOL!

You and put \n in the description wherever you want a newline.

IggyP
02-14-2018, 04:28 AM
haha i have a hard time doing one thing at a time sorry for that :P

your suggestion works perfectly thank you