Author |
Topic  |
|
ksntz
Starting Member
38 Posts |
Posted - 29 July 2007 : 16:58:16
|
Is there a way to check a post for number of img tags and disallow if there are too many? I would like to make it so there is only one picture allowed per post
|
|
pdrg
Support Moderator
    
United Kingdom
2897 Posts |
Posted - 30 July 2007 : 13:52:35
|
Not built-in to my knowledge, but you could add a couple of lines of code to do so yourself by counting the number of instances of the opening '[img....' tag and deciding on what you want to do if there's more than one (for instance, will you send an error message, or just show the first image, etc) |
 |
|
ksntz
Starting Member
38 Posts |
Posted - 30 July 2007 : 16:35:06
|
thanks pdrg
could anyone more proficient than I throw me a snippet example to get me on the right track? |
 |
|
HuwR
Forum Admin
    
United Kingdom
20593 Posts |
Posted - 31 July 2007 : 03:30:13
|
you could just tell your users they can only post one img and then start locking their accounts if they post more. not sure why you would want to introduce a limit anyway. |
 |
|
ksntz
Starting Member
38 Posts |
Posted - 01 August 2007 : 04:47:31
|
I don't want to have to set new posters need approval
but I had someone register then make posts with 20 big images in them just to be destructive
it can freeze browsers until a mod comes on to delete them and ban the user
if I could make it so only 1 image per post it would be nicer for dialup users and also prevent the problems we had with that poster |
 |
|
|
Topic  |
|