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.

Modifying discussionexcerpt2 to show only on hover?

edited November 2011 in Vanilla 2.0 - 2.8
i have downloaded discussionexcerpt2, but it puts the preview underneath the discussion links. This is fine except my link colors make it all hard to read.

I would like to be able to hover the mouse over a discussion link and have a short preview pop up with the ALT or TITLE html tag, instead of having it always showing below the link.

Can someone please show me how to mod the discussionexcerpt2 addon to do this?

Best Answer

  • jspautschjspautsch ✭✭✭
    edited November 2011 Answer ✓
    Hmm, to get exactly what you describe would require some javascript. I might be able to write it up real quick.

Answers

  • Anyone know how to do this?

    This would be easy to do back in my perl script days, but i never learned PHP/CSS...

  • jspautschjspautsch ✭✭✭
    edited November 2011
    Um couldn't you just do this with CSS?

    [edit] I'm an idiot, I just saw that you don't know CSS. It's pretty simple, I'd just look up some quick tutorials. What you're looking for is something like .excerpt:hover{ display: block; }
  • edited November 2011
    Hence my problem, i don't know where to put that. lol

    What i would like, is for when visitors are at lets say... http://vanillaforums.org/discussion and they hover over the links for the discussions, the html ALT or TITLE tag shows them a short preview of the thread, so they dont have to click on each one to see whats inside.
  • jspautschjspautsch ✭✭✭
    edited November 2011 Answer ✓
    Hmm, to get exactly what you describe would require some javascript. I might be able to write it up real quick.
  • edited November 2011

    I'm not sure it needs to be that involved really.

    In HTML it would be similar to this:
    <a href="http://blahblah.blah/ " TITLE="discussionexcert2 goes here">Test Discussion Link</a>

    But i'm so new at PHP that i just dont know how to do it. Any help solving this problem is very appreciated
  • Did we ever solve this? @jspautsch, did you write him up something he needed there?

    Thanks,

Sign In or Register to comment.