Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Themes :: Archives ⇒ Basic Theme Codes Guide :: Archived


Basic Theme Codes Guide :: Archived
Announce themes that you have created, or ask questions about how to create/modify a theme in 9.x. Includes the Requests sub-forum.
Go to page Previous  1, 2
Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  Themes

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

Offline Offline
Joined: Aug 05, 2004
Posts: 4363

PostPosted: 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
View user's profile Visit poster's website Photo Gallery
Q-tech
Newbie
Newbie

Offline Offline
Joined: Aug 04, 2005
Posts: 33
Location: Bulgaria
PostPosted: 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
View user's profile Visit poster's website
djdevon3
Gold Supporter
Gold Supporter

Offline Offline
Joined: Aug 05, 2004
Posts: 4363

PostPosted: 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
View user's profile Visit poster's website Photo Gallery
hartunnoo
Newbie
Newbie

Offline Offline
Joined: Nov 26, 2005
Posts: 1

PostPosted: 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.. Smile


hartunnoo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
php
Back to top
View user's profile Visit poster's website
t31os
Supporter
Supporter

Offline Offline
Joined: Sep 22, 2004
Posts: 2025
Location: Somewhere in the intertubes... lolz
PostPosted: Tue Dec 13, 2005 12:31 pm
Post subject: Re: Basic Theme Codes Guide

djdevon wrote:
{THEME_PATH} = www.yourdomain.com/the...yourtheme/
This does not work in theme.php. It only works within the /template/ folder.

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
View user's profile Visit poster's website
djdevon3
Gold Supporter
Gold Supporter

Offline Offline
Joined: Aug 05, 2004
Posts: 4363

PostPosted: Thu Mar 02, 2006 1:11 am
Post subject: Re: Basic Theme Codes Guide

Eh I'd rather just hardcode the theme name then. Wink


djdevon3's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.33/4.4/4.3.11
Back to top
View user's profile Visit poster's website Photo Gallery
WebSiteGuru
1000+ Posts Club
1000+ Posts Club

Offline Offline
Joined: Jun 09, 2005
Posts: 2318

PostPosted: 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. Wink

_________________
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
View user's profile Visit poster's website Yahoo Messenger
djdevon3
Gold Supporter
Gold Supporter

Offline Offline
Joined: Aug 05, 2004
Posts: 4363

PostPosted: 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
View user's profile Visit poster's website Photo Gallery
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  Themes
Page 2 of 2
All times are GMT
Go to page Previous  1, 2

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

читај повеќе...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy