方国清 發表於 2025-6-16 00:00:00

修改Discuz“官方微博快速收听按钮”样式可选择10种样式

<p>&ldquo;本站官方微博快速收听按钮&rdquo;默认样式是这样的:&nbsp;<img style="max-width:100%!important;height:auto!important;"alt="0.jpg" src="https://zhuji.jb51.net/uploads/allimg/20250616/1-250616092422157.jpg" width="158" />&nbsp;<br />腾讯开放平台提供了可以修改为以下10个样式:<br /><img style="max-width:100%!important;height:auto!important;"alt="修改Discuz“官方微博快速收听按钮”样式的方法 三联" src="https://zhuji.jb51.net/uploads/allimg/20250616/1-250616092422348.png" />&nbsp;<br />有些用户想对样式做一下调整,却不知如何修改。下面简单讲一下修改的方法:<br /><br />1、决定样式的代码是存在数据库pre_common_setting表中的,首先运行sql语句<br />&nbsp;</p>
<div class="msgheader">代码如下:</div>
<div class="msgborder" id="phpcode75"><br />select `svalue` FROM `pre_common_setting` where `skey` = &#39;connect&#39;</div>
<p><br />取出sql的查询结果值来,</p>
<p></p>
<div class="msgheader">代码如下:</div>
<p></p>
<p></p>
<div class="msgborder" id="phpcode76"><br />a:21:{s:5:&quot;allow&quot;;s:1:&quot;1&quot;;s:4:&quot;feed&quot;;a:2:{s:5:&quot;allow&quot;;s:1:&quot;0&quot;;s:5:&quot;group&quot;;s:1:&quot;0&quot;;}s:1:&quot;t&quot;;a:2:{s:5:&quot;allow&quot;;s:1:&quot;0&quot;;s:5:&quot;group&quot;;s:1:&quot;0&quot;;}s:10:&quot;like_allow&quot;;s:1:&quot;0&quot;;s:7:&quot;like_qq&quot;;s:0:&quot;&quot;;s:10:&quot;turl_allow&quot;;s:1:&quot;1&quot;;s:7:&quot;turl_qq&quot;;s:10:&quot;2319297683&quot;;s:8:&quot;like_url&quot;;s:0:&quot;&quot;;s:17:&quot;register_birthday&quot;;s:1:&quot;0&quot;;s:15:&quot;register_gender&quot;;s:1:&quot;0&quot;;s:17:&quot;register_uinlimit&quot;;s:1:&quot;2&quot;;s:21:&quot;register_rewardcredit&quot;;s:1:&quot;1&quot;;s:18:&quot;register_addcredit&quot;;s:1:&quot;2&quot;;s:16:&quot;register_groupid&quot;;s:1:&quot;0&quot;;s:18:&quot;register_regverify&quot;;s:1:&quot;1&quot;;s:15:&quot;register_invite&quot;;s:1:&quot;1&quot;;s:10:&quot;newbiespan&quot;;s:0:&quot;&quot;;s:9:&quot;turl_code&quot;;s:253:&quot;&lt;iframe src=&quot;http://follow.v.t.qq.com/index.php?c=follow&amp;a=quick&amp;name=lmmyyw&amp;style=3&amp;f=1&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; allowtransparency=&quot;true&quot; frameborder=&quot;0&quot; height=&quot;20&quot; scrolling=&quot;auto&quot; width=&quot;168&quot; style=&quot;margin:5px 0 0 0px;float:left;&quot;&gt;&lt;/iframe&gt;&quot;;s:13:&quot;mblog_app_key&quot;;s:288:&quot;b00fc655b3804133963cf0cbc346b8d7b00fc655b3804133963cf0cbc346b8d7b00fc655b3804133963cf0cbc346b8d7b00fc655b3804133963cf0cbc346b8d7b00fc655b3804133963cf0cbc346b8d7b00fc655b3804133963cf0cbc346b8d7b00fc655b3804133963cf0cbc346b8d7b00fc655b3804133963cf0cbc346b8d7b00fc655b3804133963cf0cbc346b8d7&quot;;s:12:&quot;qshare_allow&quot;;s:1:&quot;0&quot;;s:13:&quot;qshare_appkey&quot;;s:0:&quot;&quot;;}</div>
<p><br />大体如上面的代码,但每一个站点有差别,这段值中间有一段frame代码,</p>
<p></p>
<div class="msgheader">代码如下:</div>
<p></p>
<div class="msgborder" id="phpcode77"><br />&lt;iframe src=&quot;http://follow.v.t.qq.com/index.php?c=follow&amp;a=quick&amp;name=lmmyyw&amp;style=3&amp;f=1&quot;</div>
<p><br />这段frame代码的后半部分的&ldquo;style=3&amp;f=1&nbsp;&rdquo;就是控制样式的。<br /><br />2、如果要修改成这样的样式&nbsp;<img style="max-width:100%!important;height:auto!important;"alt="1.jpg" src="https://zhuji.jb51.net/uploads/allimg/20250616/1-250616092422R8.jpg" width="215" />&nbsp;<br />只需将上面frame代码的</p>
<p></p>
<div class="msgheader">代码如下:</div>
<p></p>
<p></p>
<div class="msgborder" id="phpcode78"><br />style=3&amp;f=1</div>
<p><br />改为</p>
<p></p>
<p></p>
<div class="msgheader">代码如下:</div>
<p></p>
<p></p>
<div class="msgborder" id="phpcode79"><br />style=1&amp;f=0</div>
<p><br />3、如果要修改成这样的样式&nbsp;<img style="max-width:100%!important;height:auto!important;"alt="11.jpg" src="https://zhuji.jb51.net/uploads/allimg/20250616/1-2506160924221B.jpg" width="254" />&nbsp;<br />只需将上面frame代码的</p>
<p></p>
<p></p>
<div class="msgheader">代码如下:</div>
<p></p>
<p></p>
<div class="msgborder" id="phpcode80"><br />style=3&amp;f=1</div>
<p><br />改为</p>
<p></p>
<p></p>
<div class="msgheader">代码如下:</div>
<p></p>
<p></p>
<div class="msgborder" id="phpcode81"><br />style=1&amp;f=1</div>
<p><br />4、如果要修改成这样的样式&nbsp;&nbsp;&nbsp;<img style="max-width:100%!important;height:auto!important;"alt="2.jpg" src="https://zhuji.jb51.net/uploads/allimg/20250616/1-250616092422162.jpg" width="170" />&nbsp;<br />只需将上面frame代码的</p>
<p></p>
<p></p>
<div class="msgheader">代码如下:</div>
<p></p>
<p></p>
<div class="msgborder" id="phpcode82"><br />style=3&amp;f=1</div>
<p><br />改为</p>
<p></p>
<p></p>
<div class="msgheader">代码如下:</div>
<p></p>
<p></p>
<div class="msgborder" id="phpcode83"><br />style=2&amp;f=0</div>
<p>5、如果要修改成这样的样式&nbsp;&nbsp;&nbsp;<img style="max-width:100%!important;height:auto!important;"alt="12.jpg" src="https://zhuji.jb51.net/uploads/allimg/20250616/1-250616092422607.jpg" width="221" />&nbsp;<br />只需将上面frame代码的<br />&nbsp;</p>
<div class="msgheader">代码如下:</div>
<div class="msgborder" id="phpcode84"><br />style=3&amp;f=1</div>
<p><br />改为</p>
<p></p>
<p></p>
<div class="msgheader">代码如下:</div>
<p></p>
<p></p>
<div class="msgborder" id="phpcode85"><br />style=2&amp;f=1</div>
<p><br />6、&nbsp;&nbsp;如果要修改成这样的样式&nbsp;<img style="max-width:100%!important;height:auto!important;"alt="3.jpg" src="https://zhuji.jb51.net/uploads/allimg/20250616/1-2506160924232b.jpg" width="85" />&nbsp;<br />只需将上面frame代码的</p>
<p></p>
<p></p>
<div class="msgheader">代码如下:</div>
<p></p>
<p></p>
<div class="msgborder" id="phpcode86"><br />style=3&amp;f=1</div>
<p><br />改为</p>
<p></p>
<p></p>
<div class="msgheader">代码如下:</div>
<p></p>
<p></p>
<div class="msgborder" id="phpcode87"><br />style=3&amp;f=0</div>
<p><br />7、如果要修改成这样的样式&nbsp;&nbsp;&nbsp;<img style="max-width:100%!important;height:auto!important;"alt="13.jpg" src="https://zhuji.jb51.net/uploads/allimg/20250616/1-250616092423630.jpg" width="123" />&nbsp;<br />只需将上面frame代码的</p>
<p></p>
<p></p>
<div class="msgheader">代码如下:</div>
<p></p>
<p></p>
<div class="msgborder" id="phpcode88"><br />style=3&amp;f=1</div>
<p>改为<br />&nbsp;</p>
<div class="msgheader">代码如下:</div>
<div class="msgborder" id="phpcode89"><br />style=3&amp;f=1</div>
<p><br />8、如果要修改成这样的样式&nbsp;<img style="max-width:100%!important;height:auto!important;"alt="4.jpg" src="https://zhuji.jb51.net/uploads/allimg/20250616/1-250616092423315.jpg" width="109" />&nbsp;<br />只需将上面frame代码的</p>
<p></p>
<p></p>
<div class="msgheader">代码如下:</div>
<p></p>
<p></p>
<div class="msgborder" id="phpcode90"><br />style=3&amp;f=1</div>
<p>改为<br />&nbsp;</p>
<div class="msgheader">代码如下:</div>
<div class="msgborder" id="phpcode91"><br />style=4&amp;f=0</div>
<p>复制代码</p>
<p>9、如果要修改成这样的样式&nbsp;<img style="max-width:100%!important;height:auto!important;"alt="14.jpg" src="https://zhuji.jb51.net/uploads/allimg/20250616/1-250616092423564.jpg" width="161" />&nbsp;<br />只需将上面frame代码的<br />&nbsp;</p>
<div class="msgheader">代码如下:</div>
<div class="msgborder" id="phpcode92"><br />style=3&amp;f=1</div>
<p><br />改为</p>
<p></p>
<p></p>
<div class="msgheader">代码如下:<p></p>
<p></p>
<div class="msgborder" id="phpcode93"><br />style=4&amp;f=1</div>
<p><br />10、&nbsp;&nbsp;如果要修改成这样的样式&nbsp;&nbsp;&nbsp;<img style="max-width:100%!important;height:auto!important;"alt="5.jpg" src="https://zhuji.jb51.net/uploads/allimg/20250616/1-250616092424511.jpg" width="99" />&nbsp;<br />只需将上面frame代码的</p>
<p></p>
<p></p>
<div class="msgheader">代码如下:<p></p>
<p></p>
<div class="msgborder" id="phpcode94"><br />style=3&amp;f=1</div>
<p>改为<br />&nbsp;</p>
<div class="msgheader">代码如下:<div class="msgborder" id="phpcode95"><br />style=5&amp;f=0</div></div>
<p>11、如果要修改成这样的样式&nbsp;&nbsp;&nbsp;<img style="max-width:100%!important;height:auto!important;"alt="15.jpg" src="https://zhuji.jb51.net/uploads/allimg/20250616/1-250616092424929.jpg" width="145" />&nbsp;<br />只需将上面frame代码的<br />&nbsp;</p>
<div class="msgheader">代码如下:<div class="msgborder" id="phpcode96"><br />style=3&amp;f=1</div></div>
<p>改为<br />&nbsp;</p>
<div class="msgheader">代码如下:<div class="msgborder" id="phpcode97"><br />style=5&amp;f=1</div></div>
<p><br />修改完style和f的值只需在数据库中保存就可以了。<br /><br /><strong>注意</strong>:腾讯微博开放平台只提供了上面十种显示样式,无法再选择其他样式</p></div></div>
頁: [1]
查看完整版本: 修改Discuz“官方微博快速收听按钮”样式可选择10种样式