thinksns3.0发布微博多张图片上传

1.下载压缩问包
地址: http://www.rayfile.com/files/907ac963-25b2-11e3-87d2-0015c55db73d/
2.解压文件复制 addons\theme\stv1\_static\下的images复制到自己项目的 addons\theme\stv1\_static\目录下
3.复制 addons\theme\stv1\_static\js下的 plugins和uploadify复制到 自己项目的 addons\theme\stv1\_static\目录下
4.修改 addons\theme\stv1\_static\js下的 module.weibo.js文件中insert_image更改为
insert_image: { // 弹出插入图片框
click: function () {
var target = this.parentModel.parentModel.childModels['mini_editor'][0];
var postfeed = this.parentModel.childEvents[$(this).attr('rel')][0];
core.plugInit('multimage', this, $(target).find('textarea'), postfeed);
}
}
5.修改apps\public\Lib\Action下的FeedAction.class.php文件下添加
function multimageBox()
{
$var = "";
$html = $this->fetch('multimageBox');
        //unset($var,$data);
$arr =array(
"unid"=>"A25627E9",
"status"=>1,
"total"=>9,
"html"=>$html
);
exit(json_encode($arr));
}
6.apps\public\Tpl\default\Feed这个目录下复制multimageBox.html到自己对应的目录
7.addons\theme\stv1\_static\css下的global.css最后样式复制到自己对应的样式文件中.
测试图片上传
也可直接解压后覆盖到自己的项目中.注意保存自己的文件.
如果出现问题不能上传
修改core\OpenSociax\App.class.php中这个execWidget属性
if(strtoupper($_SERVER['REQUEST_METHOD'])=='POST' && stripos($_SERVER['HTTP_REFERER'], SITE_URL)!==0) {
            die('illegal request.'.$_SERVER['HTTP_REFERER']);
        }注释掉

转载于:https://my.oschina.net/u/1415028/blog/180952

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值