Google
      
发新话题
打印

发帖全自动添加标签

发帖全自动添加标签

发帖全自动添加标签
第一步 建立一个图片 小一点1*1  一定要有颜色 否则不能上传到自己的论坛 保存的时候 保存为 TAG.JPG
小一点是为了打开的时候速度会很快 不会影响发帖
第二步 用记事本打开图片 写入 然后保存  红色部分是可以修改的 其他请不要动
引用:

function validate(theform, previewpost) {        if($('tags') && $('tags').value == '') {                relatekw(-1, -1, 'if($(\'tags\').value == \'\') {alert(\'万网工作室提醒您:发帖必须填写标签(TAG)\');$(\'postform\').tags.focus();} else {validate($(\'postform\'))}');                return false;        }        var message = bbinsert && wysiwyg ? html2bbcode(getEditorContents()) : (!theform.parseurloff.checked ? parseurl(theform.message.value) : theform.message.value);        if(($('postsubmit').name != 'replysubmit' && !($('postsubmit').name == 'editsubmit' && !isfirstpost) && theform.subject.value == "") || message == "") {                alert(lang['post_subject_and_message_isnull']);                if(special != 2) {                        theform.subject.focus();                }                return false;        } else if(mb_strlen(theform.subject.value) > 80) {                alert(lang['post_subject_toolong']);                theform.subject.focus();                return false;        }        if(typeof(qihoo_image_openp)!='undefined' && qihoo_image_openp && $('phidstatus').value == '1') {                alert(lang['phidstatus']);                return false;        }        if(tradepost) {                if(theform.item_name.value == '') {                        alert(lang['post_trade_goodsname_null']);                        theform.item_name.focus();                        return false;                } else if(theform.item_price.value == '') {                        alert(lang['post_trade_price_null']);                        theform.item_price.focus();                        return false;                } else if(!parseInt(theform.item_price.value)) {                        alert(lang['post_trade_price_is_number']);                        theform.item_price.focus();                        return false;                } else if(theform.item_costprice.value != '' && !parseInt(theform.item_costprice.value)) {                        alert(lang['post_trade_costprice_is_number']);                        theform.item_costprice.focus();                        return false;                } else if(theform.item_number.value != '0' && !parseInt(theform.item_number.value)) {                        alert(lang['post_trade_amount_is_number']);                        theform.item_number.focus();                        return false;                }        }        if(in_array($('postsubmit').name, ['topicsubmit', 'editsubmit'])) {                if(theform.typeid && (theform.typeid.options && theform.typeid.options[theform.typeid.selectedIndex].value == 0) && typerequired) {                        alert(lang['post_type_isnull']);                        theform.typeid.focus();                        return false;                }                if(special == 3 && isfirstpost) {                        if(theform.rewardprice.value == "") {                                alert(lang['post_reward_credits_null']);                                theform.rewardprice.focus();                                return false;                        }                } else if(special == 4 && isfirstpost) {                        if(theform.activityclass.value == "") {                                alert(lang['post_activity_sort_null']);                                theform.activityclass.focus();                                return false;                        } else if($('starttimefrom_0').value == "" && $('starttimefrom_1').value == "") {                                alert(lang['post_activity_fromtime_null']);                                return false;                        } else if(theform.activityplace.value == "") {                                alert(lang['post_activity_addr_null']);                                theform.activityplace.focus();                                return false;                        }                } else if(special == 6 && isfirstpost && $('postsubmit').name == 'topicsubmit') {                        if(theform.vid.value == '') {                                alert(lang['post_video_uploading']);                                return false;                        } else if(theform.vsubject.value == '') {                                alert('没有填写视频主题');                                return false;                        } else if(theform.vtag.value == '') {                                alert('没有填写视频标签');                                return false;                        } else if($('vclass') == '') {                                alert(lang['post_video_vclass_required']);                                return false;                        }                }        }        if(!disablepostctrl && ((postminchars != 0 && mb_strlen(message) < postminchars) || (postmaxchars != 0 && mb_strlen(message) > postmaxchars))) {                alert(lang['post_message_length_invalid'] + '\n\n' + lang['post_curlength'] + ': ' + mb_strlen(message) + ' ' + lang['bytes'] + '\n' +lang['board_allowed'] + ': ' + postminchars + ' ' + lang['lento'] + ' ' + postmaxchars + ' ' + lang['bytes']);                return false;        }        theform.message.value = message;        if(in_array($('postsubmit').name, ['topicsubmit', 'replysubmit'])) seccheck(theform, seccodecheck, secqaacheck, previewpost);        if(previewpost || $('postsubmit').name == 'editsubmit') return true;}//5d6d HaTEfunction relatekw(subject, message, recall) {        if(isUndefined(recall)) recall = '';        if(isUndefined(subject) || subject == -1) subject = $('subject').value;        if(isUndefined(message) || message == -1) message = getEditorContents();        message = message.replace(/&/ig, '', message).substr(0, 500);        ajaxget('relatekw.php?subjectenc=' + subject + '&messageenc=' + message, 'tagselect', '', '', '', recall);}//5d6d HaTE
第三步 把这个图片 上传到论坛 然后 得到地址
加入一下代码到备案信息即可 把红色部分 改成你的地址即可
本帖隐藏的内容需要回复才可以浏览

TOP

2222222222

TOP

谢谢拉 很好

TOP

ddddddddddddddddddddddddd

TOP

............................

TOP

dddddddddddddddddd

TOP

学习了........

TOP

TOP

TOP

回复 楼主 sonllhan 的帖子

jt6rjetdjhtrjtrfjrfjtjktkuk7ut67k67

TOP

发新话题