| Topic Archived |
View previous topic :: View next topic |
| Author |
Message |
djdevon3 Gold Supporter


Offline Joined: Aug 05, 2004 Posts: 4363
|
Posted: Wed Sep 21, 2005 5:41 pm Post subject: Re: Basic Theme Codes Guide |
|
S_MY_ACCOUNT is defined in theme.php
The container is actually where it's defined.
You could name it anything you want as long as you reflect that in your theme properly. I only said not to change it to try and keep it or something similar as a theme standard.
if you'll notice it says $cpgtpl->assign_vars
meaning you are assigning (defining) the variable right there.
djdevon3's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/1.3.33/4.4/4.3.11
|
|
| Back to top |
|
 |
Q-tech Newbie


Offline Joined: Aug 04, 2005 Posts: 33 Location: Bulgaria
|
Posted: Fri Sep 23, 2005 10:09 am Post subject: Re: Basic Theme Codes Guide |
|
Just wanted to add a message for future theme creators:
Avoid using relative links to images as it already exists in documentroot (/). This may cause a content corruption.
And I also think it is a bad idea to replace user smiles and ranks...
_________________
Wise man - believes half of what he reads. Genius - knows which half to believe.
-- Benny Hill
Q-tech's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Slackware 9.1 Current/Apache 2.05/MySQL 4.1.12/PHP 5.04/Dragonfly 9.0.6.1
|
|
| Back to top |
|
 |
djdevon3 Gold Supporter


Offline Joined: Aug 05, 2004 Posts: 4363
|
Posted: Mon Sep 26, 2005 11:45 am Post subject: Re: Basic Theme Codes Guide |
|
i'm sorry q-tech i don't understand what your saying there. do you mean links like /images etc.. instead of site.tld/images?
Why a bad idea to replace user smilies and ranks? Aren't they meant to be replaced?
djdevon3's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/1.3.33/4.4/4.3.11
|
|
| Back to top |
|
 |
hartunnoo Newbie


Offline Joined: Nov 26, 2005 Posts: 1
|
Posted: Wed Nov 30, 2005 11:33 am Post subject: Theme creation |
|
Hey guys I just drop by. just want to know more on creating good looking themes. Is there any other software that I can easily used to create my own theme.?
Thank you..
hartunnoo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) php
|
|
| Back to top |
|
 |
t31os Supporter


Offline Joined: Sep 22, 2004 Posts: 2025 Location: Somewhere in the intertubes... lolz
|
Posted: Tue Dec 13, 2005 12:31 pm Post subject: Re: Basic Theme Codes Guide |
|
You can use the equivalent to this in the theme.php
| Code:: |
themes/'.$CPG_SESS['theme'].'/images/ |
Just remember to declare $CPG_SESS in the global array. You can see an example in the cpgnuke theme.
Just an update for anyone interested, means NOT having to edit the theme.php if you want to change the theme name.
t31os's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) XP / 2.0 / 5.1 / 5.2 / none
|
|
| Back to top |
|
 |
djdevon3 Gold Supporter


Offline Joined: Aug 05, 2004 Posts: 4363
|
Posted: Thu Mar 02, 2006 1:11 am Post subject: Re: Basic Theme Codes Guide |
|
Eh I'd rather just hardcode the theme name then.
djdevon3's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/1.3.33/4.4/4.3.11
|
|
| Back to top |
|
 |
WebSiteGuru 1000+ Posts Club


Offline Joined: Jun 09, 2005 Posts: 2318
|
Posted: Thu Mar 02, 2006 3:56 pm Post subject: Re: Basic Theme Codes Guide |
|
I use themes/'.$CPG_SESS['theme'].'/images/ in all my new themes and it work out pretty good. I am happy with it.
_________________ Lead Theme Designer - WebSiteGuru Designs
WebSiteGuru's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux 2.6.9 / Apache 2.2.6 / MySQL 5.0.27 / PHP 5 / DF Version 9.2.1
|
|
| Back to top |
|
 |
djdevon3 Gold Supporter


Offline Joined: Aug 05, 2004 Posts: 4363
|
Posted: Fri Mar 10, 2006 5:59 pm Post subject: Re: Basic Theme Codes Guide |
|
oh duh i see. it's so you can change the theme name. well i'm kinda against that because then i could be providing support for TCD_OMGBBQ. i'll have to start adding in my readme's that i don't provide support for people that change the name of my themes.
djdevon3's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/1.3.33/4.4/4.3.11
|
|
| Back to top |
|
 |
|
|