关于会员发布歌曲提示名字不合理解决方法<br>
首先申明下 这个是为了别人非法发布数据禁止的<br>
<br>
下面是解决方法<br>
<br>
打开 skins/user/default/js/common.js<br>
找到
<ol class="linenums">
<li class="L0">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="com">//--------------歌曲发表----------------------</span></code>
</li><li class="L1">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pln">$</span><span class="pun">(</span><span class="str">"#danceadd"</span><span class="pun">).</span><span class="pln">click</span><span class="pun">(</span><span class="kwd">function</span><span class="pun">(){</span></code>
</li><li class="L2">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="kwd">var</span><span class="pln"> cs_name</span><span class="pun">=</span><span class="pln">$</span><span class="pun">(</span><span class="str">"#cs_name"</span><span class="pun">).</span><span class="pln">val</span><span class="pun">();</span></code>
</li><li class="L3">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="kwd">var</span><span class="pln"> cs_cid</span><span class="pun">=</span><span class="pln">$</span><span class="pun">(</span><span class="str">"#cs_cid"</span><span class="pun">).</span><span class="pln">val</span><span class="pun">();</span></code>
</li><li class="L4">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="kwd">var</span><span class="pln"> cs_cion</span><span class="pun">=</span><span class="pln">$</span><span class="pun">(</span><span class="str">"#cs_cion"</span><span class="pun">).</span><span class="pln">val</span><span class="pun">();</span></code>
</li><li class="L5">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="kwd">var</span><span class="pln"> cs_playurl</span><span class="pun">=</span><span class="pln">$</span><span class="pun">(</span><span class="str">"#cs_playurl"</span><span class="pun">).</span><span class="pln">val</span><span class="pun">();</span></code>
</li><li class="L6">
</li><li class="L7">
</li><li class="L8">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pln">$</span><span class="pun">(</span><span class="str">"#cs_name"</span><span class="pun">).</span><span class="pln">css</span><span class="pun">(</span><span class="str">"border-color"</span><span class="pun">,</span><span class="str">"#DCDCDC #DCDCDC #DCDCDC #DCDCDC"</span><span class="pun">);</span></code>
</li><li class="L9">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pln">$</span><span class="pun">(</span><span class="str">"#cs_cid"</span><span class="pun">).</span><span class="pln">css</span><span class="pun">(</span><span class="str">"border-color"</span><span class="pun">,</span><span class="str">"#DCDCDC #DCDCDC #DCDCDC #DCDCDC"</span><span class="pun">);</span></code>
</li><li class="L0">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pln">$</span><span class="pun">(</span><span class="str">"#cs_cion"</span><span class="pun">).</span><span class="pln">css</span><span class="pun">(</span><span class="str">"border-color"</span><span class="pun">,</span><span class="str">"#DCDCDC #DCDCDC #DCDCDC #DCDCDC"</span><span class="pun">);</span></code>
</li><li class="L1">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pln">$</span><span class="pun">(</span><span class="str">"#msg_name"</span><span class="pun">).</span><span class="pln">text</span><span class="pun">(</span><span class="str">"作为歌曲名字请您认真填写,合理的名字审核才会通过。"</span><span class="pun">).</span><span class="pln">css</span><span class="pun">(</span><span class="str">"color"</span><span class="pun">,</span><span class="str">"#666"</span><span class="pun">);</span></code>
</li><li class="L2">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pln">$</span><span class="pun">(</span><span class="str">"#msg_cid"</span><span class="pun">).</span><span class="pln">text</span><span class="pun">(</span><span class="str">"歌曲所属的类型,请正确选择。"</span><span class="pun">).</span><span class="pln">css</span><span class="pun">(</span><span class="str">"color"</span><span class="pun">,</span><span class="str">"#666"</span><span class="pun">);</span></code>
</li><li class="L3">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pln">$</span><span class="pun">(</span><span class="str">"#msg_cion"</span><span class="pun">).</span><span class="pln">text</span><span class="pun">(</span><span class="str">"歌曲下载需要金币。"</span><span class="pun">).</span><span class="pln">css</span><span class="pun">(</span><span class="str">"color"</span><span class="pun">,</span><span class="str">"#666"</span><span class="pun">);</span></code>
</li><li class="L4">
</li><li class="L5">
</li><li class="L6">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="kwd">if</span><span class="pun">(</span><span class="pln">cs_name</span><span class="pun">==</span><span class="str">""</span><span class="pun">){</span></code>
</li><li class="L7">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pln">$</span><span class="pun">(</span><span class="str">"#cs_name"</span><span class="pun">).</span><span class="pln">css</span><span class="pun">(</span><span class="str">"border"</span><span class="pun">,</span><span class="str">"1px solid #666"</span><span class="pun">);</span></code>
</li><li class="L8">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pln">$</span><span class="pun">(</span><span class="str">"#msg_name"</span><span class="pun">).</span><span class="pln">text</span><span class="pun">(</span><span class="str">"请输入合理的歌曲名字!"</span><span class="pun">).</span><span class="pln">css</span><span class="pun">(</span><span class="str">"color"</span><span class="pun">,</span><span class="str">"red"</span><span class="pun">);</span></code>
</li><li class="L9">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="kwd">return</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">;</span></code>
</li><li class="L0">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pun">}</span><span class="pln"> </span><span class="kwd">else</span><span class="pln"> </span><span class="kwd">if</span><span class="pun">((</span><span class="pln">len</span><span class="pun">(</span><span class="pln">cs_name</span><span class="pun">)<</span><span class="lit">8</span><span class="pun">)){</span></code>
</li><li class="L1">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pln">$</span><span class="pun">(</span><span class="str">"#cs_name"</span><span class="pun">).</span><span class="pln">css</span><span class="pun">(</span><span class="str">"border"</span><span class="pun">,</span><span class="str">"1px solid #666"</span><span class="pun">);</span></code>
</li><li class="L2">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pln">$</span><span class="pun">(</span><span class="str">"#msg_name"</span><span class="pun">).</span><span class="pln">text</span><span class="pun">(</span><span class="str">"请输入合理的歌曲名字!"</span><span class="pun">).</span><span class="pln">css</span><span class="pun">(</span><span class="str">"color"</span><span class="pun">,</span><span class="str">"red"</span><span class="pun">);</span></code>
<div class="cscms-copy">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span>复制代码</span></code>
<div class="cscms-copy">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span>复制代码</span></code>
<br>
<br>
改成
<ol class="linenums">
<li class="L0">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="com">//--------------歌曲发表----------------------</span></code>
</li><li class="L1">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pln">$</span><span class="pun">(</span><span class="str">"#danceadd"</span><span class="pun">).</span><span class="pln">click</span><span class="pun">(</span><span class="kwd">function</span><span class="pun">(){</span></code>
</li><li class="L2">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="kwd">var</span><span class="pln"> cs_name</span><span class="pun">=</span><span class="pln">$</span><span class="pun">(</span><span class="str">"#cs_name"</span><span class="pun">).</span><span class="pln">val</span><span class="pun">();</span></code>
</li><li class="L3">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="kwd">var</span><span class="pln"> cs_cid</span><span class="pun">=</span><span class="pln">$</span><span class="pun">(</span><span class="str">"#cs_cid"</span><span class="pun">).</span><span class="pln">val</span><span class="pun">();</span></code>
</li><li class="L4">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="kwd">var</span><span class="pln"> cs_cion</span><span class="pun">=</span><span class="pln">$</span><span class="pun">(</span><span class="str">"#cs_cion"</span><span class="pun">).</span><span class="pln">val</span><span class="pun">();</span></code>
</li><li class="L5">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="kwd">var</span><span class="pln"> cs_playurl</span><span class="pun">=</span><span class="pln">$</span><span class="pun">(</span><span class="str">"#cs_playurl"</span><span class="pun">).</span><span class="pln">val</span><span class="pun">();</span></code>
</li><li class="L6">
</li><li class="L7">
</li><li class="L8">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pln">$</span><span class="pun">(</span><span class="str">"#cs_name"</span><span class="pun">).</span><span class="pln">css</span><span class="pun">(</span><span class="str">"border-color"</span><span class="pun">,</span><span class="str">"#DCDCDC #DCDCDC #DCDCDC #DCDCDC"</span><span class="pun">);</span></code>
</li><li class="L9">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pln">$</span><span class="pun">(</span><span class="str">"#cs_cid"</span><span class="pun">).</span><span class="pln">css</span><span class="pun">(</span><span class="str">"border-color"</span><span class="pun">,</span><span class="str">"#DCDCDC #DCDCDC #DCDCDC #DCDCDC"</span><span class="pun">);</span></code>
</li><li class="L0">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pln">$</span><span class="pun">(</span><span class="str">"#cs_cion"</span><span class="pun">).</span><span class="pln">css</span><span class="pun">(</span><span class="str">"border-color"</span><span class="pun">,</span><span class="str">"#DCDCDC #DCDCDC #DCDCDC #DCDCDC"</span><span class="pun">);</span></code>
</li><li class="L1">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pln">$</span><span class="pun">(</span><span class="str">"#msg_name"</span><span class="pun">).</span><span class="pln">text</span><span class="pun">(</span><span class="str">"作为歌曲名字请您认真填写,合理的名字审核才会通过。"</span><span class="pun">).</span><span class="pln">css</span><span class="pun">(</span><span class="str">"color"</span><span class="pun">,</span><span class="str">"#666"</span><span class="pun">);</span></code>
</li><li class="L2">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pln">$</span><span class="pun">(</span><span class="str">"#msg_cid"</span><span class="pun">).</span><span class="pln">text</span><span class="pun">(</span><span class="str">"歌曲所属的类型,请正确选择。"</span><span class="pun">).</span><span class="pln">css</span><span class="pun">(</span><span class="str">"color"</span><span class="pun">,</span><span class="str">"#666"</span><span class="pun">);</span></code>
</li><li class="L3">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pln">$</span><span class="pun">(</span><span class="str">"#msg_cion"</span><span class="pun">).</span><span class="pln">text</span><span class="pun">(</span><span class="str">"歌曲下载需要金币。"</span><span class="pun">).</span><span class="pln">css</span><span class="pun">(</span><span class="str">"color"</span><span class="pun">,</span><span class="str">"#666"</span><span class="pun">);</span></code>
</li><li class="L4">
</li><li class="L5">
</li><li class="L6">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="kwd">if</span><span class="pun">(</span><span class="pln">cs_name</span><span class="pun">==</span><span class="str">""</span><span class="pun">){</span></code>
</li><li class="L7">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pln">$</span><span class="pun">(</span><span class="str">"#cs_name"</span><span class="pun">).</span><span class="pln">css</span><span class="pun">(</span><span class="str">"border"</span><span class="pun">,</span><span class="str">"1px solid #666"</span><span class="pun">);</span></code>
</li><li class="L8">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pln">$</span><span class="pun">(</span><span class="str">"#msg_name"</span><span class="pun">).</span><span class="pln">text</span><span class="pun">(</span><span class="str">"请输入合理的歌曲名字!"</span><span class="pun">).</span><span class="pln">css</span><span class="pun">(</span><span class="str">"color"</span><span class="pun">,</span><span class="str">"red"</span><span class="pun">);</span></code>
</li><li class="L9">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="kwd">return</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">;</span></code>
</li><li class="L0">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pun">}</span><span class="pln"> </span><span class="kwd">else</span><span class="pln"> </span><span class="kwd">if</span><span class="pun">((</span><span class="pln">len</span><span class="pun">(</span><span class="pln">cs_name</span><span class="pun">)<</span><span class="lit">2</span><span class="pun">)){</span></code>
</li><li class="L1">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pln">$</span><span class="pun">(</span><span class="str">"#cs_name"</span><span class="pun">).</span><span class="pln">css</span><span class="pun">(</span><span class="str">"border"</span><span class="pun">,</span><span class="str">"1px solid #666"</span><span class="pun">);</span></code>
</li><li class="L2">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="pln">$</span><span class="pun">(</span><span class="str">"#msg_name"</span><span class="pun">).</span><span class="pln">text</span><span class="pun">(</span><span class="str">"请输入合理的歌曲名字!"</span><span class="pun">).</span><span class="pln">css</span><span class="pun">(</span><span class="str">"color"</span><span class="pun">,</span><span class="str">"red"</span><span class="pun">);</span></code>
</li><li class="L3">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span class="kwd">return</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">;</span></code>
<div class="cscms-copy">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span>复制代码</span></code>
<div class="cscms-copy">
<code class="prettyprint linenums lang-php prettyprinted" style=""><span>复制代码</span></code>
<br>
也就是把 } else if((len(cs_name)<8)){ 改成 } else if((len(cs_name)<2)){<br><!--8-->
<br>
即可。<br>
记得保存。</div></div></li></ol></div></div></li></ol>