PDA

View Full Version : Problems with the comments popup


Calauza
06-27-2006, 02:06 PM
Hello everybody, I'm posting here hoping that someone else ran into the same thing (and probably found a workaround, too).

The problem I have is that whenever I click the comments button (for an older photo) and the popup appears, the background browser window loads the most recent post. You can see for yourself here: http://www.10xzoom.ro/pixelpost/. Just click the left arrow and go to an older photo and click comments. You'll notice that the main window switches to the latest post entry.

Is there a way around this?

Calauza
06-28-2006, 12:02 PM
I've found the problem. To get rid of that annoying refresh, all you have to do is to edit line 919 index.php file like this:

$tpl = ereg_replace("<COMMENT_POPUP>","<a href='index.php?showimage=$image_id' onclick=\"window.open('index.php?popup=comment&amp;showimage=$im age_id','Comments','width=480,height=540,scrollbar s=yes,resizable=yes');return false;\" onFocus=\"blur()\">$lang_comment_popup</a>",$tpl);