Might be able to do it? Huh? They're in the WSN Links manual...
Version 3.14 doesn't prevent the user uploading an image that has larger width or height than the maximums set in the admin control panel (despite the fact that I noticed somebody else had the same problem with 2.50 or something and you posted that it was a bug which had been fixed). Without knowing these link variables we can't even squeeze images that are too big and our application is dead in the water!
You can simply add the fields xwidth and yheight if you want -- unless of course they're restricted to WSN Gallery, but I don't know that that's the case.
Image size restriction works fine for me. Tells me the file is too large and refuses to accept the link submission.
File too large (Kb) works fine. As does the acceptable file types. But dimensions of file (max width and height) doesn't work.
If you are testing this, take care that the file is not too heavy (meaning in memory terms). If so, it will indeed be rejected, but only on the basis of it taking too many bytes.
So try with a file that is too wide or high but is under your maximum number of Kb.
I am sorry, Paul. I really don't understand "You can simply add the fields xwidth and yheight if you want -- unless of course they're restricted to WSN Gallery". I know how to add custom fields obviously but how can I add fields that are automatically filled with the attachment image width and height? And I don't understand how WSN Gallery is relevant here. I'm only using WSN Links.
"but I don't know that that's the case" ... how then can I know? I obviously have a serious blind spot here!
Template variables are commonly based on fields. {LINKXWIDTH} and {LINKYHEIGHT} are examples. There are no such fields in your links table in WSN Links, only in WSN Gallery -- that being why the fields don't work in WSN Links.
But dimensions of file (max width and height) doesn't work.
I set my file bytes limit to 10 megabytes before uploading a picture that was about 300 KB. It uploads when I set width/height limit to 5000, the exact same picture refuses to upload when I set it to 500. Just as it shouuld be.
I tried 'suggest link' - yes, that works, as you say.
However, when you edit a link, and change the image to something of too high a width or height, it is uploaded, not rejected.
Example: http://www.ulster.com/directory/listing/detail/46 That's a 468x60 image. Max width is set to 250. When I submitted that link, that image was rejected. The 468 width image was however accepted when the link was edited.
Comments on LINKXWIDTH LINKYHEIGHT
Member
Usergroup: Customer
Joined: Feb 16, 2005
Total Topics: 4
Total Comments: 21
scripts.webmastersite.net/w...nk.php?action=detail&id=10
The manual page above says:
{LINKXWIDTH} - The width of image attachments in pixels.
{LINKYHEIGHT} - The height of image attachements in pixels.
Not working - what should they be? Thanks.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I think those are WSN Gallery vars. You might be able to do it in WSN Links by treating the regular field like a custom file field.
Member
Usergroup: Customer
Joined: Feb 16, 2005
Total Topics: 4
Total Comments: 21
Might be able to do it? Huh? They're in the WSN Links manual...
Version 3.14 doesn't prevent the user uploading an image that has larger width or height than the maximums set in the admin control panel (despite the fact that I noticed somebody else had the same problem with 2.50 or something and you posted that it was a bug which had been fixed). Without knowing these link variables we can't even squeeze images that are too big and our application is dead in the water!
Please elaborate.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
You can simply add the fields xwidth and yheight if you want -- unless of course they're restricted to WSN Gallery, but I don't know that that's the case.
Image size restriction works fine for me. Tells me the file is too large and refuses to accept the link submission.
Member
Usergroup: Customer
Joined: Feb 16, 2005
Total Topics: 4
Total Comments: 21
File too large (Kb) works fine. As does the acceptable file types.
But dimensions of file (max width and height) doesn't work.
If you are testing this, take care that the file is not too heavy (meaning in memory terms). If so, it will indeed be rejected, but only on the basis of it taking too many bytes.
So try with a file that is too wide or high but is under your maximum number of Kb.
I am sorry, Paul. I really don't understand "You can simply add the fields xwidth and yheight if you want -- unless of course they're restricted to WSN Gallery". I know how to add custom fields obviously but how can I add fields that are automatically filled with the attachment image width and height? And I don't understand how WSN Gallery is relevant here. I'm only using WSN Links.
"but I don't know that that's the case" ... how then can I know? I obviously have a serious blind spot here!
Member
Usergroup: Customer
Joined: Feb 16, 2005
Total Topics: 4
Total Comments: 21
Also, it might work in "submit" (I haven't tried yet) but have you checked "edit link"?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Template variables are commonly based on fields. {LINKXWIDTH} and {LINKYHEIGHT} are examples. There are no such fields in your links table in WSN Links, only in WSN Gallery -- that being why the fields don't work in WSN Links.
But dimensions of file (max width and height) doesn't work.
I set my file bytes limit to 10 megabytes before uploading a picture that was about 300 KB. It uploads when I set width/height limit to 5000, the exact same picture refuses to upload when I set it to 500. Just as it shouuld be.
Member
Usergroup: Customer
Joined: Feb 16, 2005
Total Topics: 4
Total Comments: 21
I tried 'suggest link' - yes, that works, as you say.
However, when you edit a link, and change the image to something of too high a width or height, it is uploaded, not rejected.
Example: http://www.ulster.com/directory/listing/detail/46
That's a 468x60 image. Max width is set to 250.
When I submitted that link, that image was rejected.
The 468 width image was however accepted when the link was edited.
Member
Usergroup: Customer
Joined: Feb 16, 2005
Total Topics: 4
Total Comments: 21
Paul: have you had a chance to try to find the edit problem? Thanks.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
With those instructions, I can duplicate it. Should have a solution shortly.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Fixed. Use the new edit.php file.
Member
Usergroup: Customer
Joined: Feb 16, 2005
Total Topics: 4
Total Comments: 21
Aha! That now seems to work. Thanks :-)