修改Discuz“官方微博快速收听按钮”样式可选择10种样式
<p>“本站官方微博快速收听按钮”默认样式是这样的: <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" /> <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" /> <br />有些用户想对样式做一下调整,却不知如何修改。下面简单讲一下修改的方法:<br /><br />1、决定样式的代码是存在数据库pre_common_setting表中的,首先运行sql语句<br /> </p><div class="msgheader">代码如下:</div>
<div class="msgborder" id="phpcode75"><br />select `svalue` FROM `pre_common_setting` where `skey` = 'connect'</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:"allow";s:1:"1";s:4:"feed";a:2:{s:5:"allow";s:1:"0";s:5:"group";s:1:"0";}s:1:"t";a:2:{s:5:"allow";s:1:"0";s:5:"group";s:1:"0";}s:10:"like_allow";s:1:"0";s:7:"like_qq";s:0:"";s:10:"turl_allow";s:1:"1";s:7:"turl_qq";s:10:"2319297683";s:8:"like_url";s:0:"";s:17:"register_birthday";s:1:"0";s:15:"register_gender";s:1:"0";s:17:"register_uinlimit";s:1:"2";s:21:"register_rewardcredit";s:1:"1";s:18:"register_addcredit";s:1:"2";s:16:"register_groupid";s:1:"0";s:18:"register_regverify";s:1:"1";s:15:"register_invite";s:1:"1";s:10:"newbiespan";s:0:"";s:9:"turl_code";s:253:"<iframe src="http://follow.v.t.qq.com/index.php?c=follow&a=quick&name=lmmyyw&style=3&f=1" marginwidth="0" marginheight="0" allowtransparency="true" frameborder="0" height="20" scrolling="auto" width="168" style="margin:5px 0 0 0px;float:left;"></iframe>";s:13:"mblog_app_key";s:288:"b00fc655b3804133963cf0cbc346b8d7b00fc655b3804133963cf0cbc346b8d7b00fc655b3804133963cf0cbc346b8d7b00fc655b3804133963cf0cbc346b8d7b00fc655b3804133963cf0cbc346b8d7b00fc655b3804133963cf0cbc346b8d7b00fc655b3804133963cf0cbc346b8d7b00fc655b3804133963cf0cbc346b8d7b00fc655b3804133963cf0cbc346b8d7";s:12:"qshare_allow";s:1:"0";s:13:"qshare_appkey";s:0:"";}</div>
<p><br />大体如上面的代码,但每一个站点有差别,这段值中间有一段frame代码,</p>
<p></p>
<div class="msgheader">代码如下:</div>
<p></p>
<div class="msgborder" id="phpcode77"><br /><iframe src="http://follow.v.t.qq.com/index.php?c=follow&a=quick&name=lmmyyw&style=3&f=1"</div>
<p><br />这段frame代码的后半部分的“style=3&f=1 ”就是控制样式的。<br /><br />2、如果要修改成这样的样式 <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" /> <br />只需将上面frame代码的</p>
<p></p>
<div class="msgheader">代码如下:</div>
<p></p>
<p></p>
<div class="msgborder" id="phpcode78"><br />style=3&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&f=0</div>
<p><br />3、如果要修改成这样的样式 <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" /> <br />只需将上面frame代码的</p>
<p></p>
<p></p>
<div class="msgheader">代码如下:</div>
<p></p>
<p></p>
<div class="msgborder" id="phpcode80"><br />style=3&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&f=1</div>
<p><br />4、如果要修改成这样的样式 <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" /> <br />只需将上面frame代码的</p>
<p></p>
<p></p>
<div class="msgheader">代码如下:</div>
<p></p>
<p></p>
<div class="msgborder" id="phpcode82"><br />style=3&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&f=0</div>
<p>5、如果要修改成这样的样式 <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" /> <br />只需将上面frame代码的<br /> </p>
<div class="msgheader">代码如下:</div>
<div class="msgborder" id="phpcode84"><br />style=3&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&f=1</div>
<p><br />6、 如果要修改成这样的样式 <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" /> <br />只需将上面frame代码的</p>
<p></p>
<p></p>
<div class="msgheader">代码如下:</div>
<p></p>
<p></p>
<div class="msgborder" id="phpcode86"><br />style=3&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&f=0</div>
<p><br />7、如果要修改成这样的样式 <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" /> <br />只需将上面frame代码的</p>
<p></p>
<p></p>
<div class="msgheader">代码如下:</div>
<p></p>
<p></p>
<div class="msgborder" id="phpcode88"><br />style=3&f=1</div>
<p>改为<br /> </p>
<div class="msgheader">代码如下:</div>
<div class="msgborder" id="phpcode89"><br />style=3&f=1</div>
<p><br />8、如果要修改成这样的样式 <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" /> <br />只需将上面frame代码的</p>
<p></p>
<p></p>
<div class="msgheader">代码如下:</div>
<p></p>
<p></p>
<div class="msgborder" id="phpcode90"><br />style=3&f=1</div>
<p>改为<br /> </p>
<div class="msgheader">代码如下:</div>
<div class="msgborder" id="phpcode91"><br />style=4&f=0</div>
<p>复制代码</p>
<p>9、如果要修改成这样的样式 <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" /> <br />只需将上面frame代码的<br /> </p>
<div class="msgheader">代码如下:</div>
<div class="msgborder" id="phpcode92"><br />style=3&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&f=1</div>
<p><br />10、 如果要修改成这样的样式 <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" /> <br />只需将上面frame代码的</p>
<p></p>
<p></p>
<div class="msgheader">代码如下:<p></p>
<p></p>
<div class="msgborder" id="phpcode94"><br />style=3&f=1</div>
<p>改为<br /> </p>
<div class="msgheader">代码如下:<div class="msgborder" id="phpcode95"><br />style=5&f=0</div></div>
<p>11、如果要修改成这样的样式 <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" /> <br />只需将上面frame代码的<br /> </p>
<div class="msgheader">代码如下:<div class="msgborder" id="phpcode96"><br />style=3&f=1</div></div>
<p>改为<br /> </p>
<div class="msgheader">代码如下:<div class="msgborder" id="phpcode97"><br />style=5&f=1</div></div>
<p><br />修改完style和f的值只需在数据库中保存就可以了。<br /><br /><strong>注意</strong>:腾讯微博开放平台只提供了上面十种显示样式,无法再选择其他样式</p></div></div>
頁:
[1]