مودهاي سودمند phpBB ( آپدیت هفتگی )

وضعیت
موضوع بسته شده است.

Hyper

Active Member
با سلام

از اين پس در اين تاپيك به معرفي مودهاي سودمند كه كمكي اساسي در بهبود كيفيت نسخ مختلف phpBB دارند مي پردازم
همينطور سعي ميكنم در حد توان مودهاي مربوطه را فارسي كرده تا هرچه بيشتر مفيد واقع شوند ...

توجه : لطفا در صورت داشتن هرگونه پرسشي ، سوال خود را در تاپيك مجزا مطرح نماييد
 

Hyper

Active Member
¤ عنوان : تاريخ شمسي
¤ نويسنده : مجيد علوي زاده ( http://www.majidonline.com )
¤ شرح : تبديل تاريخ ميلادي به شمسي در phpBB نسخ مختلف
¤ نسخه : 1.0.1
¤ سطح : ساده
¤ زمان نصب : 10 دقيقه
¤ فايل هاي مورد نياز : 6 فايل
¤ فايل هاي افزودني : 0 فايل
¤ تاريخ : 05 - 11 - 2003
¤ منبع : http://www.phpbb.com/mods

نكته مهم : پيش از ايجاد تغييرات لازم از فايل هاي مورد نياز نسخه پشتيبان تهيه كنيد ...


کد:
# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/functions.php 

# 
#-----[ FIND ]------------------------------------------ 
# 
?> 

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
  
// Hijri Date Calculation 
// Special ThanX to www.iranphp.net for this Function 

function gregorian_to_jalali($g_y, $g_m, $g_d) 
{ 

   global $g_days_in_month; 
   global $j_days_in_month; 

   $g_days_in_month = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); 
   $j_days_in_month = array(31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 29); 


   $div = create_function($a,$b,return (int) ($a / $b);); 

   $gy = $g_y-1600; 
   $gm = $g_m-1; 
   $gd = $g_d-1; 

   $g_day_no = 365*$gy+$div($gy+3,4)-$div($gy+99,100)+$div($gy+399,400); 

   for ($i=0; $i < $gm; ++$i) 
      $g_day_no += $g_days_in_month[$i]; 
   if ($gm>1 && (($gy%4==0 && $gy%100!=0) || ($gy%400==0))) 
      /* leap and after Feb */ 
      $g_day_no++; 
   $g_day_no += $gd; 

   $j_day_no = $g_day_no-79; 

   $j_np = $div($j_day_no, 12053); /* 12053 = 365*33 + 32/4 */ 
   $j_day_no = $j_day_no % 12053; 

   $jy = 979+33*$j_np+4*$div($j_day_no,1461); /* 1461 = 365*4 + 4/4 */ 

   $j_day_no %= 1461; 

   if ($j_day_no >= 366) { 
      $jy += $div($j_day_no-1, 365); 
      $j_day_no = ($j_day_no-1)%365; 
   } 

   for ($i = 0; $i < 11 && $j_day_no >= $j_days_in_month[$i]; ++$i) 
      $j_day_no -= $j_days_in_month[$i]; 
   $jm = $i+1; 
   $jd = $j_day_no+1; 

   return array($jy, $jm, $jd); 

 } 

?> 


# 
#-----[ FIND ]------------------------------------------ 
# 

// 
// Create date/time from format and timezone 
// 
function create_date($format, $gmepoch, $tz) 
{ 
   global $board_config, $lang; 
   static $translate; 

   if ( empty($translate) && $board_config[default_lang] != english ) 
   { 
      @reset($lang[datetime]); 
      while ( list($match, $replace) = @each($lang[datetime]) ) 
      { 
         $translate[$match] = $replace; 
      } 
   } 

   return ( !empty($translate) ) ? strtr(@gmdate($format, $gmepoch + (3600 * $tz)), $translate) : @gmdate($format, $gmepoch + (3600 * $tz)); 
} 


# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 

// 
// Create date/time from timezone in Persian Format 
// 

function user_date_hijri ($format, $gmepoch, $tz){ 

    $format = Y-m-d-D; 

    global $board_config, $lang; 
    static $translate; 

    if ( empty($translate) && $board_config[default_lang] != english ) 
    { 
        @reset($lang[datetime]); 
        while ( list($match, $replace) = @each($lang[datetime]) ) 
        { 
            $translate[$match] = $replace; 
        } 
    } 
        
       $date = ( !empty($translate) ) ? strtr(@gmdate($format, $gmepoch + (3600 * $tz)), $translate) : @gmdate($format, $gmepoch + (3600 * $tz)); 


             list($year, $month, $day, $day2, $hour, $min, $sec) = preg_split (/-/, $date); 

           list( $jyear, $jmonth, $jday ) = gregorian_to_jalali($year, $month, $day); 


   $jmonth = $jmonth-1; 

   $monthnum = array ( $lang[Farvardin], $lang[Ordibehesht], $lang[Khordad],$lang[Tir],$lang[Mordad],$lang[Shahrivar],$lang[Mehr],$lang[Aban],$lang[Azar],$lang[Dey],$lang[Bahman],$lang[Esfand]); 
   $daynum = array ($lang[Yekshanbeh], $lang[Doshanbeh], $lang[Seshanbeh], $lang[Chaharshanbeh], $lang[Panjshanbeh], $lang[Jomeh], $lang[Shanbeh]); 

   $jdate = $day2." ".$jday." ".$monthnum[$jmonth]. " " . $jyear; 



    return $jdate; 

} 

function create_date($format, $gmepoch, $tz) 
{ 

    $format = Y-m-d-D-H-i-s; 
    
    global $board_config, $lang; 
    static $translate; 

    if ( empty($translate) && $board_config[default_lang] != english ) 
    { 
      @reset($lang[datetime]); 
      while ( list($match, $replace) = @each($lang[datetime]) ) 
      { 
         $translate[$match] = $replace; 
      } 
    } 

       $date = ( !empty($translate) ) ? strtr(@gmdate($format, $gmepoch + (3600 * $tz)), $translate) : @gmdate($format, $gmepoch + (3600 * $tz)); 

       list($year, $month, $day, $day2, $hour, $min, $sec) = preg_split (/-/, $date); 

       list( $jyear, $jmonth, $jday ) = gregorian_to_jalali($year, $month, $day); 

       $jdate = $jday."/".$jmonth."/".$jyear; 

   $jmonth = $jmonth-1; 

   $monthnum = array ( $lang[Farvardin], $lang[Ordibehesht], $lang[Khordad],$lang[Tir],$lang[Mordad],$lang[Shahrivar],$lang[Mehr],$lang[Aban],$lang[Azar],$lang[Dey],$lang[Bahman],$lang[Esfand]); 

    $jdate = $day2." ".$jday." ".$monthnum[$jmonth]." ".$jyear ." - ". $hour .":". $min ; 


    return $jdate; 
    
} 


# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/usercp_viewprofile.php 

# 
#-----[ FIND ]------------------------------------------ 
# 
   JOINED => create_date($lang[DATE_FORMAT], $profiledata[user_regdate], $board_config[board_timezone]), 


# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
   JOINED =>   user_date_hijri($lang[DATE_FORMAT], $profiledata[user_regdate], $board_config[board_timezone]), 


# 
#-----[ OPEN ]------------------------------------------ 
# 
memberlist.php 

# 
#-----[ FIND ]------------------------------------------ 
# 
      $joined = create_date($lang[DATE_FORMAT], $row[user_regdate], $board_config[board_timezone]); 


# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
      $joined = user_date_hijri($lang[DATE_FORMAT], $row[user_regdate], $board_config[board_timezone]); 


# 
#-----[ OPEN ]------------------------------------------ 
# 
viewtopic.php 

# 
#-----[ FIND ]------------------------------------------ 
# 
   $poster_joined = ( $postrow[$i][user_id] != ANONYMOUS ) ? $lang[Joined] . :  . create_date($lang[DATE_FORMAT], $postrow[$i][user_regdate], $board_config[board_timezone]) : ; 


# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
   $poster_joined = ( $postrow[$i][user_id] != ANONYMOUS ) ? $lang[Joined] . :  . user_date_hijri ($lang[DATE_FORMAT], $postrow[$i][user_regdate], $board_config[board_timezone]) : ; 


# 
#-----[ OPEN ]------------------------------------------ 
# you should do this for all styles you have 

templates/subSilver/profile_add_body.tpl 

# 
#-----[ FIND, REMOVE ]------------------------------------- 
# 
   <tr> 
     <td class="row1"><span class="gen">{L_DATE_FORMAT}:</span><br /> 
      <span class="gensmall">{L_DATE_FORMAT_EXPLAIN}</span></td> 
     <td class="row2"> 
      <input type="text" name="dateformat" value="{DATE_FORMAT}" maxlength="14" class="post" /> 
     </td> 
   </tr> 

# 
#-----[ OPEN ]------------------------------------------ 
#  We recommend Download phpBB Farsi 

language/lang_xxx/lang_main.php 

# 
#-----[ FIND ]------------------------------------------ 
# 

// 
// Thats all Folks! 
// ------------------------------------------------- 

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

// Hijri Date Mod 
$lang[Shanbeh] = شنبه; 
$lang[Yekshanbeh] = يكشنبه; 
$lang[Doshanbeh] = دوشنبه; 
$lang[Seshanbeh] = سه شنبه; 
$lang[Chaharshanbeh] = چهارشنبه; 
$lang[Panjshanbeh] = پنج شنبه; 
$lang[Jomeh] = جمعه; 

$lang[Farvardin] = فروردين; 
$lang[Ordibehesht] = ارديبهشت; 
$lang[Khordad] = خرداد; 
$lang[Tir] = تير; 
$lang[Mordad] = مرداد; 
$lang[Shahrivar] = شهريور; 
$lang[Mehr] = مهر; 
$lang[Aban] = آبان; 
$lang[Azar] = آذر; 
$lang[Dey] = دي; 
$lang[Bahman] = بهمن; 
$lang[Esfand] = اسفند; 


# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM
 

Hyper

Active Member
¤ عنوان : كدهاي bbCode يا bbcode_box for phpBB2
¤ نويسنده : AL Tnen
¤ شرح : افزودن كدهاي پيشرفته به ويرايشگر phpBB
¤ نسخه : 4.5.0
¤ سطح : ساده
¤ زمان نصب : 10 دقيقه
¤ فايل هاي مورد نياز : 3 فايل
¤ فايل هاي افزودني : 43 فايل
¤ تاريخ :
¤ منبع : http://www.phpbbhacks.com

نكته مهم : پيش از ايجاد تغييرات لازم از فايل هاي مورد نياز نسخه پشتيبان تهيه كنيد ...

دريافت :
کد:
http://www.bf1942.cl/images/pepe/bbcode_box.rar
 

Hyper

Active Member
¤ عنوان : سيستم اخطار يا Yellow card
¤ نويسنده : Niels
¤ شرح : سيستم اخطار و اخراج كاربران خاطي
¤ نسخه : 1.4.11
¤ سطح : متوسط
¤ زمان نصب : 40 دقيقه
¤ فايل هاي مورد نياز : 22 فايل
¤ فايل هاي افزودني : 16 فايل
¤ تاريخ :
¤ منبع : http://www.phpbbhacks.com

نكته مهم : پيش از ايجاد تغييرات لازم از فايل هاي مورد نياز نسخه پشتيبان تهيه كنيد ...

دريافت :
کد:
http://www.phpbbhacks.com/download/220
 

Hyper

Active Member
¤ عنوان : جستجو فقط در عنوان تاپيك يا Search Topic Title Only
¤ نويسنده : Acyd Burn
¤ شرح : جستجوي كلمات كليدي مورد نظر فقط در نام تاپيك ها
¤ نسخه : 1.0.1
¤ سطح : ساده
¤ زمان نصب : 5 دقيقه
¤ فايل هاي مورد نياز : 3 فايل
¤ فايل هاي افزودني : 0 فايل
¤ تاريخ : 24 - 09 - 2002
¤ منبع : http://www.phpbbhacks.com

نكته مهم : پيش از ايجاد تغييرات لازم از فايل هاي مورد نياز نسخه پشتيبان تهيه كنيد ...


کد:
# 
#-----[ OPEN ]--------------------------------------------- 
# 
language/lang_english/lang_main.php

#
#-----[ FIND ]---------------------------------------------
# at the very end
// 
// Thats all Folks! 

# 
#-----[ BEFORE, ADD ]--------------------------------------
# 
$lang[Search_title_only] = جستجو تنها در عنوان نامه ها;

# 
#-----[ OPEN ]--------------------------------------------- 
# 
templates/subSilver/search_body.tpl

#
#-----[ FIND ]---------------------------------------------
# around line 31
		<td class="row2" valign="middle"><span class="genmed"><select class="post" name="search_time">{S_TIME_OPTIONS}</select><br /><input type="radio" name="search_fields" value="all" checked="checked" /> {L_SEARCH_MESSAGE_TITLE}<br /><input type="radio" name="search_fields" value="msgonly" /> {L_SEARCH_MESSAGE_ONLY}</span></td>

# 
#-----[ REPLACE WITH ]---------------------------------------
# 
		<td class="row2" valign="middle"><span class="genmed"><select class="post" name="search_time">{S_TIME_OPTIONS}</select><br /><input type="radio" name="search_fields" value="all" checked="checked" /> {L_SEARCH_MESSAGE_TITLE}<br /><input type="radio" name="search_fields" value="msgonly" /> {L_SEARCH_MESSAGE_ONLY}<br /><input type="radio" name="search_fields" value="titleonly" /> {L_SEARCH_TITLE_ONLY}</span></td>

# 
#-----[ OPEN ]--------------------------------------------- 
# 
search.php

#
#-----[ FIND ]---------------------------------------------
# around line 84
	$search_fields = ( $HTTP_POST_VARS[search_fields] == all ) ? 1 : 0;

# 
#-----[ REPLACE WITH ]---------------------------------------
# 
	$search_fields = ( $HTTP_POST_VARS[search_fields] == all ) ? 1 : ( ( $HTTP_POST_VARS[search_fields] == msgonly ) ? 0 : 2 );

#
#-----[ FIND ]---------------------------------------------
# around line 278
							$sql = "SELECT m.post_id 
								FROM " . SEARCH_WORD_TABLE . " w, " . SEARCH_MATCH_TABLE . " m 
								WHERE w.word_text LIKE $match_word 
									AND m.word_id = w.word_id 
									AND w.word_common <> 1 
									$search_msg_only";

# 
#-----[ REPLACE WITH ]------------------------------------------
# 
							$search_match = ( $search_fields == 0 ) ? "w.word_text LIKE $match_word AND m.title_match = 0" : ( ( $search_fields == 1) ? "w.word_text LIKE $match_word" : "w.word_text LIKE $match_word AND m.title_match = 1" );
							$sql = "SELECT m.post_id 
								FROM " . SEARCH_WORD_TABLE . " w, " . SEARCH_MATCH_TABLE . " m 
								WHERE " . $search_match . "
									AND m.word_id = w.word_id 
									AND w.word_common <> 1";

#
#-----[ FIND ]---------------------------------------------
# around line 288
							$search_msg_only = ( $search_fields ) ? "OR post_subject LIKE $match_word" : ;
							$sql = "SELECT post_id
								FROM " . POSTS_TEXT_TABLE . "
								WHERE post_text LIKE $match_word
								$search_msg_only";

# 
#-----[ REPLACE WITH ]--------------------------------------
# 
							$search_match = ( $search_fields == 0 ) ? "post_text LIKE $match_word" : ( ( $search_fields == 1) ? "post_text LIKE $match_word OR post_subject LIKE $match_word" : "post_subject LIKE $match_word" );
							$sql = "SELECT post_id
								FROM " . POSTS_TEXT_TABLE . "
								WHERE " . $search_match;

#
#-----[ FIND ]---------------------------------------------
# around line 1341
	L_SEARCH_MESSAGE_ONLY => $lang[Search_msg_only], 

# 
#-----[ AFTER, ADD ]--------------------------------------
# 
	L_SEARCH_TITLE_ONLY => $lang[Search_title_only],


# EOM
 

Hyper

Active Member
¤ عنوان : نمايش تاپيك هاي ارسالي كابر يا Topics a user has started
¤ نويسنده : Manipe
¤ شرح : نمايش مباحثي كه توسط كاربر شروع شده است ( تاپيك ها )
¤ نسخه : 1.4.0
¤ سطح : ساده
¤ زمان نصب : 5 دقيقه
¤ فايل هاي مورد نياز : 8 فايل
¤ فايل هاي افزودني : 0 فايل
¤ تاريخ : 2004-25-08
¤ منبع : http://www.phpbb.com/mods

نكته مهم : پيش از ايجاد تغييرات لازم از فايل هاي مورد نياز نسخه پشتيبان تهيه كنيد ...


کد:
# 
#-----[ OPEN ]------------------------------------------
# 
includes/usercp_viewprofile.php

#
#-----[ FIND ]------------------------------------------
# 
$search = <a href=" . $temp_url . "> . $lang[Search_user_posts] . </a>;

#
#-----[ AFTER, ADD ]------------------------------------------
# 
// Topics a user has started MOD, By Manipe (Begin)
$sql = "SELECT COUNT(*) as topic_count FROM " . TOPICS_TABLE . " WHERE topic_poster = " . $profiledata[user_id] . "";
if ( !($result = $db->sql_query($sql)) )
{
 	message_die(GENERAL_ERROR, Could not obtain topics started information, , __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$topics_started =  ( $row[topic_count] ) ? $row[topic_count] : 0;
$db->sql_freeresult($result);
$sql = "SELECT COUNT(*) as total_topic_count FROM " . TOPICS_TABLE;
if ( !($result = $db->sql_query($sql)) )
{
 	message_die(GENERAL_ERROR, Could not obtain topics started information, , __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$total_topics =  ( $row[total_topic_count] ) ? $row[total_topic_count] : 0;
$topics_percentage = ( $total_topics ) ? min(100, ($topics_started / $total_topics) * 100) : 0;
$topics_per_day = $topics_started / $memberdays;
$db->sql_freeresult($result);
// Topics a user has started MOD, By Manipe (End)

#
#-----[ FIND ]------------------------------------------
# 
	YIM_IMG => $yim_img,
	YIM => $yim,

#
#-----[ AFTER, ADD ]------------------------------------------
# 
// Topics a user has started MOD, By Manipe (Begin)
	TOPICS_STARTED => $topics_started,
	L_TOPICS_STARTED => $lang[Topics_Started],
	L_SEARCH_USER_TOPICS => sprintf($lang[Search_user_topics], $profiledata[username]), 
	U_SEARCH_USER_TOPICS => append_sid("search.$phpEx?search_id=usertopics&user=" . urlencode($profiledata[user_id])),
	TOPIC_DAY_STATS => sprintf($lang[User_topic_day_stats], $topics_per_day), 
	TOPIC_PERCENT_STATS => sprintf($lang[User_topic_pct_stats], $topics_percentage), 
// Topics a user has started MOD, By Manipe (End)

#
#-----[ OPEN ]------------------------------------------
# 
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
# 
//
// Thats all, Folks!

#
#-----[ BEFORE, ADD ]------------------------------------------
# 
// Topics a user has started MOD, By Manipe (Begin)
$lang[Topics_Started] = موضوعات ارسالي;
$lang[Search_user_topics] = نمايش تمامي مباحث ارسال شده توسط  [ %s ] ;
$lang[User_topic_pct_stats] = %.2f%% از مجموع;
$lang[User_topic_day_stats] = %.2f موضوع در روز;
$lang[Memberlist_topics_started] = موضوعات;
$lang[Total_topics_started_index] =  در <b>%d</b> موضوع;
// Topics a user has started MOD, By Manipe (End)

# 
#-----[ OPEN ]------------------------------------------
# 
templates/subSilver/profile_view_body.tpl

#
#-----[ FIND ]------------------------------------------
# 
		<tr> 
		  <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_LOCATION}:&nbsp;</span></td>
		  <td><b><span class="gen">{LOCATION}</span></b></td>
		</tr>

#
#-----[ BEFORE, ADD ]------------------------------------------
# 
		<tr> 
		  <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_TOPICS_STARTED}:&nbsp;</span></td>
		  <td><b><span class="gen">{TOPICS_STARTED}</span></b><br /><span class="genmedred">[{TOPIC_PERCENT_STATS} / {TOPIC_DAY_STATS}]</span> <br /><span class="genmed"><a href="{U_SEARCH_USER_TOPICS}" class="genmed">{L_SEARCH_USER_TOPICS}</a></span></td>
		</tr>

# 
#-----[ OPEN ]------------------------------------------
# 
search.php

#
#-----[ FIND ]------------------------------------------
#
#Note: full line is longer
	if ( $search_id == newposts || $search_id == egosearch || $search_id == unanswered

# 
#-----[ IN-LINE FIND ]------------------------------------------
# 
)

# 
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
# 
 || $search_id == usertopics


# 
#-----[ FIND ]------------------------------------------
# 
#Note: full line is longer
		if ( $search_id == newposts || $search_id == egosearch

# 
#-----[ IN-LINE FIND ]------------------------------------------
# 
( $search_author !=

# 
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
# 
$search_id == usertopics || 

# 
#-----[ FIND ]------------------------------------------
# 
				else
				{
					redirect(append_sid("login.$phpEx?redirect=search.$phpEx&search_id=newposts", true));
				}

				$show_results = topics;
				$sort_by = 0;
				$sort_dir = DESC;
			}



#
#-----[ AFTER, ADD ]------------------------------------------
# 
// Topics a user has started MOD, By Manipe (Begin)
			else if ( $search_id == usertopics )
			{
				$user = ( !empty($HTTP_GET_VARS[user]) ) ? intval($HTTP_GET_VARS[user]) : 0;
				$sql = "SELECT p.post_id
					FROM " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t
					WHERE t.topic_poster = " . $user . " AND
					p.post_id = t.topic_first_post_id";

				$show_results = topics;
				$sort_by = 0;
				$sort_dir = DESC;
			}
// Topics a user has started MOD, By Manipe (End)

# 
#-----[ OPEN ]------------------------------------------
# 
memberlist.php

# 
#-----[ FIND ]------------------------------------------
# 
	L_PM => $lang[Private_Message], 

#
#-----[ AFTER, ADD ]------------------------------------------
# 
// Topics a user has started MOD, By Manipe (Begin)
	L_TOPICS => $lang[Memberlist_topics_started],
// Topics a user has started MOD, By Manipe (End)

# 
#-----[ FIND ]------------------------------------------
# 
		$search = <a href=" . $temp_url . "> . $lang[Search_user_posts] . </a>;

#
#-----[ AFTER, ADD ]------------------------------------------
# 
// Topics a user has started MOD, By Manipe (Begin)
		$sql2 = "SELECT COUNT(*) as topic_count FROM " . TOPICS_TABLE . " WHERE topic_poster = " . $user_id . "";
		if ( !($result2 = $db->sql_query($sql2)) )
		{
			message_die(GENERAL_ERROR, Could not obtain topics started information, , __LINE__, __FILE__, $sql);
		}
		$row2 = $db->sql_fetchrow($result2);
		$topics_started =  ( $row2[topic_count] ) ? $row2[topic_count] : 0;
		$db->sql_freeresult($result2);
// Topics a user has started MOD, By Manipe (End)

# 
#-----[ FIND ]------------------------------------------
# 
			YIM => $yim,

#
#-----[ AFTER, ADD ]------------------------------------------
# 
// Topics a user has started MOD, By Manipe (Begin)
			TOPICS_STARTED => $topics_started,
// Topics a user has started MOD, By Manipe (End)

# 
#-----[ OPEN ]------------------------------------------
# 
templates/subSilver/memberlist_body.tpl

# 
#-----[ FIND ]------------------------------------------
# 
	</tr>
	<!-- BEGIN memberrow -->

#
#-----[ BEFORE, ADD ]------------------------------------------
# 
	  <th class="thCornerR" nowrap="nowrap">{L_TOPICS}</th>

# 
#-----[ FIND ]------------------------------------------
# 
	</tr>
	<!-- END memberrow -->

#
#-----[ BEFORE, ADD ]------------------------------------------
# 
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.TOPICS_STARTED}</span></td>

# 
#-----[ OPEN ]------------------------------------------
# 
index.php

# 
#-----[ FIND ]------------------------------------------
# 
$newest_user = $newest_userdata[username];
$newest_uid = $newest_userdata[user_id];

#
#-----[ AFTER, ADD ]------------------------------------------
#
// Topics a user has started MOD, by Manipe (Begin)
$sql = "SELECT COUNT(*) as topic_count FROM " . TOPICS_TABLE;
if ( !($result = $db->sql_query($sql)) )
{
 	message_die(GENERAL_ERROR, Could not obtain topics started information, , __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$total_topics =  ( $row[topic_count] ) ? $row[topic_count] : 0;
$db->sql_freeresult($result);
// Topics a user has started MOD, by Manipe (End)

# 
#-----[ FIND ]------------------------------------------
# 
		TOTAL_POSTS => sprintf($l_total_post_s, $total_posts),

#
#-----[ AFTER, ADD ]------------------------------------------
#

// Topics a user has started MOD, By Manipe (Begin)
		TOTAL_TOPICS => sprintf($lang[Total_topics_started_index], $total_topics),
// Topics a user has started MOD, By Manipe (End)

# 
#-----[ OPEN ]------------------------------------------
# 
templates/subSilver/index_body.tpl

# 
#-----[ FIND ]------------------------------------------
# 
{TOTAL_POSTS}

# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
# 
{TOTAL_TOPICS}


# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 

# EoM
 

Hyper

Active Member
¤ عنوان : نمايش تمامي موضوعات ارسال شده كاربران يا Total Post Count
¤ نويسنده : JSLayton
¤ شرح : نمايش تمامي موضوعات ارسال شده كاربران در قسمت كاربران آنلاين
¤ نسخه : 1.0.0
¤ سطح : ساده
¤ زمان نصب : 5 دقيقه
¤ فايل هاي مورد نياز : 8 فايل
¤ فايل هاي افزودني : 0 فايل
¤ تاريخ :
¤ منبع : http://www.webloungin.com

نكته مهم : پيش از ايجاد تغييرات لازم از فايل هاي مورد نياز نسخه پشتيبان تهيه كنيد ...

دريافت :
کد:
http://www.phpbbhacks.com/download/2368
 

Hyper

Active Member
¤ عنوان : نمايش تمامي پاسخ ها و بازديدها يا total replies and views in viewtopic
¤ نويسنده : emrag
¤ شرح : نمايش تمامي بازديدها و پاسخ ها در viewtopic
¤ نسخه : 1.0.0
¤ سطح : ساده
¤ زمان نصب : 5 دقيقه
¤ فايل هاي مورد نياز : 3 فايل
¤ فايل هاي افزودني : 0 فايل
¤ تاريخ :
¤ منبع : www.canver.net

نكته مهم : پيش از ايجاد تغييرات لازم از فايل هاي مورد نياز نسخه پشتيبان تهيه كنيد ...


کد:
# 
#-----[ OPEN ]------------------------------------------ 
# 

viewtopic.php

#
#----[ FIND ]------------------------------------------ 
#

//
// Go ahead and pull all data for this topic
//

#
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

// total replies and views by emrag

$sql = "SELECT topic_replies, topic_views
	FROM " . TOPICS_TABLE . "
	WHERE topic_id = $topic_id";

if( !($result = $db->sql_query($sql)) )
{
	message_die(GENERAL_ERROR, Could not query users, , __LINE__, __FILE__, $sql);
}

	$row = $db->sql_fetchrow($result); 
	$topic_replies = $row[topic_replies];
	$topic_views = $row[topic_views];

// total replies and views by emrag

#
#----[ FIND ]------------------------------------------ 
#

//
// Send vars to template
//
$template->assign_vars(array(
	FORUM_ID => $forum_id,
	FORUM_NAME => $forum_name,
	TOPIC_ID => $topic_id,
	TOPIC_TITLE => $topic_title,

#
#-----[ AFTER, ADD ]------------------------------------------ 
# 

	TOPIC_REPLIES => $topic_replies,
	TOPIC_VIEWS => $topic_views,

#
#----[ FIND ]------------------------------------------ 
#

	L_AUTHOR => $lang[Author],
	L_MESSAGE => $lang[Message],
	L_POSTED => $lang[Posted],

#
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

	L_REPLIES => $lang[Replies],
	L_VIEWS => $lang[Views],

# 
#-----[ OPEN ]------------------------------------------ 
# 

templates/subsilver/viewtopic_body.tpl

#
#----[ FIND ]------------------------------------------ 
#

<a class="maintitle" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a>

#
#----[ AFTER, ADD ]------------------------------------------ 
#

<span class="nav"> - {L_REPLIES}: {TOPIC_REPLIES} | {L_VIEWS}: {TOPIC_VIEWS}</span>

#
#----[ NOTE ]------------------------------------------ 
#

if you want you can change "- {L_REPLIES}: {TOPIC_REPLIES} | {L_VIEWS}: {TOPIC_VIEWS}" s place and class.

#
#-----[ SAVE ALL FILES/CLOSE ]------------------------------------------ 
#
# EoM
 

Hyper

Active Member
¤ عنوان : نمايش بازديدكنندگان موضوع يا Who viewed a topic
¤ نويسنده : Niels
¤ شرح : نمايش تمامي افرادي كه از موضوع ( تاپيك ) ديدن كرده اند
¤ نسخه : 1.0.3
¤ سطح : ساده
¤ زمان نصب : 5 دقيقه
¤ فايل هاي مورد نياز : 8 فايل
¤ فايل هاي افزودني : 4 فايل
¤ تاريخ :
¤ منبع : http://www.phpbb.com/mods

نكته مهم : پيش از ايجاد تغييرات لازم از فايل هاي مورد نياز نسخه پشتيبان تهيه كنيد ...

دريافت :
کد:
http://www.phpbbhacks.com/download/1012
 

Hyper

Active Member
¤ عنوان : نمايش كاربران فعال يا Users of the day
¤ نويسنده : ZoZo
¤ شرح : نمايش كاربران فعال ظرف مدت خاص ( همچنين غيرفعال )
¤ نسخه : 1.0.3
¤ سطح : ساده
¤ زمان نصب : 5 دقيقه
¤ فايل هاي مورد نياز : 3 فايل
¤ فايل هاي افزودني : 0 فايل
¤ تاريخ : October 22th 2004
¤ منبع : http://www.phpbbhacks.com

نكته مهم : پيش از ايجاد تغييرات لازم از فايل هاي مورد نياز نسخه پشتيبان تهيه كنيد ...


کد:
# 
#-----[ ACTION: open ]---------------------------------
# 
/templates/subSilver/index_body.tpl
# 
#-----[ ACTION: find ]---------------------------------
# 
	<td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
# 
#-----[ ACTION: replace by ]---------------------------
# 
	<td class="row1" align="center" valign="middle" rowspan="3"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
# 
#-----[ ACTION: find ]---------------------------------
# 
 	<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
# 
#-----[ ACTION: add after ]----------------------------
# 
  </tr>
  <tr> 
	<td class="row1" align="left"><span class="gensmall">{USERS_OF_THE_DAY_LIST}</span></td>
# 
#-----[ ACTION: repeat for all templates ]-------------
# 



# 
#-----[ ACTION: open ]--------------------------------
# 
/language/lang_english/lang_main.php
# 
#-----[ ACTION: find ]--------------------------------
# 
$lang[Registered_users] = Registered Users:;
# 
#-----[ ACTION: add before ]--------------------------
# 
$lang[Day_users] = %d registered users visit during the last %d hours:;
$lang[Not_day_users] = %d registered users <span style="color:red">DIDNT</span> visit during the last %d hours:;
# 
#-----[ ACTION: repeat for all languages ]------------
# 



# 
#-----[ ACTION: open ]--------------------------------
# 
/includes/page_header.php
# 
#-----[ ACTION: find ]--------------------------------
# 
	LOGGED_IN_USER_LIST => $online_userlist,
# 
#-----[ ACTION: add after ]---------------------------
# 
	USERS_OF_THE_DAY_LIST => $day_userlist,
# 
#-----[ ACTION: find ]--------------------------------
# 
//
// Obtain number of new private messages
// if user is logged in
//
# 
#-----[ ACTION: add before ]--------------------------
# 
//
// Users of the day MOD
//

// ############ Edit below ############
// #
$display_not_day_userlist = 0;	// change to 1 here if you also want the list of the users who didnt visit to be displayed
$users_list_delay = 24;		// change here to the number of hours wanted for the list
// #
// ############ Edit above ############

$sql = "SELECT user_id, username, user_allow_viewonline, user_level, user_session_time
	FROM ".USERS_TABLE."
	WHERE user_id > 0
	ORDER BY IF(user_level=1,3,user_level) DESC, username ASC";
if( !($result = $db->sql_query($sql)) )
{
	message_die(GENERAL_ERROR, Could not obtain user/day information, , __LINE__, __FILE__, $sql);
}

$day_userlist = ;
$day_users = 0;
$not_day_userlist = ;
$not_day_users = 0;

while( $row = $db->sql_fetchrow($result) )
{
	$style_color = ;
	if ( $row[user_level] == ADMIN )
	{
		$row[username] = <b> . $row[username] . </b>;
		$style_color = style="color:# . $theme[fontcolor3] . ";
	}
	else if ( $row[user_level] == MOD )
	{
		$row[username] = <b> . $row[username] . </b>;
		$style_color = style="color:# . $theme[fontcolor2] . ";
	}
	if ( $row[user_allow_viewonline] )
	{
		$user_day_link = <a href=" . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $row[user_id]) . " . $style_color .> . $row[username] . </a>;
	}
	else
	{
		$user_day_link = <a href=" . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $row[user_id]) . " . $style_color .><i> . $row[username] . </i></a>;
	}
	if ( $row[user_allow_viewonline] || $userdata[user_level] == ADMIN )
	{
		if ( $row[user_session_time] >= ( time() - $users_list_delay * 3600 ) )
		{
			$day_userlist .= ( $day_userlist !=  ) ? ,  . $user_day_link : $user_day_link;
			$day_users++;
		}
		else
		{
			$not_day_userlist .= ( $not_day_userlist !=  ) ? ,  . $user_day_link : $user_day_link;
			$not_day_users++;
		}
	}
}

$day_userlist = ( ( isset($forum_id) ) ?  : sprintf($lang[Day_users], $day_users, $users_list_delay) ) .   . $day_userlist;

$not_day_userlist = ( ( isset($forum_id) ) ?  : sprintf($lang[Not_day_users], $not_day_users, $users_list_delay) ) .   . $not_day_userlist;

if ( $display_not_day_userlist )
{
	$day_userlist .= <br /> . $not_day_userlist;
}

//
// End of MOD
//



# 
#-----[ ACTION: save/close all ]----------------------
#
 

Hyper

Active Member
¤ عنوان : سيستم اخطار يا Yellow card
¤ نويسنده : Niels
¤ شرح : سيستم اخطار و اخراج كاربران خاطي
¤ نسخه : 1.4.11
¤ سطح : متوسط
¤ زمان نصب : 40 دقيقه
¤ فايل هاي مورد نياز : 22 فايل
¤ فايل هاي افزودني : 16 فايل
¤ تاريخ :
¤ منبع : http://www.phpbbhacks.com

نكته مهم : پيش از ايجاد تغييرات لازم از فايل هاي مورد نياز نسخه پشتيبان تهيه كنيد ...

دريافت :
کد:
http://www.phpbbhacks.com/download/220
 

Hyper

Active Member
¤ عنوان : جستجو فقط در عنوان تاپيك يا Search Topic Title Only
¤ نويسنده : Acyd Burn
¤ شرح : جستجوي كلمات كليدي مورد نظر فقط در نام تاپيك ها
¤ نسخه : 1.0.1
¤ سطح : ساده
¤ زمان نصب : 5 دقيقه
¤ فايل هاي مورد نياز : 3 فايل
¤ فايل هاي افزودني : 0 فايل
¤ تاريخ : 24 - 09 - 2002
¤ منبع : http://www.phpbbhacks.com

نكته مهم : پيش از ايجاد تغييرات لازم از فايل هاي مورد نياز نسخه پشتيبان تهيه كنيد ...


کد:
# 
#-----[ OPEN ]--------------------------------------------- 
# 
language/lang_english/lang_main.php

#
#-----[ FIND ]---------------------------------------------
# at the very end
// 
// Thats all Folks! 

# 
#-----[ BEFORE, ADD ]--------------------------------------
# 
$lang[Search_title_only] = جستجو تنها در عنوان نامه ها;

# 
#-----[ OPEN ]--------------------------------------------- 
# 
templates/subSilver/search_body.tpl

#
#-----[ FIND ]---------------------------------------------
# around line 31
		<td class="row2" valign="middle"><span class="genmed"><select class="post" name="search_time">{S_TIME_OPTIONS}</select><br /><input type="radio" name="search_fields" value="all" checked="checked" /> {L_SEARCH_MESSAGE_TITLE}<br /><input type="radio" name="search_fields" value="msgonly" /> {L_SEARCH_MESSAGE_ONLY}</span></td>

# 
#-----[ REPLACE WITH ]---------------------------------------
# 
		<td class="row2" valign="middle"><span class="genmed"><select class="post" name="search_time">{S_TIME_OPTIONS}</select><br /><input type="radio" name="search_fields" value="all" checked="checked" /> {L_SEARCH_MESSAGE_TITLE}<br /><input type="radio" name="search_fields" value="msgonly" /> {L_SEARCH_MESSAGE_ONLY}<br /><input type="radio" name="search_fields" value="titleonly" /> {L_SEARCH_TITLE_ONLY}</span></td>

# 
#-----[ OPEN ]--------------------------------------------- 
# 
search.php

#
#-----[ FIND ]---------------------------------------------
# around line 84
	$search_fields = ( $HTTP_POST_VARS[search_fields] == all ) ? 1 : 0;

# 
#-----[ REPLACE WITH ]---------------------------------------
# 
	$search_fields = ( $HTTP_POST_VARS[search_fields] == all ) ? 1 : ( ( $HTTP_POST_VARS[search_fields] == msgonly ) ? 0 : 2 );

#
#-----[ FIND ]---------------------------------------------
# around line 278
							$sql = "SELECT m.post_id 
								FROM " . SEARCH_WORD_TABLE . " w, " . SEARCH_MATCH_TABLE . " m 
								WHERE w.word_text LIKE $match_word 
									AND m.word_id = w.word_id 
									AND w.word_common <> 1 
									$search_msg_only";

# 
#-----[ REPLACE WITH ]------------------------------------------
# 
							$search_match = ( $search_fields == 0 ) ? "w.word_text LIKE $match_word AND m.title_match = 0" : ( ( $search_fields == 1) ? "w.word_text LIKE $match_word" : "w.word_text LIKE $match_word AND m.title_match = 1" );
							$sql = "SELECT m.post_id 
								FROM " . SEARCH_WORD_TABLE . " w, " . SEARCH_MATCH_TABLE . " m 
								WHERE " . $search_match . "
									AND m.word_id = w.word_id 
									AND w.word_common <> 1";

#
#-----[ FIND ]---------------------------------------------
# around line 288
							$search_msg_only = ( $search_fields ) ? "OR post_subject LIKE $match_word" : ;
							$sql = "SELECT post_id
								FROM " . POSTS_TEXT_TABLE . "
								WHERE post_text LIKE $match_word
								$search_msg_only";

# 
#-----[ REPLACE WITH ]--------------------------------------
# 
							$search_match = ( $search_fields == 0 ) ? "post_text LIKE $match_word" : ( ( $search_fields == 1) ? "post_text LIKE $match_word OR post_subject LIKE $match_word" : "post_subject LIKE $match_word" );
							$sql = "SELECT post_id
								FROM " . POSTS_TEXT_TABLE . "
								WHERE " . $search_match;

#
#-----[ FIND ]---------------------------------------------
# around line 1341
	L_SEARCH_MESSAGE_ONLY => $lang[Search_msg_only], 

# 
#-----[ AFTER, ADD ]--------------------------------------
# 
	L_SEARCH_TITLE_ONLY => $lang[Search_title_only],


# EOM
 

Hyper

Active Member
¤ عنوان : نمايش تاپيك هاي ارسالي كابر يا Topics a user has started
¤ نويسنده : Manipe
¤ شرح : نمايش مباحثي كه توسط كاربر شروع شده است ( تاپيك ها )
¤ نسخه : 1.4.0
¤ سطح : ساده
¤ زمان نصب : 5 دقيقه
¤ فايل هاي مورد نياز : 8 فايل
¤ فايل هاي افزودني : 0 فايل
¤ تاريخ : 2004-25-08
¤ منبع : http://www.phpbb.com/mods

نكته مهم : پيش از ايجاد تغييرات لازم از فايل هاي مورد نياز نسخه پشتيبان تهيه كنيد ...


کد:
# 
#-----[ OPEN ]------------------------------------------
# 
includes/usercp_viewprofile.php

#
#-----[ FIND ]------------------------------------------
# 
$search = <a href=" . $temp_url . "> . $lang[Search_user_posts] . </a>;

#
#-----[ AFTER, ADD ]------------------------------------------
# 
// Topics a user has started MOD, By Manipe (Begin)
$sql = "SELECT COUNT(*) as topic_count FROM " . TOPICS_TABLE . " WHERE topic_poster = " . $profiledata[user_id] . "";
if ( !($result = $db->sql_query($sql)) )
{
 	message_die(GENERAL_ERROR, Could not obtain topics started information, , __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$topics_started =  ( $row[topic_count] ) ? $row[topic_count] : 0;
$db->sql_freeresult($result);
$sql = "SELECT COUNT(*) as total_topic_count FROM " . TOPICS_TABLE;
if ( !($result = $db->sql_query($sql)) )
{
 	message_die(GENERAL_ERROR, Could not obtain topics started information, , __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$total_topics =  ( $row[total_topic_count] ) ? $row[total_topic_count] : 0;
$topics_percentage = ( $total_topics ) ? min(100, ($topics_started / $total_topics) * 100) : 0;
$topics_per_day = $topics_started / $memberdays;
$db->sql_freeresult($result);
// Topics a user has started MOD, By Manipe (End)

#
#-----[ FIND ]------------------------------------------
# 
	YIM_IMG => $yim_img,
	YIM => $yim,

#
#-----[ AFTER, ADD ]------------------------------------------
# 
// Topics a user has started MOD, By Manipe (Begin)
	TOPICS_STARTED => $topics_started,
	L_TOPICS_STARTED => $lang[Topics_Started],
	L_SEARCH_USER_TOPICS => sprintf($lang[Search_user_topics], $profiledata[username]), 
	U_SEARCH_USER_TOPICS => append_sid("search.$phpEx?search_id=usertopics&user=" . urlencode($profiledata[user_id])),
	TOPIC_DAY_STATS => sprintf($lang[User_topic_day_stats], $topics_per_day), 
	TOPIC_PERCENT_STATS => sprintf($lang[User_topic_pct_stats], $topics_percentage), 
// Topics a user has started MOD, By Manipe (End)

#
#-----[ OPEN ]------------------------------------------
# 
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
# 
//
// Thats all, Folks!

#
#-----[ BEFORE, ADD ]------------------------------------------
# 
// Topics a user has started MOD, By Manipe (Begin)
$lang[Topics_Started] = موضوعات ارسالي;
$lang[Search_user_topics] = نمايش تمامي مباحث ارسال شده توسط  [ %s ] ;
$lang[User_topic_pct_stats] = %.2f%% از مجموع;
$lang[User_topic_day_stats] = %.2f موضوع در روز;
$lang[Memberlist_topics_started] = موضوعات;
$lang[Total_topics_started_index] =  در <b>%d</b> موضوع;
// Topics a user has started MOD, By Manipe (End)

# 
#-----[ OPEN ]------------------------------------------
# 
templates/subSilver/profile_view_body.tpl

#
#-----[ FIND ]------------------------------------------
# 
		<tr> 
		  <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_LOCATION}:&nbsp;</span></td>
		  <td><b><span class="gen">{LOCATION}</span></b></td>
		</tr>

#
#-----[ BEFORE, ADD ]------------------------------------------
# 
		<tr> 
		  <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_TOPICS_STARTED}:&nbsp;</span></td>
		  <td><b><span class="gen">{TOPICS_STARTED}</span></b><br /><span class="genmedred">[{TOPIC_PERCENT_STATS} / {TOPIC_DAY_STATS}]</span> <br /><span class="genmed"><a href="{U_SEARCH_USER_TOPICS}" class="genmed">{L_SEARCH_USER_TOPICS}</a></span></td>
		</tr>

# 
#-----[ OPEN ]------------------------------------------
# 
search.php

#
#-----[ FIND ]------------------------------------------
#
#Note: full line is longer
	if ( $search_id == newposts || $search_id == egosearch || $search_id == unanswered

# 
#-----[ IN-LINE FIND ]------------------------------------------
# 
)

# 
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
# 
 || $search_id == usertopics


# 
#-----[ FIND ]------------------------------------------
# 
#Note: full line is longer
		if ( $search_id == newposts || $search_id == egosearch

# 
#-----[ IN-LINE FIND ]------------------------------------------
# 
( $search_author !=

# 
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
# 
$search_id == usertopics || 

# 
#-----[ FIND ]------------------------------------------
# 
				else
				{
					redirect(append_sid("login.$phpEx?redirect=search.$phpEx&search_id=newposts", true));
				}

				$show_results = topics;
				$sort_by = 0;
				$sort_dir = DESC;
			}



#
#-----[ AFTER, ADD ]------------------------------------------
# 
// Topics a user has started MOD, By Manipe (Begin)
			else if ( $search_id == usertopics )
			{
				$user = ( !empty($HTTP_GET_VARS[user]) ) ? intval($HTTP_GET_VARS[user]) : 0;
				$sql = "SELECT p.post_id
					FROM " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t
					WHERE t.topic_poster = " . $user . " AND
					p.post_id = t.topic_first_post_id";

				$show_results = topics;
				$sort_by = 0;
				$sort_dir = DESC;
			}
// Topics a user has started MOD, By Manipe (End)

# 
#-----[ OPEN ]------------------------------------------
# 
memberlist.php

# 
#-----[ FIND ]------------------------------------------
# 
	L_PM => $lang[Private_Message], 

#
#-----[ AFTER, ADD ]------------------------------------------
# 
// Topics a user has started MOD, By Manipe (Begin)
	L_TOPICS => $lang[Memberlist_topics_started],
// Topics a user has started MOD, By Manipe (End)

# 
#-----[ FIND ]------------------------------------------
# 
		$search = <a href=" . $temp_url . "> . $lang[Search_user_posts] . </a>;

#
#-----[ AFTER, ADD ]------------------------------------------
# 
// Topics a user has started MOD, By Manipe (Begin)
		$sql2 = "SELECT COUNT(*) as topic_count FROM " . TOPICS_TABLE . " WHERE topic_poster = " . $user_id . "";
		if ( !($result2 = $db->sql_query($sql2)) )
		{
			message_die(GENERAL_ERROR, Could not obtain topics started information, , __LINE__, __FILE__, $sql);
		}
		$row2 = $db->sql_fetchrow($result2);
		$topics_started =  ( $row2[topic_count] ) ? $row2[topic_count] : 0;
		$db->sql_freeresult($result2);
// Topics a user has started MOD, By Manipe (End)

# 
#-----[ FIND ]------------------------------------------
# 
			YIM => $yim,

#
#-----[ AFTER, ADD ]------------------------------------------
# 
// Topics a user has started MOD, By Manipe (Begin)
			TOPICS_STARTED => $topics_started,
// Topics a user has started MOD, By Manipe (End)

# 
#-----[ OPEN ]------------------------------------------
# 
templates/subSilver/memberlist_body.tpl

# 
#-----[ FIND ]------------------------------------------
# 
	</tr>
	<!-- BEGIN memberrow -->

#
#-----[ BEFORE, ADD ]------------------------------------------
# 
	  <th class="thCornerR" nowrap="nowrap">{L_TOPICS}</th>

# 
#-----[ FIND ]------------------------------------------
# 
	</tr>
	<!-- END memberrow -->

#
#-----[ BEFORE, ADD ]------------------------------------------
# 
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.TOPICS_STARTED}</span></td>

# 
#-----[ OPEN ]------------------------------------------
# 
index.php

# 
#-----[ FIND ]------------------------------------------
# 
$newest_user = $newest_userdata[username];
$newest_uid = $newest_userdata[user_id];

#
#-----[ AFTER, ADD ]------------------------------------------
#
// Topics a user has started MOD, by Manipe (Begin)
$sql = "SELECT COUNT(*) as topic_count FROM " . TOPICS_TABLE;
if ( !($result = $db->sql_query($sql)) )
{
 	message_die(GENERAL_ERROR, Could not obtain topics started information, , __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$total_topics =  ( $row[topic_count] ) ? $row[topic_count] : 0;
$db->sql_freeresult($result);
// Topics a user has started MOD, by Manipe (End)

# 
#-----[ FIND ]------------------------------------------
# 
		TOTAL_POSTS => sprintf($l_total_post_s, $total_posts),

#
#-----[ AFTER, ADD ]------------------------------------------
#

// Topics a user has started MOD, By Manipe (Begin)
		TOTAL_TOPICS => sprintf($lang[Total_topics_started_index], $total_topics),
// Topics a user has started MOD, By Manipe (End)

# 
#-----[ OPEN ]------------------------------------------
# 
templates/subSilver/index_body.tpl

# 
#-----[ FIND ]------------------------------------------
# 
{TOTAL_POSTS}

# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
# 
{TOTAL_TOPICS}


# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 

# EoM
 

Hyper

Active Member
¤ عنوان : نمايش تمامي موضوعات ارسال شده كاربران يا Total Post Count
¤ نويسنده : JSLayton
¤ شرح : نمايش تمامي موضوعات ارسال شده كاربران در قسمت كاربران آنلاين
¤ نسخه : 1.0.0
¤ سطح : ساده
¤ زمان نصب : 5 دقيقه
¤ فايل هاي مورد نياز : 8 فايل
¤ فايل هاي افزودني : 0 فايل
¤ تاريخ :
¤ منبع : http://www.webloungin.com

نكته مهم : پيش از ايجاد تغييرات لازم از فايل هاي مورد نياز نسخه پشتيبان تهيه كنيد ...

دريافت :
کد:
http://www.phpbbhacks.com/download/2368
 

Hyper

Active Member
¤ عنوان : نمايش تمامي پاسخ ها و بازديدها يا total replies and views in viewtopic
¤ نويسنده : emrag
¤ شرح : نمايش تمامي بازديدها و پاسخ ها در viewtopic
¤ نسخه : 1.0.0
¤ سطح : ساده
¤ زمان نصب : 5 دقيقه
¤ فايل هاي مورد نياز : 3 فايل
¤ فايل هاي افزودني : 0 فايل
¤ تاريخ :
¤ منبع : www.canver.net

نكته مهم : پيش از ايجاد تغييرات لازم از فايل هاي مورد نياز نسخه پشتيبان تهيه كنيد ...


کد:
# 
#-----[ OPEN ]------------------------------------------ 
# 

viewtopic.php

#
#----[ FIND ]------------------------------------------ 
#

//
// Go ahead and pull all data for this topic
//

#
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

// total replies and views by emrag

$sql = "SELECT topic_replies, topic_views
	FROM " . TOPICS_TABLE . "
	WHERE topic_id = $topic_id";

if( !($result = $db->sql_query($sql)) )
{
	message_die(GENERAL_ERROR, Could not query users, , __LINE__, __FILE__, $sql);
}

	$row = $db->sql_fetchrow($result); 
	$topic_replies = $row[topic_replies];
	$topic_views = $row[topic_views];

// total replies and views by emrag

#
#----[ FIND ]------------------------------------------ 
#

//
// Send vars to template
//
$template->assign_vars(array(
	FORUM_ID => $forum_id,
	FORUM_NAME => $forum_name,
	TOPIC_ID => $topic_id,
	TOPIC_TITLE => $topic_title,

#
#-----[ AFTER, ADD ]------------------------------------------ 
# 

	TOPIC_REPLIES => $topic_replies,
	TOPIC_VIEWS => $topic_views,

#
#----[ FIND ]------------------------------------------ 
#

	L_AUTHOR => $lang[Author],
	L_MESSAGE => $lang[Message],
	L_POSTED => $lang[Posted],

#
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

	L_REPLIES => $lang[Replies],
	L_VIEWS => $lang[Views],

# 
#-----[ OPEN ]------------------------------------------ 
# 

templates/subsilver/viewtopic_body.tpl

#
#----[ FIND ]------------------------------------------ 
#

<a class="maintitle" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a>

#
#----[ AFTER, ADD ]------------------------------------------ 
#

<span class="nav"> - {L_REPLIES}: {TOPIC_REPLIES} | {L_VIEWS}: {TOPIC_VIEWS}</span>

#
#----[ NOTE ]------------------------------------------ 
#

if you want you can change "- {L_REPLIES}: {TOPIC_REPLIES} | {L_VIEWS}: {TOPIC_VIEWS}" s place and class.

#
#-----[ SAVE ALL FILES/CLOSE ]------------------------------------------ 
#
# EoM
 

Hyper

Active Member
¤ عنوان : نمايش بازديدكنندگان موضوع يا Who viewed a topic
¤ نويسنده : Niels
¤ شرح : نمايش تمامي افرادي كه از موضوع ( تاپيك ) ديدن كرده اند
¤ نسخه : 1.0.3
¤ سطح : ساده
¤ زمان نصب : 5 دقيقه
¤ فايل هاي مورد نياز : 8 فايل
¤ فايل هاي افزودني : 4 فايل
¤ تاريخ :
¤ منبع : http://www.phpbb.com/mods

نكته مهم : پيش از ايجاد تغييرات لازم از فايل هاي مورد نياز نسخه پشتيبان تهيه كنيد ...

دريافت :
کد:
http://www.phpbbhacks.com/download/1012
 

Hyper

Active Member
¤ عنوان : نمايش كاربران فعال يا Users of the day
¤ نويسنده : ZoZo
¤ شرح : نمايش كاربران فعال ظرف مدت خاص ( همچنين غيرفعال )
¤ نسخه : 1.0.3
¤ سطح : ساده
¤ زمان نصب : 5 دقيقه
¤ فايل هاي مورد نياز : 3 فايل
¤ فايل هاي افزودني : 0 فايل
¤ تاريخ : October 22th 2004
¤ منبع : http://www.phpbbhacks.com

نكته مهم : پيش از ايجاد تغييرات لازم از فايل هاي مورد نياز نسخه پشتيبان تهيه كنيد ...


کد:
# 
#-----[ ACTION: open ]---------------------------------
# 
/templates/subSilver/index_body.tpl
# 
#-----[ ACTION: find ]---------------------------------
# 
	<td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
# 
#-----[ ACTION: replace by ]---------------------------
# 
	<td class="row1" align="center" valign="middle" rowspan="3"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
# 
#-----[ ACTION: find ]---------------------------------
# 
 	<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
# 
#-----[ ACTION: add after ]----------------------------
# 
  </tr>
  <tr> 
	<td class="row1" align="left"><span class="gensmall">{USERS_OF_THE_DAY_LIST}</span></td>
# 
#-----[ ACTION: repeat for all templates ]-------------
# 



# 
#-----[ ACTION: open ]--------------------------------
# 
/language/lang_english/lang_main.php
# 
#-----[ ACTION: find ]--------------------------------
# 
$lang[Registered_users] = Registered Users:;
# 
#-----[ ACTION: add before ]--------------------------
# 
$lang[Day_users] = %d registered users visit during the last %d hours:;
$lang[Not_day_users] = %d registered users <span style="color:red">DIDNT</span> visit during the last %d hours:;
# 
#-----[ ACTION: repeat for all languages ]------------
# 



# 
#-----[ ACTION: open ]--------------------------------
# 
/includes/page_header.php
# 
#-----[ ACTION: find ]--------------------------------
# 
	LOGGED_IN_USER_LIST => $online_userlist,
# 
#-----[ ACTION: add after ]---------------------------
# 
	USERS_OF_THE_DAY_LIST => $day_userlist,
# 
#-----[ ACTION: find ]--------------------------------
# 
//
// Obtain number of new private messages
// if user is logged in
//
# 
#-----[ ACTION: add before ]--------------------------
# 
//
// Users of the day MOD
//

// ############ Edit below ############
// #
$display_not_day_userlist = 0;	// change to 1 here if you also want the list of the users who didnt visit to be displayed
$users_list_delay = 24;		// change here to the number of hours wanted for the list
// #
// ############ Edit above ############

$sql = "SELECT user_id, username, user_allow_viewonline, user_level, user_session_time
	FROM ".USERS_TABLE."
	WHERE user_id > 0
	ORDER BY IF(user_level=1,3,user_level) DESC, username ASC";
if( !($result = $db->sql_query($sql)) )
{
	message_die(GENERAL_ERROR, Could not obtain user/day information, , __LINE__, __FILE__, $sql);
}

$day_userlist = ;
$day_users = 0;
$not_day_userlist = ;
$not_day_users = 0;

while( $row = $db->sql_fetchrow($result) )
{
	$style_color = ;
	if ( $row[user_level] == ADMIN )
	{
		$row[username] = <b> . $row[username] . </b>;
		$style_color = style="color:# . $theme[fontcolor3] . ";
	}
	else if ( $row[user_level] == MOD )
	{
		$row[username] = <b> . $row[username] . </b>;
		$style_color = style="color:# . $theme[fontcolor2] . ";
	}
	if ( $row[user_allow_viewonline] )
	{
		$user_day_link = <a href=" . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $row[user_id]) . " . $style_color .> . $row[username] . </a>;
	}
	else
	{
		$user_day_link = <a href=" . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $row[user_id]) . " . $style_color .><i> . $row[username] . </i></a>;
	}
	if ( $row[user_allow_viewonline] || $userdata[user_level] == ADMIN )
	{
		if ( $row[user_session_time] >= ( time() - $users_list_delay * 3600 ) )
		{
			$day_userlist .= ( $day_userlist !=  ) ? ,  . $user_day_link : $user_day_link;
			$day_users++;
		}
		else
		{
			$not_day_userlist .= ( $not_day_userlist !=  ) ? ,  . $user_day_link : $user_day_link;
			$not_day_users++;
		}
	}
}

$day_userlist = ( ( isset($forum_id) ) ?  : sprintf($lang[Day_users], $day_users, $users_list_delay) ) .   . $day_userlist;

$not_day_userlist = ( ( isset($forum_id) ) ?  : sprintf($lang[Not_day_users], $not_day_users, $users_list_delay) ) .   . $not_day_userlist;

if ( $display_not_day_userlist )
{
	$day_userlist .= <br /> . $not_day_userlist;
}

//
// End of MOD
//



# 
#-----[ ACTION: save/close all ]----------------------
#
 

Hyper

Active Member
¤ عنوان : ارسال تاپيك سريع يا Quick New Topic
¤ نويسنده : Marc Philpott
¤ شرح : ارسال تاپيك جديد در انجمني خاص بدون نياز به فشردن كليد موضوع جديد
¤ نسخه : 1.2
¤ سطح : ساده
¤ زمان نصب : 5 دقيقه
¤ فايل هاي مورد نياز : 2 فايل
¤ فايل هاي افزودني : 1 فايل
¤ تاريخ :
¤ منبع : http://www.phpbbhacks.com

نكته مهم : پيش از ايجاد تغييرات لازم از فايل هاي مورد نياز نسخه پشتيبان تهيه كنيد ...

دريافت :
کد:
http://www.phpbbhacks.com/download/1494
 

Hyper

Active Member
¤ عنوان : تاپيك هاي كه در آن پست داشته ايد يا Topics Ive Posted In
¤ نويسنده : aUsTiN
¤ شرح : در صورتي كه در تاپيكي پستي ارسال كرده باشيد تصوير كوچكي به اين مفهوم در كنار نام تاپيك نمايش داده ميشود
¤ نسخه : 1.0.0
¤ سطح : ساده
¤ زمان نصب : 1 دقيقه
¤ فايل هاي مورد نياز : 1 فايل
¤ فايل هاي افزودني : 1 فايل
¤ تاريخ :
¤ منبع : http://phpbb-amod.com

نكته مهم : پيش از ايجاد تغييرات لازم از فايل هاي مورد نياز نسخه پشتيبان تهيه كنيد ...

کد:
############################################################## 
##
## MOD Title:		  Topics Ive Posted In
##
## MOD Author:		  aUsTiN => [email protected]
##
## MOD Description:       This will add an image in front of the topic names on viewforum.php that shows if you have posted in that topic or not.
##
## MOD Version:           1.0.0
##
## MOD Help:		  http://phpbb-amod.com/
## 
## Installation Level:    Easy
##
## Installation Time:     1 Minute
##
## Files To Edit:         1
##
## Included Files:        1
##
############################################################## 
############################################################## 
##
## Author Notes: 
##
##	Copyright © aUsTiN-Inc, 2003/4
##
##	If you add anything or want anything added, please visit
##		http://phpbb-amod.com/	
##
##	ALL FILES WERE DOWNLOADED DIRECTLY FROM MY SITE TO BUILD THIS INSTALL.
##
##	Feel free to see it in action at http://phpbb-amod.com/
##
##
##	If you cant use phpMyAdmin for the SQL, there is a DB Generator available at
##	http://phpbb-amod.com/db_generator.php for you to use. Enjoy.
##
############################################################## 
##
## MOD History: 
##
##	Sep 25th 2004 - Version 1.0.0
##      	- Released
##
############################################################## 
##
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##
##############################################################
##
##	Definitions:
##
##		Root: Folder your config.php is located
##		templates/*/: Your template folder (All template folders are suggested)
##		lang_*/: Your current language folder (All lang folders are suggested)
##
##############################################################


UPLOAD images/icon_ive_viewed.gif to Root/images/icon_ive_viewed.gif

-----------------------------------
----[ OPEN ]-----------------------
-----------------------------------

Root/viewforum.php

-----------------------------------
----[ FIND ]-----------------------
-----------------------------------

//
// Okay, lets dump out the page ...
//
if( $total_topics )

-----------------------------------
----[ ADD, BEFORE ]----------------
-----------------------------------

#================================================
#= Start: Topics Ive Posted In By aUsTiN ========
#
	$q = "SELECT poster_id, topic_id
		  FROM ". POSTS_TABLE ."";
	$r 				= $db -> sql_query($q);
	$me_check 		= $db -> sql_fetchrowset($r);
	$me_check_count = $db -> sql_numrows($r);
#
#= End: Topics Ive Posted In By aUsTiN ==========
#================================================

-----------------------------------
----[ FIND ]-----------------------
-----------------------------------

		$topic_type = $topic_rowset[$i][topic_type];

-----------------------------------
----[ ADD, BEFORE ]----------------
-----------------------------------

#================================================
#= Start: Topics Ive Posted In By aUsTiN ========
#
		$z = 0;
		for($t = 0; $t < $me_check_count; $t++)
			{		
			if(($me_check[$t][topic_id] == $topic_rowset[$i][topic_id]) && ($me_check[$t][poster_id] == $userdata[user_id]))
				{			
			$z++;
				}
			}
		
		if($z == 1) $how_many = "You Have One Post In This Thread."; # Change this if your board is not english.
		if($z > 1)	$how_many = "You Have ". $z ." Posts In This Thread."; # Change this if your board is not english.
				
		$x = 1;		
		for($t = 0; $t < $me_check_count; $t++)
			{		
			if(($me_check[$t][topic_id] == $topic_rowset[$i][topic_id]) && ($me_check[$t][poster_id] == $userdata[user_id]))
				{			
				if($x < 2)
					{	
				$ive_viewed_img = "<img src=images/icon_ive_viewed.gif border=0 height=10 width=12 title=". $how_many ." alt=". $how_many .">";
				$topic_title 	= $ive_viewed_img ."  ". $topic_title;
					}
			$x++;
				}
			else
				{
			$topic_title = $topic_title;
				}
			}
#
#= End: Topics Ive Posted In By aUsTiN ==========
#================================================

-----------------------------------
----[ CLOSE & SAVE ]---------------
-----------------------------------

EoM
 

Hyper

Active Member
¤ عنوان : تاپيك هاي منتخب يا Favorites Mod
¤ نويسنده : DanielT
¤ شرح : تاپيك هاي دلخواه را به ليست تاپيك هاي منتخب كاربر مي افزايد
¤ نسخه : 1.0.4
¤ سطح : متوسط
¤ زمان نصب : 5 دقيقه
¤ فايل هاي مورد نياز : 5 فايل
¤ فايل هاي افزودني : 2 فايل
¤ تاريخ :
¤ منبع : http://www.phpbb.com

نكته مهم : پيش از ايجاد تغييرات لازم از فايل هاي مورد نياز نسخه پشتيبان تهيه كنيد ...

دريافت :
کد:
http://www.phpbb.com/phpBB/catdb.php?mode=download&id=431370
 
وضعیت
موضوع بسته شده است.

جدیدترین ارسال ها

بالا