Quote:
Originally Posted by Crist
Emmmmmmmmm.....
Seems serious enough,
thinking how to solve it now.
and I think I have to delay to Playlist function,
because of this.
|
In AnyMedia Admincp add an option:
Limit AnyMedia tag to First Post: YES / (NO)
Number of AnyMedia Tags Allowed Per Thread: (1)
Allow user to use autoplay tag: YES / (NO)
The settings above wouldn't restrict the media tag to the first post, but it would only allow 1 instance of the media item per thread.
For tracking, you could create a new table: thread_anymedia, or maybe just make a new field in the thread table "anymedia". The value would just be a incremental number ofhow many media tags have already been used in the thread. If the limit is reached, then it would error when the user tries to make a post a new thread.
I wouldn't worry too much about decreasing this value when threads or posts are removed... not right away anyway.
In fact, if you want to do a quick and dirty "fix", you could just add this single new option:
Number of AnyMedia Tags Allowed Per Thread: (1)
If the user has it set to 1, then it wont matter if it is the first post in the thread or otherwise... the admin will be sure that there wont be any abuse from excessive use of the media tags.
In future versions, if you wanted to get more complex, you could limit it to X instances (X=1 would be a good idea) of the media tag per PAGE of a thread. But that would require you to look up and calculate the pagination break and other things. But then you could have up to 1 (or whatever) media item per page of a thread.