PDA

View Full Version : clicking on Comments reloads page??


tintn
10-23-2006, 04:53 AM
Hello,

I used to use PP 1.4.3. I just recently upgraded to 1.5. Smooth sailing so far except one issue.

Whenever I click on the comments link to popup the comments window, the comment window appears but the photoblog also refreshes/reloads. Normally I wouldn't care but this phenomenon doubles my bandwidth! It did not do this in PP 1.4.3. Any help is appreciated!

blinking8s
10-23-2006, 07:38 AM
link?

Joe[y]
10-23-2006, 02:34 PM
i imagine the link simply has inside it href="index.php" or similar. would be easier to tell you what is doing this with a link though. if you understand what i mean just change it to href="#" in your template file.

mlpinxit
10-24-2006, 08:24 PM
Hello, this is happening to me also. It is probably annoying to anyone with a slow internet connection. Does anyone have a solution?
http://www.mlpinxit.com

feanne
10-25-2006, 07:07 AM
What Joey said. You can also use href="#nogo" ...

djaef
10-25-2006, 10:47 AM
This happens to my blog as well. But I don't understand what Joey or feanne mean. The link that we're talking about here is <COMMENT_POPUP> There is no html link. Of course there are other links on the page to index.php, but they're not getting activated by clicking on <COMMENT_POPUP>. So I don't get it.

Joe[y]
10-25-2006, 10:54 AM
djaef. this is why it would be useful to see a link for pages which have html problems! lol. a lot of users chose to simply manage the html for the popup or whatever themselves in the template file rather than using that tag.

@tintn and mlpinxit - if you are using the commentpopup tag then you'll need to do some editing in the index.php file. if this is the case then tell me and i'll post the changes you need to make to the code here.

feanne
10-25-2006, 01:34 PM
djaef -- This is the code I used on my blog. Simply replace <COMMENT_POPUP> with:

<a href="#" onclick="window.open('index.php?popup=comment&showimage=<IMAGE_ID>','Comments','width=550,height=550,scrollbars=auto ');" title="Comments will open in popup window.">Leave a comment</a>

That works fine for me but you can also try using:
href="#nogo"
instead of just
href="#"

You can of course edit:
the values for window width and height
the title "Comments will open in popup window."
the link text itself "Leave a comment"

tintin and mlpinxit, hope that helped you too.

mlpinxit
10-25-2006, 07:30 PM
Feanne, thanks for your help. I pasted your code into the image page. It worked but the comments window that popped up wwas the same for all images ie the current image comments, any ideas?

feanne
10-26-2006, 06:19 AM
mlpinxit, I checked out your site just now and it seems to be working fine. The comment box that popped up for each image showed the comments for the correct image. =\ Hmm, check again?

mlpinxit
10-26-2006, 08:51 PM
Oh, I should have told you I changed it all back to what it was before, so I'm still getting the same problem with page reloads every time you open the comment pop up.

tintn
10-26-2006, 09:57 PM
the # solution works! i simply edited the index.php file where it says...

"<COMMENT_POPUP>","<a href='#' onclick=\"window.open('index.php?popup=comment&amp ;showimage=$image_id','Comments','width=500,height =520,scrollbars=yes,resizable=yes');\">$lang_comme nt_popup</a>"