Sponsored Content
The Lounge What is on Your Mind? New Tooltips for Thread Views Using Bootstrap Post 303021518 by Neo on Saturday 11th of August 2018 02:55:36 PM
Old 08-11-2018
New Tooltips for Thread Views Using Bootstrap

Hi,

Well, I changed the descriptions for threads to use Bootstrap's UI and here is the results (make sure you set your YT setting for 1080 HD):

Here is the simple CSS I'm using for the fonts and colors:

Code:
.tooltip-inner {
    background-color: rgb(7, 17, 86)!important;
    font-size: 0.8em !important;
    text-align: left !important;
}

Here is the simple jQuery with tooltip options:

Code:
 $('.neo-threadbit').tooltip({
     animation:true,
     placement:'auto',
     delay:{ "show": 800, "hide": 100 }});


Using these libs::

Code:
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" </script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" </script>

This User Gave Thanks to Neo For This Post:
 

7 More Discussions You Might Find Interesting

1. AIX

GCC bootstrap failure on AIX 5.3

I'm trying to build gcc-3.4.4 on AIX 5.3, and I get the following error in phase 2. I suspect that the problem is related to AIX's "as" assembler somehow, but from what I understand, the binutils assembler is not useable on AIX 5.1 or later. Any ideas? checking for powl declaration... yes... (2 Replies)
Discussion started by: Duggerdee
2 Replies

2. UNIX for Dummies Questions & Answers

Clear Case views on UNIX

Friends, I was asked to work on Clear Case after setting up. For this created a dynamic view by using the command, 'cleartool mkview -tag <view name> -stgloc viewstg'. Now I am not sure how to proceed further :-( May I request you to help me out in continuing further. I have a deadline in... (1 Reply)
Discussion started by: mmohan
1 Replies

3. Solaris

Redirecting Bootstrap

Exactly how can I redirect bootstrap data generated by Networker to a file? The company's policy is to have this electronically saved remotely. The idea is to have the bootstrap info saved to a file and then use rsync to move that file to a remote server. So instead of sending it to a printer... (0 Replies)
Discussion started by: Jshwon
0 Replies

4. Post Here to Contact Site Administrators and Moderators

Annoying tooltips

Hi Is there any way to turn off the (often ridiculously big) tooltips that are displayed when hovering over a topic in a topic list? It's driving me nuts. Thx. J (1 Reply)
Discussion started by: jgrogan
1 Replies

5. UNIX for Beginners Questions & Answers

Html - Removing transparency on tooltips

I want to use the tooltip in html, however the tranparency is creating problem for detailed tooltips as the text from the back interferes with the readability of the tooltip text. I have done the following changes, however the normal tooltip es still transparent I call it using <a... (3 Replies)
Discussion started by: kristinu
3 Replies

6. What is on Your Mind?

Scrollbars and Bootstrap Tables

Making some progress using CSS from Bootstrap; changing table classes to the Bootstrap "table" class and wrapping those tables in a div with a scroll bar. So, the good news is that now each post with large blocks of code that exceeds the width of the screen will have a scrollbar; but the bad... (0 Replies)
Discussion started by: Neo
0 Replies

7. What is on Your Mind?

Revised Tooltips for Thread Views Using Bootstrap

See attached screen movie that demos the revised tooltips which includes thread previews, or double click on the YT video below to go to YT and view in full screen mode, etc: HkObCAYg6LI (0 Replies)
Discussion started by: Neo
0 Replies
YAF_PLUGIN_ABSTRACT(3)							 1						    YAF_PLUGIN_ABSTRACT(3)

The Yaf_Plugin_Abstract class

INTRODUCTION
Plugins allow for easy extensibility and customization of the framework. Plugins are classes. The actual class definition will vary based on the component -- you may need to implement this interface, but the fact remains that the plugin is itself a class. A plugin could be loaded into Yaf by using Yaf_Dispatcher::registerPlugin, after registerd, All the methods which the plugin implemented according to this interface, will be called at the proper time. EXAMPLES
Example #1 Plugin example <?php /* bootstrap class should be defined under ./application/Bootstrap.php */ class Bootstrap extends Yaf_Bootstrap_Abstract { public function _initPlugin(Yaf_Dispatcher $dispatcher) { /* register a plugin */ $dispatcher->registerPlugin(new TestPlugin()); } } /* plugin class should be placed under ./application/plugins/ */ class TestPlugin extends Yaf_Plugin_Abstract { public function routerStartup(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) { /* before router in this hook, user can do some url rewrite */ var_dump("routerStartup"); } public function routerShutdown(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) { /* router complete in this hook, user can do login check */ var_dump("routerShutdown"); } public function dispatchLoopStartup(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) { var_dump("dispatchLoopStartup"); } public function preDispatch(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) { var_dump("preDispatch"); } public function postDispatch(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) { var_dump("postDispatch"); } public function dispatchLoopShutdown(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) { /* final hoook in this hook user can do loging or implement layout */ var_dump("dispatchLoopShutdown"); } } Class IndexController extends Yaf_Controller_Abstract { public function indexAction() { return FALSE; //prevent rendering } } $config = array( "application" => array( "directory" => dirname(__FILE__) . "/application/", ), ); $app = new Yaf_Application($config); $app->bootstrap()->run(); ?> The above example will output something similar to: string(13) "routerStartup" string(14) "routerShutdown" string(19) "dispatchLoopStartup" string(11) "preDispatch" string(12) "postDispatch" string(20) "dispatchLoopShutdown" CLASS SYNOPSIS
Yaf_Plugin_Abstract Yaf_Plugin_Abstract Methods o public void Yaf_Plugin_Abstract::dispatchLoopShutdown (Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) o public void Yaf_Plugin_Abstract::dispatchLoopStartup (Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) o public void Yaf_Plugin_Abstract::postDispatch (Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) o public void Yaf_Plugin_Abstract::preDispatch (Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) o public void Yaf_Plugin_Abstract::preResponse (Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) o public void Yaf_Plugin_Abstract::routerShutdown (Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) o public void Yaf_Plugin_Abstract::routerStartup (Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) PHP Documentation Group YAF_PLUGIN_ABSTRACT(3)
All times are GMT -4. The time now is 09:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy