Pagina 1 van 1

Probleempje

Geplaatst: 20 feb 2006, 20:59
door hendry
Support template:
  • Wat is het probleem? Een pagina wil niet erbij maken
    Wanneer ontstond het probleem? net
    Adres van je forum: http://nogprivee
    Geïnstalleerde mods: veel [niet bijgehouden]
    Huidige template: subsilver [aangepast]
    phpBB versie: 2.0.19
    Waar is je forum gehost: ergens :P
    Heb je onlangs iets verandert aan je forum? nee
    Heb je gezocht naar een antwoord? (Ja, welke zoekwoorden? Nee, probeer eerst eens te zoeken)
Overige opmerkingen: Nou ik zie:

Code: Selecteer alles


Parse error: syntax error, unexpected T_STRING in /home/hendry/domains/no-domain-exist.dot/public_html/copy.php on line 37
Copy.php

Code: Selecteer alles

<?php 
/*************************************************************************** 
 *                               copy.php 
 *                            ------------------- 
 *   begin                : Tuesday, Octobre 22, 2005 
 *   copyright            : (C) Lucas van Dijk 
 *   email                : lucas@aoe3capitol.nl 
 * 
 *   $Id: pagina.php,v 1.00 2005/08/23 21:31 MrLucky Exp $ 
 * 
 * 
 ***************************************************************************/ 

/*************************************************************************** 
 * 
 *   This program is free software; you can redistribute it and/or modify 
 *   it under the terms of the GNU General Public License as published by 
 *   the Free Software Foundation; either version 2 of the License, or 
 *   (at your option) any later version. 
 * 
 ***************************************************************************/ 

define('IN_PHPBB', true); 
$phpbb_root_path = './'; 
include($phpbb_root_path . 'extension.inc'); 
include($phpbb_root_path . 'common.'.$phpEx); 

// 
// Start session management 
// 
$userdata = session_pagestart($user_ip, PAGE_INDEX); 
init_userprefs($userdata); 
// 
// End session management 
// 

$template -> set_filenames('array('body' => '/copy_body.tpl')); 

include($phpbb_root_path.'includes/page_header.php'); 
$template -> pparse('body'); 
include($phpbb_root_path.'includes/page_tail.php'); 

?> 

Geplaatst: 20 feb 2006, 21:01
door XGE_Lithium

Code: Selecteer alles

$template -> set_filenames('array('body' => '/copy_body.tpl'));
Vervangen met

Code: Selecteer alles

$template -> set_filenames('array('body' => '/copy_body.tpl');

Geplaatst: 20 feb 2006, 21:04
door Bee
Ga eens haakjes tellen. Je zal zien dat je constatering niet klopt.

Maar de aprostrof voor array moet je wel weghalen.

Geplaatst: 20 feb 2006, 21:09
door hendry
Oke nu zie ik:

Code: Selecteer alles

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/hendry/domains/no-domain-exist.dot/public_html/copy.php on line 37
en copy.php is:

Code: Selecteer alles

<?php 
/*************************************************************************** 
 *                               copy.php 
 *                            ------------------- 
 *   begin                : Tuesday, Octobre 22, 2005 
 *   copyright            : (C) Lucas van Dijk 
 *   email                : lucas@aoe3capitol.nl 
 * 
 *   $Id: pagina.php,v 1.00 2005/08/23 21:31 MrLucky Exp $ 
 * 
 * 
 ***************************************************************************/ 

/*************************************************************************** 
 * 
 *   This program is free software; you can redistribute it and/or modify 
 *   it under the terms of the GNU General Public License as published by 
 *   the Free Software Foundation; either version 2 of the License, or 
 *   (at your option) any later version. 
 * 
 ***************************************************************************/ 

define('IN_PHPBB', true); 
$phpbb_root_path = './'; 
include($phpbb_root_path . 'extension.inc'); 
include($phpbb_root_path . 'common.'.$phpEx); 

// 
// Start session management 
// 
$userdata = session_pagestart($user_ip, PAGE_INDEX); 
init_userprefs($userdata); 
// 
// End session management 
// 

$template -> set_filenames'array('body' => 'copy_body.tpl');

include($phpbb_root_path.'includes/page_header.php'); 
$template -> pparse('body'); 
include($phpbb_root_path.'includes/page_tail.php'); 

?> 

Geplaatst: 20 feb 2006, 21:11
door XGE_Lithium
Origineel:

Code: Selecteer alles

$template -> set_filenames('array('body' => '/copy_body.tpl'));
Zo moet ie worden (zie Bee's post)

Code: Selecteer alles

$template -> set_filenames(array('body' => '/copy_body.tpl'));
Zo heb jij hem:

Code: Selecteer alles

$template -> set_filenames 'array('body' => '/copy_body.tpl'));
Je hebt de "(" weggehaald in plaats van de '

Geplaatst: 20 feb 2006, 21:39
door hendry
Is gelukt, bedankt ;)