I have tried installing this :
Topic: [Mod] Add/Remove image to/from lightbox without page refresh (2009-07-29)Is it possible to refresh lightbox count aswell, like this lightbox button ?
EDIT : got it work somehow. It now refreshes whole page, but it wont go top of the page after refresh
(
EDIT 2: it will work like this in FF only, in IE it goes top of page )
changed in functions.php
$lightbox_button = "<a href=\"".$site_sess->url($lightbox_url)."\" onclick=\"this.firstChild.src='".$site_sess->url(ROOT_PATH."lightboxaction.php?id=".$image_row['image_id'])."&ilu='+this.firstChild.src; return false;\"><img src=\"".get_gallery_image("lightbox_yes.gif")."\" border=\"0\" alt=\"\" /></a>";
to this
$lightbox_button = "<a href=\"".$site_sess->url($lightbox_url)."\" onclick=\"this.firstChild.src='".$site_sess->url(ROOT_PATH."lightboxaction.php?id=".$image_row['image_id'])."&ilu='+this.firstChild.src; window.location.reload(); return false;\"><img src=\"".get_gallery_image("lightbox_yes.gif")."\" border=\"0\" alt=\"\" /></a>";
and this code
$lightbox_button = "<a href=\"".$site_sess->url($lightbox_url)."\" onclick=\"this.firstChild.src='".$site_sess->url(ROOT_PATH."lightboxaction.php?id=".$image_row['image_id'])."&ilu='+this.firstChild.src; return false;\"><img src=\"".get_gallery_image("lightbox_no.gif")."\" border=\"0\" alt=\"\" /></a>";
into this :
$lightbox_button = "<a href=\"".$site_sess->url($lightbox_url)."\" onclick=\"this.firstChild.src='".$site_sess->url(ROOT_PATH."lightboxaction.php?id=".$image_row['image_id'])."&ilu='+this.firstChild.src; window.location.reload(); return false;\"><img src=\"".get_gallery_image("lightbox_no.gif")."\" border=\"0\" alt=\"\" /></a>";
tried to surround
{lightbox_total_count} with DIV tags, but refreshing DIV needs another page inside
DIV (
ex. lightbox_total_count.php), as I understand. If we could make a page which showing
{lightbox_total_count} inside it would be cool and then could refresh it without refreshing whole page.
EDIT3 : got it to work