Witam mam problem i bardzo przyda mi sie pomoc
chciał bym zmienic profil z forum na fusion boardzie na
Nick
Avatar
Postów: 1
Pomógł: 7
Ostrzeżeń: 0
Miejscowość: Warszawa
Jest już z nami od : 321 dni
Ostatnia Wizyta : 23.01.09 12:34
Status: Albo Online albo Offline
a mam tak
Nick
Avatar
Postów: 1
Data rejestracji: 19.06.09
Miejscowość: Warszawa
Mogę was prosić o taką ciekawa zmianę ??
Niżej podaje mój plik fusion.php będę bardzo wdzięczny :)
<?php
/*
fusionBoard 4.0
php-Invent Team
http://www.php-invent.com
Developer: Ian Unruh (SoBeNoFear)
*/
opentable($locale['500']);
echo "<!--pre_forum_thread-->\n";
renderNav(false, $announcementCheck);
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
echo "<tr>";
if (($rows > $posts_per_page) || ($can_post || $can_reply)) {
if ($fdata['thread_author'] == $userdata['user_id'] && $fdata['thread_help1'] < 2 && $data['post_author'] != $userdata['user_id'] && $data['post_help'] == 0) {
echo "<a href='post.php?action=help&forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."'><img src='".IMAGES."help.png' style='border:0px;vertical-align:middle'/></a> ";
}
echo "<td align='left' style='padding:0px 0px 4px 5px;white-space:nowrap;' width='1%'>\n";
if (iMEMBER && ($can_post || $can_reply)) {
if (!$fdata['thread_locked'] && $can_reply) {
echo "<a href='post.php?action=reply&forum_id=".$fdata['forum_id']."&thread_id=".$_GET['thread_id']."'><img src='".get_image("reply")."' alt='".$locale['565']."' style='border:0px' /></a> \n";
}
if ($can_post) {
echo "<nobr><a href='post.php?action=newthread&forum_id=".$fdata['forum_id']."'><img src='".get_image("newthread")."' alt='".$locale['566']."' style='border:0px' /></a> \n";
}
echo "</td><td>";
}
if ($rows > $posts_per_page) {
echo "<nobr>".makePageNav($_GET['rowstart'],$posts_per_page,$rows,3,FUSION_SELF."?thread_id=".$_GET['thread_id']."&")."";
}
echo "</td>";
}
echo "<td style='text-align:right;'>";
renderTools();
echo "</td>
</tr></table><br />";
if ($rows != 0) {
if ($_GET['rowstart'] == 0 && $fdata['thread_poll'] == "1") {
if (iMEMBER) {
$presult = dbquery(
"SELECT tfp.*, tfv.forum_vote_user_id FROM ".DB_FORUM_POLLS." tfp
LEFT JOIN ".DB_FORUM_POLL_VOTERS." tfv
ON tfp.thread_id=tfv.thread_id AND forum_vote_user_id='".$userdata['user_id']."'
WHERE tfp.thread_id='".$_GET['thread_id']."'"
);
} else {
$presult = dbquery(
"SELECT tfp.* FROM ".DB_FORUM_POLLS." tfp
WHERE tfp.thread_id='".$_GET['thread_id']."'"
);
}
if (dbrows($presult)) {
$pdata = dbarray($presult); $i = 1;
if (iMEMBER) { echo "<form name='voteform' method='post' action='".FUSION_SELF."?forum_id=".$fdata['forum_id']."&thread_id=".$_GET['thread_id']."'>\n"; }
echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border' style='margin-bottom:5px'>\n<tr>\n";
echo "<td align='center' class='tbl2'><strong>".$pdata['forum_poll_title']."</strong></td>\n</tr>\n<tr>\n<td class='tbl1'>\n";
echo "<table align='center' cellpadding='0' cellspacing='0'>\n";
$presult = dbquery("SELECT * FROM ".DB_FORUM_POLL_OPTIONS." WHERE thread_id='".$_GET['thread_id']."' ORDER BY forum_poll_option_id ASC");
$poll_options = dbrows($presult);
while ($pvdata = dbarray($presult)) {
if ((iMEMBER && isset($pdata['forum_vote_user_id']) || (!$fdata['forum_vote'] || !checkgroup($fdata['forum_vote'])))) {
$option_votes = ($pdata['forum_poll_votes'] ? number_format(100 / $pdata['forum_poll_votes'] * $pvdata['forum_poll_option_votes']) : 0);
echo "<tr>\n<td class='tbl1'>".$pvdata['forum_poll_option_text']."</td>\n";
echo "<td class='tbl1'><img src='".get_image("pollbar")."' alt='".$pvdata['forum_poll_option_text']."' height='12' width='".(200 / 100 * $option_votes)."' class='poll' /></td>\n";
echo "<td class='tbl1'>".$option_votes."%</td><td class='tbl1'>[".$pvdata['forum_poll_option_votes']." ".($pvdata['forum_poll_option_votes'] == 1 ? $locale['global_133'] : $locale['global_134'])."]</td>\n</tr>\n";
} else {
echo "<tr>\n<td class='tbl1'><label><input type='radio' name='poll_option' value='".$i."' style='vertical-align:middle' /> ".$pvdata['forum_poll_option_text']."</label></td>\n</tr>\n";
$i++;
}
}
if ((iMEMBER && isset($pdata['forum_vote_user_id']) || (!$fdata['forum_vote'] || !checkgroup($fdata['forum_vote'])))) {
echo "<tr>\n<td align='center' colspan='4' class='tbl1'>".$locale['480']." : ".$pdata['forum_poll_votes']."</td>\n</tr>\n";
} else {
echo "<tr>\n<td class='tbl1'><input type='submit' name='cast_vote' value='".$locale['481']."' class='button' /></td>\n</tr>\n";
}
echo "</table>\n</td>\n</tr>\n</table>\n";
if (iMEMBER) { echo "</form>\n"; }
}
}
}
$result = dbquery(
"SELECT p.*, u.*, u2.user_name AS edit_name
FROM ".DB_POSTS." p
LEFT JOIN ".DB_USERS." u ON p.post_author = u.user_id
LEFT JOIN ".DB_USERS." u2 ON p.post_edituser = u2.user_id AND post_edituser > '0'
WHERE p.thread_id='".$_GET['thread_id']."' ORDER BY post_datestamp LIMIT ".$_GET['rowstart'].",$posts_per_page"
);
if (iMOD) { echo "<form name='mod_form' method='post' action='".FUSION_SELF."?thread_id=".$_GET['thread_id']."&rowstart=".$_GET['rowstart']."'>\n"; }
add_to_title($locale['global_201'].$fdata['thread_subject']);
echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n";
$numrows = dbrows($result);
$current_row = 1;
while ($data = dbarray($result)) {
$message = $data['post_message'];
if ($data['post_smileys']) { $message = parsesmileys($message); }
if ($current_row > 1) { echo "<tr>\n<td colspan='2' class='tbl1' style='height:10px'></td>\n</tr>\n"; }
echo "<tr>\n<td class='tbl2 small' style='width:140px; padding:6px;' nowrap='nowrap'>".timePassed($data['post_datestamp'])."</td>\n";
echo "<td class='tbl2' style='padding:6px;'><div style='float:right' class='small'><a href='#post_".$data['post_id']."' name='post_".$data['post_id']."' id='post_".$data['post_id']."'>#".($current_row+$_GET['rowstart'])."</a></div>\n";
if($fb4['post_icons'] && $current_row == "1"){
$post_res = dbquery("select * from ".DB_PREFIX."fb_posts where post_id='".$data['post_id']."'");
if(dbrows($post_res)){
$post_data = dbarray($post_res);
if($post_data['post_icon']){
$ficon = "<img src='".INFUSIONS."fusionboard4/images/post_icons/".$post_data['post_icon']."' alt='' style='vertical-align:middle;'> ";
} else {
$ficon = "<img src='".INFUSIONS."fusionboard4/images/post_icons/page_white.png' alt='' style='vertical-align:middle;'> ";
}
} else {
$ficon = "<img src='".INFUSIONS."fusionboard4/images/post_icons/page_white.png' alt='' style='vertical-align:middle;'> ";
}
} else {
$ficon = "";
}
echo "$ficon".($current_row > 1 ? "RE: " : "").($announcementCheck ? $locale['fb902'] : "")."
<strong><!--forum_thread_title-->".trimlink($fdata['thread_subject'], 40);
if ($data['post_edittime'] != "0") {
$r = dbquery("select * from ".$db_prefix."fb_posts where post_id='".$data['post_id']."'");
if(dbrows($r)){ $d = dbarray($r); $edit_reason = $d['post_editreason'];
} else { $edit_reason = ""; }
echo "<span class='small'";
if(isset($edit_reason) && $edit_reason !== ""){ echo " title='header=[".$locale['fb502']."] body=[$edit_reason]'"; }
echo "> | ".$locale['508']."
<a href='../profile.php?lookup=".$data['post_edituser']."'>".$data['edit_name']."</a> ".timePassed($data['post_edittime'], false);
echo "</span>\n";
}
echo "</td>\n";
echo "</tr>\n<tr>\n<td valign='top' class='tbl2' style='width:140px; padding:6px;'>\n";
echo "<center><span style='font-size:14px;'>
<a href='../profile.php?lookup=".$data['user_id']."'><!--forum_thread_user_name-->".showLabel($data['user_id'], false, "post")."</a></span></center>\n";
if ($data['user_avatar'] && file_exists(IMAGES."avatars/".$data['user_avatar'])) {
echo "<center><img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."' /></center><br />\n";
} else {
if($fb4['no_avatar']) echo "<center><img src='".IMAGES."noav.gif' alt='".$locale['567']."' /></center><br />\n";
}
echo "<center><span class='small'>";
if ($fb4['user_titles_posts'] && $fb4['user_titles']) {
$titleLookup = dbquery("select * from ".$db_prefix."fb_titles where title_id='".$data['user_title']."' and (".useraccess("title_access").")");
if(dbrows($titleLookup)){
$titleData = dbarray($titleLookup);
$title = stripslash($titleData['title_title']);
} else {
$title = stripslash($data['user_title']);
}
echo "<b>".$title."</b>";
}
renderMods();
echo "</span></center><br />\n";
renderAwards($data['user_id'], "", "<br /><br />");
echo "<!--forum_thread_user_info--><span class='small'><strong>".$locale['502']."</strong> ".$data['user_posts']."</span><br />\n";
// pomógł --------------------------------------------------------------------------
if($data['user_help_point'])
echo "<br><strong>Pomógł:</strong> <a href='../infusions/fusionboard4/forum/view_post_helping_user.php?action=view_help&user_id=".$data['user_id']."'>".number_format($data['user_help_point'])."</a>";
// pomógł -----------------------------------------------------------------------------
echo "<span class='small'><strong>".$locale['504']."</strong> ".showdate("%d.%m.%y", $data['user_joined'])."</span>\n";
if($data['user_location']){ echo "<br /><span class='small'><strong>".$locale['fb500'].":</strong> ".stripslash($data['user_location'])."</span>\n"; }
if($data['user_birthdate'] !== "0000-00-00"){
$birthday = explode("-", $data['user_birthdate']);
$age = (strftime("%Y") - $birthday[0]);
if(strftime("%m") < $birthday[1]){
$age--;
} elseif(strftime("%m") == $birthday[1]) {
if(strftime("%d") < $birthday[2]){
$age--;
}
}
echo "<br /><span class='small'><strong>".$locale['fb512']."</strong> $age</span>\n";
}
echo showWarning($data['user_id']);
echo "</td>\n<td valign='top' class='tbl1' style='padding:7px;'>\n";
if (iMOD) { echo "<div style='float:right'><input type='checkbox' name='delete_post[]' value='".$data['post_id']."' /></div>\n"; }
if (isset($_GET['highlight'])) {
$words = explode(" ", urldecode($_GET['highlight']));
$message = parseubb(highlight_words($words, $message));
} else {
$message = parseubb($message);
}
echo nl2br($message);
$a_result = dbquery("select * from ".$db_prefix."forum_attachments where post_id='".$data['post_id']."'");
$a_files = ""; $a_images = ""; $i_files = 0; $i_images = 0;
if(dbrows($a_result)){
while($a_data = dbarray($a_result)){
if (in_array($a_data['attach_ext'], $imagetypes) && @getimagesize(FORUM."attachments/".$a_data['attach_name'])) {
$a_images .= display_image_fb($a_data['attach_name'])."\n";
$i_images++;
} else {
if($fb4['attach_count']){
$fb_res = dbquery("select * from ".DB_PREFIX."fb_attachments where attach_id='".$a_data['attach_id']."'");
if(dbrows($fb_res)){
$fb_data = dbarray($fb_res);
$count = $fb_data['attach_count'].($fb_data['attach_count'] == "1" ? $locale['fb510'] : $locale['fb509']);
} else {
$count = "0".$locale['fb509'];
}
} else {
$count = "";
}
if($i_files > 0) $a_files .= "<br />";
$a_files .= "<a href='".FUSION_SELF."?thread_id=".$_GET['thread_id']."&getfile=".$a_data['attach_id']."'>".$a_data['attach_name']."</a> [<span class='small'>".parsebytesize(filesize(FORUM."attachments/".$a_data['attach_name']))." / ".$count."</span>]\n";
$i_files++;
}
}
if($a_files){
echo "<br /><br /><fieldset style='border:1px solid #ccc;width:320px;'>
<legend>".$locale['fb568']."</legend>
<div style='padding:3px;width:320px;'>$a_files</div>
</fieldset><br />\n";
}
if($a_images){
if(!$a_files) echo "<br /><br />\n";
echo "<fieldset style='border:1px solid #ccc;width:320px;'>
<legend>".$locale['fb567']."</legend>
<div style='padding:3px;width:320px;'>$a_images</div>
</fieldset><br />\n";
}
}
if ($data['post_showsig'] && array_key_exists("user_sig", $data) && $data['user_sig']) {
echo "\n<hr />".nl2br(parseubb(parsesmileys($data['user_sig']), "b|i|u||center|small|url|mail|img|color"));
}
echo "<!--sub_forum_post--></td>\n</tr>\n";
echo "<tr>\n<td class='tbl2' style='width:140px;white-space:nowrap'>";
if (($settings['forum_ips'] && iMEMBER) || iMOD) { echo "<strong>".$locale['571']."</strong>: ".$data['post_ip']; } else { echo " "; }
echo "</td>\n<td class='tbl2' style='padding:6px;'>";
if($fb4['show_ratings']){
postRatings($data['post_id']);
echo "<div align='right'>\n";
if(iMEMBER && $userdata['user_id'] !== $data['user_id']){
echo "<span id='rb_".$data['post_id']."'>";
showRatings($data['post_id'], $userdata['user_id'], $data['post_author'], false);
echo "</span> ";
}
} else {
echo "<div align='right'>\n";
}
if (iMEMBER && ($can_post || $can_reply) && !$fb4['buttons']) {
if ($userdata['user_id'] !== $data['user_id']) echo ":: ";
if (($settings['forum_ips'] && iMEMBER) || iMOD) { echo "<span style='font-size:9px;'>".$locale['571'].": ".$data['post_ip']."</span> :: "; } else { echo ""; }
if (!$fdata['thread_locked']) {
echo "<a href='post.php?action=reply&forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."&quote=".$data['post_id']."'>".$locale['569']."</a>\n";
if (iMOD || ($lock_edit && $last_post['post_id'] == $data['post_id'] && $userdata['user_id'] == $data['post_author']) || (!$lock_edit && $userdata['user_id'] == $data['post_author'])) {
echo " :: <a href='post.php?action=edit&forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."'>".$locale['568']."</a>\n";
}
} else {
if (iMOD) {
echo "<a href='post.php?action=edit&forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."'>".$locale['568']."</a>\n";
}
}
} elseif(iMEMBER && ($can_post || $can_reply)) {
if (!$fdata['thread_locked']) {
echo "<a href='post.php?action=reply&forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."&quote=".$data['post_id']."'><img src='".get_image("quote")."' alt='".$locale['569']."' style='border:0px;vertical-align:middle' /></a>\n";
if (iMOD || ($lock_edit && $last_post['post_id'] == $data['post_id'] && $userdata['user_id'] == $data['post_author']) || (!$lock_edit && $userdata['user_id'] == $data['post_author'])) {
echo "<a href='post.php?action=edit&forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."'><img src='".get_image("forum_edit")."' alt='".$locale['568']."' style='border:0px;vertical-align:middle' /></a>\n";
}
} else {
if (iMOD) {
echo "<a href='post.php?action=edit&forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."'><img src='".get_image("forum_edit")."' alt='".$locale['568']."' style='border:0px;vertical-align:middle' /></a>\n";
}
}
}
if(!$fb4['buttons']) { echo (iMEMBER && ($can_post || $can_reply) ? " :: " : "").showStatus($data['user_id'], false); }
else { echo (iMEMBER && ($can_post || $can_reply) ? " " : "").showStatus($data['user_id']); }
echo "</div></td>\n</tr>\n";
$current_row++;
}
echo "</table>\n";
?>
PW od moderatora:
- Przeniesienie tematu - Pieka 20.06 - 12:13
Edytowane przez Gutaj dnia 20.06.2009 19:18:28
|