Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

DiscussionToolTip - hover over discussion topic to see a portion of discussion contents

peregrineperegrine MVP
edited June 2012 in Vanilla 2.0 - 2.8

I seem to remember someone requesting something like this and I didn't see a plugin available. Is this discussiontooltip-plugin duplicate?

I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Best Answer

  • tannerctannerc
    Answer ✓

    it works perfectly on my custom theme. thanks

Answers

  • if it works on your theme and it is not one of the default themes - please list it here.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • tannerctannerc
    Answer ✓

    it works perfectly on my custom theme. thanks

  • ChanuxChanux ✭✭

    when i enable plugin. every discussions duplicated :(

    discussion topic 1
    discussion topic 1

    discussion topic 2
    discussion topic 2

  • peregrineperegrine MVP
    edited June 2012

    Chanux said:
    when i enable plugin. every discussions duplicated :(

    discussion topic 1
    discussion topic 1

    discussion topic 2
    discussion topic 2

    change line 1 in disctip.css
    from
    .ItemContent a.Title {
    
    to
    
    .Discussions .ItemContent a.Title {
    
    
    and see if that helps.
    
    
    report back if it works and list the theme it works for.
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • edited October 2012

    Sweet plugin! One thing to note: it seems to not play nice with the UserPhotoIndex plugin -- it bumps the title to the left of the image, dropping the image down

  • I actually like tooltips better than profile pictures, so for now i'll disable IndexPhoto plugin.image

  • @peregrine, sorry I didn't @ you on my first messages.

    Is this on your radar? This plugin has a conflict with IndexPhoto. Let me know if you want to fix this yourself or want me to try my hand.

  • peregrineperegrine MVP
    edited October 2012

    @peregrine

    Is this on your radar? This plugin has a conflict with IndexPhoto. Let me know if you want to fix this yourself or want me to try my hand.

    go for it. its not on my radar. You probably want to combine the two plugins.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • peregrineperegrine MVP
    edited October 2012
    • disable discussiontooltips.
      if you want to do what you want by modifying /views/discussion/helper_functions.php
        
        look around line 41 
        and change 
        
         <?php echo Anchor($DiscussionName, $DiscussionUrl, 'Title'); ?>
        
       to
        
       <?php  
    
    $title = strip_tags(str_replace(array('[',']'), array('<','>'), substr($Sender->EventArguments['Discussion']->Body,0,220). "..."));  
    
    echo Anchor($DiscussionName, $DiscussionUrl, 'Title',array('title' => $title)); ?>
        
    


    the only other way to do something with plugin is to do a jquery to change title attribute.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • edited April 2013

    @peregrine I like this plugin a lot ! here is the icon lol

  • @vrijvlinder said:
    peregrine I like this plugin a lot ! here is the icon lol

    Thx. I like it. I liked it so much I revised the plugin to hover the icon instead of the discussion title. More compatible with other themes this way.

    I'm sure the donations will be flowing in a usual :).

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • edited April 2013

    @peregrine I have a suggestion to improve a couple of things to this great plugin,

    I made a small eye icon to be used instead of the tooltip icon for the plugin. and changed a couple things in the css to make it work better.

    This way If a person uses hover zoom , the tooltip icon does not also show when hovering.

    
        
    ul.Discussions li a img.Dtooltip {
     padding-left: 5px;
        float: left;
         height: 25px;
        width: 35px;
        }
    
    .Discussion.ItemContent {
       padding-left: 35px;
    }
    

    and then just switched the icons here

          
            $newTitleAnchor  = 'EventArguments['Discussion']->Url  . '">' .  Img($prelink . "ttip.png", array('alt' => 'Tooltip', 'title' => $sline, 'class' => "Dtooltip")) . '';
    
  • peregrineperegrine MVP
    edited April 2013

    @vrijvlinder said:
    peregrine I have a suggestion to improve a couple of things to this great plugin,

    I made a small eye icon to be used instead of the tooltip icon for the plugin. and changed a couple things in the css to make it work better.

    >

    @vrijvlinder

    I updated to the blue eye before I saw your post, anyone can change to the red-eye for overnight travel. version 1.2.1

    thanks for the tip and icons.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • edited April 2013

    the red-eye for overnight travel.

    lol that is funny , it looks a bit too real that eye, scary even, the blue is better I think

Sign In or Register to comment.