Simple Profile comments

Area Dedicata alle Traduzioni Mods
Bloccato
Avatar utente
frans
Staff phpBB3World
Staff phpBB3World
Messaggi: 128
Iscritto il: 11 nov 2012, 11:08

Simple Profile comments

Messaggio da frans » 19 gen 2013, 19:46

Traduzione italiana Simple Profile comments
Anche i pulsanti sono stati tradotti
by Rey


Contenuti:
  1. File da editare
  2. Correzione sulla sintassi da cercare
-----------------------------------------------
::Qui la mod::
simple_comment_1.6.1.zip
profilo.jpg
prof2.JPG
prof3.JPG
prof4.JPG

File da editare: 3.0.11
Apri: language/it/common.php
Trova

Codice: Seleziona tutto

	'NA'						=> 'Non disponibile',
Aggiungi dopo

Codice: Seleziona tutto

	'NEW_COMMENT'				=> '<strong>1</strong> Nuovo commento',
	'NEW_COMMENTS'				=> '<strong>%d</strong> Nuovi commenti',
Apri: language/it/viewtopic.php

Codice: Seleziona tutto

	'TOTAL_VOTES'			=> 'Voti totali',
Aggiungi dopo

Codice: Seleziona tutto

//SIMPLE COMMENTS START
'QUICK_COMMENT'			=> 'Commento rapido',
//SIMPLE COMMENTS END
Apri: language/it/memberlist.php
Trova

Codice: Seleziona tutto

	'POST_IP'				=> 'Inviato dall’IP/dominio',
Aggiungi dopo

Codice: Seleziona tutto

	'PROFILE_COMMENTS'		=> 'Commenti Profilo',
	'PROFILE_COMMENT_SUB'			=> 'Invia un commento',
	'LIST_COMMENT'     				=> '1 commento',
	'LIST_COMMENTS'					=> '%d commenti',
	'FRIEND_COMMENT'				=> 'Questo utente consente solo agli amici di lasciare commenti!',
	'ONLY_FRIEND'					=> 'Questo utente consente solo agli amici di visualizzare i commenti!',
	'NO_COMMENT'					=> 'Questo utente non ha alcun commento! lasciane uno di seguito.',
Apri: language/it/ucp.php
Trova

Codice: Seleziona tutto

	'ADMIN_EMAIL'					=> 'Gli amministratori possono inviarti e-mail',
Aggiungi dopo

Codice: Seleziona tutto

	'ALLOW_ALL_COMMENT'		=> 'Consenti commenti sul tuo profilo',
	'ALLOW_ALL_COMMENT_EXPLAIN'		=> 'Se impostato su no il sistema di commento sarà disattivato per il tuo profilo.',
	'ALLOW_FRIEND_ONLY'				=> 'Consenti solo agli amici di commentare sul tuo profilo',
	'ALLOW_FRIEND_ONLY_EXPLAIN'		=> 'Se impostato su si solo gli utenti che si hanno nella lista amici saranno in grado di inviare commenti sul tuo profilo.',
	'ALLOW_FRIEND_VIEW'				=> 'Consenti solo gli amici di vedere i tuoi commenti',
	'ALLOW_FRIEND_VIEW_EXPLAIN'		=> 'Se impostato su si solo gli utenti che si hanno nella lista amici possono vedere i tuoi commenti.',
	'COMMENT_NOTE'					=> '<strong>Nota:</strong> I non amici non saranno mai in grado di visualizzare i commenti o lasciare un commento sul tuo profilo!',
	'ALLOW_COMMENT_EMAIL'			=> 'Notifica al commento',
	'ALLOW_COMMENT_EMAIL_EXPLAIN'	=> 'Se impostato su si sarai avvisato via email quando un nuovo commento è inserito sul tuo profilo.',
	'COMMENT_PRIV'					=> 'Commenti profilo Impostazioni sulla privacy',
------------------------------------------Fine Traduzione:

imgattention Correzione sulla sintassi da cercare: 3.0.11 imgattention
imgattention Corrected the syntax to search: 3.0.11
imgattention

Apri: memberlist.php
Non cercare questo:

Codice: Seleziona tutto

 $group_options .= '<option value="' . $row['group_id'] . '"' . (($row['group_id'] == $member['group_id']) ? ' selected="selected"' : '') . '>' . (($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name']) . '</option>';
		}
		$db->sql_freeresult($result);

Ma questo:

Codice: Seleziona tutto

			$group_options .= '<option value="' . $row['group_id'] . '"' . (($row['group_id'] == $member['group_id']) ? ' selected="selected"' : '') . '>' . $row['group_name'] . '</option>';
		}
		unset($group_data);
		unset($group_sort);

Aggiungi dopo

Codice: Seleziona tutto

	// Is the comment mod enabled ?
	if (isset($config['enable_qc']))
	{
		include($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
		generate_smilies('inline', 2);
		$user->add_lang('posting');
		$userid = $user->data['user_id'];
		// Change the comment counter back to 0 when the user visits his/her profile
		if ($user_id == $userid)
		{
				$timestamp = time();
				$sqlupd = "UPDATE  
				" . USERS_TABLE . " 
				SET	user_last_comment = $timestamp
				WHERE user_id = ".$db->sql_escape($userid);
				$db->sql_query($sqlupd);
		}
		
		$start	= request_var('start', 0);
		$limit	= request_var('limit', intval($config['comm_per_page']));
		$pagination_url = append_sid($phpbb_root_path . 'memberlist.' . $phpEx ,'mode=viewprofile&u='.$user_id);

		$sql = $db->sql_build_query('SELECT', array(
			'SELECT'	=> 'u.username, u.user_avatar,u.user_avatar_type, u.user_avatar_width, u.user_avatar_height,u.user_colour, u.allow_all_comment, c.*',
			'FROM'		=> array(
				USERS_TABLE		=> 'u',
			),
			'LEFT_JOIN'	=> array(
				array(
					'FROM'	=> array(COMMENT_TABLE => 'c'),
					'ON'	=> 'u.user_id = c.comment_poster_id'		
				)
			),
			'WHERE'		=> 'c.comment_to_id = '.$user_id,
			'ORDER_BY'	=> 'c.comment_id DESC'
		));
					
		$result = $db->sql_query_limit($sql, $limit, $start);
		
				
	while($row = $db->sql_fetchrow($result))
	{


		$row['bbcode_options'] = (($row['enable_bbcode']) ? OPTION_FLAG_BBCODE : 0) +
    					(($row['enable_smilies']) ? OPTION_FLAG_SMILIES : 0) + 
    					(($row['enable_magic_url']) ? OPTION_FLAG_LINKS : 0);
		$comment_text_format = generate_text_for_display($row['comment_text'], $row['bbcode_uid'], $row['bbcode_bitfield'], $row['bbcode_options']);
		$avatar 			= get_user_avatar($row['user_avatar'], $row['user_avatar_type'], $row['user_avatar_width'], $row['user_avatar_height']);
		$av_size 			= $config['sc_av_size'];
		$comment_id 		= $row['comment_id'];
		$comment_author_id 	= $row['comment_poster_id'];
			
		// Assign the needed template vars.
		$template->assign_block_vars('comment',array(	
			'COMMENT_DATE'		=> $user->format_date($row['comment_date']),
			'COMMENT_AUTHOR'	=> get_username_string('full', $row['comment_poster_id'], $row['username'], $row['user_colour']),
			'COMMENT_TEXT'		=> $comment_text_format,
			'COMMENT_AVATAR_THUMB'	=>  ($row['user_avatar']) ? get_user_avatar($row['user_avatar'], $row['user_avatar_type'], ($row['user_avatar_width'] > $row['user_avatar_height']) ? $av_size : ($av_size / $row['user_avatar_height']) * $row['user_avatar_width'], ($row['user_avatar_height'] > $row['user_avatar_width']) ? $av_size : ($av_size / $row['user_avatar_width']) * $row['user_avatar_height']) : '',
			'U_USER_URL'			=> append_sid($phpbb_root_path . 'memberlist.' . $phpEx ,'mode=viewprofile&u='.$comment_author_id),
			'U_DELETE_URL'		=> append_sid($phpbb_root_path . 'new_comment.' . $phpEx ,'mode=delete&comment='.$comment_id.'&u='.$comment_author_id.'&p='.$user_id),	
			'CAN_DELETE'		=> ($user_id == $user->data['user_id'] || $user->data['user_id'] == $row['comment_poster_id']) ? true:false,

			));
}
			$db->sql_freeresult($result);			

	// count some stuff up for the pagination
	$sql = 'SELECT COUNT(comment_id) AS comment_number 
				FROM '. COMMENT_TABLE ." 
				WHERE comment_to_id = $user_id";
				
	$result = $db->sql_query($sql);
	$total_comments = $db->sql_fetchfield('comment_number');
	
	$db->sql_freeresult($result);
	
		// Are you my foe?
		$sql = 'SELECT friend, foe
			FROM ' . ZEBRA_TABLE . "
			WHERE zebra_id = {$user->data['user_id']}
				AND user_id = $user_id";

		$result = $db->sql_query($sql);
		$row = $db->sql_fetchrow($result);


		// are you my friend?
	$sql = 'SELECT friend, foe
			FROM ' . ZEBRA_TABLE . "
			WHERE zebra_id = $user_id
				AND user_id = {$user->data['user_id']}";

		$result = $db->sql_query($sql);
		$row = $db->sql_fetchrow($result);
		
		$user_ids 		= ($user_id == $user->data['user_id']) ? true : false;
		
		$template->assign_vars(array(
			'ALLOW_ALL_COMMENT'	=>  ($member['allow_all_comment']) ? true:false,
			'ALLOW_FRIEND_ONLY' => ($member['allow_friend_only'] && !$row['friend']  && !$user_ids) ? true:false,
			'ALLOW_FRIEND_VIEW' => ($member['allow_friend_view'] && !$row['friend']  && !$user_ids) ? true:false,		
			'FOE'  				=> ($row['foe']) ? true:false,
			'S_BBCODE_ALLOWED' 	=> true,

			'COMMENT_TO_ID'		=> $user_id,		
   		 	'PAGINATION'        => generate_pagination($pagination_url, $total_comments, $limit, $start),
    	 	'PAGE_NUMBER'       => on_page($total_comments, $limit, $start),
   		 	'TOTAL_COMMENT'     => ($total_comments == 1) ? $user->lang['LIST_COMMENT'] : sprintf($user->lang['LIST_COMMENTS'], $total_comments),
    	 	'NO_COMMENT'       	=> $total_comments,
    	 	'DELETE_IMG' 		=> $user->img('icon_post_delete', 'DELETE_POST'),
    	 	'SIMPLE_COMMENT_ENABLED' => $config['enable_comment'],


		));
		$db->sql_freeresult($result);

	}
Non hai i permessi necessari per visualizzare i file allegati in questo messaggio.

Bloccato

Torna a “Traduzioni”

Chi c’è in linea

Visitano il forum: Nessuno e 33 ospiti