Si, perchè tu li hai messi nella cartella "forum"artikkk ha scritto: E infatti se provi ad aprire:
http://www.pronosky.com/jqueratings/jms ... msg.min.js
Da NOT FOUND.
Così li trova:
http://www.pronosky.com/forum/jqueratin ... msg.min.js
Si, perchè tu li hai messi nella cartella "forum"artikkk ha scritto: E infatti se provi ad aprire:
http://www.pronosky.com/jqueratings/jms ... msg.min.js
Da NOT FOUND.
{PHPBB_ROOT_PATH} dovrebbe essere la root del forum.Lady R ha scritto:si ma non capisco che variabile devo mettere per indicare la root di phpbb..
Codice: Seleziona tutto
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
Codice: Seleziona tutto
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forum/';
Codice: Seleziona tutto
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
Codice: Seleziona tutto
//---------- 10 Topics più Recenti start -----------//
$sql1 = "SELECT tt.topic_id, tt.forum_id, tt.topic_title, tt.topic_time, tt.topic_moved_id, tt.topic_first_poster_name,
ft.forum_id, ft.forum_name
FROM " . TOPICS_TABLE . " tt, " . FORUMS_TABLE . " ft
WHERE tt.topic_type = 0
AND tt.topic_moved_id = 0
AND tt.forum_id = ft.forum_id
ORDER BY tt.topic_time DESC LIMIT 0,$list_rec";
$result1 = $db->sql_query($sql1);
$n1 = 0;
while ($row1 = $db->sql_fetchrow($result1))
{
if ($auth->acl_get('f_read', $row1['forum_id']) == 1)
{
if ($n1 < $list_view)
{
if (strlen($row1['topic_title']) > 28)
{
$topic_title1 = substr($row1['topic_title'],0,27) . "...";
}else{
$topic_title1 = $row1['topic_title'];
}
$last_topic_link[$n1] = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=" . $row1['forum_id'] . "&t=" . $row1['topic_id']);
$last_topic_title[$n1] = $row1['topic_title'];
$last_topic_title_short[$n1] = $topic_title1;
$last_topic_forum[$n1] = $row1['forum_name'];
$last_topic_author[$n1] = $row1['topic_first_poster_name'];
$last_topic_data[$n1] = date("d M",$row1['topic_time']);
$last_topic_data[$n1] = mod_data($last_topic_data[$n1]);
//$last_topic_data[$n1] = $user->format_date($row1['topic_time'], "|d M|");
++$n1 ;
}else{
break ;
}
}
}
Codice: Seleziona tutto
for ($x = 0; $x < $list_view; ++$x)
{
$template->assign_block_vars('topten_list',array(
'LAST_TOPIC_LINK' => $last_topic_link[$x],
'LAST_TOPIC_TITLE' => $last_topic_title[$x],
'LAST_TOPIC_TITLE_SHORT' => $last_topic_title_short[$x],
'LAST_TOPIC_FORUM' => $last_topic_forum[$x],
'LAST_TOPIC_AUTHOR' => $last_topic_author[$x],
'LAST_TOPIC_DATA' => $last_topic_data[$x],
));
}
Ho paura di no, magari funzionano ma non vengono validate.Lady R ha scritto:Grazie millissime.
ma poi tutte le mie query funzionano senza problemi o devo stare attenta che siano compatibili con tutti i linguaggi SQL supportati da phpBB?
@mysql_query($sql)
e funzionava ma per poter essere validato da phpbb devi fare $db->sql_query($sql)
.Visitano il forum: Nessuno e 46 ospiti