PDA

View Full Version : Firefox/Pixelpost Comment Problems


krimzon11
08-27-2006, 04:25 AM
I've been having a problem with my own template (jbyers) which is just the pixelpost-light-achivepaged with different colors. I noticed today in both templates, that if I click the Add Comment link on an older post the #addcomment section will drop, and the page will foward to the most recent post. I've tested them in IE6 and Opera, and had a friend test in FF 1.5.0.4 and it worked fine in all of those.

My question is, is there a way around this? Perhaps an extension in FF or perhaps a hack to modify the code? Below is my PP info and a link to my site.


www.jbyers.net/gallery (http://www.jbyers.net/gallery)
Firefox version 1.5.0.6


You are running Pixelpost version: 1.5 Final - July 2006

URL http://www.jbyers.net/gallery/admin/index.php

PHP-version 4.3.11 (Pixelpost's min requirement: PHP version: 4.3.0 )

Session save path /tmp

MySQL version 4.1.21-standard (Pixelpost's min requirement: MySQL: 3.23.58 )

GD-lib bundled (2.0.28 compatible) with JPEG support

File Uploads to Pixelpost site are possible.

Server Software Apache/1.3.36 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.27 OpenSSL/0.9.7a PHP-CGI/0.1b

EXIF Pixelpost is using exifer v1.5 for EXIF-information.

Guessed imagepath: /home/jbyers7/public_html/gallery/images/

Configured Imagepath: ../images/

Image Directory: OK - Can we write to the directory? YES. CHMOD: 0777

Thumbnails Directory: OK - Can we write to the directory? YES. CHMOD: 0777

Language Directory: OK

Addons Directory: OK

Includes Directory: OK

Templates Directory: OK

GeoS
08-27-2006, 10:42 PM
When you are using <BASE_HREF> tag (with content<base href="http://www.jbyers.net/gallery/" />) then all links which are not absolute links behave like relative.
The same is with anchor links - they need to be absolute. Ive solved it within my template with some JS:
document.location.hash = 'home';

so you can try something like this:

<a href='javascript:document.location.hash="home";' onclick="flip('add-comment'); gotocomments(); return false;">Add Comment</a>


PS I made own version of flip JS function which handles your need:
function flip(rid,go)
{
current=(document.getElementById(rid).style.displa y == 'none') ? 'block' : 'none';
document.getElementById(rid).style.display = current;
if(go==1) document.location.hash = ((current!='none') ? rid : 'home');
}

orangegoat
11-16-2006, 11:45 AM
I'm having what I think is the same problem as the OP: when someone tries to comment on anything other than the most recent image, they just get sent to the most recent image page. I tried to implement the fix above by just pasting the code in to replace what I assume are the relevant parts, but I don't really know enough about coding to be sure I did it right -- anyway, it didn't work, same behavior is still exhibited.

The site is partialsight.com. Any ideas?

Thanks in advance.