Webmastersite.net
Register Log In

LINKXWIDTH LINKYHEIGHT
What should they be?

Comments on LINKXWIDTH LINKYHEIGHT

siteengineering
Member

Usergroup: Customer
Joined: Feb 16, 2005

Total Topics: 4
Total Comments: 21
Posted Mar 21, 2005 - 12:33 PM:

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.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 22, 2005 - 12:25 PM:

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.
siteengineering
Member

Usergroup: Customer
Joined: Feb 16, 2005

Total Topics: 4
Total Comments: 21
Posted Mar 22, 2005 - 1:13 PM:

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.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 23, 2005 - 8:50 PM:

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.
siteengineering
Member

Usergroup: Customer
Joined: Feb 16, 2005

Total Topics: 4
Total Comments: 21
Posted Mar 24, 2005 - 6:07 AM:

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!
siteengineering
Member

Usergroup: Customer
Joined: Feb 16, 2005

Total Topics: 4
Total Comments: 21
Posted Mar 24, 2005 - 6:09 AM:

Also, it might work in "submit" (I haven't tried yet) but have you checked "edit link"?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 24, 2005 - 9:32 PM:

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.
siteengineering
Member

Usergroup: Customer
Joined: Feb 16, 2005

Total Topics: 4
Total Comments: 21
Posted Mar 25, 2005 - 3:16 AM:

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.
siteengineering
Member

Usergroup: Customer
Joined: Feb 16, 2005

Total Topics: 4
Total Comments: 21
Posted Mar 28, 2005 - 2:02 PM:

Paul: have you had a chance to try to find the edit problem? Thanks.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#10 - Quote - Permalink
Posted Mar 28, 2005 - 5:58 PM:

With those instructions, I can duplicate it. Should have a solution shortly.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#11 - Quote - Permalink
Posted Mar 28, 2005 - 6:33 PM:

Fixed. Use the new edit.php file.
siteengineering
Member

Usergroup: Customer
Joined: Feb 16, 2005

Total Topics: 4
Total Comments: 21
#12 - Quote - Permalink
Posted Mar 29, 2005 - 8:11 AM:

Aha! That now seems to work. Thanks :-)
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.