Ajax Like Mod ที่แสดงปุ่ม Like บนกระทู้


แนะนำ Mod ต่างๆ ของ PHPBB3 แนะนำความสามารถ ของ mod การติดตั้ง การเข้ากันได้กับเวอร์ชั่น

Moderator: mindphp

M003
PHP VIP Members
PHP VIP Members
Posts: 1574
Joined: 01/10/2012 12:30 pm

Ajax Like Mod ที่แสดงปุ่ม Like บนกระทู้

Post by M003 » 22/01/2013 10:32 am

รายละเอียดเกี่ยวกับ Ajax Like
เป็น Mod ที่เพิ่มปุ่ม Like บนหน้ากระทู้และกล่องแสดงความคิดเห็น แสดงจำนวนคนที่กด Like และยังแจ้งเตือนเมื่อมีคนมากด Like บนความคิดเห็นหรือกระทู้เรา
พัฒนาโดย : emosbat
Version : 1.0.0
phpBB Version(s) : 3.0.x
ดาวน์โหลดได้ที่ : http://emosbat.github.com/phpBB-Ajax-Like/
Ajax Like Mod ที่แสดงปุ่ม Like บนกระทู้ like.jpg
like.jpg (34.31 KiB) Viewed 1761 times
Ajax Like Mod ที่แสดงปุ่ม Like บนกระทู้ new Likes received list.jpg
new Likes received list.jpg (24.82 KiB) Viewed 1761 times

วิธีการติดตั้ง
Open: memberlist.php
ค้นหา

Code: Select all

$member['posts_in_queue'] = 0;
		}
เพิ่มหลังคำค้นหา

Code: Select all

// ajaxlike
		require_once($phpbb_root_path . 'includes/functions_ajaxlike.' . $phpEx);
		$ajaxlike_enable = ((($user->data['user_id'] == ANONYMOUS ? ($config['ajaxlike_enable'] && $config['ajaxlike_guest_can_view']) : $config['ajaxlike_enable'])) && $config['ajaxlike_list_in_profile'] && $user->data['show_likes']);
		
		if($ajaxlike_enable)
		{
			$likes_limit = ($config['ajaxlike_profile_num'] == 0 ? 15 : $config['ajaxlike_profile_num']);
			$likes_array = fetch_user_likes($member['user_id'], $likes_limit);
			if(is_array($likes_array[0]))
			{
				foreach($likes_array[0] as $like)
				{
					$template->assign_block_vars('last_likes', array(
						'TITLE'		=> $like['topic_title'],
						'POSTER'	=> $like['poster'],
						'DETAIL'	=> $like['post_detail'],
						'DATE'		=> $like['date'],
						'LINK'		=> $like['post_url'],
					));
				}
			}
			
			$template->assign_vars(array(
				'LIKE_STATUS'			=> $ajaxlike_enable,
				'LIKES'					=> get_user_likes($member['user_id']),
				'LIKED'					=> get_user_liked($member['user_id'])
				));

		}
		// ajaxlike
ค้นหา

Code: Select all

'L_POSTS_IN_QUEUE'	=> $user->lang('NUM_POSTS_IN_QUEUE', $member['posts_in_queue']),
เพิ่มก่อนคำค้นหา

Code: Select all

// ajaxlike
			'SHOW_LIKES'		=>	$ajaxlike_enable,
			// ajaxlike
Open: viewtopic.php
ค้นหา

Code: Select all

$voted_id = (sizeof($voted_id) > 1) ? array_unique($voted_id) : $voted_id;
เพิ่มหลังคำค้นหา

Code: Select all

// ajaxlike
require_once($phpbb_root_path . 'includes/functions_ajaxlike.' . $phpEx);
$ajaxlike_enable = ($user->data['user_id'] == ANONYMOUS ? ($config['ajaxlike_enable'] && $config['ajaxlike_guest_can_view']) : $config['ajaxlike_enable']);

if($ajaxlike_enable)
{
	$ajaxlike_like_from	= request_var('like_from', 0);
	$ajaxlike_action	= request_var('ajaxlike_action', '');
	$ajaxlike_data		= request_var('ajaxlike_data', '');
	
	if($ajaxlike_action	!= '')
	{
	
		if($ajaxlike_action!='notifications' && $ajaxlike_action!='liked_list')
		{
			// do not trust input!
			$sql = 'SELECT forum_id
				FROM ' . TOPICS_TABLE . "
				WHERE topic_id = $topic_id";
			$result = $db->sql_query($sql);
			$forum_id = (int) $db->sql_fetchfield('forum_id');
			$db->sql_freeresult($result);
			
			if (!$forum_id)
			{
				ajaxlike_die('',1);
			}
			
		}
	
		switch($ajaxlike_action)
		{
			case 'fulllist':
			ajaxlike_die(get_fulllist($post_id));
			
			break;
			
			case 'notifications':
			ajaxlike_die(get_notifications());
			
			break;
			
			case 'liked_list':
			ajaxlike_die(get_liked_list());
			
			break;
			
			default:
				
			if (($auth->acl_get('u_ajaxlike_mod')) && ($auth->acl_get('f_ajaxlike_mod', $forum_id)) && ($user->data['user_id'] != ANONYMOUS) && ($user->data['user_id']==$ajaxlike_like_from))
			{
			
				if($ajaxlike_action	== 'like')
				{
					ajaxlike_die(ajaxlike_like_post($post_id));
				}
			
				if(($ajaxlike_action	== 'unlike') && $config['ajaxlike_allow_unlike'])
				{
					ajaxlike_die(ajaxlike_unlike_post($post_id));
				}
			
			} else {
				ajaxlike_die('',2);
			}
			
		}

	}
}
// ajaxlike
ค้นหา

Code: Select all

'S_NUM_POSTS' => sizeof($post_list))
);
เพิ่มหลังคำค้นหา

Code: Select all

// ajaxlike
if($ajaxlike_enable)
{
	$likes_data = fetch_topic_likes();

		$template->assign_vars(array(
				'LIKE_ACCESS'			=> (($auth->acl_get('u_ajaxlike_mod')) && ($auth->acl_get('f_ajaxlike_mod', $forum_id) && $topic_data['topic_type'] != POST_GLOBAL) && ($user->data['user_id'] != ANONYMOUS) ? 1 : 0),
				'ALLOW_UNLIKE'			=> $config['ajaxlike_allow_unlike'],
				'LIKE_FROM'				=> $user->data['user_id'],
				'LIKE_CALLBACK'			=> append_sid("{$phpbb_root_path}viewtopic.$phpEx")
			)
		);
}
// ajaxlike
ค้นหา

Code: Select all

$postrow = array(
เพิ่มหลังคำค้นหา

Code: Select all

// ajaxlike
		'TOTAL_LIKES'			=> ($ajaxlike_enable ? (isset($likes_data[0][$row['post_id']]) ? $likes_data[0][$row['post_id']]  : 0) : 0),
		'POST_LIKES'			=> ($ajaxlike_enable ? (isset($likes_data[0][$row['post_id']]) ? $likes_data[0][$row['post_id']] - (in_array($row['post_id'], $likes_data[1]) ? 1 : 0) : 0) : 0),
		'YOU_LIKED'				=> ($ajaxlike_enable ? (in_array($row['post_id'], $likes_data[1]) ? true : false) : 0),
		'LIKE_LIST'				=> ($ajaxlike_enable ? build_like_list(isset($likes_data[2][$row['post_id']]) ? $likes_data[2][$row['post_id']]  : false) : ''),
		'NO_OWN_POST'			=> ($poster_id != $user->data['user_id']),
		'LIKES'					=> ($ajaxlike_enable ? get_user_likes($row['user_id']) : 0),
		'LIKED'					=> ($ajaxlike_enable ? get_user_liked($row['user_id']) : 0),
		'LAST_LIKE_URL'			=> (($ajaxlike_enable ? (isset($likes_data[0][$row['post_id']]) ? $likes_data[0][$row['post_id']]  : 0) : 0) > 1 ? "#" : append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=viewprofile&un=" . urlencode(build_like_list(isset($likes_data[2][$row['post_id']]) ? $likes_data[2][$row['post_id']]  : false)))),
		// ajaxlike
Open: includes/constants.php
ค้นหา

Code: Select all

// Table names
เพิ่มหลังคำค้นหา

Code: Select all

// ajaxlike
define('LIKES_TABLE',				$table_prefix . 'likes');
	// ajaxlike
Open: includes/functions.php
ค้นหา

Code: Select all

$s_search_hidden_fields[$url_param[0]] = $url_param[1];
		}
	}
เพิ่มหลังคำค้นหา

Code: Select all

// ajaxlike
	$ajaxlike_enable = ($user->data['user_id'] == ANONYMOUS ? false : @$config['ajaxlike_enable']);
	$ajaxlike_notify = (($user->data['user_id'] == ANONYMOUS ? false : $ajaxlike_enable) && @$config['ajaxlike_notify']);
	$ajaxlike_notify_interval = @$config['ajaxlike_notify_interval'];
	if($ajaxlike_notify_interval<5) $ajaxlike_notify_interval = 5;
	$ajaxlike_notify_interval = $ajaxlike_notify_interval * 1000;
	
	$like_count=0;
	
	if($ajaxlike_enable)
	{
   		$uid=$user->data['user_id'];
   		// Ajax like notification
   		$sql = 'SELECT COUNT(like_id) as like_count 
      		FROM ' . LIKES_TABLE . '
      		WHERE poster_id = '.$uid.' AND like_read = 1';
   		$result = $db->sql_query($sql);
   		$like_count = (int) $db->sql_fetchfield('like_count');
   		$db->sql_freeresult($result);
		// Ajax like notification
	}
	// ajaxlike
ค้นหา

Code: Select all

$template->assign_vars(array(
เพิ่มหลังคำค้นหา

Code: Select all

// ajaxlike
   		'AL_NEW_LIKE'                   => $like_count,
   		'AJAXLIKE_ENABLE'				=> $ajaxlike_enable,
   		'AJAXLIKE_NOTIFY_ENABLE'		=> $ajaxlike_notify,
		'AJAXLIKE_NOTIFY_INTERVAL'		=> $ajaxlike_notify_interval,
		'AJAXLIKE_NOTIFY_CALLBACK'		=> append_sid("{$phpbb_root_path}viewtopic.$phpEx"),
		// ajaxlike
Open: includes/ucp/ucp_prefs.php
ค้นหา

Code: Select all

$data = array(
เพิ่มหลังคำค้นหา

Code: Select all

// ajaxlike
					'show_likes'	=> request_var('show_likes', $user->data['show_likes'], true),
					// ajaxlike
ค้นหา

Code: Select all

$sql_ary = array(
เพิ่มหลังคำค้นหา

Code: Select all

// ajaxlike
							'show_likes'			=> $data['show_likes'],
							// ajaxlike
ค้นหา

Code: Select all

'S_DST'				=> $data['dst'],
เพิ่มหลังคำค้นหา

Code: Select all

// ajaxlike
					'S_SHOW_LIKES'		=> $data['show_likes'],
					// ajaxlike
Open: language/en/common.php
ค้นหา

Code: Select all

$lang = array_merge($lang, array(
เพิ่มหลังคำค้นหา

Code: Select all

// ajaxlike
	'AL_LIKE_NEW'					    => '&nbsp;new like received',
	'AL_LIKE_NEW_TITLE'				    => 'New likes received list',	
    'AL_LIKE_INFO'					    => 'Likes your&nbsp;',
	'AL_LIKE_SELF'				        => 'View your post',
	'AL_NO_LIKE_RECEIVED'				=> 'No like received yet.',
	// ajaxlike
Open: language/en/memberlist.php
ค้นหา

Code: Select all

$lang = array_merge($lang, array(
เพิ่มหลังคำค้นหา

Code: Select all

// ajaxlike
	'AL_TITLE'				=> 'Last Likes',
	'AL_NO_LIKE'			=> 'No post liked yet.',
	'AL_BY'					=> 'posted by',
	'AL_AT'					=> 'Liked at',
	'AL_VIEW'				=> '[View Post]',
	'AL_LIKE_COUNT_TEXT'	=> 'Likes',
	'AL_LIKED_COUNT_TEXT'	=> 'Liked in',
	'AL_POSTS_TEXT'			=> 'posts',
	'AL_POST_TEXT'			=> 'post',
	// ajaxlike
Open: language/en/ucp.php
ค้นหา

Code: Select all

// Common language entries
$lang = array_merge($lang, array(
เพิ่มหลังคำค้นหา

Code: Select all

// ajaxlike
	'AJ_SHOW_LIKES'					=> 'Display last likes in profile',
	// ajaxlike
Open: language/en/viewtopic.php
ค้นหา

Code: Select all

$lang = array_merge($lang, array(
เพิ่มหลังคำค้นหา

Code: Select all

	// ajaxlike
	'AL_YOU_TEXT'						=> 'You',
	'AL_AND_TEXT'						=> 'and',
	'AL_OTHER_TEXT'						=> 'other',
	'AL_OTHERS_TEXT'					=> 'others',
	'AL_PEOPLE_TEXT'					=> 'people',
	'AL_PEOPLE_LIKE_THIS_TEXT'			=> 'People like this post',
	'AL_LIKE_POST_TEXT'					=> 'like this post.',
	'AL_ONE_LIKE_POST_TEXT'				=> 'like this post.',
	'AL_LIKE_POST_WITH_YOU_TEXT'		=> 'like this post.',
	'AL_YOU_LIKE_TEXT'					=> 'like this post.',
	'AL_LIKE_TEXT'						=> 'Like',
	'AL_UNLIKE_TEXT'					=> 'Unlike',
	'AL_LIKE_COUNT_TEXT'				=> 'Likes',
	'AL_LIKED_COUNT_TEXT'				=> 'Liked in',
	'AL_POSTS_TEXT'						=> 'posts',
	'AL_POST_TEXT'						=> 'post',
	'AL_LIKE_AT_TEXT'					=> 'Liked at',
	'AL_ERROR_INVALID_REQUEST'			=> 'Invalid request!',
	'AL_ERROR_ACCESS_DENIED'			=> 'Access Denied!',
	// ajaxlike
	
Open: language/en/acp/permissions_phpbb.php
ค้นหา

Code: Select all

'acl_u_viewprofile'	=> array('lang' => 'Can view profiles, memberlist and online list', 'cat' => 'profile'),
เพิ่มก่อนคำค้นหา

Code: Select all

// ajaxlike
	'acl_u_ajaxlike_mod'=> array('lang' => 'Can like posts', 'cat' => 'misc'),
	// ajaxlike
ค้นหา

Code: Select all

$lang = array_merge($lang, array(
เพิ่มหลังคำค้นหา

Code: Select all

// ajaxlike
	'acl_f_ajaxlike_mod'=> array('lang' => 'Can like posts in forum', 'cat' => 'misc'),
	// ajaxlike
ค้นหา

Code: Select all

// Admin Permissions
$lang = array_merge($lang, array(
เพิ่มหลังคำค้นหา

Code: Select all

// ajaxlike
	'acl_a_ajaxlike_mod'=> array('lang' => 'Can manage likes', 'cat' => 'misc'),
	// ajaxlike
Open: styles/prosilver/template/memberlist_view.html
ค้นหา

Code: Select all

<!-- IF POSTS_IN_QUEUE and U_MCP_QUEUE --><br />(<a href="{U_MCP_QUEUE}">{L_POSTS_IN_QUEUE}</a>)<!-- ELSEIF POSTS_IN_QUEUE --><br />({L_POSTS_IN_QUEUE})<!-- ENDIF -->
				</dd>
เพิ่มหลังคำค้นหา

Code: Select all

<!-- ajaxlike -->
			<!-- IF LIKE_STATUS -->
			<dt>{L_AL_LIKE_COUNT_TEXT}:</dt>
				<dd><strong>{LIKES}</strong> <!-- IF LIKES > 1 -->{L_AL_POSTS_TEXT}<!-- ELSE -->{L_AL_POST_TEXT}<!-- ENDIF --></dd>
			<dt>{L_AL_LIKED_COUNT_TEXT}:</dt>
				<dd><strong>{LIKED}</strong> <!-- IF LIKED > 1 -->{L_AL_POSTS_TEXT}<!-- ELSE -->{L_AL_POST_TEXT}<!-- ENDIF --></dd>
			<!-- ENDIF -->
			<!-- ajaxlike -->
ค้นหา

Code: Select all

</div>
<!-- ENDIF -->
เพิ่มหลังคำค้นหา

Code: Select all

<!-- ajaxlike -->
<!-- IF SHOW_LIKES -->
<div class="panel bg2">
	<div class="inner"><span class="corners-top"><span></span></span>
	<h3>{L_AL_TITLE}</h3>
	<!-- IF .last_likes -->
	<!-- BEGIN last_likes -->
	<div class="ajaxlike_listing_item">
		<a href="{last_likes.LINK}" class="ajaxlike_profile_listing_title">{last_likes.TITLE}</a>
		<div class="ajaxlike_profile_listing_by">{L_AL_BY} {last_likes.POSTER} . {L_AL_AT} {last_likes.DATE}</div>
		<div class="ajaxlike_profile_listing_item">{last_likes.DETAIL}</span>&nbsp;<b><a href="{last_likes.LINK}">{L_AL_VIEW}</a></b></div>
	</div>
	<!-- END last_likes -->
	<!-- ELSE -->
	<div class="ajaxlike_listing_item">{L_AL_NO_LIKE}</div>
	<!-- ENDIF -->
	<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->
<!-- ajaxlike -->
Open: styles/prosilver/template/overall_footer.html
ค้นหา

Code: Select all

	<!-- IF not S_IS_BOT -->{RUN_CRON_TASK}<!-- ENDIF -->
เพิ่มหลังคำค้นหา

Code: Select all

<!-- ajaxlike -->
<!-- IF AJAXLIKE_ENABLE -->
<div id="ajaxlike_not-dialog">
</div>
<div id="ajaxlike-not-dialog" title="{L_AL_LIKE_NEW_TITLE}">
</div>
<!-- IF AJAXLIKE_NOTIFY_ENABLE -->
<script type="text/javascript">
	ajaxlike_init_notify({AJAXLIKE_NOTIFY_INTERVAL},'{AJAXLIKE_NOTIFY_CALLBACK}');
</script>
<!-- ENDIF -->
<!-- ENDIF -->
<!-- ajaxlike -->
Open: styles/prosilver/template/overall_header.html
คำค้น

Code: Select all

<link href="{T_THEME_PATH}/large.css" rel="alternate stylesheet" type="text/css" title="A++" />
เพิ่มหลังคำค้นหา

Code: Select all

<!-- ajaxlike -->
<link href="{T_SUPER_TEMPLATE_PATH}/ajaxlike/css/cupertino/jquery-ui.css" rel="stylesheet" type="text/css" />
<link href="{T_SUPER_TEMPLATE_PATH}/ajaxlike/css/tipsy.css" rel="stylesheet" type="text/css" />
<!-- ajaxlike -->
ค้นหา

Code: Select all

</head>
เพิ่มก่อนคำค้นหา

Code: Select all

<!-- ajaxlike -->
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/ajaxlike/js/common.js"></script>
<script type="text/javascript">
	JQuery_loader("{T_SUPER_TEMPLATE_PATH}/ajaxlike/js/jquery.js");
</script>
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/ajaxlike/js/jquery-ui.js"></script>
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/ajaxlike/js/jquery.tipsy.js"></script>
<!-- ajaxlike -->
ค้นหา

Code: Select all

<a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a>
					<!-- ENDIF -->
เพิ่มหลังคำค้นหา

Code: Select all

<!-- Ajax like notification -->
                    <!-- IF AJAXLIKE_ENABLE -->
                    &bull;
					(<a href="#" onclick="ajaxlike_liked_listbox('{AJAXLIKE_NOTIFY_CALLBACK}'); return false;"><span id="ajaxlike_not_new"><strong>{AL_NEW_LIKE}</strong>{L_AL_LIKE_NEW}</span></a>)
					<!-- ENDIF -->
                    <!-- Ajax like notification -->
Open: styles/prosilver/template/ucp_prefs_personal.html
ค้นหา

Code: Select all

<dd id="custom_date" style="display:none;"><input type="text" name="dateformat" id="dateformat" value="{DATE_FORMAT}" maxlength="30" class="inputbox narrow" style="margin-top: 3px;" /></dd>
	</dl>
เพิ่มหลังคำค้นหา

Code: Select all

<!-- ajaxlike -->
	<dl>
		<dt><label for="show_likes1">{L_AJ_SHOW_LIKES}:</label></dt>
		<dd>
			<label for="show_likes1"><input type="radio" name="show_likes" id="show_likes1" value="1"<!-- IF S_SHOW_LIKES --> checked="checked"<!-- ENDIF --> /> {L_YES}</label> 
			<label for="show_likes0"><input type="radio" name="show_likes" id="show_likes0" value="0"<!-- IF not S_SHOW_LIKES --> checked="checked"<!-- ENDIF --> /> {L_NO}</label>
		</dd>
	</dl>
	<!-- ajaxlike -->
Open: styles/prosilver/template/viewtopic_body.html

Code: Select all

<!-- IF postrow.SIGNATURE --><div id="sig{postrow.POST_ID}" class="signature">{postrow.SIGNATURE}</div><!-- ENDIF -->
		<!-- ENDIF -->
เพิ่มหลังคำค้นหา

Code: Select all

<!-- ajaxlike -->
			<!-- IF postrow.TOTAL_LIKES > 0 -->
			<hr />
			<div class="ajaxlike_container" id="ajaxlike_content{postrow.POST_ID}">
				<!-- IF postrow.YOU_LIKED and not S_IS_BOT and S_USER_LOGGED_IN -->
					<!-- IF postrow.NO_OWN_POST and LIKE_ACCESS and ALLOW_UNLIKE --><a href="#" onclick="ajaxlike_unlike({postrow.POST_ID},{TOPIC_ID},{FORUM_ID},{LIKE_FROM},'{LIKE_CALLBACK}'); return false;" class="ajaxlike_link ajaxlike_unlike_button">{L_AL_UNLIKE_TEXT}</a> &middot; <!-- ENDIF -->{L_AL_YOU_TEXT} <!-- IF postrow.POST_LIKES > 0 -->{L_AL_AND_TEXT} <a href="{postrow.LAST_LIKE_URL}" <!-- IF postrow.TOTAL_LIKES > 1 -->onclick="ajaxlike_fulllistbox({postrow.POST_ID},{TOPIC_ID},{FORUM_ID},'{LIKE_CALLBACK}','{L_AL_LIKE_AT_TEXT}'); return false;"<!-- ENDIF --> class="ajaxlike_link ajaxlike_tooltip" <!-- IF postrow.LIKE_LIST -->title="{postrow.LIKE_LIST}"<!-- ENDIF -->>{postrow.POST_LIKES} <!-- IF postrow.POST_LIKES > 1 -->{L_AL_OTHERS_TEXT}<!-- ELSE -->{L_AL_OTHER_TEXT}<!-- ENDIF --></a> <!-- ENDIF --><!-- IF postrow.TOTAL_LIKES == 1 -->{L_AL_YOU_LIKE_TEXT}<!-- ELSE -->{L_AL_LIKE_POST_WITH_YOU_TEXT}<!-- ENDIF -->
				<!-- ELSE -->
					<!-- IF not S_IS_BOT and S_USER_LOGGED_IN and postrow.NO_OWN_POST and LIKE_ACCESS --><a href="#" onclick="ajaxlike_like({postrow.POST_ID},{TOPIC_ID},{FORUM_ID},{LIKE_FROM},'{LIKE_CALLBACK}'); return false;" class="ajaxlike_link ajaxlike_like_button">{L_AL_LIKE_TEXT}</a> &middot; <!-- ENDIF --><a href="{postrow.LAST_LIKE_URL}" <!-- IF postrow.TOTAL_LIKES > 1 -->onclick="ajaxlike_fulllistbox({postrow.POST_ID},{TOPIC_ID},{FORUM_ID},'{LIKE_CALLBACK}','{L_AL_LIKE_AT_TEXT}'); return false;"<!-- ENDIF --> class="ajaxlike_link ajaxlike_tooltip" <!-- IF postrow.LIKE_LIST -->title="{postrow.LIKE_LIST}"<!-- ENDIF -->><!-- IF postrow.TOTAL_LIKES == 1 -->{postrow.LIKE_LIST}<!-- ELSE -->{postrow.TOTAL_LIKES} {L_AL_PEOPLE_TEXT}<!-- ENDIF --></a> <!-- IF postrow.TOTAL_LIKES == 1 -->{L_AL_ONE_LIKE_POST_TEXT}<!-- ELSE -->{L_AL_LIKE_POST_TEXT}<!-- ENDIF -->
				<!-- ENDIF -->
			</div>
			<!-- ELSE -->
				<!-- IF not S_IS_BOT and S_USER_LOGGED_IN and postrow.NO_OWN_POST and LIKE_ACCESS -->
				<hr />
				<div class="ajaxlike_container" id="ajaxlike_content{postrow.POST_ID}">
<a href="#" onclick="ajaxlike_like({postrow.POST_ID},{TOPIC_ID},{FORUM_ID},{LIKE_FROM},'{LIKE_CALLBACK}'); return false;" class="ajaxlike_link ajaxlike_like_button">{L_AL_LIKE_TEXT}</a>
				</div>
				<!-- ENDIF -->
			<!-- ENDIF -->
			<!-- ajaxlike -->
ค้นหา

Code: Select all

		<!-- IF postrow.POSTER_POSTS != '' --><dd><strong>{L_POSTS}:</strong> {postrow.POSTER_POSTS}</dd><!-- ENDIF -->
เพิ่มหลังคำค้นหา

Code: Select all

<!-- ajaxlike -->
		<dd><strong>{L_AL_LIKE_COUNT_TEXT}:</strong> {postrow.LIKES} <!-- IF postrow.LIKES > 1 -->{L_AL_POSTS_TEXT}<!-- ELSE -->{L_AL_POST_TEXT}<!-- ENDIF --></dd>
		<dd><strong>{L_AL_LIKED_COUNT_TEXT}:</strong> {postrow.LIKED} <!-- IF postrow.LIKED > 1 -->{L_AL_POSTS_TEXT}<!-- ELSE -->{L_AL_POST_TEXT}<!-- ENDIF --></dd>
		<!-- ajaxlike -->
ค้นหา

Code: Select all

<p>{LOGGED_IN_USER_LIST}</p>
<!-- ENDIF -->
เพิ่มหลังคำค้นหา

Code: Select all

<!-- ajaxlike -->
<script type="text/javascript">
$(function() {
	load_tips('.ajaxlike_tooltip');
});
</script>
<div id="ajaxlike-dialog" title="{L_AL_PEOPLE_LIKE_THIS_TEXT}">
</div>
<!-- ajaxlike -->
Open: styles/prosilver/theme/stylesheet.css
ค้นหา

Code: Select all

@import url("common.css");
เพิ่มหลังคำค้นหา

Code: Select all

@import url("ajaxlike.css"); /* ajaxlike */

Return to “PHPBB3.0 Mod Review”

Users browsing this forum: No registered users and 2 guests