[ ! ] هاك تقييم المواضيع بنجوم

منتدى خاص للنقاش حول هاكات الجيل الثاني أفكارها، مشاكل تركيبها وكل ماله علاقة بها.

المشرف: alhitary

صورة العضو الرمزية
bhr1
عضو نشيط
عضو نشيط
مشاركات: 127
اشترك في: الثلاثاء مايو 10, 2005 2:42 am
مكان: JED
اتصال:

[ ! ] ??? ????? ???????? ?????

مشاركةبواسطة bhr1 » الخميس أغسطس 10, 2006 1:48 pm

?????? ????? ????? ???? ???????

?????? ?????? ???? ?? ??? ??? ?????? ???????? ???? ???? ??? ??????? ?? vb
???? ?????.

???? ??? ??????? ???? ???? ????? ??? ???? ??????? ??? ???? ????? ??????
??? ????? ??? ?????? ???????? ?? VB

???? ?? ??????? ????? bb ??????? ?????.

?? ??????
آخر تعديل بواسطة bhr1 في الثلاثاء أغسطس 15, 2006 5:48 pm، تم التعديل 3 مرات في المجمل.
المشرف العام لمنتدى البحارة
http://www.bhr1.com




الكبير اوي
عضو مطرود
عضو مطرود
مشاركات: 661
اشترك في: الأحد يناير 01, 2006 2:24 pm
مكان: مصر

مشاركةبواسطة الكبير اوي » الخميس أغسطس 10, 2006 7:24 pm

????
????? ????? ?????

صورة العضو الرمزية
bhr1
عضو نشيط
عضو نشيط
مشاركات: 127
اشترك في: الثلاثاء مايو 10, 2005 2:42 am
مكان: JED
اتصال:

مشاركةبواسطة bhr1 » الجمعة أغسطس 11, 2006 8:38 pm

???? ?????? ???

?? ??? ???? ????? ????? ??? ?????? ?????? ??? ????? ????? ???? ??????? bb

????? ??? ???? ????? ???? ???

??????
المشرف العام لمنتدى البحارة
http://www.bhr1.com

صورة العضو الرمزية
bhr1
عضو نشيط
عضو نشيط
مشاركات: 127
اشترك في: الثلاثاء مايو 10, 2005 2:42 am
مكان: JED
اتصال:

مشاركةبواسطة bhr1 » الاثنين أغسطس 14, 2006 2:11 pm

?????? ????? ????? ???? ???????

?? ???? ??? ??? ????? ???????? ??????? ????? ??? ????? ???? ?? ???????

????? ???? ???


كود: تحديد الكل

############################################################## 
## MOD Title: Loewen Enterprise Rate User MOD 
## MOD Author: sandodo < zouxiong@loewen.com.sg > (Xiong Zou) http://bbs.loewen.com.sg & http://forum.loewen.com.sg
## MOD Description: Admin can set specified forum to allow main topic or post to be rated.
##		    In authorized forum, user can determine whether his post should be rated or not 
##		    The rating of the posts will also acumulated to the poster's overall estimation.
##		    The rating of the poster will be displayed by five stars system.
##		
##	Your site should support imagecreatefrompng and other image functions, 
##	to test: upload lwStars.php to your forum's includes folder, 
##		 upload fivestars.png to your forum's images folder, 
##	then run http://www.yoursite.com/includes/lwStars.php?cmtstarlevel=4
##	Remember to remove 
##	if (!defined('IN_PHPBB'))
##	{
##		die('Hacking attempt');
##	}
##	before you test, and add them back after test.
##
##	For any support issues and latest version, please come to my support forum: 
##	For English: http://bbs.loewen.com.sg 
##	For Chinese: http://forum.loewen.com.sg
##
## MOD Version: 1.0.1
## MOD Requirements: PHPBB Version 2.0.6 - 2.0.10; (But not quite related, other version should support too)
## 
## Installation Level: Intermediate
## Installation Time: ~ 10 minutes.
##
## Files To Edit: 
##              
##	language/lang_english/lang_main.php 
##	language/lang_english/lang_admin.php 
##
##	includes/constants.php 
##	includes/functions_post.php 
##
##	admin/admin_forums.php 
##
##	posting.php
##	viewtopic.php
##
##	templates/subSilver/posting_body.tpl
##	templates/subSilver/viewtopic_body.tpl
##
## Included Files: 
##              
##	lwcommentpost.php
##
##	includes/lwStars.php
##
##	images/fivestars.png
##
##
##              
##              
############################################################## 
## For Security Purposes, Please Check: http://bbs.loewen.com.sg/ or http://forum.loewen.com.sg for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, Loewen Enterprise will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://bbs.loewen.com.sg/ or http://forum.loewen.com.sg 
############################################################## 
## Author Notes: 
## 
## Terms of Use 
## 
## All of my MODifications are to use and edit/change for phpBB End Users 
## 
## Plese DO NOT remove any copyright/licence declaration when using the MODification 
## 
## I will remain as the sole developer for all my MODifications unless stated otherwise
## 
## 
## Distribution Terms 
## 
## All of my MODifications are prohibited to distribute to others without the permission from me.
## 
## Plese DO NOT remove any copyright/licence declaration when using the MODification 
## 
## I will remain as the sole developer for all my MODifications unless stated otherwise
## 
## Re-Distribution Terms 
## 
## If you are distributing WHOLE or PART of my MOD in your MOD Projects or Pre-modded Projects or any other means, you must: 
## 
## Get the formal authorization from me first.
## 
## Plese DO NOT remove any copyright/licence declaration when using the MODification 
## 
## I will remain as the sole developer for all my MODification unless stated otherwise. Do NOT declare youself as my co-developer 
## 
## Re-Distribution Terms DOES NOT apply to MOD authors that developing Add-Ons to my MOD. You will be the Add-Ons' Developer/Author
##  
############################################################## 
## MOD History: 
## 
##   2004-09-20 - Version 1.0.1 
##      - init version 
## 
############################################################## 
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 
#
#-----[ SQL ]-------------------------------------------------
#
ALTER TABLE phpbb_posts ADD post_level float DEFAULT '0';
ALTER TABLE phpbb_posts ADD post_ccount mediumint(8) DEFAULT '0';
ALTER TABLE phpbb_posts ADD post_cmter longtext DEFAULT '';
ALTER TABLE phpbb_posts ADD post_allow_cmt tinyint(1) default '0';
#
#-----[ SQL ]-------------------------------------------------
#
ALTER TABLE phpbb_users ADD user_score float DEFAULT '0';
ALTER TABLE phpbb_users ADD user_score_cnt mediumint(8) DEFAULT '0';
#
#-----[ COPY ]--------------------------------------------
#
copy lwcommentpost.php to lwcommentpost.php
copy includes/lwStars.php to includes/lwStars.php
copy images/fivestars.png to images/fivestars.png
#
#-----[ OPEN ]------------------------------------------------
#
language/lang_english/lang_main.php 
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - Rate User MOD v1.0.1 ----------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
//
// That's all, Folks!
// -------------------------------------------------
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - Rate User MOD v1.0.1 ----------------------------------------------------
//-- add
$lang['LW_CHOOSE_SCORE'] = 'Please choose a score!';
$lang['LW_NO_SCORE'] = 'This post doesnot have score yet, be the first to comment: ';
$lang['LW_POST_SCORE'] = 'This post scores averagely at <b>%.2f</b> point(s) with <b>%d</b> commenters.';
$lang['LW_CHOOSE_A_SCORE'] = 'Choose a score';
$lang['LW_MAX_SCORE'] = 'Max Points';
$lang['LW_SCORE_DIMEN'] = ' Points';
$lang['LW_CHOOSE_SCORE_ERR'] = 'Score chosen is not correct!';
$lang['LW_NO_POST_ERR'] = 'Can not find the post information.';
$lang['LW_NO_CMT_SELF_POST'] = 'You can not comment your own post.';
$lang['LW_NO_CMT_ALLOW'] = 'This post doesnot require comment.';
$lang['LW_CMT_ALREADY'] = 'You have already commented this post.';
$lang['LW_CMT_ERR'] = 'Error during post comment process.';
$lang['LW_CMT_DONE'] = 'Comment done, thanks for your participation.';
$lang['LW_ALLOW_COMMENT'] = 'Allow member to comment this post';
$lang['LW_COPY_RIGHT_CONLAIM'] = '<br />The copyright belongs to %s and %s, no authorized actions like re-post are strictly prohibited.';
$lang['LW_USER_SCORE_STARS'] = '<img src="includes/lwStars.php?cmtstarlevel=%.2f" alt="User is appraised %.2f out of 5" border=0>';
//-- fin mod : Loewen Enterprise - Rate User MOD v1.0.1 ----------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - Rate User MOD v1.0.1 ----------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
//
// That's all Folks!
// -------------------------------------------------
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - Rate User MOD v1.0.1 ----------------------------------------------------
//-- add
$lang['LW_Status_allow_topic_rate'] = 'Allow only main topic can be rated';
$lang['LW_Status_allow_post_rate'] = 'Allow all posts can be rated';
//-- fin mod : Loewen Enterprise - Rate User MOD v1.0.1 ----------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
includes/constants.php 
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - Rate User MOD v1.0.1 ----------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
define('FORUM_LOCKED', 1);
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - Rate User MOD v1.0.1 ----------------------------------------------------
define('FORUM_ALLOW_TOPIC_RATE', 2);
define('FORUM_ALLOW_POST_RATE', 3);
//-- fin mod : Loewen Enterprise - Rate User MOD v1.0.1 ----------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions_post.php 
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - Rate User v1.0.1 ----------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full lines maybe longer
#
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, &$post_username, &$post_subject, &$post_message, &$poll_title, &$poll_options, &$poll_length
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - Rate User v1.0.1 ----------------------------------------------------
// here we added
//	, $post_allow_cmt = 0
//-- modify
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- fin mod : Loewen Enterprise - Rate User v1.0.1 ----------------------------------------------------
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
)
# 
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------ 
# 
, $post_allow_cmt = 0
#
#-----[ FIND ]------------------------------------------------
#
	$edited_sql = ($mode == 'editpost' && !$post_data['last_post'] && $post_data['poster_post']) ? ", post_edit_time = $current_time, post_edit_count = post_edit_count + 1 " : "";
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - Rate User v1.0.1 ----------------------------------------------------
//-- add
	if($post_allow_cmt != 1)
	{
		$post_allow_cmt = 0;
	}
//-- fin mod : Loewen Enterprise - Rate User v1.0.1 ----------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full lines maybe longer
#
	$sql = ($mode != "editpost") ? "INSERT INTO " . POSTS_TABLE . " (topic_id, forum_id, poster_id, post_username, post_time
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - Rate User v 1.0.1 ----------------------------------------------------
// here we added
// , post_allow_cmt
// , $post_allow_cmt
// and
//  , post_allow_cmt = $post_allow_cmt
//-- modify
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- fin mod : Loewen Enterprise - Rate User v 1.0.1 ----------------------------------------------------
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
) VALUES (
# 
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------ 
# 
, post_allow_cmt
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
)" : "UPDATE " . POSTS_TABLE
# 
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------ 
# 
, $post_allow_cmt
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
" . $edited_sql . " WHERE
# 
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------ 
# 
, post_allow_cmt = $post_allow_cmt
#
#-----[ OPEN ]------------------------------------------------
#
admin/admin_forums.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - Rate User v 1.0.1 ----------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
			$forumstatus == ( FORUM_LOCKED ) ? $forumlocked = "selected=\"selected\"" : $forumunlocked = "selected=\"selected\"";
#
#-----[ REPLACE WITH ]------------------------------------------------
#
//-- mod : Loewen Enterprise - Rate User v 1.0.1 ----------------------------------------------------
//-- remove
//			$forumstatus == ( FORUM_LOCKED ) ? $forumlocked = "selected=\"selected\"" : $forumunlocked = "selected=\"selected\"";
//-- add
			$forumstatus == ( FORUM_LOCKED ) ? $forumlocked = "selected=\"selected\"" : "";
			$forumstatus == ( FORUM_UNLOCKED ) ? $forumunlocked = "selected=\"selected\"" : "";
			$forumstatus == ( FORUM_ALLOW_TOPIC_RATE ) ? $forumallowtrate = "selected=\"selected\"" : "";
			$forumstatus == ( FORUM_ALLOW_POST_RATE ) ? $forumallowprate = "selected=\"selected\"" : "";
//-- fin mod : Loewen Enterprise - Rate User v 1.0.1 ----------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
			$statuslist .= "<option value=\"" . FORUM_LOCKED . "\" $forumlocked>" . $lang['Status_locked'] . "</option>\n"; 
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - Rate User v 1.0.1 ----------------------------------------------------
//-- add
			$statuslist .= "<option value=\"" . FORUM_ALLOW_TOPIC_RATE . "\" $forumallowtrate>" . $lang['LW_Status_allow_topic_rate'] . "</option>\n"; 
			$statuslist .= "<option value=\"" . FORUM_ALLOW_POST_RATE . "\" $forumallowprate>" . $lang['LW_Status_allow_post_rate'] . "</option>\n"; 
//-- fin mod : Loewen Enterprise - Rate User v 1.0.1 ----------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - Rate User v 1.0.1 ----------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full lines maybe longer
#
		$select_sql = ( !$submit ) ? ", t.topic_title, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - Rate User v 1.0.1 ----------------------------------------------------
// here we added
//	, p.post_allow_cmt
//-- modify
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- fin mod : Loewen Enterprise - Rate User v 1.0.1 ----------------------------------------------------
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
p.enable_smilies, p.enable_sig, p.post_username
# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
# 
, p.post_allow_cmt
#
#-----[ FIND ]------------------------------------------------
#
		$post_data['topic_type'] = $post_info['topic_type'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - rate user v 1.0.1 ----------------------------------------------------
//-- add
		$post_data['post_allow_cmt'] = $post_info['post_allow_cmt'];
//-- fin mod : Loewen Enterprise -  rate user v 1.0.1 ------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
$attach_sig = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['attach_sig']) ) ? TRUE : 0 ) : ( ( $userdata['user_id'] == ANONYMOUS ) ? 0 : $userdata['user_attachsig'] );

// --------------------
//  What shall we do?
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - rate user v 1.0.1 --------------------------------------------------
$lw_allow_cmt = 0;
if ( ($submit || $refresh) && $is_auth['auth_read'])
{
	$lw_allow_cmt = ( !empty($HTTP_POST_VARS['lwallowcmt']) ) ? 1 : 0;
}
else
{
	$lw_allow_cmt = $post_data['post_allow_cmt'];
}
//-- fin mod : Loewen Enterprise - rate user v 1.0.1 ---------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full lines maybe longer
#
				submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - rate user v 1.0.1  ----------------------------------------------------
// here we added
//	, $lw_allow_cmt
//-- modify
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- fin mod : Loewen Enterprise - rate user v 1.0.1 ----------------------------------------------------
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
);
# 
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------ 
# 
, $lw_allow_cmt
#
#-----[ FIND ]------------------------------------------------
#
//
// Delete selection
//
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - rate user v 1.0.1 ----------------------------------------------------
//-- add
if ( $userdata['session_logged_in'] && $is_auth['auth_read'] )
{
	if ( $mode != 'editpost' || ( $mode == 'editpost' && $post_info['poster_id'] != ANONYMOUS ) )
	{
		$template->assign_block_vars('switch_lw_allowcmt_checkbox', array());
	}
}
//-- fin mod : Loewen Enterprise - rate user v 1.0.1 ----------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
$template->assign_block_vars('switch_not_privmsg', array());
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - rate user v 1.0.1 ----------------------------------------------------
//-- add
$l_lw_allow_cmt = '';
$s_lw_allowcmt_checked = '';
$sql = "SELECT * FROM " . FORUMS_TABLE . " WHERE forum_id = " . $forum_id;
if ( !($result = $db->sql_query($sql)) )
{
	message_die(GENERAL_ERROR, 'Failed obtaining forum access control lists', '', __LINE__, __FILE__, $sql);
}
if ( !($f_data = $db->sql_fetchrow($result)) )
{
	$db->sql_freeresult($result);
	message_die(GENERAL_ERROR, 'Failed obtaining forum access control lists', '', __LINE__, __FILE__, $sql);
}
$db->sql_freeresult($result);
if( ($f_data['forum_status'] == FORUM_ALLOW_TOPIC_RATE && ($mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] )))
	|| $f_data['forum_status'] == FORUM_ALLOW_POST_RATE
	|| $userdata['user_level'] == MOD
	|| $userdata['user_level'] == ADMIN
	|| ( $lw_allow_cmt == 1 ) )
{
	$l_lw_allow_cmt = $lang['LW_ALLOW_COMMENT'];
	$s_lw_allowcmt_checked = ( $lw_allow_cmt ) ? '<input type="checkbox" name="lwallowcmt" checked="checked" />' : '<input type="checkbox" name="lwallowcmt" />';
}
//-- fin mod : Loewen Enterprise - rate user v 1.0.1 ----------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
	'L_EMPTY_MESSAGE' => $lang['Empty_message'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - rate user v 1.0.1  ----------------------------------------------------
//-- add
   'L_LW_ALLOW_CMT' => $l_lw_allow_cmt,
   'S_LW_ALLOWCMT_CHECKED' => $s_lw_allowcmt_checked,
//-- fin mod : Loewen Enterprise - rate user v 1.0.1  ----------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - rate user v 1.0.1  ----------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full lines maybe longer
#
//
// Go ahead and pull all data for this topic
//
$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email
	FROM " . POSTS_TABLE . " p, " . USERS_TABLE 
	WHERE p.topic_id = $topic_id
		$limit_posts_time
		AND pt.post_id = p.post_id
		AND u.user_id = p.poster_id
	ORDER BY p.post_time $post_time_order
	LIMIT $start, "
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - rate user v 1.0.1  ----------------------------------------------------
// here we added
//	, u.user_score
//-- modify
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- fin mod : Loewen Enterprise - rate user v 1.0.1  ----------------------------------------------------
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
, u.user_allowavatar, u.user_allowsmile
# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
# 
, u.user_score
#
#-----[ FIND ]------------------------------------------------
#
	$poster_joined = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Joined'] . ': ' . create_date($lang['DATE_FORMAT'], $postrow[$i]['user_regdate'], $board_config['board_timezone']) : '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - rate user v 1.0.1  ----------------------------------------------------
//-- add
	$poster_score_lw = ( $postrow[$i]['user_id'] != ANONYMOUS ) ?  $postrow[$i]['user_score'] : 0;
//-- fin mod : Loewen Enterprise - rate user v 1.0.1  ----------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
	//
	// Replace newlines (we use this rather than nl2br because
	// till recently it wasn't XHTML compliant)
	//
	if ( $user_sig != '' )
	{
		$user_sig = '<br />_________________<br />' . str_replace("\n", "\n<br />\n", $user_sig);
	}

	$message = str_replace("\n", "\n<br />\n", $message);
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - rate user v 1.0.1  ----------------------------------------------------
//-- add
	$cmtstr='';
	if( $postrow[$i]['post_allow_cmt'] > 0 )
	{
		$cmtstr = "<form action=\"lwcommentpost.php\"" . " method=\"post\" name=\"commentpost\" onsubmit=\"if(this.cmt.value == -1) { alert('" . $lang['LW_CHOOSE_SCORE'] . "'); return false;}\"><table width=\"90%\" cellspacing=\"1\" cellpadding=\"3\" border=\"0\" align=\"center\">";
		if($postrow[$i]['post_level'] <= 0 && $postrow[$i]['poster_id'] != $userdata['user_id'])
		{
			$cmtstr .= "<tr><td class=\"quote\" align=left>" . $lang['LW_NO_SCORE'];
		}
		else
		{
			$cmtstr .= "<tr><td class=\"quote\" align=left>" . sprintf($lang['LW_POST_SCORE'], $postrow[$i]['post_level'], $postrow[$i]['post_ccount']);
		}
		$lwpos = strpos($postrow[$i]['post_cmter'], ";" . $userdata['user_id'] . ";");
		if($postrow[$i]['poster_id'] != $userdata['user_id'] && $lwpos === false)
		{
			$cmtstr .= "  <select name=\"cmt\" ><option value=\"-1\">" . $lang['LW_CHOOSE_A_SCORE'] . "</option><option value=\"5\">5 (" . $lang['LW_MAX_SCORE'] . ")</option><option value=\"4\">4" . $lang['LW_SCORE_DIMEN'] . "</option><option value=\"3\">3" . $lang['LW_SCORE_DIMEN'] . "</option><option value=\"2\">2" . $lang['LW_SCORE_DIMEN'] . "</option><option value=\"1\">1" . $lang['LW_SCORE_DIMEN'] . "</option></select>";
			$cmtstr .= "<input type=\"submit\" name=\"comment\" class=\"mainoption\" value=\"GO\" />";
			$cmtstr .= "<input type=\"hidden\" name=\"topicid\" value=\"" . $postrow[$i]['post_id'] . "\" />";
		}
		$cmtstr .= " " . sprintf($lang['LW_COPY_RIGHT_CONLAIM'], $postrow[$i]['username'], $board_config['sitename'] );
		$cmtstr .= "</td></tr>";
		$cmtstr .= "</table></form>";
	}

//-- fin mod : Loewen Enterprise - rate user v 1.0.1  ----------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
		'EDITED_MESSAGE' => $l_edited_by,
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : Loewen Enterprise - rate user v 1.0.1----------------------------------------------------
//-- add
		'POSTER_SCORE_LW' => (($poster_score_lw <= 0 || $poster_score_lw > 5) ? '' : sprintf($lang['LW_USER_SCORE_STARS'], $poster_score_lw, $poster_score_lw)),
		'LW_COMMENT' => $cmtstr,
//-- fin mod : Loewen Enterprise - rate user v 1.0.1 ----------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<script language="JavaScript" type="text/javascript">
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<!-- mod : Loewen Enterprise - Rate User v 1.0.1 -->
#
#-----[ FIND ]------------------------------------------------
#
		  <!-- END switch_notify_checkbox -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
		  <!-- BEGIN switch_lw_allowcmt_checkbox -->
		  <tr> 
			<td> 
			  {S_LW_ALLOWCMT_CHECKED}
			</td>
			<td><span class="gen">{L_LW_ALLOW_CMT}</span></td>
		  </tr>
		  <!-- END switch_lw_allowcmt_checkbox -->
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full lines maybe longer
#
{postrow.MESSAGE}{postrow.SIGNATURE}
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
{postrow.MESSAGE}{postrow.SIGNATURE}
# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
# 
{postrow.LW_COMMENT}
#
#-----[ FIND ]------------------------------------------------
#
#
# this is a partial search : the full lines maybe longer
#
{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}
# 
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------ 
# 
{postrow.POSTER_SCORE_LW}<br />
# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM 
المشرف العام لمنتدى البحارة
http://www.bhr1.com


العودة إلى ”[ ×.2.0 ] الهاكات“

الموجودون الآن

المتصفحون للمنتدى الآن: لا يوجد أعضاء مسجلين متصلين و 5 زوار