UCHOME2.0网盘资源网盘插件
UCHOME2.0网盘资源网盘插件安装很简单~
上传所有文件到相应目录(覆盖部分请做好备份)
手动执行090901_jqjUUJ7u-1.sql
09/10/14/修复无法浏览文件问题
手工安装方法:
打开\admin\tpl\header.html
查找'userapp' => 'MYOP应用',下面增加 'ND_config' => '网盘配置',
'type' => '网盘分类',
'list' => '文件管理',
'ND_comment' => '评论管理',
'ND_report' => '举报管理',
'log' => '系统log记录',查找<!--{template header}-->替换成<!--{if empty($_SGLOBAL['inajax'])}-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=$_SC" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title><!--{if $_TPL['titles']}--><!--{loop $_TPL['titles'] $value}--><!--{if $value}-->$value - <!--{/if}--><!--{/loop}--><!--{/if}--><!--{if $_SN[$space]}-->{$_SN[$space]} - <!--{/if}-->$_SCONFIG - Powered by UCenter Home</title>
<script language="javascript" type="text/javascript" src="source/script_cookie.js"></script>
<script language="javascript" type="text/javascript" src="source/script_common.js"></script>
<script language="javascript" type="text/javascript" src="source/script_menu.js"></script>
<script language="javascript" type="text/javascript" src="source/script_ajax.js"></script>
<script language="javascript" type="text/javascript" src="source/script_face.js"></script>
<script language="javascript" type="text/javascript" src="source/script_manage.js"></script>
<!--{if $ND_add_module }-->
<!--{template ND_upload/template/add_module}-->
<!--{/if}-->
<style type="text/css">
@import url(template/default/style.css);
<!--{if $_TPL['css']}-->
@import url(template/default/{$_TPL}.css);
<!--{/if}-->
<!--{if !empty($_SGLOBAL['space_theme'])}-->
@import url(theme/$_SGLOBAL/style.css);
<!--{elseif $_SCONFIG != 'default'}-->
@import url(template/$_SCONFIG/style.css);
<!--{/if}-->
<!--{if !empty($_SGLOBAL['space_css'])}-->
$_SGLOBAL
<!--{/if}-->
</style>
<link rel="shortcut icon" href="image/favicon.ico" />
<link rel="edituri" type="application/rsd+xml" title="rsd" href="xmlrpc.php?rsd=$space" />
</head>
<body>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div id="header">
<!--{if $_SGLOBAL['ad']['header']}--><div id="ad_header"><!--{ad/header}--></div><!--{/if}-->
<div class="headerwarp">
<h1 class="logo"><a href="index.php"><img src="template/$_SCONFIG/image/logo.gif" alt="$_SCONFIG" /></a></h1>
<ul class="menu">
<!--{if $_SGLOBAL}-->
<li><a href="space.php?do=home">首页</a></li>
<li><a href="space.php">个人主页</a></li>
<li><a href="space.php?do=friend">好友</a></li>
<li><a href="network.php">随便看看</a></li>
<!--{else}-->
<li><a href="index.php">首页</a></li>
<!--{/if}-->
<!--{if $_SGLOBAL['appmenu']}-->
<!--{if $_SGLOBAL['appmenus']}-->
<li class="dropmenu" id="ucappmenu" onclick="showMenu(this.id)">
<a href="javascript:;">站内导航</a>
</li>
<!--{else}-->
<li><a target="_blank" href="{$_SGLOBAL}" title="{$_SGLOBAL}">{$_SGLOBAL}</a></li>
<!--{/if}-->
<!--{/if}-->
<!--{if $_SGLOBAL}-->
<li><a href="space.php?do=pm<!--{if !empty($_SGLOBAL['member']['newpm'])}-->&filter=newpm<!--{/if}-->">消息<!--{if !empty($_SGLOBAL['member']['newpm'])}-->(新)<!--{/if}--></a></li>
<!--{if $_SGLOBAL['member']['allnotenum']}--><li class="notify" id="membernotemenu" onmouseover="showMenu(this.id)"><a href="space.php?do=notice">{$_SGLOBAL}个提醒</a></li><!--{/if}-->
<!--{else}-->
<li><a href="help.php">帮助</a></li>
<!--{/if}-->
</ul>
<div class="nav_account">
<!--{if $_SGLOBAL}-->
<a href="space.php?uid=$_SGLOBAL" class="login_thumb"><!--{avatar($_SGLOBAL)}--></a>
<a href="space.php?uid=$_SGLOBAL" class="loginName">{$_SN[$_SGLOBAL]}</a>
<!--{if $_SGLOBAL}-->
<a href="cp.php?ac=credit" style="font-size:11px;padding:0 0 0 5px;"><img src="image/credit.gif">{$_SGLOBAL}</a>
<!--{/if}-->
<br />
<!--{if empty($_SCONFIG['closeinvite'])}-->
<a href="cp.php?ac=invite">邀请</a>
<!--{/if}-->
<a href="cp.php?ac=task">任务</a>
<a href="cp.php?ac=magic">道具</a>
<a href="cp.php">设置</a>
<a href="cp.php?ac=common&op=logout&uhash=$_SGLOBAL">退出</a>
<!--{else}-->
<a href="do.php?ac=$_SCONFIG" class="login_thumb"><!--{avatar($_SGLOBAL)}--></a>
欢迎您<br>
<a href="do.php?ac=$_SCONFIG">登录</a> |
<a href="do.php?ac=$_SCONFIG">注册</a>
<!--{/if}-->
</div>
</div>
</div>
<div id="wrap">
<!--{if empty($_TPL['nosidebar'])}-->
<div id="main">
<div id="app_sidebar">
<!--{if $_SGLOBAL}-->
<ul class="app_list" id="default_userapp">
<li><img src="image/app/doing.gif"><a href="space.php?do=doing">记录</a></li>
<li><img src="image/app/album.gif"><a href="space.php?do=album">相册</a><em><a href="cp.php?ac=upload" class="gray">上传</a></em></li>
<li><img src="image/app/blog.gif"><a href="space.php?do=blog">日志</a><em><a href="cp.php?ac=blog" class="gray">发表</a></em></li>
<li><img src="image/app/poll.gif"/><a href="space.php?do=poll">投票</a><em><a href="cp.php?ac=poll" class="gray">发起</a></em></li>
<li><img src="image/app/mtag.gif"><a href="space.php?do=mtag">群组</a><em><a href="cp.php?ac=thread" class="gray">话题</a></em></li>
<li><img src="image/app/event.gif"/><a href="space.php?do=event">活动</a><em><a href="cp.php?ac=event" class="gray">发起</a></em></li>
<li><img src="image/app/share.gif"><a href="space.php?do=share">分享</a></li>
<li><img src="image/app/topic.gif"><a href="space.php?do=topic">热闹</a></li>
<li><img src="image/app/share.gif"><a href="ND_upload.php">网盘</a><em><a href="ND_upload.php?do=add">添加</a></em></li>
</ul>
<ul class="app_list topline" id="my_defaultapp">
<!--{if $_SCONFIG['my_status']}-->
<!--{loop $_SGLOBAL['userapp'] $value}-->
<li><img src="http://appicon.manyou.com/icons/$value"><a href="userapp.php?id=$value">$value</a></li>
<!--{/loop}-->
<!--{/if}-->
</ul>
<!--{if $_SCONFIG['my_status']}-->
<ul class="app_list topline" id="my_userapp">
<!--{loop $_SGLOBAL['my_menu'] $value}-->
<li id="userapp_li_$value"><img src="http://appicon.manyou.com/icons/$value"><a href="userapp.php?id=$value" title="$value">$value</a></li>
<!--{/loop}-->
</ul>
<!--{/if}-->
<!--{if $_SGLOBAL['my_menu_more']}-->
<p class="app_more"><a href="javascript:;" id="a_app_more" onclick="userapp_open();" class="off">展开</a></p>
<!--{/if}-->
<!--{if $_SCONFIG['my_status']}-->
<div class="app_m">
<ul>
<li><img src="image/app_add.gif"><a href="cp.php?ac=userapp&my_suffix=%2Fapp%2Flist" class="addApp">添加应用</a></li>
<li><img src="image/app_set.gif"><a href="cp.php?ac=userapp&op=menu" class="myApp">管理应用</a></li>
</ul>
</div>
<!--{/if}-->
<!--{else}-->
<div class="bar_text">
<form id="loginform" name="loginform" action="do.php?ac=$_SCONFIG&ref" method="post">
<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
<p class="title">登录站点</p>
<p>用户名</p>
<p><input type="text" name="username" id="username" class="t_input" size="15" value="" /></p>
<p>密码</p>
<p><input type="password" name="password" id="password" class="t_input" size="15" value="" /></p>
<p><input type="checkbox" id="cookietime" name="cookietime" value="315360000" checked /><label for="cookietime">记住我</label></p>
<p>
<input type="submit" id="loginsubmit" name="loginsubmit" value="登录" class="submit" />
<input type="button" name="regbutton" value="注册" class="button" onclick="urlto('do.php?ac=$_SCONFIG');">
</p>
</form>
</div>
<!--{/if}-->
</div>
<div id="mainarea">
<!--{if $_SGLOBAL['ad']['contenttop']}--><div id="ad_contenttop"><!--{ad/contenttop}--></div><!--{/if}-->
<!--{/if}-->
<!--{/if}-->打开\admin\tpl\side.htm
查找<!--{if $menus}-->
<div class="block style1">
<h2>基本设置</h2>
<ul class="folder">
<!--{loop $acs $value}-->
<!--{if $menus[$value]}-->
<!--{if $ac==$value}--><li class="active"><!--{else}--><li><!--{/if}--><a href="admincp.php?ac=$value">{$_TPL[$value]}</a></li>
<!--{/if}-->
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->上面添加<!--{if $menus}-->
<div class="block style1">
<h2>网盘管理</h2>
<ul class="folder">
<!--{loop $acs $value}-->
<!--{if $menus[$value]}-->
<!--{if $ac==$value}--><li class="active"><!--{else}--><li><!--{/if}--><a href="admincp.php?ac=$value">{$_TPL[$value]}</a></li>
<!--{/if}-->
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->打开source/cp_comment.php文件
查找 case 'sid':
//事件上面添加case 'ND_coment_id':
//更新评论统计
$_SGLOBAL['db']->query("UPDATE ".tname('nd_data')." SET comment=comment+1 WHERE id='$id'");
//事件
$fs['title_template'] = cplang('发表了一篇资源评论');
$fs['title_data'] = array('touser'=>"<a href=\"space.php?uid=$tospace\">".$_SN[$tospace['uid']]."</a>", 'blog'=>"<a href=\"ND_upload.php?do=info&id=$id\">$blog</a>");
$fs['body_template'] = '';
$fs['body_data'] = array();
$fs['body_general'] = '';
$fs['target_ids'] = '';
$fs['friend'] = '';
break;打开根目录下的admincp.php
查找array('cache', 'network', 'profilefield', 'eventclass', 'click', 'task', 'censor', 'stat', 'block', 'cron', 'app'),在'app'后面增加, 'log'(记的有逗号的)
查找array('feed', 'blog', 'album', 'pic', 'comment', 'thread', 'post', 'doing', 'share', 'poll'),下一行添加,
array('ND_config','type','list','ND_comment','ND_report')//(上行的后面有个逗号)
查找admincp_log();修改为if($needlogin) {
admincp_log();
}打开/你home风格/header.htm头部文件
查找<li><img src="image/app/topic.gif"><a href="space.php?do=topic">热闹</a></li>后面添加<li><img src="image/app/download.gif"><a href="ND_upload.php">网盘</a><em><a href="ND_upload.php?do=add">添加</a></em></li>然后在文件最后面添加<!--{if $ND_add_module }-->
<!--{template ND_upload/template/add_module}-->
<!--{/if}--> 支持!怎么没有人顶啊! 但我試一下上伝...顯示了..
MySQL Error
Message: MySQL Query Error
SQL: INSERT INTO uchome_nd_data (`uid`, `nouser`, `title`, `type`, `stwo`, `jifen`, `publicall`, `datetime`, `jieshao`, `datasrc`, `geshi`, `namesrc`, `size`, `state`) VALUES ('20', '0', 'test', '1', '2', '10', '1', '1257897600', 'testtesttest', ' ,', 'php?ac=42d9c6af7983479114e941713c1cc895';"', '1242992372.jpghtk200908251449', '38371', '1')
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'http://localhost:8080/uc/images/noavatar_small.gif'"> 歡迎您
Errno.: 1064
Click here to seek help.
甚至還說我沒有登錄...(我是登入狀態的)
請問大大~這是sql語法有錯誤嗎?還是什麼問題呢?
页:
[1]