PDA

View Full Version : Make Description Field Mandatory


webfinity
04-06-2007, 09:09 PM
How do I make the Description field mandatory on the Submit form? I've looked everywhere, and I'm sure I'm missing something very simple.

ciuly
04-06-2007, 09:25 PM
you didn't look quite everywhere: http://www.phplinkdirectory.com/forum/showthread.php?t=645&highlight=description+mandatory

proprod
04-07-2007, 03:31 AM
That doesn't work, not on 3.1 anyway... been there, done that :)

James
04-07-2007, 07:23 AM
hmmmm should work that's odd.

ciuly
04-07-2007, 08:33 AM
Content visible to registered users only.

well, this is the 2.x version support section, so I don't know what a 3.x problems does here :P

James
04-07-2007, 06:08 PM
Content visible to registered users only.

Anyone can get support anywhere.

ciuly
04-07-2007, 06:33 PM
Content visible to registered users only.
oh. didn't know that :D I was just interpreting the description of this area "Here is where we provide limited support for version 2. Support for Version 3 requires membership in the private Supporters Forum."
well, just ignore me then ;)

James
04-07-2007, 06:38 PM
Yeah I am not the black and white about supporting. I sure do more than limited 2.x support also ;)

proprod
04-08-2007, 06:19 AM
Content visible to registered users only.

Nope, did this and it let me submit without description.

VSDan
04-08-2007, 06:29 AM
Via phpLD Admin > Settings > Form Fields, set {Minimum Link Description Length} to non-zero value like 10. If set to zero (as I believe it is by default), then Description can be left blank.

shadav
04-08-2007, 01:34 PM
lol don't have that in v2 dan :P
i tried this and i get an error on my submit page
[edit]nevermind....i got to looking at it, it had an extra false in the code compared to the rest in my submit.php

and i've gotten it to work on version 2.1.1 (not the latest version but the release right before it lol)

don't forget as well in the submit.tpl
find Content visible to registered users only.
before add Content visible to registered users only.

VSDan
04-08-2007, 04:44 PM
My bad, been too long since I last used 2.xx =) Then that is odd that the tip provided here does not work:

http://www.phplinkdirectory.com/forum/showthread.php?t=645

Does anyone have this problem with fix above implemented but still with issue that we can check their submit page?

shadav
04-08-2007, 05:09 PM
lol just to repost the corrected instructions for version 2.1.1

open submit.php
find
Content visible to registered users only.
after add
Content visible to registered users only.

open submit.tpl
find
Content visible to registered users only.
add after
Content visible to registered users only.
find
Content visible to registered users only.
before add
Content visible to registered users only.

VSDan
04-08-2007, 05:12 PM
The third part is stylistic, and of course would not play a role. What did you change in the other parts? Too lazy to compare =)

shadav
04-08-2007, 05:13 PM
there was an extra false (3 instead of 2) in both the find and add of the submit.php
the tpl was fine lol but just figured to put it all down
and yes the last part is just to add the red star showing people that the field is required :)

VSDan
04-08-2007, 05:28 PM
I thought that might be the problem, but when I compared the passed parameters to validator in other validations, I thought they matched. Good eye!

Mr_Bill
05-10-2007, 03:49 PM
Thanks for this

shadav
05-16-2007, 01:53 PM
ok, i'm still getting blank description submits...have v3.2 checked what VSDan said set min to 10 and max to 500 but yet still people are submitting without a description