template.php

Installatie lukt niet? Plotseling een foutmelding. Of weet je niet hoe iets werkt. Problemen met phpBB2 kun je in dit archief opzoeken.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
maico
Berichten: 562
Lid geworden op: 04 jan 2004, 18:26

template.php

Bericht door maico » 14 feb 2006, 10:51

Support template:Aeolus, subsilver Overige opmerkingen:

Ik heb de Mod name: eXtreme Styles mod erop staan en de daar bijbehorende template.php overschreven zoals aan gegeven in de tijdens de instalatie.

Nu paar mods verder instaleer ik de statistics_mod_v215
Loop ik tegen het probleem aan dat hij de modules niet laat zien in het CP.
Naar even zoeken kwam ik erachter dat het dus aan de template.php ligt van de extreme styles mod.

Nu staat er in de instal handleiding van de statics wel iets over maar dat klopt niet met deze template.php.

Code: Selecteer alles

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#

#-------------------------------------------------------------
# NOTE: THIS STEP IS ONLY NEEDED IF YOU USE THE FILE-BASED CACHED TEMPLATE.PHP FILE
#
# If you are using the template cache system (only file-based is mentioned here), 
# please adjust your template.php as followed (This will NOT disable the Template Caching)
# It is a little tweak to let the template use the non-cached output if no cached template 
# file could be found.
#-------------------------------------------------------------

# 
#-----[ OPEN ]--------------------------------------------- 
# 
includes/template.php

#
#-----[ FIND ]---------------------------------------------
# around line 144
			$fp = fopen($cache_file, 'w+');
			fwrite ($fp, '<?php' . "\n" . $this->compiled_code[$handle] . "\n?" . '>');

# 
#-----[ REPLACE WITH ]-------------------------------------- 
# 
			$fp = @fopen($cache_file, 'w+');
			if (!$fp)
			{
				eval($this->compiled_code[$handle]);
				return true;
			}
			fwrite ($fp, '<?php' . "\n" . $this->compiled_code[$handle] . "\n?" . '>');

#
#-----[ FIND ]---------------------------------------------
# around line 188
			$fp = fopen($cache_file, 'w+');
			fwrite ($fp, '<?php' . "\n" . $code . "\n?" . '>');

# 
#-----[ REPLACE WITH ]-------------------------------------- 
# 
			$fp = @fopen($cache_file, 'w+');
			if (!$fp)
			{
				$_str = '';
				eval($code);
				$this->assign_var($varname, $_str);
				return true;
			}
			fwrite ($fp, '<?php' . "\n" . $code . "\n?" . '>');


# EoM
template.php

maico
Berichten: 562
Lid geworden op: 04 jan 2004, 18:26

Bericht door maico » 14 feb 2006, 11:36

Zoals vaak nu ook weer het geval :oops: :lol:
Ga je vragen dan vind je zelf de oplossing elders :lol:

Was dus bekend probleem

Ik hoop dat er nog iemand wat aan heeft

Gesloten