We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8109
    • 128 Posts
    The "tooltips" displayed for the img src tag of the thumbnail in the gallery picture template uses the htmlent function for the title of the thumbnail, but this causes the popup tooltip in most browsers to display the actual html tags, such as "<i>" in the tooltip. I have therefore replaced the htmlent function with "notags" in my template, which strips all html and makes the tooltip popups look much better.

    Original code (this is also modified to take advantage of phpThumb):

    <img src="[*myimage:phpthumb=`h=115&w=115&zc=1&q=95#[+maxigallery.path_to_gal+][+maxigallery.picture.filename+]#1`*]" class="thumbnail" title="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" />

    Modified code

    <img src="[*myimage:phpthumb=`h=115&w=115&zc=1&q=95#[+maxigallery.path_to_gal+][+maxigallery.picture.filename+]#1`*]" class="thumbnail" title="[+maxigallery.picture.title:notags+] [+maxigallery.strings.click_to_zoom+]" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" />
      Revo 2.0.8-pl