Warning: Expiry date cannot have a year greater then 9999 in /home/kilandor/seditioforge.com/system/common.php on line 244
$cfg = TRUE; is a really nice function, nice article about it :) - Forums - custom-header-files = more? - Seditio Forge
 
> 1 <

Author Message

..dot..

10 posts

Location: Sweden
Occupation:
Age:
#147   2007-11-19 21:28 GMT      
Code:
$cfg['enablecustomhf'] = TRUE;
is a really nice function, nice article about it
Custom Header Files

Working on a new design and i use this to make the design more flexible, but i miss one big important thing why cant i use it for page.add and for page.edit need them to look different.

Thougth that i would ask here before i dig my nose to deep into it, maybe some one knows a simple solution

This post was edited by Kilandor (2007-11-20 15:32 GMT, ago)
:)

Kilandor

118 posts
http://www.seditioforge.com/
Location: United States TN
Occupation: Web Coder - Gamer - Game Devloper(working on it)
Age: 26
#148   2007-11-20 15:43 GMT      
Well, thats because. It uses a very simple process. Its based on the *.php file your at, which sets the location.

It doesn't get down to specific area's. But you could core hack it to do that.

To do that you could do something like this.

In system/header.php find
PHP Code:

if ($cfg['enablecustomhf'])
    { $mskin = sed_skinfile(array('header', strtolower($location))); }


Change it to this
PHP Code:

if ($cfg['enablecustomhf'])
    { $mskin = sed_skinfile(array('header', strtolower($location), $m)); }

You would just use whatever the vlue of $m in your tpl name. like below.
This would allow you to say, use a template such as header.pages.edit.tpl

If it does not exist it would just use header.tpl

I haven't tested this but you could tell me how it works.

..dot..

10 posts

Location: Sweden
Occupation:
Age:
#149   2007-11-21 17:20 GMT      
A big thanks for the help , tested and it works!!! i also changed this in In system/footer.php so much more flexible! why arent this and $cfg['enablecustomhf'] = TRUE; used in seditio by defult?? It brings so much more design advantage..

EDIT:
Btw thanks for the link edit dont know what i did wrong tryed to change it but it where still wrong..
:)

..dot..

10 posts

Location: Sweden
Occupation:
Age:
#150   2007-11-22 15:48 GMT      
Haha now i understand made so much custom changes so i am all dizzy , only thing that didn’t work was list.tpl and list.groups.tpl so i had to work my way around them.

Still think this is a neat function
:)

Kilandor

118 posts
http://www.seditioforge.com/
Location: United States TN
Occupation: Web Coder - Gamer - Game Devloper(working on it)
Age: 26
#151   2007-11-22 19:40 GMT      
np, it was the ( ) some reaosn it screws up seditio's url bbcode. I needa finish filtering the URL's so that won't happen (I mean the URLs that get outputted like the one you copied)

Well I think for one alot of cfg options shoudl be moved to the config file, there are a few misc, cfg options in functions.php and what not, header etc.
> 1 <
Copyright © 2008 Domain.Com. All Rights Reserved.
Page created in 0.555 seconds