Closed (fixed)
Project:
Web Links
Version:
6.x-2.3
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Oct 2009 at 12:11 UTC
Updated:
27 Oct 2009 at 23:10 UTC
When users submit new link, by deult be allowed to choosing multigroup for link
I need to:
Not allow the user to choose multiple group.
Change textarea to textfield for url box
Which file i need to change, or which file contain the submission form.
Thanks for help
Comments
Comment #1
yamenshahin commentedComment #2
nancydruThe node form is in weblinks.module at function weblinks.form(), as is standard for Drupal.
I'd like to have a clearer understanding of the problem. The reason that field is a textarea is because a URL can be thousands of bytes long, and a textfield will not accept more than 255 bytes.
Comment #3
yamenshahin commentedThanks for you quick response!
Now i know why you choose textarea instead of stranded textfield.
But the problem for me that textarea allow users to hit enter then he can enter another link, this would show an error . I want to spare the normal user the trouble of error.
for example i did a test. I wrote a link (google's link) then i hit enter and wrote another link (Yahoo this time). Now the link is (http://www.google.com/__http://www.yahoo.com).
Comment #4
nancydruThat was a trade off we had to make as maintainers. See #136813: URL field too short and #284463: URL length needs to be increased. I believe you could have the same problem with a "textfield."
Comment #5
yamenshahin commentedAgain thanks for your quick response.
I will use textarea.
But I hope that you -kindly- make something - in the future- prevents the user from putting more than one link to avoid errors .
Thanks for your great and helpful modules.
Comment #6
nancydruOne validates form data to ensure that incorrect data (error) is not entered. How about we at least put some "help" text below the field to say something like "Enter a single web address (URL), including the 'http://'"
Comment #7
nancydru