前几天看到Discuz 更新了 6.0 然后去随便看看,发现不错的东西,就是 图片的效果了!
真的蛮不错的,然后取之文件,整合到SaBlog里,
此修改只针对上传图片才有效果!
我站的修改步骤 (和这里一样的
http://www.mytension.cn/show-562-1.net
演示
http://www.mytension.cn/show-565-1.net
下面给大家操作步骤!
首先在模板页index.php
查找
复制内容到剪贴板
代码:
<script type="text/javascript" src="include/common.js"></script>在下面加入
复制内容到剪贴板
代码:
<script type="text/javascript" src="include/saxbox.js"></script>然后在
复制内容到剪贴板
代码:
<body>下加
复制内容到剪贴板
代码:
<div id="append_parent"></div>模板页 normal.php , show.php
查找 (共2处)
复制内容到剪贴板
代码:
<a href="attachment.php?id=$image[0]" target="_blank"><img src="$image[1]" border="0" alt="大小: $image[2] 尺寸: $image[3] x $image[4] 浏览: $image[5] 次点击打开新窗口浏览全图" width="$image[3]" height="$image[4]" /></a>改为
复制内容到剪贴板
代码:
<a href="#zoom"><img onclick="zoom(this,'./attachment.php?id=$image[0]')" src="$image[1]" width="$image[3]" height="$image[4]" border="0" alt="大小: $image[2] 尺寸: $image[3] x $image[4] 浏览: $image[5] 次点击打开新窗口浏览全图" /></a>系统文件 global.php
查找
复制内容到剪贴板
代码:
<a href=\"".$options['url']."attachment.php?id={$article[image][$aid][0]}\" target=\"_blank\"><img src=\"".$options['url']."{$article[image][$aid][1]}\" border=\"0\" alt=\"大小: {$article[image][$aid][2]} 尺寸: {$article[image][$aid][3]} x {$article[image][$aid][4]} 浏览: {$article[image][$aid][5]} 次点击打开新窗口浏览全图\" width=\"{$article[image][$aid][3]}\" height=\"{$article[image][$aid][4]}\" /></a>改为
复制内容到剪贴板
代码:
<a href=\"#zoom\"><img onclick=\"zoom(this,'".$options['url']."attachment.php?id={$article[image][$aid][0]}')\" src=\"".$options['url']."{$article[image][$aid][1]}\" width=\"{$article[image][$aid][3]}\" height=\"{$article[image][$aid][4]}\" border=\"0\" alt=\"大小: {$article[image][$aid][2]} 尺寸: {$article[image][$aid][3]} x {$article[image][$aid][4]} 浏览: {$article[image][$aid][5]} 次点击打开新窗口浏览全图\" /></a>然后把压缩包内的文件上传即可!
[
本帖最后由 tension 于 2007-8-14 00:34 编辑 ]