problemen bij het installeren van een kalender...

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Diddie
Berichten: 154
Lid geworden op: 24 sep 2004, 15:00
Contacteer:

problemen bij het installeren van een kalender...

Bericht door Diddie » 02 jun 2005, 12:40

na het installeren van de topic calendar krijg ik deze melding als ik een forum wil bekijken:

Code: Selecteer alles

Fatal error: Cannot redeclare load_bbcode_template() (previously declared in /opt/www/verbelend/web/www.deiremonne.be/phpBB2/includes/bbcode.php:45) in /opt/www/verbelend/web/www.deiremonne.be/phpBB2/includes/bbcode.php on line 43
In bbcode.php moest wel niets aangepast worden, dit is de code:

Code: Selecteer alles

/**
 * Loads bbcode templates from the bbcode.tpl file of the current template set.
 * Creates an array, keys are bbcode names like "b_open" or "url", values
 * are the associated template.
 * Probably pukes all over the place if there's something really screwed
 * with the bbcode.tpl file.
 *
 * Nathan Codding, Sept 26 2001.
 */
function load_bbcode_template()
{
	global $template;
	$tpl_filename = $template->make_filename('bbcode.tpl');
	$tpl = fread(fopen($tpl_filename, 'r'), filesize($tpl_filename));

	// replace \ with \\ and then ' with \'.
	$tpl = str_replace('\\', '\\\\', $tpl);
	$tpl  = str_replace('\'', '\\\'', $tpl);

	// strip newlines.
	$tpl  = str_replace("\n", '', $tpl);

	// Turn template blocks into PHP assignment statements for the values of $bbcode_tpls..
	$tpl = preg_replace('#<!-- BEGIN (.*?) -->(.*?)<!-- END (.*?) -->#', "\n" . '$bbcode_tpls[\'\\1\'] = \'\\2\';', $tpl);

	$bbcode_tpls = array();

	eval($tpl);

	return $bbcode_tpls;
}
Heel mijn forum ligt plat nu, niemand kan nog onderwerpen bekijken of antwoorden...
Groeten diddie! die héél geduldig acheruit leunt nu......

Diddie
Berichten: 154
Lid geworden op: 24 sep 2004, 15:00
Contacteer:

Bericht door Diddie » 02 jun 2005, 15:19

Moest nog iemand dit probleem hebben, kheb de oplossing gevonden op phpBB.com
its importent to know when you have the error,
-if at viewing profile: open viewprofile.php
-if at viewing topic: open viewtopic.php
-if at viewing forum: open vieuwforum.php

search for: include($phpbb_root_path . 'includes/bbcode.' .$phpEx);

and change it into

include_once($phpbb_root_path . 'includes/bbcode.' .$phpEx);

Judas
Berichten: 82
Lid geworden op: 25 okt 2005, 11:43

Bericht door Judas » 02 feb 2006, 02:30

include_once($phpbb_root_path . 'includes/bbcode.' .$phpEx);

dit staat er en ik heb al geprobeerd _once weg te halen. hij stond 2x in de usercp_viewprofile.php, ik heb em er 1x uitgehaald en dat veranderde ook niks? is er nog een andere optie?
ComputerBlond

Gesloten