CSS Pligg Tooltip

Posted In Modules, Tutorials - By Geoserv On Tuesday, October 20th, 2009 With 79 Comments

img_1705Back in May I showed you how to display a thumbshot of the story submitted using a jQuery hover, now, let’s make it better by only using CSS.

Why not use jQuery? By itself, there is no reason.  However, removing the need for it will cut down on load time.

Another issue with Pligg and jQuery is they do not always get along.  There are too many conflicts with the scriptaculous effects and prototype, which does not like jQuery.

The following is so simple, there is no reason not to use it.

Open, link_summary.tpl and find:

<div id="ls_thetitle-{$link_shakebox_index}" class="toptitle">
                        {if $use_title_as_link eq true}
                                {if $url_short neq "http://" &amp;&amp; $url_short neq "://"}
                                        <a rel="nofollow" href="{$url}" target="_blank">{$title_short}</a></div>

change to:

<div id="ls_thetitle-{$link_shakebox_index}" class="toptitle">
                        {if $use_title_as_link eq true}
                                {if $url_short neq "http://" &amp;&amp; $url_short neq "://"}
                                        <a class="tooltip" rel="nofollow" href="{$url}" target="_blank">{$title_short}<span><img src="http://images.websnapr.com/?url={$url_short}&amp;size=T" alt="{$title_short}" /></span></a></div>

Save.

Open your main CSS file and add:

a.tooltip span {display:none; padding:2px 3px; margin-left:8px; width:200px;}

a.tooltip:hover span{display:inline; position:absolute; background:#ffffff; border:1px solid #80b62a; color:#6c6c6c;z-index:1;}

Save.

You can change the image provider to whatever you like, I personally use Shrink the Web, as they seem to be the quickest.

This method will show the thumbshot immediately upon hover of the story title, the previous method, had a time delay.

Would love your opinion, leave me a comment below. You can also follow me on Twitter, where I will always help one on one.

Related Search:

  • how to display image hover on thumbshots com
  • pligg tags module
  • recaptcha show chinese in tooltip

About - Geoserv has been working with the Pligg CMS for 2+ years.

  • Pingback: You are now listed on FAQPAL

  • Pingback: Vote on this article at blogengage.com

  • Pingback: Pliggs

  • Pingback: bbrian017

  • Pingback: CSS Pligg Tooltip

  • http://gdiworkathome.com/blog GDI Blog

    i got some problems on my css but got hire a person from freelance dot come to solve my problems… if i would find this website before i would not need to spend money… :(

  • zack

    is there anyway to put this image in the story it self. i mean like digg style?

  • http://www.faqpal.com Pliggs

    Do you mean have a screenshot show along side each story without hovering?

  • zack

    yes. that's what i meant

  • http://www.faqpal.com Pliggs

    I make that my next post, check back tomorrow.

  • zack

    thank u so much.

  • http://www.dowlis.com/shop/plastic_mugs promotional plastic mugs

    I would like to know much about shrink method.

  • http://www.faqpal.com Pliggs

    In order to use Shrink the Web, you need to register for an account at http://www.shrinktheweb.com/index.php?view=join , the FREE account has limitations on the number of screenshots it will serve monthly, they do however have a paid version, which would be perfect for sites with high traffic.

  • http://www.diycarhire.com.au/ Car hire

    A tootip is a few words that pop up when you hover over an object. You can no more put a website in a tooltip that you can pedal a duck – the words may parse, but the concept is nonsense.

  • http://www.tampabaypos.com/ Restaurant POS Systems

    I'll check it out the css pligg tooltip in my blog. Thanks.

  • http://bestdogforme.com/ dogs mating

    There are lots of php scripts in the market. I have downloaded and edited pligg, a digg clone-script. What I need is how to make a user (signing up in one of the user authentication script) to sign in Pligg?

  • http://www.gokgunlugu.com/ uzay

    CSS İS AWESOME!

  • http://www.diycarhire.com.au/ Car hire

    I am able to display tooltip with strange characters like Chinese in the links in Mozilla FireFox browser perfectly. Whereas the Internet Explorer displays the tooltip for the links differently.

  • http://ereferer.blogspot.com/ Ereferer

    does it support Google Chrome ?

  • http://www.faqpal.com Pliggs

    Yes all browsers support it.

  • http://www.diycarhire.com.au/ Car hire

    A tootip is a few words that pop up when you hover over an object. You can no more put a website in a tooltip that you can pedal a duck – the words may parse, but the concept is nonsense.

  • http://bestdogforme.com/ dogs mating

    If I had a penny for everything IE does wrong, I could buy a gun to shoot their programmers.

  • http://www.cosmeticmakeover.com.au/skin-treatment skin surgery

    It is not possible to change the text size of a simple tooltip like this, with html or css. However, you can make your own tooltip and then change the size of that. You are going to need some JavaScript and some css, but it's actually quite simple.

  • http://detoxdietabc.com/ Detox Diet

    css can really work wonders, right?

  • http://www.zomoyun.com/ karal oyun

    I'll check it out the css pligg tooltip in my blog. Thanks..

  • http://www.awesome-weddings.com/wedding-decorations/index.html Wedding Decorations

    I was really confused about the images used to vote and bury a story. I think there are 2 big flaws in how you present them. First the vote up link usually appears before a vote down link, I think its such a common practice that doing the opposite might confuse a lot of people.

  • http://www.indirmix.net vektörel

    You can no more put a website in a tooltip that you can pedal a duck – the words may parse, but the concept is nonsense.

  • http://www.faqpal.com Pliggs

    Can't put a website in a tooltip? Obviously you haven't looked at http://www.faqpal.com

  • http://www.uggs-outlet-store.com UGG boots

    I am very interested in the write's view on the leisure. As people's living conditions are increasingly favorable, diversified recreations are accepted by people. Here are some sits can buy to leisure-related products.

  • http://www.agorshop.com/ sex shop

    A tootip is a few words that pop up when you hover over an object. You can no more put a website in a tooltip that you can pedal a duck – the words may parse, but the concept is nonsense.

  • http://www.usedtiresdealers.com used tires

    Yeah the code looks really simple for sure, I was able to understand quite a few portions of the code! :)

    Till then,

    Jean

  • http://www.aseks.com sex shop

    A tootip is a few words that pop up when you hover over an object. You can no more put a website in a tooltip that you can pedal a duck – the words may parse, but the concept is nonsenses

  • http://www.sampleletterwriting.com business letter writing

    can i use this for my phpld directory if you permit me.

  • http://www.squadmafiakennels.com kennel dogs

    Basically the purpose is not to write the tool-tip text inline in the page itself so that the tooltip texts has to be able to be administered and configurable.

  • http://www.spinxwebdesign.com/ Web Design Los Angeles

    I think this will greatly help me. And this is easy to configure also.

  • http://www.sismebebek.org şişme bebekler

    Basically the purpose is not to write the tool-tip text inline

  • http://www.sismebebek.org şişme bebek

    Basically the purpose is not to write the tool-tip text inline

  • http://www.urexx.com sex shop

    Basically the purpose is not to write the tool-tip text inline

  • http://www.sextoys.gen.tr seks shop

    Basically the purpose is not to write the tool-tip text inline

  • http://www.eroticshopsa.com erotik shop

    Basically the purpose is not to write the tool-tip text inline

  • http://www.shop216.com cinsel sağlık ürünleri

    Basically the purpose is not to write the tool-tip text inline

  • http://www.shop216.com cinsel ürün

    Basically the purpose is not to write the tool-tip text inline

  • http://www.shop216.com sağlık ürünleri

    Basically the purpose is not to write the tool-tip text inline

  • http://www.squadmafiakennels.com kennel dogs

    Basically the purpose is not to write the tool-tip text inline

  • http://www.squadmafiakennels.com kennel dogs

    I think this will greatly help me. And this is easy to configure also.

  • http://www.openmarketrealty.com/ Homes for sale

    From where i can get the completely help about the CSS..

  • http://www.squadmafiakennels.com kennel dogs

    I'm looking to see if there are any Jquery plugins that would be close?

  • http://www.seolinkvine.ws/zero-down-traffic-blueprint-review-bonus-and-discount.html zero down traffic blueprint

    Sorry for rushing up on this topic, but almost all my registered users have been nagging me on this feature. Any help would be really appreciated.
    '

  • http://www.seolinkvine.ws/zero-down-traffic-blueprint-review-bonus-and-discount.html zero down traffic blueprint

    I've been trying to add a tool tip of a story title to the “Latest comments” section, so that when a user hovers the mouse over a comment, the user can view which post the comment belonged to?

  • http://www.seolinkvine.ws/zero-down-traffic-blueprint-review-bonus-and-discount.html zero down traffic blueprint

    In order to do this, you will need to download the latest version of Simplepie, once downloaded, unzip it, and upload it to your 3rdparty folder. It will take approximately 5 minutes to upload, as it is a huge folder.