$template (redirect)

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Anti-Spam Guide
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
Mr_makaveli
Registered User
Posts: 1159
Joined: Sun Oct 26, 2008 3:34 pm

$template (redirect)

Post 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!
Last edited by ric323 on Sun Aug 29, 2010 7:07 am, edited 1 time in total.
Reason: Topic icon changed
www.tgzforum.com, a new forum for all types of people
User avatar
AdamR
Former Team Member
Posts: 9731
Joined: Tue Mar 02, 2004 5:40 pm
Location: Tampa, Florida
Name: Adam Reyher
Contact:

Re: $template (redirect)

Post 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
phpBB Support: Welcome | Userguide | Knowledge Base | Search
Honored supporter of the phpBB Group!
"If I have seen a little further it is by standing on the shoulders of Giants." - Isaac Newton
Mr_makaveli
Registered User
Posts: 1159
Joined: Sun Oct 26, 2008 3:34 pm

Re: $template (redirect)

Post 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
www.tgzforum.com, a new forum for all types of people
User avatar
tbackoff
Former Team Member
Posts: 7064
Joined: Thu Jun 04, 2009 1:41 am
Location: cheerleading practice
Name: Tabitha Backoff

Re: $template (redirect)

Post 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.
Flying is the second best thrill to cheerleaders; being caught is the first.
Mr_makaveli
Registered User
Posts: 1159
Joined: Sun Oct 26, 2008 3:34 pm

Re: $template (redirect)

Post by Mr_makaveli »

www.tgzforum.com, a new forum for all types of people
Locked

Return to “[3.0.x] Support Forum”