Просмотр темы |
# 1
| Тема: Про форум |
alasator
Пользователь
Местный
Сообщений: 19
Зарегистрирован: 03 Июня 2007, 22:19:34
Сказали спасибо 0 раз Статус: offline
|
Опубликовано 12 Июня 2007, 11:36:08 |
| |
Люди добрые. как убрать на форуме дату регистрации,группу юзера,и номер юзера?? вот мой viewthread:
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------
| Modified by Yuras - No blocks
+----------------------------------------------------*/
require_once "../maincore.php";
require_once BASEDIR."subheader.php";
// Mod by Yuras - Change
// require_once BASEDIR."side_left.php";
echo "<td valign='top' class='main-bg'>";
// End
include LOCALE.LOCALESET."forum/main.php";
$posts_per_page = 20;
if (!FUSION_QUERY || !isset($forum_id) || !isNum($forum_id) || !isset($thread_id) || !isNum($thread_id)) fallback("index.php");
$result = dbquery("SELECT * FROM ".$db_prefix."forums WHERE forum_id='".$forum_id."'");
if (dbrows($result)) {
$fdata = dbarray($result);
if (!checkgroup($fdata['forum_access']) || !$fdata['forum_cat']) fallback("index.php");
} else {
fallback("index.php");
}
$can_post = checkgroup($fdata['forum_posting']);
$forum_mods = explode(".", $fdata['forum_moderators']);
if (iMEMBER && in_array($userdata['user_id'], $forum_mods)) { define("iMOD", true); } else { define("iMOD", false); }
$result = dbquery("SELECT * FROM ".$db_prefix."threads WHERE thread_id='".$thread_id."' AND forum_id='".$fdata['forum_id']."'");
if (dbrows($result)) { $tdata = dbarray($result); } else { fallback("index.php"); }
$fcdata = dbarray(dbquery("SELECT * FROM ".$db_prefix."forums WHERE forum_id='".$fdata['forum_cat']."'"));
$caption = $fcdata['forum_name']." | <a href='viewforum.php?forum_id=".$fdata['forum_id']."'>".$fdata['forum_name']."</a>";;
$result = dbquery("UPDATE ".$db_prefix."threads SET thread_views=thread_views+1 WHERE thread_id='$thread_id'");
if (iMEMBER && $can_post && isset($_POST['postquickreply'])) {
$message = stripinput(censorwords($message));
if ($message != "") {
$sig = ($userdata['user_sig'] ? '1' :'0');
$smileys = isset($_POST['disable_smileys']) ? "0" : "1";
$subject = "RE: ".$tdata['thread_subject'];
$result = dbquery("UPDATE ".$db_prefix."forums SET forum_lastpost='".time()."', forum_lastuser='".$userdata['user_id']."' WHERE forum_id='$forum_id'");
$result = dbquery("UPDATE ".$db_prefix."threads SET thread_lastpost='".time()."', thread_lastuser='".$userdata['user_id']."' WHERE thread_id='$thread_id'");
$result = dbquery("INSERT INTO ".$db_prefix."posts VALUES('$forum_id', '$thread_id', '', '$subject', '$message', '$sig', '$smileys', '".$userdata['user_id']."', '".time()."', '".USER_IP."', '0', '0')");
$newpost_id = mysql_insert_id();
$result = dbquery("UPDATE ".$db_prefix."users SET user_posts=user_posts+1 WHERE user_id='".$userdata['user_id']."'");
$reply_count = dbcount("(thread_id)", "posts", "thread_id='".$thread_id."'");
$rstart = ($reply_count > $posts_per_page ? "&rowstart=".((ceil($reply_count / $posts_per_page)-1)*$posts_per_page) : "");
fallback(FUSION_SELF."?forum_id=$forum_id&thread_id=$thread_id".$rstart."#post_".$newpost_id);
}
}
// Mod by Yuras
if (iMEMBER) {
openside($userdata['user_name']);
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<div align='center'>
<a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a> | <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a> | <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo " | <a href='".ADMIN."index.php' class='side'>".$locale['083']."</a>\n";
}
echo " | <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
} else {
openside($locale['060']);
echo "<div align='center'>";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php' class='side'>Зарегистрироваться</a> | ";
}
echo "<a href='".BASEDIR."lostpassword.php' class='side'>Забыли пароль?</a>";
echo "".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."
<input type='text' name='user_name' class='textbox' style='width:100px'>
".$locale['062']."
<input type='password' name='user_pass' class='textbox' style='width:100px'>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='".$locale['064']."' class='button'>
</form></div>\n";
}
closeside();
// End
opentable($locale['500']);
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='smallalt'><a href='index.php'>".$settings['sitename']."</a> | $caption</td>\n";
if (iMEMBER && $can_post) {
echo "<td align='right'>\n";
if (!$tdata['thread_locked']) {
echo "<a href='post.php?action=reply&forum_id=$forum_id&thread_id=$thread_id'><img src='".THEME."forum/reply.gif' alt='".$locale['565']."' style='border:0px;'></a>\n";
}
echo "<a href='post.php?action=newthread&forum_id=$forum_id'><img src='".THEME."forum/newthread.gif' alt='".$locale['566']."' style='border:0px;'></a></td>\n";
}
echo "</tr>
</table>\n";
$rows = dbrows(dbquery("SELECT * FROM ".$db_prefix."posts WHERE thread_id='$thread_id'"));
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
if ($rows > $posts_per_page) {
echo "<div align='center' style='margin-top:5px;margin-bottom:5px;'>
".makePageNav($rowstart,$posts_per_page,$rows,3,FUSION_SELF."?forum_id=$forum_id&thread_id=$thread_id&")."
</div>\n";
// Mod by Yuras
if (iMEMBER) {
openside($userdata['user_name']);
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<div align='center'>
<a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a> | <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a> | <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo " | <a href='".ADMIN."index.php' class='side'>".$locale['083']."</a>\n";
}
echo " | <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
} else {
openside($locale['060']);
echo "<div align='center'>";
if ($settings['enable_registration']) {
echo "<a href='".BASEDIR."register.php' class='side'>Зарегистрироваться</a> | ";
}
echo "<a href='".BASEDIR."lostpassword.php' class='side'>Забыли пароль?</a>";
echo "".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
".$locale['061']."
<input type='text' name='user_name' class='textbox' style='width:100px'>
".$locale['062']."
<input type='password' name='user_pass' class='textbox' style='width:100px'>
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>
<input type='submit' name='login' value='".$locale['064']."' class='button'>
</form></div>\n";
}
closeside();
// End
}
echo "<table cellspacing='0' cellpadding='0' width='100%' class='tbl-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='1' width='100%'>\n";
if ($rows != 0) {
$result = dbquery(
"SELECT * FROM ".$db_prefix."posts
LEFT JOIN ".$db_prefix."users ON ".$db_prefix."posts.post_author=".$db_prefix."users.user_id
WHERE thread_id='$thread_id' ORDER BY post_datestamp LIMIT $rowstart,$posts_per_page"
);
$numrows = dbrows($result);
$i = 0;
while ($data = dbarray($result)) {
$i++;
$message = $data['post_message'];
if ($data['post_showsig']) { $message = $message."\n\n<hr>".$data['user_sig']; }
if ($data['post_smileys']) { $message = parsesmileys($message); }
$message = parseubb($message);
$message = nl2br($message);
if ($data['post_edittime'] != "0") {
if ($data['post_author'] != $data['post_edituser']) {
$data2 = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_id='".$data['post_edituser']."'"));
$edituser = "<a href='../profile.php?lookup=".$data2['user_id']."'>".$data2['user_name']."</a>";
} else {
$edituser = "<a href='../profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a>";
}
$edittime = showdate("forumdate", $data['post_edittime']);
}
$is_mod = in_array($data['user_id'], $forum_mods) && $data['user_level'] < "102" ? true : false;
echo "<tr>
<td width='145' class='tbl2'>".$locale['501']."</td>
<td class='tbl2'><a name='post_".$data['post_id']."' id='post_".$data['post_id']."'></a>".$data['post_subject']."</td>
</tr>
<tr>
<td valign='top' rowspan='3' width='145' class='tbl1'>
<a href='../profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a><br>
<span class='small'>".($is_mod ? $locale['userf1'] : getuserlevel($data['user_level']))."</span><br><br>\n";
if ($data['user_avatar'] != "") {
echo "<img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."'><br><br>\n";
$height = "185";
} else {
$height = "70";
}
//NEW CODE BEGIN
@include INFUSIONS."rank_system/forum.php";
@include INFUSIONS."danger_rank/forum.php";
echo "
Пользователь: № ".$data['user_id']."<br> ";
echo"Группа:";
$user_groups = (strpos($data['user_groups'], ".") == 0 ? explode(".", substr($data['user_groups'], 1)) : explode(".", $data['user_groups']));
for ($i = 0;$i < count($user_groups);$i++) {
echo "<a href='../profile.php?group_id=".$user_groups[$i]."'>".getgroupname($user_groups[$i])."</a><br>";
if ($i != (count($user_groups)-1)) { echo "\n"; } else { echo "\n"; }
}
//NEW CODE END
echo "<span class='small'>".$locale['502']." ".$data['user_posts']."<br>\n";
if ($data['user_location']) echo " ".$locale['503']." ".$data['user_location']."
<br>
<span class='alt'>".$locale['504']."</span> ".showdate("%d.%m.%y", $data['user_joined'])."<br><span class='alt'>Статус:</span> ";
$lastseen = time() - $data['user_lastvisit'];
if($lastseen < 60) {
$lastseen = "<nobr><img src='".BASEDIR."forum/images/user_online.gif' style='vertical-align:absMiddle;' title='User is Online' alt='User is Online'> <span class='small'>Online</span></NOBR>";
} else {
$lastseen = "<nobr><img src='".BASEDIR."forum/images/user_offline.gif' style='vertical-align:absMiddle;' title='User is Offline' alt='User is Online'> <span class='small'>Offline</span></NOBR>";
}
echo "$lastseen";
echo "<br>\n";
echo "".$locale['504']." ".showdate("%d.%m.%y", $data['user_joined'])."</span></td>
<td>
<table cellspacing='0' cellpadding='0' width='100%'>
<tr>
<td class='tbl1'><span class='small'>".$locale['505'].showdate("forumdate", $data['post_datestamp'])."</span></td>
<td align='right' class='tbl1'>\n";
if (iMEMBER && $can_post) {
if (!$tdata['thread_locked']) {
if ($userdata['user_id'] == $data['post_author'] || iMOD || iSUPERADMIN) {
if (iMOD || iSUPERADMIN) { echo "<a href='".INFUSIONS."danger_rank/nakazat.php?user_id=".$data['user_id']."'>Наказать</a>\n";
echo "<a href='".INFUSIONS."danger_rank/odobrit.php?user_id=".$data['user_id']."'>Одобрить</a>\n"; }
echo "<a href='post.php?action=edit&forum_id=$forum_id&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."
9;><img src='".THEME."forum/edit.gif' border='0'></a>\n";
}
echo "<a href='post.php?action=reply&forum_id=$forum_id&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."&q
uote=".$data['post_id']."'><img src='".THEME."forum/quote.gif' alt='quote' border='0'></a>\n";
if (iMOD || iSUPERADMIN && $data['post_ip'] != "0.0.0.0" && file_exists(THEME."forum/ip.gif")) echo "<img src='".THEME."forum/ip.gif' alt='".$data['post_ip']."' title='".$data['post_ip']."' border='0'>\n";
} else {
if (iMOD || iSUPERADMIN) {
echo "<a href='post.php?action=edit&forum_id=$forum_id&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."
9;><img src='".THEME."forum/edit.gif' border='0'></a>\n";
if ($data['post_ip'] != "0.0.0.0" && file_exists(THEME."forum/ip.gif")) echo "<img src='".THEME."forum/ip.gif' alt='".$data['post_ip']."' title='".$data['post_ip']."' border='0'>\n";
}
}
}
echo "</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign='top' height='$height' class='tbl1'>
$message";
$result2 = dbquery("SELECT * FROM ".$db_prefix."forum_attachments WHERE post_id='".$data['post_id']."'");
if (dbrows($result2) != 0) {
$attach = dbarray($result2);
// Mod by Yuras
$attach['attach_size'] = $attach['attach_size'] / 1024;
$attach['attach_size'] = number_format($attach['attach_size'], 2).' Kb';
if ($attach['attach_ext'] == ".gif" || $attach['attach_ext'] == ".jpg" || $attach['attach_ext'] == ".png") {
echo "<br><br>
<span class='small'>".$locale['506']."</span>
<a class='small' target='_blank' href='".FORUM."attachments/".$attach['attach_name']."[".$attach['attach_id']."]".$attach['a
ttach_ext']."'>".$attach['attach_name']."[".$attach['attach_id']."]".$attach['attach_ext&
#39;]." (".$attach['attach_size'].")</a>";
} else {
echo "<br><br>
<span class='small'>".$locale['507']."</span>
<a class='small' href='".FORUM."attachments/".$attach['attach_name']."[".$attach['attach_id']."]".$attach['a
ttach_ext']."'>".$attach['attach_name']."[".$attach['attach_id']."]".$attach['attach_ext&
#39;]." (".$attach['attach_size'].")</a>";
}
}
if ($data['post_edittime'] != "0") {
echo "<br>
<br>
<span class='small'>".$locale['508']."$edituser".$locale['509']."$edittime</span>";
}
echo "</td>
</tr>
<tr>
<td class='tbl1'>\n";
if ($data['user_aim'] && file_exists(THEME."forum/aim.gif")) {
echo "<a href='aim:goim?screenname=".str_replace(" ", "+", $data['user_aim'])."' target='_blank'><img src='".THEME."forum/aim.gif' alt='".$data['user_aim']."' style='border:0px;'></a> ";
}
if ($data['user_icq']) {
echo "<a href='http://web.icq.com/wwp?Uin=".$data['user_icq']."' target='_blank'><img src='".THEME."forum/icq.gif' alt='".$data['user_icq']."' style='border:0px;'></a> ";
}
if ($data['user_msn']) {
echo "<a href='mailto:$data[user_msn]'><img src='".THEME."forum/msn.gif' alt='".$data['user_msn']."' style='border:0px;'></a> ";
}
if ($data['user_yahoo']) {
echo "<a href='http://uk.profiles.yahoo.com/$data[user_yahoo]' target='_blank'><img src='".THEME."forum/yahoo.gif' alt='".$data['user_yahoo']."' style='border:0px;'></a> ";
}
if ($data['user_web']) {
if (!strstr($data['user_web'], "http://")) { $urlprefix = "http://"; } else { $urlprefix = ""; }
echo "<a href='".$urlprefix."".$data['user_web']."' target='_blank'><img src='".THEME."forum/web.gif' alt='".$data['user_web']."' style='border:0px;'></a> ";
}
echo "<a href='".BASEDIR."messages.php?msg_send=".$data['user_id']."'><img src='".THEME."forum/pm.gif' alt='".$locale['571']."' style='border:0px;'></a>
</td>
</tr>\n";
}
}
echo "</table>
</td>
</tr>
</table>\n";
if ($rows > $posts_per_page) {
echo "<div align='center' style='margin-top:5px;'>
".makePageNav($rowstart,$posts_per_page,$rows,3,FUSION_SELF."?forum_id=$forum_id&thread_id=$thread_id&")."
</div>\n";
}
echo "<table cellpadding='0' cellspacing='0' width='100%' style='margin-top:5px;'>\n<tr>\n";
$forum_list = "";
$result = dbquery("SELECT * FROM ".$db_prefix."forums WHERE forum_cat='0' ORDER BY forum_order ASC");
while ($data = dbarray($result)) {
$result2 = dbquery("SELECT * FROM ".$db_prefix."forums WHERE ".groupaccess('forum_access')." AND forum_cat='".$data['forum_id']."' ORDER BY forum_order ASC");
if (dbrows($result2)) {
$forum_list .= "<optgroup label='".$data['forum_name']."'>\n";
while ($data2 = dbarray($result2)) {
$sel = ($data2['forum_id'] == $fdata['forum_id'] ? " selected" : "");
$forum_list .= "<option value='".$data2['forum_id']."'$sel>".$data2['forum_name']."</option>\n";
}
$forum_list .= "</optgroup>\n";
}
}
echo "<td align='left' class='tbl'>".$locale['540']."<br>
<select name='jump_id' class='textbox' onChange=\"jumpForum(this.options[this.selectedIndex].value);\">
$forum_list</select></td>\n";
if (iMEMBER && $can_post) {
if (iMOD || iSUPERADMIN) {
echo "<td align='right' class='tbl'>
<form name='modopts' method='post' action='options.php?forum_id=$forum_id&thread_id=$thread_id'>
".$locale['520']."<br>
<select name='step' class='textbox'>
<option value='none'> </option>
<option value='renew'>".$locale['527']."</option>
<option value='delete'>".$locale['521']."</option>\n";
if (!$tdata['thread_locked']) {
echo "<option value='lock'>".$locale['522']."</option>\n";
} else {
echo "<option value='unlock'>".$locale['523']."</option>\n";
}
if (!$tdata['thread_sticky']) {
echo "<option value='sticky'>".$locale['524']."</option>\n";
} else {
echo "<option value='nonsticky'>".$locale['525']."</option>\n";
}
echo "<option value='move'>".$locale['526']."</option>\n";
echo "</select>
<input type='submit' name='go' value='".$locale['528']."' class='button'>
</form>
</td>
</tr>\n";
}
}
echo "</table>\n";
if (iMEMBER) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
if ($settings['thread_notify']) {
echo "<td valign='top' class='tbl'>";
if (dbcount("(thread_id)", "thread_notify", "thread_id='$thread_id' AND notify_user='".$userdata['user_id']."'")) {
$result = dbquery("UPDATE ".$db_prefix."thread_notify SET notify_datestamp='".time()."', notify_status='1' WHERE thread_id='$thread_id' AND notify_user='".$userdata['user_id']."'");
$notify_link = "<a href='postify.php?post=off&forum_id=$forum_id&thread_id=$thread_id'>".$locale['515']."</a>";
} else {
$notify_link = "<a href='postify.php?post=on&forum_id=$forum_id&thread_id=$thread_id'>".$locale['516']."</a>";
}
echo "$notify_link</td>\n";
}
if ($can_post) {
echo "<td align='right' class='tbl'>";
if (!$tdata['thread_locked']) {
echo "<a href='post.php?action=reply&forum_id=$forum_id&thread_id=$thread_id'><img src='".THEME."forum/reply.gif' alt='".$locale['565']."' style='border:0px;'></a>\n";
}
echo "<a href='post.php?action=newthread&forum_id=$forum_id'><img src='".THEME."forum/newthread.gif' alt='".$locale['566']."' style='border:0px;'></a>\n";
echo "</td>\n";
}
echo "</tr>\n</table>\n";
}
closetable();
tablebreak();
if (iMEMBER && $can_post && !$tdata['thread_locked']) {
opentable($locale['512']);
echo "<form name='inputform' method='post' action='".FUSION_SELF."?forum_id=$forum_id&thread_id=$thread_id'>
<table align='center' cellpadding='0' cellspacing='1' class='tbl-border'>
<tr>
<td align='center' class='tbl1'><textarea name='message' cols='80' rows='7' class='textbox'></textarea><br>
<input type='button' value='b' class='button' style='font-weight:bold;width:25px;' onClick=\"addText('message', '', '');\">
<input type='button' value='i' class='button' style='font-style:italic;width:25px;' onClick=\"addText('message', '', '');\">
<input type='button' value='u' class='button' style='text-decoration:underline;width:25px;' onClick=\"addText('message', '', '');\">
<input type='button' value='url' class='button' style='width:30px;' onClick=\"addText('message', '[url]', '[/url]');\">
<input type='button' value='mail' class='button' style='width:35px;' onClick=\"addText('message', '[mail]', '[/mail]');\">
<input type='button' value='img' class='button' style='width:30px;' onClick=\"addText('message', '[img]', '[/img]');\">
<input type='button' value='center' class='button' style='width:45px;' onClick=\"addText('message', '', '');\">
<input type='button' value='small' class='button' style='width:40px;' onClick=\"addText('message', '', '');\">
<input type='button' value='code' class='button' style='width:40px;' onClick=\"addText('message', '', '
');\">
<input type='button' value='quote' class='button' style='width:45px;' onClick=\"addText('message', '', ' ');\"></td>
</tr>
<tr>
<td align='center' class='tbl2'>".displaysmileys("message")."<br>";
echo "<br>";
opensidex2 ("[библиотека смайликов]","off");
echo " ".displaymoresmileys("message")." ";
closesidex2 ();
echo "<input type='checkbox' name='disable_smileys' value='1'>".$locale['513']."</td>
</tr>
<tr>
<td align='center' class='tbl1'><input type='submit' name='postquickreply' value='".$locale['514']."' class='button'></td>
</tr>
</table>
</form>\n";
closetable();
}
echo "<script type='text/javascript'>
function jumpForum(forumid) {
document.location.href='".FORUM."viewforum.php?forum_id='+forumid;
}
</script>\n";
echo "</td>";
require_once BASEDIR."footer.php";
?>
|
|
|
|
^ наверх ^
|
# 2
| |
skorpion
Пользователь
пожизненный катарсис
Любитель Fusion
Сообщений: 230
Откуда: Москва
Зарегистрирован: 19 Апреля 2007, 19:55:07
Сказали спасибо 12 раз Статус: offline
|
Опубликовано 13 Июня 2007, 02:05:17 |
| |
Будь любезен прикреплять файлы аттачем. А то ктото тебе поставит за такие открытые исходные коды бан....
читать такие сообщение не очень приятно. |
|
-------------------- (с) Деньги это способ иметь мир, а мир имеет нас через деньги.
Жизнь - это очередная форма неуверенности...
Где меня найти:
http://ssfera.ru
http://www.rus-phpfusion.com
|
|
^ наверх ^
|
# 3
| |
alasator
Пользователь
Местный
Сообщений: 19
Зарегистрирован: 03 Июня 2007, 22:19:34
Сказали спасибо 0 раз Статус: offline
|
Опубликовано 16 Июня 2007, 19:53:54 |
| |
да спасибо...но я прасил не все удалять..а именно дату регистрации,группу юзера,и номер юзера |
|
|
|
^ наверх ^
|
# 4
| |
skorpion
Пользователь
пожизненный катарсис
Любитель Fusion
Сообщений: 230
Откуда: Москва
Зарегистрирован: 19 Апреля 2007, 19:55:07
Сказали спасибо 12 раз Статус: offline
|
Опубликовано 17 Июня 2007, 02:31:00 |
| |
alasator написал:
да спасибо...но я прасил не все удалять..а именно дату регистрации,группу юзера,и номер юзера
редактируй вот этот кусок:
echo "<br>\n";
if ($data['user_avatar'] != "") {
echo "<img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."'><br><br>\n";
$height = "210";
} else {
echo "<img src='".FORUM."images/noav.gif' alt='".$locale['567']."'><br><br>\n";
$height = "210";
}
//NEW CODE BEGIN
@include INFUSIONS."rank_system/forum.php";
@include INFUSIONS."danger_rank/forum.php";
echo "
Пользователь: № ".$data['user_id']."<br> ";
echo"Группа:";
$user_groups = (strpos($data['user_groups'], ".") == 0 ? explode(".", substr($data['user_groups'], 1)) : explode(".", $data['user_groups']));
for ($i = 0;$i < count($user_groups);$i++) {
echo "<a href='../profile.php?group_id=".$user_groups[$i]."'> ".getgroupname($user_groups[$i])."</a><br>";
if ($i != (count($user_groups)-1)) { echo "\n"; } else { echo "\n"; }
}
//NEW CODE END
echo "<span class='alt'>".$locale['502']."</span> ".$data['user_posts']."<br>\n";
if ($data['user_location']) echo "<span class='alt'>".$locale['503']."</span> ".$data['user_location']."<br>\n";
echo "<span class='alt'>".$locale['504']."</span> ".showdate("%d.%m.%y", $data['user_joined'])."<br /></td>
<td>
таким образом ты удалишь для отображения дату регистрации, группу пользователя и его номер соответственно. |
|
-------------------- (с) Деньги это способ иметь мир, а мир имеет нас через деньги.
Жизнь - это очередная форма неуверенности...
Где меня найти:
http://ssfera.ru
http://www.rus-phpfusion.com
|
|
^ наверх ^
|
Перейти на форум:
|
|
|
105,505,754 уникальных посетителей сейчас: 23 Ноября 2024, 03:00:48 Генерация страницы: 0.12 сек.
|
|
Original size:53 кб. GZipped size: 12 кб. Compression:77% |
|