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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[修改] 显示全部Smilies表情下拉 for D5

[复制链接]
 楼主| sdywd 发表于 2006-10-12 02:30:17 | 显示全部楼层
  对D
回复

使用道具 举报

小蓝猫 发表于 2006-10-12 02:53:00 | 显示全部楼层
原帖由 西来 于 2006-9-23 01:28 发表
要改的实在太多

:L :L :L :L :L :L :L
回复

使用道具 举报

lhqylyh 发表于 2006-10-12 11:33:43 | 显示全部楼层
显示的行怎么改???
回复

使用道具 举报

jesan888 发表于 2006-10-13 15:46:47 | 显示全部楼层
我装了以后,快速回贴显示不正常!请问要怎么修改!

谢谢!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

 楼主| sdywd 发表于 2006-10-14 14:35:59 | 显示全部楼层
不会吧,你再仔细看看你改对了吗
回复

使用道具 举报

jesan888 发表于 2006-10-16 11:08:23 | 显示全部楼层
我是按照你说的方法改过的。下面是我改的viewthread.php,你看看有什么不对的吗?
  1. <?php

  2. /*
  3.         [Discuz!] (C)2001-2006 Comsenz Inc.
  4.         This is NOT a freeware, use is subject to license terms

  5.         $RCSfile: viewpro.php,v $
  6.         $Revision: 1.17.2.2 $
  7.         $Date: 2006/07/17 07:50:17 $
  8. */

  9. require_once './include/common.inc.php';

  10. $uid = empty($uid) ? 0 : intval($uid);
  11. $username = !isset($username) || $uid ? '' : $username;
  12. $allowviewpro = $discuz_uid && ($uid == $discuz_uid || $username == $discuz_user) ? 1 : $allowviewpro;

  13. if(!$allowviewpro) {
  14.         showmessage('group_nopermission', NULL, 'NOPERM');
  15. }

  16. require_once DISCUZ_ROOT.'./include/discuzcode.func.php';
  17. @include_once DISCUZ_ROOT.'./forumdata/cache/cache_profilefields.php';

  18. $discuz_action = 61;

  19. if($oltimespan) {
  20.         $oltimeadd1 = ', o.thismonth AS thismonthol, o.total AS totalol';
  21.         $oltimeadd2 = "LEFT JOIN {$tablepre}onlinetime o ON o.uid=m.uid";
  22. } else {
  23.         $oltimeadd1 = $oltimeadd2 = '';
  24. }

  25. $query = $db->query("SELECT m.*, mf.*, u.grouptitle, u.type, u.creditshigher, u.creditslower, u.readaccess,
  26.                 u.color AS groupcolor, u.stars AS groupstars, u.allownickname, u.allowuseblog, r.ranktitle,
  27.                 r.color AS rankcolor, r.stars AS rankstars $oltimeadd1
  28.                 FROM {$tablepre}members m
  29.                 LEFT JOIN {$tablepre}memberfields mf ON mf.uid=m.uid
  30.                 LEFT JOIN {$tablepre}usergroups u ON u.groupid=m.groupid
  31.                 LEFT JOIN {$tablepre}ranks r ON m.posts>=r.postshigher
  32.                 $oltimeadd2
  33.                 WHERE ".($uid ? "m.uid='$uid'" : "m.username='$username'")."ORDER BY r.postshigher DESC LIMIT 1");

  34. if(!$member = $db->fetch_array($query)) {
  35.         showmessage('member_nonexistence');
  36. }
  37. if($member['groupid'] != ($member['groupidnew'] = getgroupid($member['uid'], $member, $member))) {
  38.         $query = $db->query("SELECT groupid, grouptitle, type, creditshigher, creditslower, color AS groupcolor,
  39.                 stars AS groupstars, allownickname, allowuseblog
  40.                 FROM {$tablepre}usergroups WHERE groupid='$member[groupidnew]'");
  41.         $member = array_merge($member, $db->fetch_array($query));
  42. }

  43. $modforums = $comma = '';
  44. if($member['adminid'] > 0) {
  45.         $query = $db->query("SELECT m.fid, f.name, f.type FROM {$tablepre}moderators m, {$tablepre}forums f WHERE m.uid='$member[uid]' AND m.inherited='0' AND f.fid=m.fid");
  46.         while($forum = $db->fetch_array($query)) {
  47.                 $modforums .= "$comma<a href="".($forum['type'] == 'group' ? "discuz.php?gid=" : "forumdisplay.php?fid=")."$forum[fid]">$forum[name]</a>";
  48.                 $comma = ', ';
  49.         }
  50. }

  51. $member['groupterms'] = $member['groupterms'] ? unserialize($member['groupterms']) : array();

  52. $extgrouplist = array();
  53. if($member['extgroupids']) {
  54.         $query = $db->query("SELECT groupid, grouptitle FROM {$tablepre}usergroups WHERE groupid IN (".str_replace("\t", ',', $member['extgroupids']).")");
  55.         while($group = $db->fetch_array($query)) {
  56.                 $extgrouplist[] = array('title' => $group['grouptitle'], 'expiry' => (isset($member['groupterms']['ext'][$group['groupid']]) ? gmdate($dateformat, $member['groupterms']['ext'][$group['groupid']] + $timeoffset * 3600) : ''));
  57.         }
  58. }

  59. $query = $db->query("SELECT COUNT(*) FROM {$tablepre}posts");
  60. @$percent = round($member['posts'] * 100 / $db->result($query, 0), 2);
  61. $postperday = $timestamp - $member['regdate'] > 86400 ? round(86400 * $member['posts'] / ($timestamp - $member['regdate']), 2) : $member['posts'];

  62. $member['grouptitle'] = $member['groupcolor'] ? '<font color="'.$member['groupcolor'].'">'.$member['grouptitle'].'</font>' : $member['grouptitle'];
  63. $member['ranktitle'] = $member['rankcolor'] ? '<font color="'.$member['rankcolor'].'">'.$member['ranktitle'].'</font>' : $member['ranktitle'];

  64. if($oltimespan) {
  65.         $member['totalol'] = round($member['totalol'] / 60, 2);
  66.         $member['thismonthol'] = gmdate('Yn', $member['lastactivity']) == gmdate('Yn', $timestamp) ? round($member['thismonthol'] / 60, 2) : 0;
  67. }

  68. $member['usernameenc'] = rawurlencode($member['username']);
  69. $member['regdate'] = gmdate($dateformat, $member['regdate'] + $timeoffset * 3600);
  70. $member['email'] = emailconv($member['email']);
  71. //$member['site'] = $member['site'] ? 'http://'.str_replace('http://', '', $member['site']) : '';

  72. $member['avatar'] = $member['avatar'] && $avatarshowstatus != 2 ? "<br><img src="$member[avatar]" width="$member[avatarwidth]" height="$member[avatarheight]" border="0" alt="" /><br>" : '<br>';
  73. $member['avatarshow'] = $avatarshowstatus ? '<br>'.avatarshow($member['avatarshowid'], $member['gender']).'<br><br>' : '<br>';

  74. $member['lastactivity'] = gmdate("$dateformat $timeformat", $member['lastactivity'] + ($timeoffset * 3600));
  75. $member['lastpost'] = $member['lastpost'] ? gmdate("$dateformat $timeformat", $member['lastpost'] + ($timeoffset * 3600)) : 'x';

  76. $member['taobaoas'] = addslashes($member['taobao']);
  77. $member['bio'] = nl2br($member['bio']);
  78. $member['signature'] = $member['sightml'];

  79. $member['olupgrade'] = $member['totalol'] ? 20 - $member['totalol'] % 20 : 20;

  80. list($year, $month, $day) = explode('-', $member['bday']);
  81. $member['bday'] = intval($year) ? $dateformat : preg_replace("/[^nj]*[Yy][^nj]*/", '', $dateformat);
  82. $member['bday'] = str_replace('n', $month, $member['bday']);
  83. $member['bday'] = str_replace('j', $day, $member['bday']);
  84. $member['bday'] = str_replace('Y', $year, $member['bday']);
  85. $member['bday'] = str_replace('y', substr($year, 2, 4), $member['bday']);

  86. if($member['groupexpiry'] && isset($member['groupterms']['main']['time'])) {
  87.         $member['maingroupexpiry'] = gmdate($dateformat, $member['groupterms']['main']['time'] + $timeoffset * 3600);
  88. }

  89. if($allowviewip && !($adminid == 2 && $member['adminid'] == 1) && !($adminid == 3 && ($member['adminid'] == 1 || $member['adminid'] == 2))) {
  90.         require_once DISCUZ_ROOT.'./include/misc.func.php';
  91.         $member['regiplocation'] = convertip($member['regip']);
  92.         $member['lastiplocation'] = convertip($member['lastip']);
  93. } else {
  94.         $allowviewip = 0;
  95. }

  96. foreach(array_merge($_DCACHE['fields_required'], $_DCACHE['fields_optional']) as $field) {
  97.         if(!$field['invisible'] || $adminid == 1 || $member['uid'] == $discuz_uid) {
  98.                 $_DCACHE['fields'][] = $field;
  99.         }
  100. }

  101. unset($_DCACHE['fields_required'], $_DCACHE['fields_optional']);

  102. if($member['medals']) {
  103.         require_once DISCUZ_ROOT.'./forumdata/cache/cache_medals.php';
  104.         foreach($member['medals'] = explode("\t", $member['medals']) as $key => $medalid) {
  105.                 if(isset($_DCACHE['medals'][$medalid])) {
  106.                         $member['medals'][$key] = $_DCACHE['medals'][$medalid];
  107.                 } else {
  108.                         unset($member['medals'][$key]);
  109.                 }
  110.         }
  111. }

  112. include template('viewpro');

  113. ?>
复制代码

[ 本帖最后由 jesan888 于 2006-10-16 12:17 编辑 ]
回复

使用道具 举报

 楼主| sdywd 发表于 2006-10-17 16:50:28 | 显示全部楼层
90楼有我改好的,你试试
回复

使用道具 举报

北乔峰_ 发表于 2006-10-22 17:54:02 | 显示全部楼层
:lol
回复

使用道具 举报

phpap 发表于 2006-10-22 18:01:35 | 显示全部楼层
收藏了先......
回复

使用道具 举报

alwaySluv 发表于 2006-10-24 15:58:39 | 显示全部楼层
成功!!
顶!!!
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-15 17:32 , Processed in 0.026119 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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