greypop and other theme problem with lightbox already solve

awabuaya

Joined: 2010-02-01
Posts: 15
Posted: Thu, 2010-02-04 10:31

case : when using lighbox for theme there is general problem when you mouse over the image thumbnail some HTML CODE will be appear sometimes like <h4>title</h4><br><a href=link>some text</a>

this the way to solve it

1. at albumlight.tpl(greypop theme) for other theme you can found at album.tpl you can use ctrl+F to find title

find "title" at line 93, 104, 123, 134 (at album.tpl may be at other line) and replace with "cap"

<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}" rev="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$child.id`"}" title='<h4>{$chil.......
to.....
<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}" rev="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$child.id`"}" cap='<h4>{$chil.......

2. at lightbox.js
find "title" and repalce with "cap"

----=>at line 392
imageArray.push(new Array(imageLink.getAttribute('rev'), imageLink.getAttribute('title')));
to....
imageArray.push(new Array(imageLink.getAttribute('rev'), imageLink.getAttribute('cap')));

----=>at line 400
imageArray.push(new Array(anchor.getAttribute('rev'), anchor.getAttribute('title')));
to....
imageArray.push(new Array(anchor.getAttribute('rev'), anchor.getAttribute('cap')));

thanks

regards

awa