After intergrating the comments and the Image Details, orderids are no longer being created. If I change the url to "Link" instead of Comments -- showing the original Image Details template -- then orderids are fine there. I should also add, as you probably know, that after the orderid has a jumpstart -- i.e. I put a 1 in to begin -- it goes on just fine.
I presume you mean {NEXT} instead; I don't see any {NEXTLINK} in the template default...
Can't see any real differences. I did a straight copy and paste; only changing the two a tags to have "comments" instead of "link" (just changed that now; didn't realise before, meh). So, it's:
Should have mentioned that I already tried that; no luck. With {NEXTLINK} it doesn't stream fo MySQL errors, but the order is certainly mucked, and it seems to always end up -- one way or another -- at orderid=162.
I don't see why it would be {NEXTLINK} -- the Image Details in the default template has {NEXT} and it works fine there.
Are you sure you're doing this in the Comments template? Kind of wondering if you are since your URL there has href="link.php and I'd imagine you should have comments.php there instead. As I said, it works perfectly on the link.php, yes.
Sorry to carry on, but do you wanna try putting the comments HTML code in for the Comments template? Since, I just put that HTML in my comments, and because it changes to link, it looks like it works just fine. Change the code to "comments" instead of "link" and then you'll see the problems; since as it is, it just changes to the "link" instead, where the Next/Previous is working just fine.
Noticed another couple problems with 0.15: * Cannot view member album; complains that {THISMEMBERCANREMOVE[ (sic) is invalid. Changing it lets you view the images, but then you get the error: Warning: Missing argument 1 for canremove() in /home/dw/public_html/wsngallery/classes/member.php on line 856
..though the "Templates" section (in admin panel) also has a permanent error on top.
Just wait for 2.16 on the thread's original topic.
Noticed another couple problems with 0.15: * Cannot view member album; complains that {THISMEMBERCANREMOVE[ (sic) is invalid. Changing it lets you view the images, but then you get the error: Warning: Missing argument 1 for canremove() in /home/dw/public_html/wsngallery/classes/member.php on line 856
I'm getting an error of the album not getting created if you don't specifically click to create it, and thus becoming a conditional error, but that appears unrelated to what you've posted. So you will have to post a procedure for reproducing.
Edit: Ah, 2.12. Well, I remember something of that sort back then.
.though the "Templates" section (in admin panel) also has a permanent error on top.
Erm, you aren't going to specify what it is? I don't get one. I'm guessing there's just a warning saying you forgot to upload a template.
So you will have to post a procedure for reproducing.
Well, I removed it now since it was simple to do, but it was simply that in the template there was {THISMEMBERCANREMOVE[ instead of {THISMEMBERCANREMOVE}, but not sure if that was simply from the upgrade, since PF doesn't have the prob.
Erm, you aren't going to specify what it is? I don't get one. I'm guessing there's just a warning saying you forgot to upload a template.
Perhaps. I thought I posted it earlier; nevermind. It's:
Warning: filesize(): Stat failed for ../templates/default/badrequest.tpl (errno=2 - No such file or directory) in /home/dw/public_html/wsngallery/admin/templates.php on line 307
<IF {THISMEMBERCANREMOVE[{IMAGEOWNERID}]}> is the proper thing that belongs in the template, and is there in the the default template set. Your change will simply cause it to function improperly and show the 'remove' option at the wrong times. You're simply using an ancient version from last year where it doesn't work, I gather.
Quite right. You might want to consider editing the readme.txt, to say "upgrading from 0.15".
Damnit! Orderid still not working . It's even odder this time. Pressing "Next" the first time is just fine, the second time, and it tries to put in this URL:
Comments on orderid
Experienced
Usergroup: Member
Joined: May 05, 2004
Total Topics: 12
Total Comments: 53
After intergrating the comments and the Image Details, orderids are no longer being created. If I change the url to "Link" instead of Comments -- showing the original Image Details template -- then orderids are fine there. I should also add, as you probably know, that after the orderid has a jumpstart -- i.e. I put a 1 in to begin -- it goes on just fine.
Experienced
Usergroup: Member
Joined: May 05, 2004
Total Topics: 12
Total Comments: 53
Hm, it's slightly more serious/problematic than I thought, since sometimes it just bugs up and shows the raw PHP with:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/dw/public_html/wsngallery/classes/database.php on line 59
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/dw/public_html/wsngallery/classes/database.php on line 72
...at the top.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Just checked on localhost and {PREVIOUSLINK} and {NEXTLINK} seem to be working there. Perhaps check your template against the default.
Experienced
Usergroup: Member
Joined: May 05, 2004
Total Topics: 12
Total Comments: 53
I presume you mean {NEXT} instead; I don't see any {NEXTLINK} in the template default...
Can't see any real differences. I did a straight copy and paste; only changing the two a tags to have "comments" instead of "link" (just changed that now; didn't realise before, meh). So, it's:
<IF {PREVIOUSEXISTS}><a href="comments.php?action=detail&catid={IMAGECATID}&orderid={PREVIOUS}">Previous</a></IF>
<IF {PREVIOUSEXISTS} and {NEXTEXISTS}> | </IF>
<IF {NEXTEXISTS}><a href="comments.php?action=detail&catid={IMAGECATID}&orderid={NEXT}">Next</a></IF>
</p>
...but now always getting:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/dw/public_html/wsngallery/classes/database.php on line 72
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/dw/public_html/wsngallery/classes/database.php on line 72
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Well that would explain it I guess, try a {NEXTLINK} instead.
{NEXT} would, I believe, be a pagination variable for the comments page of a multipage thread.
Experienced
Usergroup: Member
Joined: May 05, 2004
Total Topics: 12
Total Comments: 53
Should have mentioned that I already tried that; no luck. With {NEXTLINK} it doesn't stream fo MySQL errors, but the order is certainly mucked, and it seems to always end up -- one way or another -- at orderid=162.
I don't see why it would be {NEXTLINK} -- the Image Details in the default template has {NEXT} and it works fine there.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I don't see why it would be {NEXTLINK} -- the Image Details in the default template has {NEXT} and it works fine there.
Because there's no pagination there. {NEXT} is a reserved pagination variable, it messes up any page that already has pagination.
Will re-check this later today, anyhow.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Checked again, and it still appears to work perfectly.
<p align="center">
<IF {PREVIOUSEXISTS}><a href="link.php?action=detail&catid={IMAGECATID}&orderid={PREVIOUSLINK}">Previous</a></IF>
<IF {PREVIOUSEXISTS} and {NEXTEXISTS}> | </IF>
<IF {NEXTEXISTS}><a href="link.php?action=detail&catid={IMAGECATID}&orderid={NEXTLINK}">Next</a></IF>
</p>
Experienced
Usergroup: Member
Joined: May 05, 2004
Total Topics: 12
Total Comments: 53
Are you sure you're doing this in the Comments template? Kind of wondering if you are since your URL there has href="link.php and I'd imagine you should have comments.php there instead. As I said, it works perfectly on the link.php, yes.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I was using the comments tempalte, but as you note my HTML was wrong.
Experienced
Usergroup: Member
Joined: May 05, 2004
Total Topics: 12
Total Comments: 53
Sorry to carry on, but do you wanna try putting the comments HTML code in for the Comments template? Since, I just put that HTML in my comments, and because it changes to link, it looks like it works just fine. Change the code to "comments" instead of "link" and then you'll see the problems; since as it is, it just changes to the "link" instead, where the Next/Previous is working just fine.
Noticed another couple problems with 0.15:
* Cannot view member album; complains that {THISMEMBERCANREMOVE[ (sic) is invalid. Changing it lets you view the images, but then you get the error:
Warning: Missing argument 1 for canremove() in /home/dw/public_html/wsngallery/classes/member.php on line 856
..though the "Templates" section (in admin panel) also has a permanent error on top.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Just wait for 2.16 on the thread's original topic.
Noticed another couple problems with 0.15:
* Cannot view member album; complains that {THISMEMBERCANREMOVE[ (sic) is invalid. Changing it lets you view the images, but then you get the error:
Warning: Missing argument 1 for canremove() in /home/dw/public_html/wsngallery/classes/member.php on line 856
I'm getting an error of the album not getting created if you don't specifically click to create it, and thus becoming a conditional error, but that appears unrelated to what you've posted. So you will have to post a procedure for reproducing.
Edit: Ah, 2.12. Well, I remember something of that sort back then.
.though the "Templates" section (in admin panel) also has a permanent error on top.
Erm, you aren't going to specify what it is? I don't get one. I'm guessing there's just a warning saying you forgot to upload a template.
Experienced
Usergroup: Member
Joined: May 05, 2004
Total Topics: 12
Total Comments: 53
So you will have to post a procedure for reproducing.
Well, I removed it now since it was simple to do, but it was simply that in the template there was {THISMEMBERCANREMOVE[ instead of {THISMEMBERCANREMOVE}, but not sure if that was simply from the upgrade, since PF doesn't have the prob.
Erm, you aren't going to specify what it is? I don't get one. I'm guessing there's just a warning saying you forgot to upload a template.
Perhaps. I thought I posted it earlier; nevermind. It's:
Warning: filesize(): Stat failed for ../templates/default/badrequest.tpl (errno=2 - No such file or directory) in /home/dw/public_html/wsngallery/admin/templates.php on line 307
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
<IF {THISMEMBERCANREMOVE[{IMAGEOWNERID}]}> is the proper thing that belongs in the template, and is there in the the default template set. Your change will simply cause it to function improperly and show the 'remove' option at the wrong times. You're simply using an ancient version from last year where it doesn't work, I gather.
I thought I posted it earlier; nevermind. It's:
It says you haven't uploaded badrequest.tpl.
Experienced
Usergroup: Member
Joined: May 05, 2004
Total Topics: 12
Total Comments: 53
Quite right. You might want to consider editing the readme.txt, to say "upgrading from 0.15".
Damnit! Orderid still not working . It's even odder this time. Pressing "Next" the first time is just fine, the second time, and it tries to put in this URL:
Edit: Coool. It's working. Took the stuff from the new template, and have:
(changing to {NEXTLINK}...and it works like a charm, thanks.