══════════════════════════════════════
# 原创 oytktk(靖飒)
#
# 版权 归 oytktk(靖飒) 所有
#
# 技术支持 http://www.huasa.net
#
#
══════════════════════════════════════
■ 演示站点: http://www.huasa.net/bbs/plugin. ... &module=mymusic
══════════════════════════════════════
══════════════════════════════════════
■ 以下是我的小站的友情连接信息
══════════════════════════════════════
1). 论坛名称: 华飒科技
2). 论坛 URL: http://www.huasa.net
3). 文字说明[可选]: BT发布 视频 短片 图片 尤物 搞笑 电脑 技术 网络 下载 电影 插件
4). logo 地址: http://www.huasa.net/bbs/logo.php
══════════════════════════════════════
■ 已经做好连接的朋友PM我个,我立即交换连接
══════════════════════════════════════
══════════════════════════════════════
■ 安装方法:
══════════════════════════════════════
SQL:
- ALTER TABLE `cdb_plugins` ADD `pcolor` varchar(12) DEFAULT '';
- ALTER TABLE `cdb_plugins` ADD `porder` varchar(12) DEFAULT '';
复制代码
1. admin/plugins.func.php
查找:
- "<td bgcolor="".ALTBG1."">$plugin[directory]</td>\n".
复制代码
后面找:
- "<td bgcolor="".ALTBG2.""><input size=8 type="text" value="$plugin[pcolor]" name="pcolornew[$plugin[pluginid]]" onchange="this.style.color=this.value" style='color: $plugin[pcolor]'></td>\n".
- "<td bgcolor="".ALTBG1.""><input size=1 type="text" value="$plugin[porder]" name="pordernew[$plugin[pluginid]]"></td>\n".
复制代码
再找:
- <td width="31%"><?=$lang['description']?></td>
- <td width="15%"><?=$lang['plugins_directory']?></td>
复制代码
改为:
- <td width="21%"><?=$lang['description']?></td>
- <td width="10%"><?=$lang['plugins_directory']?></td>
- <td width="10%">颜色</td>
- <td width="5%">次序</td>
复制代码
再找:
- <tr><td colspan="7" class="singleborder"> </td></tr>
复制代码
改为:
- <tr><td colspan="10" class="singleborder"> </td></tr>
复制代码
再找:
改为:
查找:
- "UPDATE {$tablepre}plugins SET available='$available'
复制代码
后面加:
- , pcolor='$pcolornew[$id]', porder='$pordernew[$id]'
复制代码
2. include/cache.func.php
查找:
- $query = $db->query("SELECT available, name, identifier, directory, datatables, modules FROM {$tablepre}plugins");
复制代码
改为:
- $query = $db->query("SELECT available, name, identifier, directory, datatables, modules, pcolor FROM {$tablepre}plugins ORDER BY porder");
复制代码
查找:
- case 1:
- $data['plugins']['links'][$plugin['identifier']][$module['name']] = array('adminid' => $module['adminid'], 'url' => "<a href="$module[url]">$module[menu]</a>");
- break;
- case 2:
- $data['plugins']['links'][$plugin['identifier']][$module['name']] = array('adminid' => $module['adminid'], 'url' => "<a href="plugin.php?identifier=$plugin[identifier]&module=$module[name]">$module[menu]</a>", 'directory' => $plugin['directory']);
- break;
复制代码
改为:
- case 1:
- $plugin['url'] = $plugin['pcolor'] ? "<a href="$module[url]"><font color=".$plugin['pcolor'].">$module[menu]</font></a>" : "<a href="$module[url]">$module[menu]</a>";
- $data['plugins']['links'][$plugin['identifier']][$module['name']] = array('adminid' => $module['adminid'], 'url' => $plugin['url']);
- break;
- case 2:
- $plugin['url'] = $plugin['pcolor'] ? "<a href="plugin.php?identifier=$plugin[identifier]&module=$module[name]"><font color=".$plugin['pcolor'].">$module[menu]</font></a>" : "<a href="plugin.php?identifier=$plugin[identifier]&module=$module[name]">$module[menu]</a>";
- $data['plugins']['links'][$plugin['identifier']][$module['name']] = array('adminid' => $module['adminid'], 'url' => $plugin['url'], 'directory' => $plugin['directory']);
- break;
复制代码
完工..
[ 本帖最后由 oytktk 于 2007-8-24 13:56 编辑 ] |