• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Post Private Controls with title?

B

bogus

Guest
#1
I would like to know how i can change the Private Control "delete" as Title on hover.

I want to change the Text into an Image which i will add with css a.delete but want the delete Text {xen:phrase delete} as Title on hover

I´ve tried this, but´s not working
Code:
<xen:if is="{$post.canDelete}"><a href="{xen:link posts/delete, $post}" class="item control delete OverlayTrigger" title="{xen:phrase delete}" /></a></xen:if>
Template is post and here´s the original part of code.
Code:
<xen:if is="{$post.canDelete}"><a href="{xen:link posts/delete, $post}" class="item control delete OverlayTrigger"><span></span>{xen:phrase delete}</a></xen:if>
Thanks for your help
 

Jake Bunce

XenForo moderator
Staff member
#2
Your "a" tag has nothing inside it so there is probably nothing to mouse over to trigger the title. You need something inside, like an "img" tag for your image.
 
B

bogus

Guest
#3
I guess i know what you mean but... well, i will give i try also if i dont know yet how to ;)


Got it. Dead easy, if you know ;)
Code:
<xen:if is="{$post.canDelete}"><a href="{xen:link posts/delete, $post}" class="item control delete OverlayTrigger"><img src="styles/folder/thread/thumb_up.png" title="{xen:phrase delete}" /></a></xen:if>
Thanks Jake for your help
 
B

bogus

Guest
#4
Ok, i got it at the End.
Thats how my Posts look like now. Bit more structure
Thread_new.png

Thanks a lot to everyone who helped me ;)