本帖最后由 31660954 于 2009-2-17 13:33 编辑
本插件自动安装会出现点问题所以本插件为手动安装
演示网站www.okmeet.cn/home/
安装说明:
1上传附件uch1.5图墙到uch根目录
然后运行qcomic_setup.php
选择安装数据库!到此就不要动其他的了
2图墙文件安装
qcomic_plugin/qcomic.php到根目录qcomic.php
qcomic_plugin/script_qcomic.js到source/script_qcomic.js
qcomic_plugin/space_qcomic.php到source/space_qcomic.php
qcomic_plugin/cp_qcomic.htm到template/default/cp_qcomic.htm
qcomic_plugin/space_qcomic_list.htm到template/default/space_qcomic_list.htm
qcomic_plugin/admincp_qcomic.php到admin/admincp_qcomic.php
qcomic_plugin/qcomic.htm到admin/tpl/qcomic.htm
3修改uch文件代码
template/default/header.htm
查space.php?do=album换qcomic.php?do=album
查cp.php?ac=upload换qcomic.php?do=mod
space.php
查include_once(S_ROOT."./source/space_{$do}.php");换
//--++ plugin_code qcomic begin
@include_once S_ROOT.'./data/data_qcomic.php';
if ($_SGLOBAL['qcomic']['senable']) {
/*if (($_GET['do'] == 'album') && $_GET['uid']) {
header('Location: '.getsiteurl().'qcomic.php?'.$_SERVER['QUERY_STRING']);
return;
}*/
$qcomic_sid = $_SGLOBAL['qcomic']['sid'];
if ($_GET['uid']) {
$qcomic_uid = $_GET['uid'];
} else {
$qcomic_uid = $space['uid'];
}
}
//--++ plugin_code qcomic end
include_once(S_ROOT."./source/space_{$do}.php");
admin/tpl/side.htm
查<!--{if $menus[0][config]}-->换
<!--++ plugin_code qcomic begin-->
<!--{if $ac=='qcomic'}--><li class="active"><!--{else}--><li><!--{/if}--><a href="admincp.php?ac=qcomic">组图设置</a></li>
<!--++ plugin_code qcomic end-->
<!--{if $menus[0][config]}-->
admincp.php查'block', 'cron'换'block', 'qcomic', 'cron'
network.php
查include_once template("network_$ac");换
//--++ plugin_code qcomic begin
@include_once S_ROOT.'./data/data_qcomic.php';
if ($_SGLOBAL['qcomic']['senable']) {
$qcomic_sid = $_SGLOBAL['qcomic']['sid'];
}
//--++ plugin_code qcomic end
include_once template("network_$ac");
]]>
template/default/space_index.htm
查<!--{if $albumlist}-->注意有两个一个是侧边的一个是主页中间事件处的
换第2个
<!--++ plugin_code qcomic begin-->
<!--{if $_SGLOBAL['qcomic']['senable']}-->
<div class="box">
<h3>图墙相册</h3>
<div class="post_list line_list l_text a_list">
<div id="div_imgwall" class="container"></div>
<script src="source/script_qcomic.js" type="text/javascript"></script>
<script type="text/javascript">
function QComicWallShow()
{
}
QComicWallShow.prototype.showWall = function(params)
{
flashTagIns.setNew("http://p.xkoo.com/flash/coop.swf",params['width'],params['height']);
flashTagIns.setId('qcomic_imgwall');
flashTagIns.setBgcolor("121212");
flashTagIns.setVersion("7,0,19,0");
flashTagIns.wmode = null;
flashTagIns.swLiveConnect = "true";
flashTagIns.allowFullScreen = "true";
flashTagIns.allowScriptAccess = "always";
flashTagIns.flashVars = "flashmode=widget&coop=uchomesite&coop_id=$qcomic_sid&eq=1&owner_id=$qcomic_uid";
var div_imgwall = document.getElementById(params['id']);
div_imgwall.innerHTML = flashTagIns.toString();
}
var qcomic_wall_show = new QComicWallShow();
qcomic_wall_show.showWall({'id':'div_imgwall','width':'100%','height':'400'});
</script>
</div>
</div>
<!--{/if}-->
<!--++ plugin_code qcomic end-->
<!--{if $albumlist}-->
template/default/space_index.htm
查space.php?uid=$space[uid]&do=album&view=me换qcomic.php?uid=$space[uid]&do=album&view=me
注意有好几个都换!
template/default/network_album.htm
把原来uch相册的代码删除换成
<!--++ plugin_code qcomic begin-->
<!--{if $_SGLOBAL['qcomic']['senable']}-->
<h3><a href="http://www.xkoo.com/tlook/{$qcomic_sid}.html">图墙相册</a></h3>
<div class="post_list line_list l_text a_list">
<div id="div_imgwall" class="container"></div>
<script src="source/script_qcomic.js" type="text/javascript"></script>
<script type="text/javascript">
function QComicWallShow()
{
}
QComicWallShow.prototype.showWall = function(params)
{
flashTagIns.setNew("http://p.xkoo.com/flash/coop.swf",params['width'],params['height']);
flashTagIns.setId('qcomic_imgwall');
flashTagIns.setBgcolor("121212");
flashTagIns.setVersion("7,0,19,0");
flashTagIns.wmode = null;
flashTagIns.swLiveConnect = "true";
flashTagIns.allowFullScreen = "true";
flashTagIns.allowScriptAccess = "always";
flashTagIns.flashVars = "flashmode=widget&look=1&coop=uchomesite&coop_id={$qcomic_sid}&owner_id=0&eq=1";
var div_imgwall = document.getElementById(params['id']);
div_imgwall.innerHTML = flashTagIns.toString();
}
var qcomic_wall_show = new QComicWallShow();
qcomic_wall_show.showWall({'id':'div_imgwall','width':'100%','height':'400'});
</script>
</div>
</div>
<div class="box">
<!--{/if}-->
<!--++ plugin_code qcomic end-->
最后说明在个人主页处有uch原来的相册事件还有上传提醒最好删除
还有如果不想会员用原来uch的相册设置好权限不让传图片和附件然后把space_qcomic_list.htm和cp_qcomic.htm里的老相册去掉
附件里的new文件是我改好的在安装完图墙文件后不想修改可以直接覆盖 |