Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

实现附带版权的【站内日志转载】功能【增加了图片转载】-完善版

[复制链接]
 楼主| wxiong1984 发表于 2009-10-20 22:53:00 | 显示全部楼层
呵呵,我临时做的,马上就放了,等再改进了就把SQL语言也一并放上去
回复

使用道具 举报

kevke 发表于 2009-10-20 22:57:15 | 显示全部楼层
态度认真,嘿嘿
回复

使用道具 举报

 楼主| wxiong1984 发表于 2009-10-23 13:40:38 | 显示全部楼层
自己顶一下
回复

使用道具 举报

buno 发表于 2009-10-25 19:58:53 | 显示全部楼层
0_0楼主呀,有bug,点了转载然后按“确定”,那个窗口没关闭呢,但是已经成功转好了,原文日志没有显示“转载了此文章的朋友: ”:(
回复

使用道具 举报

苦战 发表于 2009-10-29 22:50:37 | 显示全部楼层
很不错啊
回复

使用道具 举报

Imabird 发表于 2009-11-1 08:34:30 | 显示全部楼层
.
回复

使用道具 举报

y280555810 发表于 2009-11-1 12:07:34 | 显示全部楼层
谢谢楼主提供这么好的东西,我买了。但是

你的流程都没改到日志模板,又怎么会出现“转载此文章的朋友"呢?

我安装完毕,其他功能完美,就是没有出现“转载此文章的朋友"。希望楼主赐教
回复

使用道具 举报

jaysoh 发表于 2009-11-9 01:59:01 | 显示全部楼层
怎么安装啊!
1,在UChome的表   _pic里增加字段:
   zhuanzai   int(11)                  
  zhuanzaiinf mediumtext
  zhuanzaiuser mediumtext

2,在UChome的表   _blog里增加字段:
   zhuanzai   int(11)                  
  zhuanzaiinf mediumtext


3,在UChome的表 _blogfield 里增加字段:
zhuanzaiuser mediumtext


4,找到根目录cp.php里的


//允许的方法
$acs = array('space', 'doing', 'upload', 'comment', 'blog', 'album', 'relatekw', 'common', 'class',
        'swfupload', 'thread', 'mtag', 'poke', 'friend',
        'avatar', 'profile', 'theme', 'import', 'feed', 'privacy', 'pm', 'share', 'advance', 'invite','sendmail',
        'userapp', 'task', 'credit', 'password', 'domain', 'event', 'poll', 'topic',
        'click','magic', 'top', 'videophoto', 'fetion_setting', 'fetion_send');

在后面添加 , 'zhuanzai',添加后如下:

$acs = array('space', 'doing', 'upload', 'comment', 'blog', 'album', 'relatekw', 'common', 'class',
        'swfupload', 'thread', 'mtag', 'poke', 'friend',
        'avatar', 'profile', 'theme', 'import', 'feed', 'privacy', 'pm', 'share', 'advance', 'invite','sendmail',
        'userapp', 'task', 'credit', 'password', 'domain', 'event', 'poll', 'topic',
        'click','magic', 'top', 'videophoto', 'fetion_setting', 'fetion_send', 'zhuanzai');


5,在source\function_common.php里增加一个获取用户名的函数:

function GetUserName($uid){
  global $_SGLOBAL;
  $query=$_SGLOBAL['db']->query('select username from '.tname('member').' where uid='.$uid);
  $rst=$_SGLOBAL['db']->fetch_array($query);
  return $rst['username'];

有完整的SQL导入吗?
回复

使用道具 举报

Imabird 发表于 2009-11-9 20:21:38 | 显示全部楼层
.
回复

使用道具 举报

ssxlzx18 发表于 2009-11-12 19:31:28 | 显示全部楼层
0_0楼主呀,有bug,点了转载然后按“确定”,那个窗口没关闭呢,但是已经成功转好了,原文日志没有显示“转 ...
buno 发表于 2009-10-25 19:58



    恩,楼主看看吧,希望能完善
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-6-2 08:09 , Processed in 0.120455 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表