Pagina 1 van 1
parse error met topic discription mod
Geplaatst: 17 dec 2004, 16:30
door Chatterke
Ik kijk er waarschijnlijk weer over, maar ik heb ondertussen al van alles geprobeerd maar de error blijft
Ik hoop dat jullie me kunnen helpen, de error zit in vieuwforum.php op lijn 668.
Een stukje code beginnend vanaf regel 668:
Code: Selecteer alles
if ( !empty($topic_rowset[$i]['topic_desc']))
{
$topic_desc = $topic_rowset[$i]['topic_desc'];
$template->assign_block_vars('topicrow.switch_topic_desc', array(
'TOPIC_DESCRIPTION' => smilies_pass($topic_desc))
);
Het hele bestand [ur=
http://www.jow.be/help/vieuwforum.txtl]vieuwforum.php[/url]
Alvast bedankt voor de reacties

Geplaatst: 17 dec 2004, 16:36
door Luuk
$template->assign_block_vars('topicrow', array(
'ROW_COLOR' => $row_color,
'ROW_CLASS' => $row_class,
'FORUM_ID' => $forum_id,
'TOPIC_ID' => $topic_id,
'TOPIC_FOLDER_IMG' => $folder_image,
'TOPIC_AUTHOR' => $topic_author,
'GOTO_PAGE' => $goto_page,
'REPLIES' => $replies,
'NEWEST_POST_IMG' => $newest_post_img,
'TOPIC_TITLE' => $topic_title,
'TOPIC_TYPE' => $topic_type,
'VIEWS' => $views,
'FIRST_POST_TIME' => $first_post_time,
'LAST_POST_TIME' => $last_post_time,
'LAST_POST_AUTHOR' => $last_post_author,
'LAST_POST_IMG' => $last_post_url,
'L_TOPIC_FOLDER_ALT' => $folder_alt,
'U_VIEW_TOPIC' => $view_topic_url)
if ( !empty($topic_rowset[$i]['topic_desc']))
{
$topic_desc = $topic_rowset[$i]['topic_desc'];
$template->assign_block_vars('topicrow.switch_topic_desc', array(
'TOPIC_DESCRIPTION' => smilies_pass($topic_desc))
);
}
);
}
Dit kan niet, probeer het eens zo:
Code: Selecteer alles
$template->assign_block_vars('topicrow', array(
'ROW_COLOR' => $row_color,
'ROW_CLASS' => $row_class,
'FORUM_ID' => $forum_id,
'TOPIC_ID' => $topic_id,
'TOPIC_FOLDER_IMG' => $folder_image,
'TOPIC_AUTHOR' => $topic_author,
'GOTO_PAGE' => $goto_page,
'REPLIES' => $replies,
'NEWEST_POST_IMG' => $newest_post_img,
'TOPIC_TITLE' => $topic_title,
'TOPIC_TYPE' => $topic_type,
'VIEWS' => $views,
'FIRST_POST_TIME' => $first_post_time,
'LAST_POST_TIME' => $last_post_time,
'LAST_POST_AUTHOR' => $last_post_author,
'LAST_POST_IMG' => $last_post_url,
'L_TOPIC_FOLDER_ALT' => $folder_alt,
'U_VIEW_TOPIC' => $view_topic_url)
);
}
if ( !empty($topic_rowset[$i]['topic_desc']))
{
$topic_desc = $topic_rowset[$i]['topic_desc'];
$template->assign_block_vars('topicrow.switch_topic_desc', array(
'TOPIC_DESCRIPTION' => smilies_pass($topic_desc))
);
}
Geplaatst: 17 dec 2004, 16:43
door Chatterke
De lijn is nu weg maar nu duikt er een tweede error op
Fatal error: Cannot redeclare load_bbcode_template() in /home/chatterke/public_html/forum/includes/bbcode.php on line 43
In vieuwforum.php heb ik ook van boven een deel moeten toevoegen dat hier te maken mee had, dit was het volgende:
Code: Selecteer alles
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include_once($phpbb_root_path . 'includes/bbcode.'.$phpEx);
//Request the bbcode parsing php page, so we don't call an undefined function ;)
include($phpbb_root_path . 'includes/bbcode.' .$phpEx);
in de bbcode kan het normaal niet liggen omdat ik daar niks heb moeten aanpassen.
//edit opgelost
2 keer de bbcode
Bedankt voor je hulp met die ene lijn
