ho guardato e riguardato il codice; ho trovato e corretto qualche errore di battitura (FOTO:G con FOTO_G niente di speciale) ma mi da sempre questo errore nella riga 13
Codice: Seleziona tutto
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Program Files (x86)\EasyPHP-5.3.9\www\mod_profile_foto.php on line 13
Codice: Seleziona tutto
'USER_COR' => $row['user_id'],
include; su index.php esattamente prima dell'include della mod topten topics... così:
Codice: Seleziona tutto
include($phpbb_root_path . 'mod_profile_foto.' . $phpEx);
include($phpbb_root_path . 'mod_topten_topics.' . $phpEx);
// Output page
// www.phpBB-SEO.com SEO TOOLKIT BEGIN - META
Codice: Seleziona tutto
<?php
if (!defined('IN_PHPBB'))
{
exit;
}
$sql = "SELECT user_id, foto, fotoa, fotob, fotoc, fotod, fotoe, fotof, fotog, fotoh, fotoi
FROM " . PROFILE_FIELDS_TABLE . " ORDER BY user_id
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
$template->assign_block_vars('lista_foto',array(
'USER_COR' => $row['user_id'],
'FOTO' => $row['foto'],
'FOTO_A' => $row['fotoa'],
'FOTO_B' => $row['fotob'],
'FOTO_C' => $row['fotoc'],
'FOTO_D' => $row['fotod'],
'FOTO_E' => $row['fotoe'],
'FOTO_F' => $row['fotof'],
'FOTO_G' => $row['fotog'],
'FOTO_H' => $row['fotoh'],
'FOTO_I' => $row['fotoi']
));
}
?>
Manca qualcosa, ma non capisco cosa...