Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已解决] 修改“官方微博快速收听按钮”样式的方法

[复制链接]
otherbank 发表于 2012-7-12 09:58:19 | 显示全部楼层 |阅读模式
本帖最后由 otherbank 于 2012-8-1 12:27 编辑

“本站官方微博快速收听按钮”默认样式是这样的:
腾讯开放平台提供了可以修改为以下10个样式:

有些用户想对样式做一下调整,却不知如何修改。下面简单讲一下修改的方法:

1、决定样式的代码是存在数据库pre_common_setting表中的,首先运行sql语句
  1. select `svalue` FROM `pre_common_setting` where `skey` = 'connect'
复制代码
取出sql的查询结果值来,
  1. 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:"";}
复制代码
大体如上面的代码,但每一个站点有差别,这段值中间有一段frame代码,
  1. <iframe src="http://follow.v.t.qq.com/index.php?c=follow&a=quick&name=lmmyyw&style=3&f=1"
复制代码
这段frame代码的后半部分的“style=3&f=1 ”就是控制样式的。

2、如果要修改成这样的样式
只需将上面frame代码的
  1. style=3&f=1
复制代码
改为
  1. style=1&f=0
复制代码
3、如果要修改成这样的样式
只需将上面frame代码的
  1. style=3&f=1
复制代码
改为
  1. style=1&f=1
复制代码
4、如果要修改成这样的样式  
只需将上面frame代码的
  1. style=3&f=1
复制代码
改为
  1. style=2&f=0
复制代码
5、如果要修改成这样的样式  
只需将上面frame代码的
  1. style=3&f=1
复制代码
改为
  1. style=2&f=1
复制代码
6、  如果要修改成这样的样式  
只需将上面frame代码的
  1. style=3&f=1
复制代码
改为
  1. style=3&f=0
复制代码
7、如果要修改成这样的样式  
只需将上面frame代码的
  1. style=3&f=1
复制代码
改为
  1. style=3&f=1
复制代码
8、如果要修改成这样的样式
只需将上面frame代码的
  1. style=3&f=1
复制代码
改为
  1. style=4&f=0
复制代码
9、如果要修改成这样的样式
只需将上面frame代码的
  1. style=3&f=1
复制代码
改为
  1. style=4&f=1
复制代码
10、  如果要修改成这样的样式  
只需将上面frame代码的
  1. style=3&f=1
复制代码
改为
  1. style=5&f=0
复制代码
11、如果要修改成这样的样式  
只需将上面frame代码的
  1. style=3&f=1
复制代码
改为
  1. style=5&f=1
复制代码
修改完style和f的值只需在数据库中保存就可以了。

注意:腾讯微博开放平台只提供了上面十种显示样式,无法再选择其他样式










本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
腐朽的木头 发表于 2012-7-12 10:54:57 | 显示全部楼层
不错   呵呵。。。
回复

使用道具 举报

wangkun300mm 发表于 2012-7-12 15:17:52 | 显示全部楼层
如果我需要增加一个 微博收听呢?
该怎么做啊?
回复

使用道具 举报

 楼主| otherbank 发表于 2012-7-12 15:47:45 | 显示全部楼层
wangkun300mm 发表于 2012-7-12 15:17
如果我需要增加一个 微博收听呢?
该怎么做啊?

可以去腾讯微博开放平台申请另一个QQ号的收听按钮,然后将代码copy过来,加到模板文件中就可以了,不需要通过上面的方式
腾讯微博开放平台地址 http://dev.open.t.qq.com/websites/followcomp?explain=1
回复

使用道具 举报

idong 发表于 2012-7-13 12:30:22 | 显示全部楼层
哈哈别的不说,先收藏了,留着备用
回复

使用道具 举报

aqq_cc 发表于 2012-7-13 20:29:08 | 显示全部楼层
不错 我收藏了
回复

使用道具 举报

movie007 发表于 2012-7-14 16:05:43 | 显示全部楼层
感谢楼主分享
回复

使用道具 举报

liangwe 发表于 2012-7-16 13:10:09 | 显示全部楼层
学习了
回复

使用道具 举报

liqu12511 发表于 2012-7-16 20:59:47 | 显示全部楼层
不错 必须支持
回复

使用道具 举报

我是沙发客 发表于 2012-7-21 17:39:49 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-28 11:21 , Processed in 0.120207 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表