The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!
You are not logged in.
Offline
Thaught about this before (i'm having the same problem on my sites). What i think would the best option is to have a configurable option for a tag length, if a tag > max_length, ask the user to use commas. What do you think?
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Forgot about this for RC4. Will add today.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
This is not so easy to do. What do you think about a javascript tagger, basically uploaders will enter the tags, one by one, clicking enter after each tag and then the list of tasg will appear below the input field? (something like facebook, when you edit your profile, but more simple)?
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
How about this one: http://projects.alicialiu.net/jquery-tagify-demo/
Do you think this will work with porn sites? I can just force from php (basically display a mesage if the tags > some length and dont contain commas).
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
True. So the best way would be to actually force the users from php? (when the hit upload, the tags are checked in php and if the tags are not separated by commas, there will be a error message. Actually this is the easiest way). Good enough?
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Offline
Just a thought!? Do not use the word error...use the words, "please separate each tag with commas"...and on a user point of view when the message appears please do not have the tags erase. Make sure they are still there so that the user only needs to include commas and do not use harsh colors like red...something more mellow like light green or yellow or whatever...you know what I mean.
Cheers! ;-)
P.S During the upload procedure what if there is small writing/text beneath the tag box that indicates a message "please separate each tag with a comma" ?
Last edited by xsporntv (2011-09-21 05:20:15)
Offline
I think both methods will works
But having a message when user goes to add comment is better, because php error will stop him from video upload. Maybe he get board uploading the video again lol
Last edited by Eri (2011-09-21 06:21:28)
Offline
Its not easy to implement this, because for example if you allow 3 words tags, the tag could have like 100 characters, so limiting to 100 characters will prevent you from using 3 words tags.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Should there be a limit for the word a single tag can contain, like max 2 or max 3 words? (i personally think 3 words is good enough).
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Hmm...actually i think 50 characters limit for a tag would be enough, "homemade homemade homemade" has 27 characters. So a character limit and word limit will do the trick. Adding in RC4 now.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
So in PHP:
if ($tags == '') {
$errors[] = __('tags-empty');
} else {
$tags = prepare_tags($tags);
if ($tags == '') {
$errors[] = __('tags-invalid');
} else {
$arr = explode(',', $tags);
foreach ($arr as $tag) {
if (strlen($tag) > $this->vcfg['tag_max_length']) {
$errors[] = 'Tag "'.$tag.'" contains more than '.$this->vcfg['tag_max_length'].' characters. Please separate tags with commas!';
}
if (str_word_count($tag) > $this->vcfg['tag_max_words']) {
$errors[] = 'Tag "'.$tag.'" contains more than '.$this->vcfg['tag_max_words'].' words. Tags can contain maximum '.$this->cfg['tag_max_words'].'!';
}
}
$video['tags'] = $tags;
}
}
This means tags are limited to number of characters (defined in admin) and number of words (defined in admin). Need to implement this is javascript also, so that users dont need to wait until upload finishes to get these errors.
UPDATE: implemented in both javascript and php. Also added a tagify function to make the process of adding tags simplier. Will update scriptdevel later today. Please let me know what you think about this method.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Offline