user levels

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:

user levels

Bericht door Diddie » 28 apr 2005, 02:35

na het installeren van deze mod wil ik naar permissies gaan in het ACP en ik krijg deze foutmelding:
Fatal error: Cannot redeclare class template in C:\xampp\htdocs\phpBB2\includes\template.php on line 30

En dat is deze code:

Code: Selecteer alles

/**
 * Template class. By Nathan Codding of the phpBB group.
 * The interface was originally inspired by PHPLib templates,
 * and the template file formats are quite similar.
 *
 */

class Template {
	var $classname = "Template";

	// variable that holds all the data we'll be substituting into
	// the compiled templates.
	// ...
	// This will end up being a multi-dimensional array like this:
	// $this->_tpldata[block.][iteration#][child.][iteration#][child2.][iteration#][variablename] == value
	// if it's a root-level variable, it'll be like this:
	// $this->_tpldata[.][0][varname] == value
	var $_tpldata = array();

	// Hash of filenames for each template handle.
	var $files = array();

	// Root template directory.
	var $root = "";

	// this will hash handle names to the compiled code for that handle.
	var $compiled_code = array();

	// This will hold the uncompiled code for that handle.
	var $uncompiled_code = array();

	/**
	 * Constructor. Simply sets the root dir.
	 *
	 */
	function Template($root = ".")
	{
		$this->set_rootdir($root);
	}

	/**
	 * Destroys this template object. Should be called when you're done with it, in order
	 * to clear out the template data so you can load/parse a new template set.
	 */
	function destroy()
	{
		$this->_tpldata = array();
	}

	/**
	 * Sets the template root directory for this Template object.
	 */
	function set_rootdir($dir)
	{
		if (!is_dir($dir))
		{
			return false;
		}

		$this->root = $dir;
		return true;
	}

	/**
	 * Sets the template filenames for handles. $filename_array
	 * should be a hash of handle => filename pairs.
	 */
	function set_filenames($filename_array)
	{
class Template { dit is lijn 30

Khoop dat jullie het vinden. :bier:

Gebruikersavatar
Paul
Beheerder
Beheerder
Berichten: 20316
Lid geworden op: 23 okt 2003, 11:38
Locatie: Utrecht
Contacteer:

Bericht door Paul » 28 apr 2005, 08:31

gebruik je php5? Dat is dan waarschijnlijk het probleem ;)

Gebruikersavatar
AarClay
Berichten: 787
Lid geworden op: 10 feb 2005, 17:12

Bericht door AarClay » 28 apr 2005, 09:53

paulus schreef:gebruik je php5? Dat is dan waarschijnlijk het probleem ;)
Ik zou niet inschatten kunnen hoezo PHP5 parten speelt?
Die functie wordt gewoon 2 keer of vaker aangeroepen. En tja, dezelfde functienamen kan gewoon niet.

Gebruikersavatar
Paul
Beheerder
Beheerder
Berichten: 20316
Lid geworden op: 23 okt 2003, 11:38
Locatie: Utrecht
Contacteer:

Bericht door Paul » 28 apr 2005, 11:17

deze pagina heeft regelmatig problemen met php5. Het is ook geen functie maar een class. (Of gebruik de zoekfunctie, in support zijn we er 2 pagina's lang mee bezig geweest ;))

Gesloten