https://www.icyphoenix.com/viewtopic.php?f=26&t=3545&p=24397#p24397
-----------------------------------
Artie
Sat 16 Feb, 2008 02:42

Re: Shorten  Auto Character Length  Name
-----------------------------------
Javascript is not my strong suit (neither is php for that matter), but from what I can tell the js function for the form validation already exist......
It seems only to check for a title when your ACP setting is limited to 1 pic upload at a time. If you allow multiple uploads then it does not check for title input.

In the upload tpl file if you place [highlight=#FFFFAA]var gFileuploadCounter = 1;[/highlight] just after 

[highlight=#FFFFAA]function checkAlbumForm()
{[/highlight]

 it will test for title input always ... of course this may cause other problems .... dunno

In answer to you question the code for [highlight=#FFFFAA]{S_ON_SUBMIT}[/highlight] is in album_upload.php and is [highlight=#FFFFAA]return(checkAlbumForm())[/highlight] unless you have nuffload enabled.

Hope this helps  8)


