Adult Script Pro Community Forums

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.

#1 2011-09-13 18:45:37

Eri
Member
Registered: 2011-03-18
Posts: 977

[INPUT NEEDED] force users to add commas at tags

50% of the video that the users upload do not add commas at tags
Having a text to tell them to add tags or force them will be great


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#2 2011-09-13 19:21:48

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [INPUT NEEDED] force users to add commas at tags

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

#3 2011-09-14 05:10:35

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: [INPUT NEEDED] force users to add commas at tags

This will solve the problem smile


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#4 2011-09-17 07:29:10

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [INPUT NEEDED] force users to add commas at tags

Forgot about this for RC4. Will add today.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#5 2011-09-17 07:53:49

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [INPUT NEEDED] force users to add commas at tags

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

#6 2011-09-17 14:03:28

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: [INPUT NEEDED] force users to add commas at tags

Yes good idea


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#7 2011-09-20 11:35:01

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [INPUT NEEDED] force users to add commas at tags

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

#8 2011-09-20 20:53:06

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: [INPUT NEEDED] force users to add commas at tags

This is a great tool but if someone copy - paste the tags there will be a problem.


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#9 2011-09-20 21:07:46

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [INPUT NEEDED] force users to add commas at tags

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

#10 2011-09-21 03:49:28

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: [INPUT NEEDED] force users to add commas at tags

Good enough!


sgt-halfsize-banner.jpg

Offline

#11 2011-09-21 05:16:56

xsporntv
Member
Registered: 2011-04-20
Posts: 139
Website

Re: [INPUT NEEDED] force users to add commas at tags

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

#12 2011-09-21 06:20:47

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: [INPUT NEEDED] force users to add commas at tags

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)


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#13 2011-09-21 11:40:52

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [INPUT NEEDED] force users to add commas at tags

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

#14 2011-09-21 11:49:13

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [INPUT NEEDED] force users to add commas at tags

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

#15 2011-09-21 12:02:43

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [INPUT NEEDED] force users to add commas at tags

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

#16 2011-09-21 12:20:57

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [INPUT NEEDED] force users to add commas at tags

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

#17 2011-09-21 12:43:46

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: [INPUT NEEDED] force users to add commas at tags

great +1


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#18 2011-09-21 14:23:49

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: [INPUT NEEDED] force users to add commas at tags

SmutTV wrote:

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"  ?

This is what i did, but it was ignored sad


sgt-halfsize-banner.jpg

Offline

Board footer

Powered by FluxBB