Przesunięty przez: joli 22-01-2009, 17:43 |
[Problem] bbcode manager |
Autor |
Wiadomość |
chomik
Pomógł: 2 razy Posty: 104
|
|
|
|
 |
Gadatliwa Kasia
|
|
|
|
koziolek


Pomógł: 675 razy Posty: 1925
|
Wysłany: 20-12-2008, 12:23
|
|
|
Hmmm... tak jakbyś nie miał stworzonego obiektu new Template, który tworzony jest w pliku includes\functions.php, albo w pliku bbcode.php nie masz "nie widzi" go - powinieneś mieć: Kod: | function load_bbcode_template()
{
global $template; |
|
_________________ #4 /xg.xrybvmbx.jjj//:cggu |
|
|
|
 |
chomik
Pomógł: 2 razy Posty: 104
|
Wysłany: 20-12-2008, 12:39
|
|
|
mam w 44-49 linijce
Kod: | function load_bbcode_template()
{
global $template;
$tpl_filename = $template->make_filename('bbcode.tpl');
$tpl = fread(fopen($tpl_filename, 'r'), filesize($tpl_filename)); |
|
_________________
NIE KARMIE TROLI!!!!!! |
|
|
|
 |
koziolek


Pomógł: 675 razy Posty: 1925
|
Wysłany: 20-12-2008, 12:47
|
|
|
Sprawdź czy w pliku includes/template.php masz: Kod: | /**
* Generates a full path+filename for the given filename, which can either
* be an absolute name, or a name relative to the rootdir for this Template
* object.
*/
function make_filename($filename, $xs_include = false)
{
if($this->subtemplates)
{
$filename = $this->subtemplates_make_filename($filename);
}
// Check replacements list
if(!$xs_include && isset($this->replace[$filename]))
{
$filename = $this->replace[$filename];
}
// Check if it's an absolute or relative path.
if ((substr($filename, 0, 1) !== '/') && (substr($filename, 1, 1) !== ':'))
{
return $this->root . '/' . $filename;
}
else
{
return str_replace('\\', '/', $filename);
}
} |
Czy w pliku includes/functions.php masz: Kod: | $template_path = 'templates/';
$template_name = $row['template_name'] ;
$template = new Template($phpbb_root_path . $template_path . $template_name); |
|
_________________ #4 /xg.xrybvmbx.jjj//:cggu |
|
|
|
 |
chomik
Pomógł: 2 razy Posty: 104
|
Wysłany: 20-12-2008, 13:01
|
|
|
wszystko mam |
_________________
NIE KARMIE TROLI!!!!!! |
|
|
|
 |
koziolek


Pomógł: 675 razy Posty: 1925
|
Wysłany: 20-12-2008, 13:04
|
|
|
Chodź na gg |
_________________ #4 /xg.xrybvmbx.jjj//:cggu |
|
|
|
 |
Gadatliwa Kasia
|
|
|
|
chomik
Pomógł: 2 razy Posty: 104
|
Wysłany: 20-12-2008, 13:08
|
|
|
koziolek, pw |
_________________
NIE KARMIE TROLI!!!!!! |
|
|
|
 |
|