Custom Template

Posts from previous Beta sessions

Custom Template

Postby deenkids » Mon Feb 11, 2008 10:13 pm

I had been playing around with custom templates and had created one to match my site; however at this most recent SVN, though my settings are the same (no custom file over-written), I am locked back into the default and the toggle gives me the same result even though my custom template is selected.

Has anyone else run into this at all?
Image
User avatar
deenkids
WR.net Apprentice
WR.net Apprentice
 
Posts: 27
Joined: Fri Oct 12, 2007 7:30 am
Location: Northern Illinois

Custom Template

Postby deenkids » Mon Feb 11, 2008 10:37 pm

So far it appears to be an issue with the change in template.php from:

Code: Select all
$this->root = 'templates/' . $this->tpl;


to:

Code: Select all
$this->root = ROSTER_TPLDIR . $this->tpl;
Image
User avatar
deenkids
WR.net Apprentice
WR.net Apprentice
 
Posts: 27
Joined: Fri Oct 12, 2007 7:30 am
Location: Northern Illinois

Custom Template

Postby zanix » Tue Feb 12, 2008 2:35 am

Hmm, there still might be some problems with the template system
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Custom Template

Postby zanix » Tue Feb 12, 2008 2:43 am

Try this

open lib/template.php
Line 160 - Find
Code: Select all
        if (!file_exists(ROSTER_BASE $this->files[$handle])) 


Replace with
Code: Select all
        if (!file_exists($this->files[$handle])) 


Line 167 - Find
Code: Select all
            if( !file_exists(ROSTER_BASE $this->files[$handle]) && $pos !== false && is_dir(ROSTER_ADDONS substr($this->filename[$handle],0,$pos) . '/templates') ) 


Replace with
Code: Select all
            if( !file_exists($this->files[$handle]) && $pos !== false && is_dir(ROSTER_ADDONS substr($this->filename[$handle],0,$pos) . '/templates') ) 
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US


Return to Archived

Who is online

Users browsing this forum: No registered users and 1 guest