Page 1 of 1

$template (redirect)

Posted: Sat Aug 28, 2010 3:58 am
by Mr_makaveli
$template->set_filenames(array(
'body' => 'arcade/arcade_index_body.html')

I change it to
$template->set_filenames(array(
'body' => '/styles/template/clanzone3/arcade/arcade_index_body.html')

I get errors, because clanzone3 is not my default theme and nor do i want it to be!

Re: $template (redirect)

Posted: Sat Aug 28, 2010 4:10 am
by AdamR
Can you be more specific as to what you're trying to accomplish? If you're trying to get a MODs files over to another style, you can usually simply copy the MODs template folders/files to the other template directories.

- Adam

Re: $template (redirect)

Posted: Sat Aug 28, 2010 4:18 am
by Mr_makaveli
Im trying to use a seperate theme that users cant change in arcade.php

in the community board its perfect but i dont want that style in arcade.php

Re: $template (redirect)

Posted: Sat Aug 28, 2010 2:22 pm
by tbackoff
Mr_makaveli wrote:$template->set_filenames(array(
'body' => '/styles/template/clanzone3/arcade/arcade_index_body.html')

I get errors, because clanzone3 is not my default theme and nor do i want it to be!
First off, the above "path" is wrong. Second, that's not the way set_filenames is used. You should change it back to this:

Code: Select all

$template->set_filenames(array(
    'body' => 'arcade/arcade_index_body.html'
));
Then, you need a directory called "arcade" in your /styles/clanzone2/template/ directory. As for making sure that only one template is used, I'm not sure how you would accomplish that (if you can at all). You might want to pose this question in the MOD Writers Discussion forum.

Re: $template (redirect)

Posted: Sun Aug 29, 2010 6:59 am
by Mr_makaveli