phpBB Italia chiude!
phpBB Italia ringrazia tutti gli utenti che hanno dato fiducia al nostro progetto per ben 9 anni, e che, grazie al grande lavoro fatto da tutto lo Staff (rigorosamente a titolo gratuito), hanno portato il portale a diventare il principale punto di riferimento italiano alla piattaforma phpBB.

Purtroppo, causa motivi personali, non ho più modo di gestirlo e portarlo avanti. Il forum viene ora posto in uno stato di sola lettura, nonché un archivio storico per permettere a chiunque di fruire di tutte le discussioni trattate.

Il nuovo portale di assistenza per l'Italia di phpBB diventa phpBB-Store.it, cui ringrazio per aver deciso di portare avanti questo grande progetto.

Grazie ancora,
Carlo - Amministratore di phpBB Italia

Una domanda su questo script

Area di discussione relativa al linguaggio di programmazione web più conosciuto. Il forum è dedicato anche a MySQL, la piattaforma di database più utilizzata con il PHP.
Avatar utente
Carlo
Amministratore
Amministratore
Messaggi: 9957
Iscritto il: 19/04/2009, 10:24
Sesso: Maschio
Versione: 3.2.0
Server: UNIX/Linux
PHP: 7.1.0
Database: MySQL(i) 10.0.27-MariaDB-cll-lve
Località: Puglia
Contatta:

Re: Una domanda su questo script

Messaggio da Carlo » 08/07/2010, 17:28

Basterebbe non usare la funzione strtolower().
MODs | Stili | Traduzioni MOD
Ogni MP contenente una richiesta di supporto verrà ignorato.

Kid ITALY
Utente
Utente
Messaggi: 84
Iscritto il: 22/06/2010, 15:51
Versione: 3.0.7-PL1
Server: UNIX/Linux
Località: Puglia

Re: Una domanda su questo script

Messaggio da Kid ITALY » 08/07/2010, 18:05

:-) grazie della risposta. :shock: Infatti sti giorni o riprovato, lo levato ma mi da sempre in piccolo, non riesco a capire come mai mi rimane in piccolo?
lo elliminato lo desintegratto, non sò più cosa fare??

Avatar utente
Carlo
Amministratore
Amministratore
Messaggi: 9957
Iscritto il: 19/04/2009, 10:24
Sesso: Maschio
Versione: 3.2.0
Server: UNIX/Linux
PHP: 7.1.0
Database: MySQL(i) 10.0.27-MariaDB-cll-lve
Località: Puglia
Contatta:

Re: Una domanda su questo script

Messaggio da Carlo » 08/07/2010, 18:13

Incollami la funzione che hai creato senza strtolower().
MODs | Stili | Traduzioni MOD
Ogni MP contenente una richiesta di supporto verrà ignorato.

Kid ITALY
Utente
Utente
Messaggi: 84
Iscritto il: 22/06/2010, 15:51
Versione: 3.0.7-PL1
Server: UNIX/Linux
Località: Puglia

Re: Una domanda su questo script

Messaggio da Kid ITALY » 08/07/2010, 18:50

ok, ti inserisco tutto di tutto

includes/acp/acp_users

Codice: Seleziona tutto

case 'profile':

				include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
				include($phpbb_root_path . 'includes/functions_profile_fields.' . $phpEx);

				$cp = new custom_profile();
				// xfire mod
		        $user->add_lang('common');
				// xfire mod
		        $user->add_lang('mods/xfire');
				
				// Ps3 mod
		        $user->add_lang('mods/ps3');
				
				// NWii mod
		        $user->add_lang('mods/nwii');

				// BEGIN XBox Leaderboard Mod
				$user->add_lang('mods/leaderboard');
                // END XBox Leaderboard Mod
				
				$cp_data = $cp_error = array();

				$sql = 'SELECT lang_id
					FROM ' . LANG_TABLE . "
					WHERE lang_iso = '" . $db->sql_escape($user->data['user_lang']) . "'";
				$result = $db->sql_query($sql);
				$row = $db->sql_fetchrow($result);
				$db->sql_freeresult($result);

				$user_row['iso_lang_id'] = $row['lang_id'];

				$data = array(
					'icq'			=> request_var('icq', $user_row['user_icq']),
					'aim'			=> request_var('aim', $user_row['user_aim']),
					'msn'			=> request_var('msn', $user_row['user_msnm']),
					
					// xfire mod
					'xfire'			=> strtolower(request_var('xfire', $user_row['user_xfire'])),
					
					// Ps3 mod
					'ps3'			=> strtolower(request_var('ps3', $user_row['user_ps3'])),
					'ps3_style'			=> request_var('ps3_style', $user_row['user_ps3_style']),
					
					// NWii mod
					'nwii'			=> strtolower(request_var('nwii', $user_row['user_nwii'])),
					'nwii_codec_one'			=> request_var('nwii_codec_one', $user_row['user_nwii_codec_one']),
					'nwii_codec_two'			=> request_var('nwii_codec_two', $user_row['user_nwii_codec_two']),
					'nwii_codec_three'			=> request_var('nwii_codec_three', $user_row['user_nwii_codec_three']),
					'nwii_codec_four'			=> request_var('nwii_codec_four', $user_row['user_nwii_codec_four']),

					// BEGIN XBox Leaderboard Mod
					'xbox'					=> request_var('xbox', $user_row['user_xbox']),
					'xbox_style'			=> request_var('xbox_style', (int) $user_row['user_xbox_style']),
					'xbox_replace_avatar'	=> request_var('xbox_replace_avatar', (int) $user_row['user_xbox_replace_avatar']),					
                    // END XBox Leaderboard Mod
					
					'yim'			=> request_var('yim', $user_row['user_yim']),
					'jabber'		=> utf8_normalize_nfc(request_var('jabber', $user_row['user_jabber'], true)),
					'website'		=> request_var('website', $user_row['user_website']),
					'sex'			=> request_var('user_sex', $user_row['user_sex']),
					'location'		=> utf8_normalize_nfc(request_var('location', $user_row['user_from'], true)),
					'occupation'	=> utf8_normalize_nfc(request_var('occupation', $user_row['user_occ'], true)),
					'interests'		=> utf8_normalize_nfc(request_var('interests', $user_row['user_interests'], true)),
					'bday_day'		=> 0,
					'bday_month'	=> 0,
					'bday_year'		=> 0,
				);

				if ($user_row['user_birthday'])
				{
					list($data['bday_day'], $data['bday_month'], $data['bday_year']) = explode('-', $user_row['user_birthday']);
				}

				$data['bday_day']		= request_var('bday_day', $data['bday_day']);
				$data['bday_month']		= request_var('bday_month', $data['bday_month']);
				$data['bday_year']		= request_var('bday_year', $data['bday_year']);
				$data['user_birthday']	= sprintf('%2d-%2d-%4d', $data['bday_day'], $data['bday_month'], $data['bday_year']);


				if ($submit)
				{
					$error = validate_data($data, array(
						'icq'			=> array(
							array('string', true, 3, 15),
							array('match', true, '#^[0-9]+$#i')),
						'aim'			=> array('string', true, 3, 255),
						'msn'			=> array('string', true, 5, 255),
						'sex'		=> array('string', true, 1, 100),
						// xfire mod
						'xfire'		=> array('string', true, 4, 25),
							
						// BEGIN XBox Leaderboard Mod
						'xbox'		=> array('string', true, 4, 15),
                        // END XBox Leaderboard Mod
						
						'user_nwii'		=> array('string', true, 12, 255),
						'user_nwii_codec_one'		=> array('string', true, 12, 255),
						'user_nwii_codec_two'		=> array('string', true, 12, 255),
						'user_nwii_codec_three'		=> array('string', true, 12, 255),
						'user_nwii_codec_four'		=> array('string', true, 12, 255),
						
						// Ps3 mod
						'ps3'		=> array('string', true, 2, 100),
						'user_ps3_style'		=> array(
							array('string', true, 12, 255),
							array('match', true, '#^http[s]?://(.*?\.)*?[a-z0-9\-]+\.[a-z]{2,4}#i')),
							
						'jabber'		=> array(
							array('string', true, 5, 255),
							array('jabber')),
						'yim'			=> array('string', true, 5, 255),
						'website'		=> array(
							array('string', true, 12, 255),
							array('match', true, '#^http[s]?://(.*?\.)*?[a-z0-9\-]+\.[a-z]{2,4}#i')),
						'location'		=> array('string', true, 2, 100),
						'occupation'	=> array('string', true, 2, 500),
						'interests'		=> array('string', true, 2, 500),
						'bday_day'		=> array('num', true, 1, 31),
						'bday_month'	=> array('num', true, 1, 12),
						'bday_year'		=> array('num', true, 1901, gmdate('Y', time())),
						'user_birthday'	=> array('date', true),
					));

					// validate custom profile fields
					$cp->submit_cp_field('profile', $user_row['iso_lang_id'], $cp_data, $cp_error);

					if (sizeof($cp_error))
					{
						$error = array_merge($error, $cp_error);
					}
					if (!check_form_key($form_name))
					{
						$error[] = 'FORM_INVALID';
					}
					
                    // BEGIN XBox Leaderboard Mod
					$data['user_xbox_last_date'] = $user_row['user_xbox_last_date'];
					if (strtolower($user_row['user_xbox']) != strtolower($data['xbox']))
					{
						$db->sql_query('DELETE FROM ' . LEADERBOARD_TABLE . ' WHERE gamer_uid = ' . $user_id);
						$data['user_xbox_last_date'] = time();
					}
					if (!empty($data['xbox']))
					{
						if (!function_exists('gamertag_check'))
						{
							include($phpbb_root_path . 'includes/functions_leaderboard.' . $phpEx);
						}							
						$gamer_message = gamertag_check($data['xbox'], $user_id);
						if ($gamer_message)
						{
							$error[] = 'XBOX_GAMERTAG_ERROR';
						}
					}
                    // END XBox Leaderboard Mod
					
					if (!sizeof($error))
					{
						$sql_ary = array(
							'user_icq'		=> $data['icq'],
							'user_aim'		=> $data['aim'],
							'user_msnm'		=> $data['msn'],
							'user_sex'	       => $data['sex'],
							
							// xfire mod
							'user_xfire'	       => $data['xfire'],
							
							// Ps3 mod
							'user_ps3'	       => $data['ps3'],
							'user_ps3_style'	=> $data['ps3_style'],
							
							// NWii mod
							'user_nwii'	       => $data['nwii'],
							'user_nwii_codec_one'	=> $data['nwii_codec_one'],
							'user_nwii_codec_two'	=> $data['nwii_codec_two'],
							'user_nwii_codec_three'	=> $data['nwii_codec_three'],
							'user_nwii_codec_four'	=> $data['nwii_codec_four'],

							// BEGIN XBox Leaderboard Mod
							'user_xbox'	       			=> $data['xbox'],
							'user_xbox_style'      		=> $data['xbox_style'],
							'user_xbox_replace_avatar'	=> $data['xbox_replace_avatar'],
							'user_xbox_last_date'		=> $data['user_xbox_last_date'],
                            // END XBox Leaderboard Mod	
													
							'user_yim'		=> $data['yim'],
							'user_jabber'	=> $data['jabber'],
							'user_website'	=> $data['website'],
							'user_from'		=> $data['location'],
							'user_occ'		=> $data['occupation'],
							'user_interests'=> $data['interests'],
							'user_birthday'	=> $data['user_birthday'],
						);

						$sql = 'UPDATE ' . USERS_TABLE . '
							SET ' . $db->sql_build_array('UPDATE', $sql_ary) . "
							WHERE user_id = $user_id";
						$db->sql_query($sql);

						// Update Custom Fields
						$cp->update_profile_field_data($user_id, $cp_data);

						trigger_error($user->lang['USER_PROFILE_UPDATED'] . adm_back_link($this->u_action . '&u=' . $user_id));
					}

					// Replace "error" strings with their real, localised form
					$error = preg_replace('#^([A-Z_]+)$#e', "(!empty(\$user->lang['\\1'])) ? \$user->lang['\\1'] : '\\1'", $error);
				}

				$s_birthday_day_options = '<option value="0"' . ((!$data['bday_day']) ? ' selected="selected"' : '') . '>--</option>';
				for ($i = 1; $i < 32; $i++)
				{
					$selected = ($i == $data['bday_day']) ? ' selected="selected"' : '';
					$s_birthday_day_options .= "<option value=\"$i\"$selected>$i</option>";
				}

				$s_birthday_month_options = '<option value="0"' . ((!$data['bday_month']) ? ' selected="selected"' : '') . '>--</option>';
				for ($i = 1; $i < 13; $i++)
				{
					$selected = ($i == $data['bday_month']) ? ' selected="selected"' : '';
					$s_birthday_month_options .= "<option value=\"$i\"$selected>$i</option>";
				}
				$s_birthday_year_options = '';

				$now = getdate();
				$s_birthday_year_options = '<option value="0"' . ((!$data['bday_year']) ? ' selected="selected"' : '') . '>--</option>';
				for ($i = $now['year'] - 100; $i <= $now['year']; $i++)
				{
					$selected = ($i == $data['bday_year']) ? ' selected="selected"' : '';
					$s_birthday_year_options .= "<option value=\"$i\"$selected>$i</option>";
				}
				unset($now);

				$template->assign_vars(array(
					'ICQ'			=> $data['icq'],
					'YIM'			=> $data['yim'],
					'AIM'			=> $data['aim'],
					'MSN'			=> $data['msn'],
					
					// xfire mod
					'XFIRE'			=> $data['xfire'],
					
					// Ps3 mod
					'PS3'			=> $data['ps3'],
					'PS3_STYLE'		=> $data['ps3_style'],
					
					// NWii mod
					'NWII'			=> $data['nwii'],
					'NWII_CODEC_ONE'		=> $data['nwii_codec_one'],
					'NWII_CODEC_TWO'		=> $data['nwii_codec_two'],
					'NWII_CODEC_TRHEE'		=> $data['nwii_codec_three'],
					'NWII_CODEC_FOUR'		=> $data['nwii_codec_four'],

					// BEGIN XBox Leaderboard Mod
					'XBOX'			=> $data['xbox'],
					'XBOX_STYLE'	=> $data['xbox_style'],
					'XBOX_AVATAR'	=> $data['xbox_replace_avatar'],					
                    // END XBox Leaderboard Mod
					
					'JABBER'		=> $data['jabber'],
					'WEBSITE'		=> $data['website'],
					'SEX'			=> $data['sex'],
					'LOCATION'		=> $data['location'],
					'OCCUPATION'	=> $data['occupation'],
					'INTERESTS'		=> $data['interests'],

					'S_BIRTHDAY_DAY_OPTIONS'	=> $s_birthday_day_options,
					'S_BIRTHDAY_MONTH_OPTIONS'	=> $s_birthday_month_options,
					'S_BIRTHDAY_YEAR_OPTIONS'	=> $s_birthday_year_options,

					'S_PROFILE'		=> true)
				);

				// Get additional profile fields and assign them to the template block var 'profile_fields'
				$user->get_profile_fields($user_id);

				$cp->generate_profile_fields('profile', $user_row['iso_lang_id']);

			break;

			case 'prefs':

				include($phpbb_root_path . 'includes/functions_user.' . $phpEx);

				$data = array(
					'dateformat'		=> utf8_normalize_nfc(request_var('dateformat', $user_row['user_dateformat'], true)),
					'lang'				=> basename(request_var('lang', $user_row['user_lang'])),
					'tz'				=> request_var('tz', (float) $user_row['user_timezone']),
					'sex'				=> request_var('sex', $user_row['user_sex']),
					'style'				=> request_var('style', $user_row['user_style']),
					'dst'				=> request_var('dst', $user_row['user_dst']),
					'viewemail'			=> request_var('viewemail', $user_row['user_allow_viewemail']),
					'massemail'			=> request_var('massemail', $user_row['user_allow_massemail']),
					'hideonline'		=> request_var('hideonline', !$user_row['user_allow_viewonline']),
					'notifymethod'		=> request_var('notifymethod', $user_row['user_notify_type']),
					'notifypm'			=> request_var('notifypm', $user_row['user_notify_pm']),
					'popuppm'			=> request_var('popuppm', $this->optionget($user_row, 'popuppm')),
					'allowpm'			=> request_var('allowpm', $user_row['user_allow_pm']),

					'topic_sk'			=> request_var('topic_sk', ($user_row['user_topic_sortby_type']) ? $user_row['user_topic_sortby_type'] : 't'),
					'topic_sd'			=> request_var('topic_sd', ($user_row['user_topic_sortby_dir']) ? $user_row['user_topic_sortby_dir'] : 'd'),
					'topic_st'			=> request_var('topic_st', ($user_row['user_topic_show_days']) ? $user_row['user_topic_show_days'] : 0),

					'post_sk'			=> request_var('post_sk', ($user_row['user_post_sortby_type']) ? $user_row['user_post_sortby_type'] : 't'),
					'post_sd'			=> request_var('post_sd', ($user_row['user_post_sortby_dir']) ? $user_row['user_post_sortby_dir'] : 'a'),
					'post_st'			=> request_var('post_st', ($user_row['user_post_show_days']) ? $user_row['user_post_show_days'] : 0),

					'view_images'		=> request_var('view_images', $this->optionget($user_row, 'viewimg')),
					'view_flash'		=> request_var('view_flash', $this->optionget($user_row, 'viewflash')),
					'view_smilies'		=> request_var('view_smilies', $this->optionget($user_row, 'viewsmilies')),
					'view_sigs'			=> request_var('view_sigs', $this->optionget($user_row, 'viewsigs')),
					'view_avatars'		=> request_var('view_avatars', $this->optionget($user_row, 'viewavatars')),
					'view_wordcensor'	=> request_var('view_wordcensor', $this->optionget($user_row, 'viewcensors')),

					'bbcode'	=> request_var('bbcode', $this->optionget($user_row, 'bbcode')),
					'smilies'	=> request_var('smilies', $this->optionget($user_row, 'smilies')),
					'sig'		=> request_var('sig', $this->optionget($user_row, 'attachsig')),
					'notify'	=> request_var('notify', $user_row['user_notify']),
				);
poi Memberlist.php

Codice: Seleziona tutto

$template->assign_vars(array(
			'L_POSTS_IN_QUEUE'	=> $user->lang('NUM_POSTS_IN_QUEUE', $member['posts_in_queue']),

			'POSTS_DAY'			=> sprintf($user->lang['POST_DAY'], $posts_per_day),
			'POSTS_PCT'			=> sprintf($user->lang['POST_PCT'], $percentage),

			'OCCUPATION'	=> (!empty($member['user_occ'])) ? censor_text($member['user_occ']) : '',
			'INTERESTS'		=> (!empty($member['user_interests'])) ? censor_text($member['user_interests']) : '',
			'SIGNATURE'		=> $member['user_sig'],
			
			'USER_SEX'   => (!empty($member['user_sex'])) ? $sex : USE_SEX,
			
			// BEGIN xfire mod
			'XFIRE'		=> (!empty($member['user_xfire'])) ? $member['user_xfire'] : '',
			'XFIRE_STYLE'   => (!empty($member['user_xfire'])) ? $xfire_style : XFIRE_BG,
            // END xfire mod
			
			// BEGIN Ps3 mod
			'PS3'		=> (!empty($member['user_ps3'])) ? $member['user_ps3'] : '',
			'PS3_STYLE'		=> (!empty($member['user_ps3_style'])) ? $member['user_ps3_style'] : '',
            // END Ps3 mod
			
			// BEGIN NWii mod
			'NWII'		=> (!empty($member['user_nwii'])) ? $member['user_nwii'] : '',
			'NWII_CODEC_ONE'		=> (!empty($member['user_nwii_codec_one'])) ? $member['user_nwii_codec_one'] : '',
			'NWII_CODEC_TWO'		=> (!empty($member['user_nwii_codec_two'])) ? $member['user_nwii_codec_two'] : '',
			'NWII_CODEC_THREE'		=> (!empty($member['user_nwii_codec_three'])) ? $member['user_nwii_codec_three'] : '',
			'NWII_CODEC_FOUR'		=> (!empty($member['user_nwii_codec_four'])) ? $member['user_nwii_codec_four'] : '',
            // END NWii mod

			// BEGIN XBox Leaderboard Mod
			'XBOX'			=> (!empty($member['user_xbox']) && !$user->data['is_bot'] && (isset($config['xbxl_enable']) && $config['xbxl_enable'])) ? htmlspecialchars_decode($member['user_xbox']) : '',
			'XBOX_STYLE'	=> (!empty($member['user_xbox_style'])) ? $member['user_xbox_style'] : 0,
			'S_XBOX'		=> (!empty($user->data['user_xbox']) && $user->data['user_xbox'] != $member['user_xbox']) ? true : false,
			'S_XBOX_AVATAR'	=> (!empty($member['user_xbox']) && $member['user_xbox_replace_avatar'] && (isset($config['xbxl_avatars_allowed']) && $config['xbxl_avatars_allowed']) && (isset($config['xbxl_enable']) && $config['xbxl_enable'])) ? true : false,
			'S_XBOX_GAMERCARDS'   =>  true,
			'XBOX_FRIEND_IMG'	=> $user->img('button_leaderboard_friend', 'XBOX_ADD_FRIEND'),
			'XBOX_MESSAGE_IMG'	=> $user->img('button_leaderboard_message', 'XBOX_SEND_MESSAGE'),			
            // END XBox Leaderboard Mod
			
			'POSTS_IN_QUEUE'=> $member['posts_in_queue'],

			'AVATAR_IMG'	=> $poster_avatar,
			'PM_IMG'		=> $user->img('icon_contact_pm', $user->lang['SEND_PRIVATE_MESSAGE']),
			'EMAIL_IMG'		=> $user->img('icon_contact_email', $user->lang['EMAIL']),
			'WWW_IMG'		=> $user->img('icon_contact_www', $user->lang['WWW']),
			'ICQ_IMG'		=> $user->img('icon_contact_icq', $user->lang['ICQ']),
			'AIM_IMG'		=> $user->img('icon_contact_aim', $user->lang['AIM']),
			'MSN_IMG'		=> $user->img('icon_contact_msnm', $user->lang['MSNM']),
			'YIM_IMG'		=> $user->img('icon_contact_yahoo', $user->lang['YIM']),
			'JABBER_IMG'	=> $user->img('icon_contact_jabber', $user->lang['JABBER']),
			'SEARCH_IMG'	=> $user->img('icon_user_search', $user->lang['SEARCH']),

			'S_PROFILE_ACTION'	=> append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=group'),
			'S_GROUP_OPTIONS'	=> $group_options,
			'S_CUSTOM_FIELDS'	=> (isset($profile_fields['row']) && sizeof($profile_fields['row'])) ? true : false,

			'U_USER_ADMIN'			=> ($auth->acl_get('a_user')) ? append_sid("{$phpbb_root_path}adm/index.$phpEx", 'i=users&mode=overview&u=' . $user_id, true, $user->session_id) : '',
			'U_USER_BAN'			=> ($auth->acl_get('m_ban') && $user_id != $user->data['user_id']) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=ban&mode=user&u=' . $user_id, true, $user->session_id) : '',
			'U_MCP_QUEUE'			=> ($auth->acl_getf_global('m_approve')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=queue', true, $user->session_id) : '',

			'U_SWITCH_PERMISSIONS'	=> ($auth->acl_get('a_switchperm') && $user->data['user_id'] != $user_id) ? append_sid("{$phpbb_root_path}ucp.$phpEx", "mode=switch_perm&u={$user_id}&hash=" . generate_link_hash('switchperm')) : '',

			'S_USER_NOTES'		=> ($user_notes_enabled) ? true : false,
			'S_WARN_USER'		=> ($warn_user_enabled) ? true : false,
			'S_ZEBRA'			=> ($user->data['user_id'] != $user_id && $user->data['is_registered'] && $zebra_enabled) ? true : false,
			'U_ADD_FRIEND'		=> (!$friend && !$foe && $friends_enabled) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=zebra&add=' . urlencode(htmlspecialchars_decode($member['username']))) : '',
			'U_ADD_FOE'			=> (!$friend && !$foe && $foes_enabled) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=zebra&mode=foes&add=' . urlencode(htmlspecialchars_decode($member['username']))) : '',
			'U_REMOVE_FRIEND'	=> ($friend && $friends_enabled) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=zebra&remove=1&usernames[]=' . $user_id) : '',
			'U_REMOVE_FOE'		=> ($foe && $foes_enabled) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=zebra&remove=1&mode=foes&usernames[]=' . $user_id) : '',
		));
		
sempre su Memberlist.php ma infondo alla pagina si trova questo:

Codice: Seleziona tutto

// Dump it out to the template
	return array(
		'AGE'			=> $age,
		'RANK_TITLE'	=> $rank_title,
		'JOINED'		=> $user->format_date($data['user_regdate']),
		'VISITED'		=> (empty($last_visit)) ? ' - ' : $user->format_date($last_visit),
		'POSTS'			=> ($data['user_posts']) ? $data['user_posts'] : 0,
		'WARNINGS'		=> isset($data['user_warnings']) ? $data['user_warnings'] : 0,

		'USERNAME_FULL'		=> get_username_string('full', $user_id, $username, $data['user_colour']),
		'USERNAME'			=> get_username_string('username', $user_id, $username, $data['user_colour']),
		'USER_COLOR'		=> get_username_string('colour', $user_id, $username, $data['user_colour']),
		'U_VIEW_PROFILE'	=> get_username_string('profile', $user_id, $username, $data['user_colour']),

		'A_USERNAME'		=> addslashes(get_username_string('username', $user_id, $username, $data['user_colour'])),

		'AVATAR_IMG'		=> get_user_avatar($data['user_avatar'], $data['user_avatar_type'], $data['user_avatar_width'], $data['user_avatar_height']),
		'ONLINE_IMG'		=> (!$config['load_onlinetrack']) ? '' : (($online) ? $user->img('icon_user_online', 'ONLINE') : $user->img('icon_user_offline', 'OFFLINE')),
		'S_ONLINE'			=> ($config['load_onlinetrack'] && $online) ? true : false,
		'RANK_IMG'			=> $rank_img,
		'RANK_IMG_SRC'		=> $rank_img_src,
		'ICQ_STATUS_IMG'	=> (!empty($data['user_icq'])) ? '<img src="http://web.icq.com/whitepages/online?icq=' . $data['user_icq'] . '&img=5" width="18" height="18" />' : '',
		'S_JABBER_ENABLED'	=> ($config['jab_enable']) ? true : false,

		'S_WARNINGS'	=> ($auth->acl_getf_global('m_') || $auth->acl_get('m_warn')) ? true : false,

		'U_SEARCH_USER'	=> ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", "author_id=$user_id&sr=posts") : '',
		'U_NOTES'		=> ($user_notes_enabled && $auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=notes&mode=user_notes&u=' . $user_id, true, $user->session_id) : '',
		'U_WARN'		=> ($warn_user_enabled && $auth->acl_get('m_warn')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=warn&mode=warn_user&u=' . $user_id, true, $user->session_id) : '',
		'U_PM'			=> ($config['allow_privmsg'] && $auth->acl_get('u_sendpm') && ($data['user_allow_pm'] || $auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_'))) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&mode=compose&u=' . $user_id) : '',
		'U_EMAIL'		=> $email,
		'U_WWW'			=> (!empty($data['user_website'])) ? $data['user_website'] : '',
		'U_USER_SEX'			=> ($data['user_sex'] = str_replace(array(1, 2, 3, 4), array('Ragazzo', 'Ragazza', 'Uomo', 'Donna'), (int) $data['user_sex'])),
		'U_PS3_STYLE'	  => (!empty($data['user_ps3_style'])) ? $data['user_ps3_style'] : '',
		'U_SHORT_WWW'			=> (!empty($data['user_website'])) ? ((strlen($data['user_website']) > 55) ? substr($data['user_website'], 0, 39) . ' ... ' . substr($data['user_website'], -10) : $data['user_website']) : '',
		'U_ICQ'			=> ($data['user_icq']) ? 'http://www.icq.com/people/webmsg.php?to=' . urlencode($data['user_icq']) : '',
		'U_AIM'			=> ($data['user_aim'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&action=aim&u=' . $user_id) : '',
		'U_YIM'			=> ($data['user_yim']) ? 'http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($data['user_yim']) . '&.src=pg' : '',
		'U_MSN'			=> ($data['user_msnm'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&action=msnm&u=' . $user_id) : '',
		'U_JABBER'		=> ($data['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&action=jabber&u=' . $user_id) : '',
		'LOCATION'		=> ($data['user_from']) ? $data['user_from'] : '',

		'USER_ICQ'			=> $data['user_icq'],
		'USER_AIM'			=> $data['user_aim'],
		'USER_YIM'			=> $data['user_yim'],
		'USER_MSN'			=> $data['user_msnm'],
		'USER_JABBER'		=> $data['user_jabber'],
		'USER_JABBER_IMG'	=> ($data['user_jabber']) ? $user->img('icon_contact_jabber', $data['user_jabber']) : '',

		'L_VIEWING_PROFILE'	=> sprintf($user->lang['VIEWING_PROFILE'], $username),
	);
}
poi su ViewTopic.php

Codice: Seleziona tutto

	// Cache various user specific data ... so we don't have to recompute
	// this each time the same user appears on this page
	if (!isset($user_cache[$poster_id]))
	{
		if ($poster_id == ANONYMOUS)
		{
			$user_cache[$poster_id] = array(
				'joined'		=> '',
				'posts'			=> '',
				'from'			=> '',

				'sig'					=> '',
				'sig_bbcode_uid'		=> '',
				'sig_bbcode_bitfield'	=> '',

				'online'			=> false,
				'avatar'			=> ($user->optionget('viewavatars')) ? get_user_avatar($row['user_avatar'], $row['user_avatar_type'], $row['user_avatar_width'], $row['user_avatar_height']) : '',
				'rank_title'		=> '',
				'rank_image'		=> '',
				'rank_image_src'	=> '',
				'sig'				=> '',
				
				'profile'			=> '',
				'pm'				=> '',
				'email'				=> '',
				'www'				=> '',
				'icq_status_img'	=> '',
				'icq'				=> '',
				'aim'				=> '',
				'msn'				=> '',
				
				// BEGIN xfire mod
				'xfire'			    => '',
				'xfire_style'	    => '',
                // END xfire mod
				
				// BEGIN Ps3 mod
				'ps3'			=> '',
				'ps3_style'	    => '',
                // END Ps3 mod
				
				// BEGIN NWii mod
				'nwii'			=> '',
				'nwii_codec_one'	    => '',
				'nwii_codec_two'	    => '',
				'nwii_codec_three'	    => '',
				'nwii_codec_four'	    => '',
                // END NWii mod
				
				// BEGIN XBox Leaderboard Mod
				'xbox'				=> '',
				'xbox_style'		=> '',
				'xbox_avatar'		=> '',
                // END XBox Leaderboard Mod
				
				'yim'				=> '',
				'jabber'			=> '',
				'search'			=> '',
				'age'				=> '',
				
				'user_sex'		    => '',

				'username'			=> $row['username'],
				'user_colour'		=> $row['user_colour'],

				'warnings'			=> 0,
				'allow_pm'			=> 0,
			);

			get_user_rank($row['user_rank'], false, $user_cache[$poster_id]['rank_title'], $user_cache[$poster_id]['rank_image'], $user_cache[$poster_id]['rank_image_src']);
		}
		else
		{
			$user_sig = '';

			// We add the signature to every posters entry because enable_sig is post dependant
			if ($row['user_sig'] && $config['allow_sig'] && $user->optionget('viewsigs'))
			{
				$user_sig = $row['user_sig'];
			}

			$id_cache[] = $poster_id;

			$user_cache[$poster_id] = array(
				'joined'		=> $user->format_date($row['user_regdate']),
				'posts'			=> $row['user_posts'],
				'warnings'		=> (isset($row['user_warnings'])) ? $row['user_warnings'] : 0,
				'from'			=> (!empty($row['user_from'])) ? $row['user_from'] : '',

				'sig'					=> $user_sig,
				'sig_bbcode_uid'		=> (!empty($row['user_sig_bbcode_uid'])) ? $row['user_sig_bbcode_uid'] : '',
				'sig_bbcode_bitfield'	=> (!empty($row['user_sig_bbcode_bitfield'])) ? $row['user_sig_bbcode_bitfield'] : '',

				'viewonline'	=> $row['user_allow_viewonline'],
				'allow_pm'		=> $row['user_allow_pm'],

				'avatar'		=> ($user->optionget('viewavatars')) ? get_user_avatar($row['user_avatar'], $row['user_avatar_type'], $row['user_avatar_width'], $row['user_avatar_height']) : '',
				'age'			=> '',
				
				'user_sex'  => ($row['user_sex'] = str_replace(array(1, 2, 3, 4), array('Ragazzo', 'Ragazza', 'Uomo', 'Donna'), (int) $row['user_sex'])),

				'rank_title'		=> '',
				'rank_image'		=> '',
				'rank_image_src'	=> '',

				'username'			=> $row['username'],
				'user_colour'		=> $row['user_colour'],

				'online'		=> false,
				'profile'		=> append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=viewprofile&u=$poster_id"),
				'www'			=> $row['user_website'],
				'aim'			=> ($row['user_aim'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=contact&action=aim&u=$poster_id") : '',
				'msn'			=> ($row['user_msnm'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=contact&action=msnm&u=$poster_id") : '',
				
				// BEGIN xfire mod
        		'xfire'		        => ($row['user_xfire'] && $auth->acl_get('u_sendim'))  ? $row['user_xfire'] : '',
				'user_xfire_style'  => ($row['user_xfire_style'] = str_replace(array(1, 2, 3, 4, 5, 6), array('shadow', 'combat', 'scifi', 'fantasy', 'wow', 'default'), (int) $row['user_xfire_style'])),
                //END xfire mod
				
				// BEGIN xfire mod
        		'ps3'		=> ($row['user_ps3'] && $auth->acl_get('u_sendim'))  ? $row['user_ps3'] : '',
				'user_ps3_style'   => $row['user_ps3_style'],
                //END xfire mod
				
				// BEGIN xfire mod
        		'nwii'		=> ($row['user_nwii'] && $auth->acl_get('u_sendim'))  ? $row['user_nwii'] : '',
				'user_nwii_codec_one'   => $row['user_nwii_codec_one'],
				'user_nwii_codec_two'   => $row['user_nwii_codec_two'],
				'user_nwii_codec_three'   => $row['user_nwii_codec_three'],
				'user_nwii_codec_four'   => $row['user_nwii_codec_four'],
                //END xfire mod
				
				'xbox'		=> ($row['user_xbox'] && $auth->acl_get('u_sendim'))  ? $row['user_xbox'] : '',
				// BEGIN XBox Leaderboard Mod
				'xbox'			=> $row['user_xbox'],
				'xbox_style'	=> $row['user_xbox_style'],
				'xbox_avatar'	=> $row['user_xbox_replace_avatar'],
                // END XBox Leaderboard Mod
				
				'yim'			=> ($row['user_yim']) ? 'http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($row['user_yim']) . '&.src=pg' : '',
				'jabber'		=> ($row['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=contact&action=jabber&u=$poster_id") : '',
				'search'		=> ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", "author_id=$poster_id&sr=posts") : '',

				'author_full'		=> get_username_string('full', $poster_id, $row['username'], $row['user_colour']),
				'author_colour'		=> get_username_string('colour', $poster_id, $row['username'], $row['user_colour']),
				'author_username'	=> get_username_string('username', $poster_id, $row['username'], $row['user_colour']),
				'author_profile'	=> get_username_string('profile', $poster_id, $row['username'], $row['user_colour']),
			);

			get_user_rank($row['user_rank'], $row['user_posts'], $user_cache[$poster_id]['rank_title'], $user_cache[$poster_id]['rank_image'], $user_cache[$poster_id]['rank_image_src']);
poi infondo alla pagina di Viewtopic si trova:

Codice: Seleziona tutto

//
	$postrow = array(
		'POST_AUTHOR_FULL'		=> ($poster_id != ANONYMOUS) ? $user_cache[$poster_id]['author_full'] : get_username_string('full', $poster_id, $row['username'], $row['user_colour'], $row['post_username']),
		'POST_AUTHOR_COLOUR'	=> ($poster_id != ANONYMOUS) ? $user_cache[$poster_id]['author_colour'] : get_username_string('colour', $poster_id, $row['username'], $row['user_colour'], $row['post_username']),
		'POST_AUTHOR'			=> ($poster_id != ANONYMOUS) ? $user_cache[$poster_id]['author_username'] : get_username_string('username', $poster_id, $row['username'], $row['user_colour'], $row['post_username']),
		'U_POST_AUTHOR'			=> ($poster_id != ANONYMOUS) ? $user_cache[$poster_id]['author_profile'] : get_username_string('profile', $poster_id, $row['username'], $row['user_colour'], $row['post_username']),

		'RANK_TITLE'		=> $user_cache[$poster_id]['rank_title'],
		'RANK_IMG'			=> $user_cache[$poster_id]['rank_image'],
		'RANK_IMG_SRC'		=> $user_cache[$poster_id]['rank_image_src'],
		'POSTER_JOINED'		=> $user_cache[$poster_id]['joined'],
		'POSTER_POSTS'		=> $user_cache[$poster_id]['posts'],
		'POSTER_FROM'		=> $user_cache[$poster_id]['from'],
		'POSTER_AVATAR'		=> $user_cache[$poster_id]['avatar'],
		'POSTER_WARNINGS'	=> $user_cache[$poster_id]['warnings'],
		'POSTER_AGE'		=> $user_cache[$poster_id]['age'],

		'POST_DATE'			=> $user->format_date($row['post_time'], false, ($view == 'print') ? true : false),
		'POST_SUBJECT'		=> $row['post_subject'],
		'MESSAGE'			=> $message,
		'SIGNATURE'			=> ($row['enable_sig']) ? $user_cache[$poster_id]['sig'] : '',

		// BEGIN XBox Leaderboard Mod
		'XBOX'				=> (!empty($user_cache[$poster_id]['xbox'])) ? htmlspecialchars_decode($user_cache[$poster_id]['xbox']) : '',
		'XBOX_STYLE'		=> $user_cache[$poster_id]['xbox_style'],
		'S_XBOX'			=> (!empty($user->data['user_xbox']) && ($user->data['user_xbox'] != $user_cache[$poster_id]['xbox']) && (isset($config['xbxl_enable']) && $config['xbxl_enable'])) ? true : false,
		'S_XBOX_AVATAR'		=> (!empty($user_cache[$poster_id]['xbox']) && $user_cache[$poster_id]['xbox_avatar'] && (isset($config['xbxl_avatars_allowed']) && $config['xbxl_avatars_allowed']) && (isset($config['xbxl_enable']) && $config['xbxl_enable'])) ? true : false,
		'S_XBOX_GAMERCARDS'	=> (isset($config['xbxl_viewtopic']) && $config['xbxl_viewtopic']) ? true : false,
		'XBOX_FRIEND_IMG'	=> $user->img('button_leaderboard_friend', 'XBOX_ADD_FRIEND'),
		'XBOX_MESSAGE_IMG'	=> $user->img('button_leaderboard_message', 'XBOX_SEND_MESSAGE'),		
        // END XBox Leaderboard Mod
		
		'EDITED_MESSAGE'	=> $l_edited_by,
		'EDIT_REASON'		=> $row['post_edit_reason'],
		'BUMPED_MESSAGE'	=> $l_bumped_by,

		'MINI_POST_IMG'			=> ($post_unread) ? $user->img('icon_post_target_unread', 'NEW_POST') : $user->img('icon_post_target', 'POST'),
		'POST_ICON_IMG'			=> ($topic_data['enable_icons'] && !empty($row['icon_id'])) ? $icons[$row['icon_id']]['img'] : '',
		'POST_ICON_IMG_WIDTH'	=> ($topic_data['enable_icons'] && !empty($row['icon_id'])) ? $icons[$row['icon_id']]['width'] : '',
		'POST_ICON_IMG_HEIGHT'	=> ($topic_data['enable_icons'] && !empty($row['icon_id'])) ? $icons[$row['icon_id']]['height'] : '',
		'ICQ_STATUS_IMG'		=> $user_cache[$poster_id]['icq_status_img'],
		'ONLINE_IMG'			=> ($poster_id == ANONYMOUS || !$config['load_onlinetrack']) ? '' : (($user_cache[$poster_id]['online']) ? $user->img('icon_user_online', 'ONLINE') : $user->img('icon_user_offline', 'OFFLINE')),
		'S_ONLINE'				=> ($poster_id == ANONYMOUS || !$config['load_onlinetrack']) ? false : (($user_cache[$poster_id]['online']) ? true : false),

		'U_EDIT'			=> ($edit_allowed) ? append_sid("{$phpbb_root_path}posting.$phpEx", "mode=edit&f=$forum_id&p={$row['post_id']}") : '',
		'U_QUOTE'			=> ($auth->acl_get('f_reply', $forum_id)) ? append_sid("{$phpbb_root_path}posting.$phpEx", "mode=quote&f=$forum_id&p={$row['post_id']}") : '',
		'U_INFO'			=> ($auth->acl_get('m_info', $forum_id)) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=main&mode=post_details&f=$forum_id&p=" . $row['post_id'], true, $user->session_id) : '',
		'U_DELETE'			=> ($delete_allowed) ? append_sid("{$phpbb_root_path}posting.$phpEx", "mode=delete&f=$forum_id&p={$row['post_id']}") : '',
		
		'U_SEX'		    => $user_cache[$poster_id]['user_sex'],

		'U_PROFILE'		=> $user_cache[$poster_id]['profile'],
		'U_SEARCH'		=> $user_cache[$poster_id]['search'],
		'U_PM'			=> ($poster_id != ANONYMOUS && $config['allow_privmsg'] && $auth->acl_get('u_sendpm') && ($user_cache[$poster_id]['allow_pm'] || $auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_'))) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&mode=compose&action=quotepost&p=' . $row['post_id']) : '',
		'U_EMAIL'		=> $user_cache[$poster_id]['email'],
		'U_WWW'			=> $user_cache[$poster_id]['www'],
		'U_ICQ'			=> $user_cache[$poster_id]['icq'],
		'U_AIM'			=> $user_cache[$poster_id]['aim'],
		'U_MSN'			=> $user_cache[$poster_id]['msn'],
		// BEGIN xfire mod
        'U_XFIRE'		    => $user_cache[$poster_id]['xfire'],
		'U_XFIRE_STYLE'		=> $user_cache[$poster_id]['user_xfire_style'],
        //END xfire mod
		// BEGIN Ps3 mod
        'U_PS3'		=> $user_cache[$poster_id]['ps3'],
		'U_PS3_STYLE'			=> $user_cache[$poster_id]['user_ps3_style'],
        //END Ps3 mod
		// BEGIN Ps3 mod
        'U_NWII'		=> $user_cache[$poster_id]['nwii'],
		'U_NWII_CODEC_ONE'			=> $user_cache[$poster_id]['user_nwii_codec_one'],
		'U_NWII_CODEC_TWO'			=> $user_cache[$poster_id]['user_nwii_codec_two'],
		'U_NWII_CODEC_THREE'			=> $user_cache[$poster_id]['user_nwii_codec_three'],
		'U_NWII_CODEC_FOUR'			=> $user_cache[$poster_id]['user_nwii_codec_four'],
        //END Ps3 mod
		
		'U_GAMER_TAG'	=> $user_cache[$poster_id]['xbox'],
		
		'U_YIM'			=> $user_cache[$poster_id]['yim'],
		'U_JABBER'		=> $user_cache[$poster_id]['jabber'],

		'U_REPORT'			=> ($auth->acl_get('f_report', $forum_id)) ? append_sid("{$phpbb_root_path}report.$phpEx", 'f=' . $forum_id . '&p=' . $row['post_id']) : '',
		'U_MCP_REPORT'		=> ($auth->acl_get('m_report', $forum_id)) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=reports&mode=report_details&f=' . $forum_id . '&p=' . $row['post_id'], true, $user->session_id) : '',
		'U_MCP_APPROVE'		=> ($auth->acl_get('m_approve', $forum_id)) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=queue&mode=approve_details&f=' . $forum_id . '&p=' . $row['post_id'], true, $user->session_id) : '',
		'U_MINI_POST'		=> append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'p=' . $row['post_id']) . (($topic_data['topic_type'] == POST_GLOBAL) ? '&f=' . $forum_id : '') . '#p' . $row['post_id'],
		'U_NEXT_POST_ID'	=> ($i < $i_total && isset($rowset[$post_list[$i + 1]])) ? $rowset[$post_list[$i + 1]]['post_id'] : '',
		'U_PREV_POST_ID'	=> $prev_post_id,
		'U_NOTES'			=> ($auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=notes&mode=user_notes&u=' . $poster_id, true, $user->session_id) : '',
		'U_WARN'			=> ($auth->acl_get('m_warn') && $poster_id != $user->data['user_id'] && $poster_id != ANONYMOUS) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=warn&mode=warn_post&f=' . $forum_id . '&p=' . $row['post_id'], true, $user->session_id) : '',

		'POST_ID'			=> $row['post_id'],
		'POSTER_ID'			=> $poster_id,

		'S_HAS_ATTACHMENTS'	=> (!empty($attachments[$row['post_id']])) ? true : false,
		'S_POST_UNAPPROVED'	=> ($row['post_approved']) ? false : true,
		'S_POST_REPORTED'	=> ($row['post_reported'] && $auth->acl_get('m_report', $forum_id)) ? true : false,
		'S_DISPLAY_NOTICE'	=> $display_notice && $row['post_attachment'],
		'S_FRIEND'			=> ($row['friend']) ? true : false,
		'S_UNREAD_POST'		=> $post_unread,
		'S_FIRST_UNREAD'	=> $s_first_unread,
		'S_CUSTOM_FIELDS'	=> (isset($cp_row['row']) && sizeof($cp_row['row'])) ? true : false,
		'S_TOPIC_POSTER'	=> ($topic_data['topic_poster'] == $poster_id) ? true : false,

		'S_IGNORE_POST'		=> ($row['hide_post']) ? true : false,
		'L_IGNORE_POST'		=> ($row['hide_post']) ? sprintf($user->lang['POST_BY_FOE'], get_username_string('full', $poster_id, $row['username'], $row['user_colour'], $row['post_username']), '<a href="' . $viewtopic_url . "&p={$row['post_id']}&view=show#p{$row['post_id']}" . '">', '</a>') : '',
	);

	if (isset($cp_row['row']) && sizeof($cp_row['row']))
	{
		$postrow = array_merge($postrow, $cp_row['row']);
	}
e tutto il resto e html. questo e tutto lo script.
Ovviamente se noti e un banale script essistente o solo aggiunto dei postrow e altre cose, mi sono solo basato allo script originale di phpbb .

Avatar utente
Carlo
Amministratore
Amministratore
Messaggi: 9957
Iscritto il: 19/04/2009, 10:24
Sesso: Maschio
Versione: 3.2.0
Server: UNIX/Linux
PHP: 7.1.0
Database: MySQL(i) 10.0.27-MariaDB-cll-lve
Località: Puglia
Contatta:

Re: Una domanda su questo script

Messaggio da Carlo » 08/07/2010, 20:31

Io ti ho chiesto solo la funzione dove era presente strtolower(), non tutto il codice che hai scritto.
MODs | Stili | Traduzioni MOD
Ogni MP contenente una richiesta di supporto verrà ignorato.

Kid ITALY
Utente
Utente
Messaggi: 84
Iscritto il: 22/06/2010, 15:51
Versione: 3.0.7-PL1
Server: UNIX/Linux
Località: Puglia

Re: Una domanda su questo script

Messaggio da Kid ITALY » 08/07/2010, 20:52

eh infatti quello che dici non c'è lo per nervoso lo cancellai, infatti mi e rimasto solo quello, pensando che elliminando quella funzione andasse meglio e il maiuscolo e minuscolo funzionava bene, invece ancora non fà nulla rimane sempre in minuscolo.

cmq era solo quello script di strtolower() non era un script di molta importanza, alla fine il concentrato era su questi file che ti o incluso sul topic.

Avatar utente
Carlo
Amministratore
Amministratore
Messaggi: 9957
Iscritto il: 19/04/2009, 10:24
Sesso: Maschio
Versione: 3.2.0
Server: UNIX/Linux
PHP: 7.1.0
Database: MySQL(i) 10.0.27-MariaDB-cll-lve
Località: Puglia
Contatta:

Re: Una domanda su questo script

Messaggio da Carlo » 08/07/2010, 21:28

Devi controllare lo script che hai creato che aggiunge i dati al database.
MODs | Stili | Traduzioni MOD
Ogni MP contenente una richiesta di supporto verrà ignorato.

Kid ITALY
Utente
Utente
Messaggi: 84
Iscritto il: 22/06/2010, 15:51
Versione: 3.0.7-PL1
Server: UNIX/Linux
Località: Puglia

Re: Una domanda su questo script

Messaggio da Kid ITALY » 08/07/2010, 21:55

e ma su quale su viewtopic o su memberlist xkè come script mi sono rimasti solo quelli.

Avatar utente
Carlo
Amministratore
Amministratore
Messaggi: 9957
Iscritto il: 19/04/2009, 10:24
Sesso: Maschio
Versione: 3.2.0
Server: UNIX/Linux
PHP: 7.1.0
Database: MySQL(i) 10.0.27-MariaDB-cll-lve
Località: Puglia
Contatta:

Re: Una domanda su questo script

Messaggio da Carlo » 08/07/2010, 22:45

Scusa, o mi stai prendendo in giro o non sò cosa. Se hai detto che lo script l'hai creato tu, devi sapere tu meglio di me dove mettere mani.
MODs | Stili | Traduzioni MOD
Ogni MP contenente una richiesta di supporto verrà ignorato.

Kid ITALY
Utente
Utente
Messaggi: 84
Iscritto il: 22/06/2010, 15:51
Versione: 3.0.7-PL1
Server: UNIX/Linux
Località: Puglia

Re: Una domanda su questo script

Messaggio da Kid ITALY » 09/07/2010, 1:17

No no, non ti sto prendendo in giro, non sono tipo da prendere in giro, aspetta ti spiego non vorrei che mi sono spiegato male.
In pratica lo script da come ti dissi in precedenza lo elliminato e ti dissi anche che non è una mod creata da me e solo un aggiunta che ho fatto in quelle pagine che hai visto:
includes/acp/acp_users, Memberlist.php, ViewTopic.php del resto non ho nè incluso un altro script dopo quella elliminazione di tutta la pagina di strtolower() e basta, ora c'è solamente quello che ti ho ellencato prima,
altri script non ci sono.

Rispondi

Torna a “PHP - MySQL”

Chi c’è in linea

Visitano il forum: Nessuno e 3 ospiti