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

 找回密码
 立即注册
搜索

[发布] 小说v1.2 For Discuz X2 (2011-12-16更新)

  [复制链接]
aigansu.com 发表于 2011-11-16 10:10:36 | 显示全部楼层
强烈建议加采集
回复

使用道具 举报

 楼主| jnthts 发表于 2011-11-17 20:53:22 | 显示全部楼层
v1.1 2011-11-17更新
1.增加内容显示图片、FLASH等媒体功能。
2.增加远程封面图片功能。
回复

使用道具 举报

housan 发表于 2011-11-17 21:17:15 | 显示全部楼层
楼主更新一次比一次给力,做得真是太好了,要是能有采集功能就完美了
回复

使用道具 举报

馬高MARC.O 发表于 2011-11-17 21:22:43 | 显示全部楼层
為何沒有BIG5版?
回复

使用道具 举报

祸害小嫩芽 发表于 2011-11-18 09:56:53 | 显示全部楼层
啊 又更新了 , 谢谢LZ
回复

使用道具 举报

家俊 发表于 2011-11-19 15:18:05 | 显示全部楼层
本帖最后由 家俊 于 2011-11-19 15:18 编辑
jnthts 发表于 2011-11-17 20:53
v1.1 2011-11-17更新
1.增加内容显示图片、FLASH等媒体功能。
2.增加远程封面图片功能。

作者, 可否加"堆送到記錄"功能?

例如:

jnthts 發表了了一個小說

[主題名稱(連接形式)]
[小說簡介(頭255字)]


提供一下相關信息 source\function\function_feed.php文件的
  1.     function feed_add($icon, $title_template='', $title_data=array(), $body_template='', $body_data=array(), $body_general='', $images=array(), $image_links=array(), $target_ids='', $friend='', $appid='', $returnid=0, $id=0, $idtype='', $uid=0, $username='') {
  2.             global $_G;

  3.             //語言包
  4.             $title_template = $title_template?lang('feed', $title_template):'';
  5.             $body_template = $body_template?lang('feed', $body_template):'';
  6.             $body_general = $body_general?lang('feed', $body_general):'';
  7.             if(empty($uid) || empty($username)) {
  8.                     $uid = $username = '';
  9.             }
  10.             
  11.             $feedarr = array(
  12.                     'appid' => $appid,
  13.                     'icon' => $icon,
  14.                     'uid' => $uid ? intval($uid) : $_G['uid'],
  15.                     'username' => $username ? $username : $_G['username'],
  16.                     'dateline' => $_G['timestamp'],
  17.                     'title_template' => $title_template,
  18.                     'body_template' => $body_template,
  19.                     'body_general' => $body_general,
  20.                     'image_1' => empty($images[0])?'':$images[0],
  21.                     'image_1_link' => empty($image_links[0])?'':$image_links[0],
  22.                     'image_2' => empty($images[1])?'':$images[1],
  23.                     'image_2_link' => empty($image_links[1])?'':$image_links[1],
  24.                     'image_3' => empty($images[2])?'':$images[2],
  25.                     'image_3_link' => empty($image_links[2])?'':$image_links[2],
  26.                     'image_4' => empty($images[3])?'':$images[3],
  27.                     'image_4_link' => empty($image_links[3])?'':$image_links[3],
  28.                     'target_ids' => $target_ids,
  29.                     'friend' => $friend,
  30.                     'id' => $id,
  31.                     'idtype' => $idtype
  32.             );

  33.             $feedarr = dstripslashes($feedarr);//去掉轉義
  34.             $feedarr['title_data'] = serialize(dstripslashes($title_data));//數組轉化
  35.             $feedarr['body_data'] = serialize(dstripslashes($body_data));//數組轉化
  36.             //$feedarr['hash_template'] = md5($feedarr['title_template']."\t".$feedarr['body_template']);//喜好hash
  37.             //$feedarr['hash_data'] = md5($feedarr['title_template']."\t".$feedarr['title_data']."\t".$feedarr['body_template']."\t".$feedarr['body_data']);//合并hash
  38.             $feedarr['hash_data'] = empty($title_data['hash_data'])?'':$title_data['hash_data'];
  39.             $feedarr = daddslashes($feedarr);//增加轉義

  40.             //去重
  41.             if(is_numeric($icon)) {
  42.                     //應用動態
  43.                     $feed_table = 'home_feed_app';
  44.                     unset($feedarr['id'], $feedarr['idtype']);
  45.             } else {
  46.                     if($feedarr['hash_data']) {
  47.                             $query = DB::query("SELECT feedid FROM ".DB::table('home_feed')." WHERE uid='$feedarr[uid]' AND hash_data='$feedarr[hash_data]' LIMIT 0,1");
  48.                             if($oldfeed = DB::fetch($query)) {
  49.                                     return 0;
  50.                             }
  51.                     }
  52.                     $feed_table = 'home_feed';
  53.             }

  54.             //插入
  55.             if($returnid) {
  56.                     return DB::insert($feed_table, $feedarr, $returnid);
  57.             } else {
  58.                     DB::insert($feed_table, $feedarr);
  59.                     return 1;
  60.             }
  61.     }

  62.     //整理feed
复制代码
回复

使用道具 举报

家俊 发表于 2011-11-19 15:32:54 | 显示全部楼层
午夜鬼故事 发表于 2011-11-13 17:02
这人有bug问题啊

暫時沒發現, 請提出
回复

使用道具 举报

家俊 发表于 2011-11-19 15:34:10 | 显示全部楼层
yanyan171 发表于 2011-11-12 21:29
没有字体颜色选择!

有的, 在章節中

例如:
/bbs/plugin.php?id=twow_novel:novel&do=view&tid=1&page=1

*&tid=[自先修改查看]&page=1
回复

使用道具 举报

家俊 发表于 2011-11-19 15:34:29 | 显示全部楼层
祸害小嫩芽 发表于 2011-11-11 08:29
新增加的    文字颜色、文字大小   我点了没有反应 ,背景颜色可以
    ...

有的, 而且能用
回复

使用道具 举报

南昌理工 发表于 2011-11-19 18:33:10 | 显示全部楼层
感谢了支持辛苦了
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-8-28 01:33 , Processed in 0.165482 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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