v7 Reputacija
extN
parašyta 2012-02-18 21:34
Savekas
Reputacija:
0 Pranešimai: 144
Įstojo: 2010-04-03
Taigi turiu klausym�.
Imanoma padaryti taip jog kai narys u?d�da kitam nariui reputacija i?kart automati?kai pasira?o tam tikram forumo prane?ime Kas kam u?dejo reputacija ir u? k�?
Pad�jau? +10
Wyciokazz
parašyta 2012-02-18 21:56
Administratorius
Reputacija:
1 Pranešimai: 2108
Įstojo: 2008-02-27
beabejo priklauso nuo reputacijos modo tik.
Kam kurti tai kas jau sukurta.
Nesu ekstrasensas ar dar koks čigonas tad iš nieko negaliu suprast kur bėda.
[img]http://27.media.tumblr.com/tumblr_m3hdwudgjG1rteofuo1_500.gif[/img]
extN
parašyta 2012-02-18 21:57
Savekas
Reputacija:
0 Pranešimai: 144
Įstojo: 2010-04-03
Paprastas modas kuri manau daugelis naudoja.
Pad�jau? +10
Wyciokazz
parašyta 2012-02-18 22:17
Administratorius
Reputacija:
1 Pranešimai: 2108
Įstojo: 2008-02-27
Turi omeny reputation v2?
Kam kurti tai kas jau sukurta.
Nesu ekstrasensas ar dar koks čigonas tad iš nieko negaliu suprast kur bėda.
[img]http://27.media.tumblr.com/tumblr_m3hdwudgjG1rteofuo1_500.gif[/img]
extN
parašyta 2012-02-19 09:38
Savekas
Reputacija:
0 Pranešimai: 144
Įstojo: 2010-04-03
Netinkamas paveiksliukas
Kai ?i�ri� Administracijos panel� -> Sistemos valdymas -> I?kiepiai
Ra?o versija 1.0
Sukur� bdZ
Redagavo extN 2012-02-19 09:39
Pad�jau? +10
Wyciokazz
parašyta 2012-02-19 13:47
Administratorius
Reputacija:
1 Pranešimai: 2108
Įstojo: 2008-02-27
v6 ar v7 versija pas tave?
Kam kurti tai kas jau sukurta.
Nesu ekstrasensas ar dar koks čigonas tad iš nieko negaliu suprast kur bėda.
[img]http://27.media.tumblr.com/tumblr_m3hdwudgjG1rteofuo1_500.gif[/img]
extN
parašyta 2012-02-19 17:51
Savekas
Reputacija:
0 Pranešimai: 144
Įstojo: 2010-04-03
v7.02.03
Pad�jau? +10
Wyciokazz
parašyta 2012-02-19 18:58
Administratorius
Reputacija:
1 Pranešimai: 2108
Įstojo: 2008-02-27
reputation.php failas kuris raso apie duotas reputacijas y foruma.
http://pastebin.com/LudeuUep
Redagavo Wyciokazz 2012-02-19 20:35
Kam kurti tai kas jau sukurta.
Nesu ekstrasensas ar dar koks čigonas tad iš nieko negaliu suprast kur bėda.
[img]http://27.media.tumblr.com/tumblr_m3hdwudgjG1rteofuo1_500.gif[/img]
extN
parašyta 2012-02-19 20:12
Savekas
Reputacija:
0 Pranešimai: 144
Įstojo: 2010-04-03
Heh. Nelabai suprantu ;D
Pad�jau? +10
Wyciokazz
parašyta 2012-02-19 20:35
Administratorius
Reputacija:
1 Pranešimai: 2108
Įstojo: 2008-02-27
Atnaujinau paziurek db linkas yra.
Kam kurti tai kas jau sukurta.
Nesu ekstrasensas ar dar koks čigonas tad iš nieko negaliu suprast kur bėda.
[img]http://27.media.tumblr.com/tumblr_m3hdwudgjG1rteofuo1_500.gif[/img]
extN
parašyta 2012-02-19 20:58
Savekas
Reputacija:
0 Pranešimai: 144
Įstojo: 2010-04-03
Faila pakei�iau, bet ka toliau daryt?
Pad�jau? +10
Wyciokazz
parašyta 2012-02-19 21:12
Administratorius
Reputacija:
1 Pranešimai: 2108
Įstojo: 2008-02-27
Suteik kam nors reputacija.
beje paziurek tame faile yra nustatymai i_foruma ir i_tema juos pagal save pasidaryk
Redagavo Wyciokazz 2012-02-19 21:12
Kam kurti tai kas jau sukurta.
Nesu ekstrasensas ar dar koks čigonas tad iš nieko negaliu suprast kur bėda.
[img]http://27.media.tumblr.com/tumblr_m3hdwudgjG1rteofuo1_500.gif[/img]
extN
parašyta 2012-02-20 05:29
Savekas
Reputacija:
0 Pranešimai: 144
Įstojo: 2010-04-03
Netinkamas paveiksliukas
Reiktu kaip nors gal gra?iau padaryt :) Jai gali pasakyk kur pakeist.
Kodas:
Code
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: viewthread.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once \"../maincore.php\";
require_once INCLUDES.\"forum_include.php\";
require_once THEMES.\"templates/header.php\";
include LOCALE.LOCALESET.\"forum/main.php\";
$posts_per_page = 20;
add_to_title($locale['global_200'].$locale['400']);
if (!isset($_GET['thread_id']) || !isnum($_GET['thread_id'])) { redirect(\"index.php\"); }
if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) { $_GET['rowstart'] = 0; }
$result = dbquery(
\"SELECT t.*, f.*, f2.forum_name AS forum_cat_name
FROM \".DB_THREADS.\" t
LEFT JOIN \".DB_FORUMS.\" f ON t.forum_id=f.forum_id
LEFT JOIN \".DB_FORUMS.\" f2 ON f.forum_cat=f2.forum_id
WHERE t.thread_id='\".$_GET['thread_id'].\"' AND t.thread_hidden='0'\"
);
if (dbrows($result)) {
$fdata = dbarray($result);
if (!checkgroup($fdata['forum_access']) || !$fdata['forum_cat'] || $fdata['thread_hidden'] == \"1\") { redirect(\"index.php\"); }
} else {
redirect(\"index.php\");
}
if ($fdata['forum_post'] != 0 && checkgroup($fdata['forum_post'])) {
$can_post = true;
} else {
$can_post = false;
}
if ($fdata['forum_reply'] != 0 && checkgroup($fdata['forum_reply'])) {
$can_reply = true;
} else {
$can_reply = false;
}
if ($settings['forum_edit_lock'] == 1) {
$lock_edit = true;
} else {
$lock_edit = false;
}
//locale dependent forum buttons
if (is_array($fusion_images)) {
if ($settings['locale'] != \"English\") {
$newpath = \"\";
$oldpath = explode(\"/\", $fusion_images['newthread']);
$c_path = count($oldpath);
for ($i = 0; $i < $c_path - 1; $i++) {
$newpath .= $oldpath[$i].\"/\";
}
if (is_dir($newpath.$settings['locale'])) {
redirect_img_dir($newpath, $newpath.$settings['locale'].\"/\");
}
}
}
//javascript to footer
$highlight_js = \"\"; $colorbox_js = \"\"; $edit_reason_js = \"\";
$mod_groups = explode(\".\", $fdata['forum_moderators']);
if (iSUPERADMIN) { define(\"iMOD\", true); }
if (!defined(\"iMOD\") && iMEMBER && $fdata['forum_moderators']) {
foreach ($mod_groups as $mod_group) {
if (!defined(\"iMOD\") && checkgroup($mod_group)) { define(\"iMOD\", true); }
}
}
if (!defined(\"iMOD\")) { define(\"iMOD\", false); }
if (iMOD && (((isset($_POST['delete_posts']) || isset($_POST['move_posts'])) && isset($_POST['delete_post'])) || isset($_GET['error']))) {
require_once FORUM.\"viewthread_options.php\";
}
$user_field = array(\"user_sig\" => false, \"user_web\" => false);
if (iMEMBER) {
$thread_match = $fdata['thread_id'].\"\|\".$fdata['thread_lastpost'].\"\|\".$fdata['forum_id'];
if (($fdata['thread_lastpost'] > $lastvisited) && !preg_match(\"(^\.{$thread_match}$|\.{$thread_match}\.|\.{$thread_match}$)\", $userdata['user_threads'])) {
$result = dbquery(\"UPDATE \".DB_USERS.\" SET user_threads='\".$userdata['user_threads'].\".\".stripslashes($thread_match).\"' WHERE user_id='\".$userdata['user_id'].\"'\");
}
if (isset($userdata['user_sig'])) { $user_field['user_sig'] = true; }
if (isset($userdata['user_web'])) { $user_field['user_web'] = true; }
if (isset($_POST['cast_vote']) && (isset($_POST['poll_option']) && isnum($_POST['poll_option']))) {
$result = dbquery(\"SELECT forum_vote_user_id FROM \".DB_FORUM_POLL_VOTERS.\" WHERE forum_vote_user_id='\".$userdata['user_id'].\"' AND thread_id='\".$_GET['thread_id'].\"'\");
if (!dbrows($result)) {
$result = dbquery(\"UPDATE \".DB_FORUM_POLL_OPTIONS.\" SET forum_poll_option_votes=forum_poll_option_votes+1 WHERE thread_id='\".$_GET['thread_id'].\"' AND forum_poll_option_id='\".$_POST['poll_option'].\"'\");
$result = dbquery(\"UPDATE \".DB_FORUM_POLLS.\" SET forum_poll_votes=forum_poll_votes+1 WHERE thread_id='\".$_GET['thread_id'].\"'\");
$result = dbquery(\"INSERT INTO \".DB_FORUM_POLL_VOTERS.\" (thread_id, forum_vote_user_id, forum_vote_user_ip, forum_vote_user_ip_type) VALUES ('\".$_GET['thread_id'].\"', '\".$userdata['user_id'].\"', '\".USER_IP.\"', '\".USER_IP_TYPE.\"')\");
}
redirect(FUSION_SELF.\"?thread_id=\".$_GET['thread_id']);
}
} else {
$result = dbquery(\"SELECT field_name FROM \".DB_USER_FIELDS.\" WHERE field_name='user_sig' OR field_name='user_web'\");
while ($data = dbarray($result)) {
$user_field[$data['field_name']] = true;
}
}
if (isset($_GET['pid']) && isnum($_GET['pid'])) {
$reply_count = dbcount(\"(post_id)\", DB_POSTS, \"thread_id='\".$fdata['thread_id'].\"' AND post_id<='\".$_GET['pid'].\"' AND post_hidden='0'\");
if ($reply_count > $posts_per_page) { $_GET['rowstart'] = ((ceil($reply_count / $posts_per_page)-1) * $posts_per_page); }
}
$caption = $fdata['forum_cat_name'].\" � \".$fdata['forum_name'].\" \";
list($rows, $last_post) = dbarraynum(dbquery(
\"SELECT COUNT(post_id), MAX(post_id) FROM \".DB_POSTS.\" WHERE thread_id='\".$_GET['thread_id'].\"' AND post_hidden='0' GROUP BY thread_id\"));
opentable($locale['500']);
echo \" \n\";
echo \"\n\";
if (($rows > $posts_per_page) || ($can_post || $can_reply)) {
echo \"\n\n\";
if ($rows > $posts_per_page) { echo \"\n\"; }
if (iMEMBER && $can_post) {
echo \"\n\";
}
echo \"\n\".makepagenav($_GET['rowstart'],$posts_per_page,$rows,3,FUSION_SELF.\"?thread_id=\".$_GET['thread_id'].\"&\").\" \n\n\";
if ($can_post) {
echo \"\";
echo \" \n\";
}
if (!$fdata['thread_locked'] && $can_reply) {
echo \"\";
echo \" \n\";
}
echo \"
\n\";
}
if ($rows != 0) {
dbquery(\"UPDATE \".DB_THREADS.\" SET thread_postcount='$rows', thread_lastpostid='$last_post', thread_views=thread_views+1 WHERE thread_id='\".$_GET['thread_id'].\"'\");
if ($_GET['rowstart'] == 0 && $fdata['thread_poll'] == \"1\") {
if (iMEMBER) {
$presult = dbquery(
\"SELECT tfp.forum_poll_title, tfp.forum_poll_votes, 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.forum_poll_title, tfp.forum_poll_votes FROM \".DB_FORUM_POLLS.\" tfp
WHERE tfp.thread_id='\".$_GET['thread_id'].\"'\"
);
}
if (dbrows($presult)) {
$pdata = dbarray($presult); $i = 1;
if (iMEMBER) { echo \"\n\"; }
}
}
$result = dbquery(
\"SELECT p.forum_id, p.thread_id, p.post_id, p.post_message, p.post_showsig, p.post_smileys, p.post_author,
p.post_datestamp, p.post_ip, p.post_ip_type, p.post_edituser, p.post_edittime, p.post_editreason,
u.user_id, u.user_name, u.user_status, u.user_avatar, u.user_level, u.user_posts, u.user_groups, u.user_joined,
\".($user_field['user_sig'] ? \" u.user_sig,\" : \"\").($user_field['user_web'] ? \" u.user_web,\" : \"\").\"
u2.user_name AS edit_name, u2.user_status AS edit_status
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'].\"' AND post_hidden='0'
ORDER BY post_datestamp LIMIT \".$_GET['rowstart'].\",$posts_per_page\"
);
if (iMOD) { echo \"\n\";
}
if ($rows > $posts_per_page) {
echo \"\n\";
echo makepagenav($_GET['rowstart'],$posts_per_page,$rows,3,FUSION_SELF.\"?thread_id=\".$_GET['thread_id'].(isset($_GET['highlight']) ? \"&highlight=\".urlencode($_GET['highlight']):\"\").\"&\").\"\n\";
echo \"
\n\";
}
$forum_list = \"\"; $current_cat = \"\";
$result = dbquery(
\"SELECT f.forum_id, f.forum_name, f2.forum_name AS forum_cat_name
FROM \".DB_FORUMS.\" f
INNER JOIN \".DB_FORUMS.\" f2 ON f.forum_cat=f2.forum_id
WHERE \".groupaccess('f.forum_access').\" AND f.forum_cat!='0'
ORDER BY f2.forum_order ASC, f.forum_order ASC\"
);
while ($data = dbarray($result)) {
if ($data['forum_cat_name'] != $current_cat) {
if ($current_cat != \"\") { $forum_list .= \"\n\"; }
$current_cat = $data['forum_cat_name'];
$forum_list .= \"\n\";
}
$sel = ($data['forum_id'] == $fdata['forum_id'] ? \" selected='selected'\" : \"\");
$forum_list .= \"\".$data['forum_name'].\" \n\";
}
$forum_list .= \" \n\";
if (iMOD) {
echo \"\n\"; }
if ($can_post || $can_reply) {
echo \"\n\n\";
echo \"\n\n\n\n\";
if ($can_post) {
echo \"\";
echo \" \n\";
}
if (!$fdata['thread_locked'] && $can_reply) {
echo \"\";
echo \" \n\";
}
echo \"
\n\";
}
closetable();
if ($can_reply && !$fdata['thread_locked']) {
require_once INCLUDES.\"bbcode_include.php\";
opentable($locale['512']);
echo \"\n\";
closetable();
}
// viewthread javascript, moved to footer
$viewthread_js = \"\";
add_to_footer($viewthread_js); //unset($viewthread_js);
require_once THEMES.\"templates/footer.php\";
?>
Pad�jau? +10
Wyciokazz
parašyta 2012-02-20 09:09
Administratorius
Reputacija:
1 Pranešimai: 2108
Įstojo: 2008-02-27
$zin kintamasis.
Kam kurti tai kas jau sukurta.
Nesu ekstrasensas ar dar koks čigonas tad iš nieko negaliu suprast kur bėda.
[img]http://27.media.tumblr.com/tumblr_m3hdwudgjG1rteofuo1_500.gif[/img]
extN
parašyta 2012-02-20 12:35
Savekas
Reputacija:
0 Pranešimai: 144
Įstojo: 2010-04-03
Idomu, forume rodo kad a? jau para?�s: 65533 prane?imu :D
I? kur skai�ius 65533? A? padariau nustatyma: "Kiek vartotojas gali suteikti reputacijos: 65533" U?d�jau skai�i� 65533, bet kame b�da?
Pad�jau? +10