forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: Fking on November 19, 2004, 11:17:10 pm

Title: creating a skin, where to start?
Post by: Fking on November 19, 2004, 11:17:10 pm
I have integrated the CPG with vbulletin3
The skin i'm using for my vbulletin is Utopia, which i converted from vb2 to vb3
now i need to convert it for CGP too
Where do i start? Any directions will be helpful.
I guess it will be better to set the colours and sizes of the tables first...do i have to edit directly the style.css file?


p.s. if someone has already converted the utopia skin, now is the moment to tell me

Title: Re: creating a skin, where to start?
Post by: Joachim Müller on November 20, 2004, 09:53:34 am
In coppermine, we call a "skin" a "theme" - this is how you create your own theme:

It's advisable to upload the file you're modifying every now and then to your webserver and preview your theme - you can do so on a "live" coppermine gallery as well (without showing your visitors the new theme that is still under construction) by adding theme=your_theme_name to the url, e.g. http://yourdomain.tld/your_coppermine/folder/?theme=your_theme_name - this will result in coppermine being displayed with your new theme only for you (everyone else will still see coppermine with the theme you set in coppermine's config.
Important: Some WYSIWYG editors like MS Frontpage or Dreamweaver modify code in a way that will stop coppermine from working (they try to "beautify" php code, which is something they haven't been built for). As a result, you mustn't edit your theme files with a WYSIWYG editor. Use a plain-text editor instead (there are many free editors available that feature preview and code highlighting), in most cases, notepad.exe is fine.

Joachim
Title: Re: creating a skin, where to start?
Post by: Tranz on December 21, 2004, 05:05:39 am
To prevent Dreamweaver from editing php code as it sees fit,
go to Preferences / Code Rewriting
to the Never rewrite code list, add .php

While you're at it, might as well add '.html', especially if you plan to edit any of the theme html files.

Make sure to always work in code view and don't edit in design view.
Title: Re: creating a skin, where to start?
Post by: gcnetwork on March 15, 2005, 10:01:29 pm
I guess netscape composer 4.6 would be the same as dreamweaver, etc as a WYSIWYG editor?    Netscape does most of my site for me so I'm getting confused as how I would customize it
Title: Re: creating a skin, where to start?
Post by: Joachim Müller on March 15, 2005, 11:18:01 pm
don't use a WYSIWYG editor at all, especially not netscape composer nor MS Frontpage. Instead: use a plain text editor (notepad.exe is fine).

Joachim
Title: Re: creating a skin, where to start?
Post by: Charles Scott on March 31, 2005, 11:43:58 pm
GauGau, I found the theme I want (Anime) but see no place to download it.

Where do I go from here?
Title: Re: creating a skin, where to start?
Post by: donnoman on April 01, 2005, 04:28:24 am
All of the themes on the demo are available for download from the coppermine sf.net project pages.

You can hit the "downloads" button at the top left of this forum to take you right there.

Here's a link directly to the themes section http://sourceforge.net/project/showfiles.php?group_id=89658&package_id=98541

Title: Re: creating a skin, where to start?
Post by: Tranz on June 19, 2005, 08:00:17 pm
The next version of Coppermine will no longer include the styleguide theme since there are web developer tool bars available for IE and Firefox that will help in determining the classes used:

Firefox:
Web developer
ColorZilla

IE:
Web Accessibility Toolbar (http://www.nils.org.au/ais/web/resources/toolbar/index.html)
Title: Re: creating a skin, where to start?
Post by: father on June 26, 2005, 03:21:28 am
All of the themes on the demo are available for download from the coppermine sf.net project pages.

You can hit the "downloads" button at the top left of this forum to take you right there.

Here's a link directly to the themes section http://sourceforge.net/project/showfiles.php?group_id=89658&package_id=98541



i've been looking for HARDWIRED which is one of the themes on the demo page. it is NOT in the themes section of the download page, yet i hear a lot of people talking about it and have seen it at several sites.

any idea where i can get it? either download or perhaps e-mailed?

thanks.

[edit by kegobeer] Asked and answered in another post - included with Coppermine [/edit]
Title: Re: creating a skin, where to start?
Post by: SundayNiagara on July 07, 2005, 11:10:00 pm
I would like to see a definitive guide to changing colors, etc.  So far, all I've been able to do, is change the background color and nothing else.  Everytime I change another color, nothing happens.  A tutorial on this would be very nice.
Mark
Title: Re: creating a skin, where to start?
Post by: donnoman on July 08, 2005, 04:16:50 am
As far as Coppermine goes there is plenty of information to create a custom theme on these boards and in the faq.  Creating a theme beyond the basics of what files to edit, and where they go, theres not a whole lot we can create a tutorial for. The main part of the theme, is your own creativity and ability to put that creativity to work with all of the web development tools you have under your belt.

Themes are based in PHP and HTML, but they can include Flash, CSS, inline-style, Java, you name it, theres probably a way you can incorporate it.

The actual problem that you are encountering doesn't really have to do with Coppermine Themeing per'se.  Most of the coppermine themes use CSS to establish the color schemes and a significant portion of the "style" information that browsers renders.  If you want to be effective in editing/creating themes, there are plenty of CSS tutorials available. Just Google it.  Explaining CSS would be a forum in and of itself, and you can find forums already dedicated to it.  

http://www.htmldog.com/guides/cssbeginner/

Looks like a good reference.

CSS is not simple, it can be quite complex as there is not necessarily a 1 to 1 relation to everything you style in CSS.

Selectors can select parents or children, or the item itself.  Some properties are inheritable, some aren't.  You can style elements multiple times, last writer wins.  You will see examples of all of that if you look through the css of the default themes.

It's very likely that whatever color you are changing on an element, is changed by a more specific element assigment elsewhere in the css.

When dealing with CSS I've found the best troubleshooting tools being the Web Tool Bar's for developers.

Internet Explorer:

Web Accessibility Toolbar (http://www.nils.org.au/ais/web/resources/toolbar/index.html) (Creative Commons License)

Mozilla Firefox:

Web Developer Extension (http://www.chrispederick.com/work/firefox/webdeveloper/) (GPL)


 
Title: Re: creating a skin, where to start?
Post by: Tranz on July 08, 2005, 06:20:48 am
Web dev toolbar is a web developer's good friend. :)
Title: Re: creating a skin, where to start?
Post by: SundayNiagara on July 08, 2005, 06:31:17 pm
I am planning on learning CSS, but not just yet and would appreciate a how to.  Yabb's template is similarily confusing and they have a very nice tutorial on how to change everything on it.
Mark
Title: Re: creating a skin, where to start?
Post by: donnoman on July 09, 2005, 04:00:55 am
In coppermine 1.3 there is a theme called styleguide which can assist you to some extent for figuring out what css classes go to what.

I much prefer the web toolbars however, and styleguide won't be in future versions of Coppermine.
Title: Re: creating a skin, where to start?
Post by: SundayNiagara on July 09, 2005, 05:00:26 am
Thanks, I'll give that a try.  However, I'd still prefer a "how-to," written so thje average person can understand it.
Mark
Title: Re: creating a skin, where to start?
Post by: Jangla on October 27, 2005, 12:53:10 pm
Er, I've had a crack at this and now I can't turn off the style guide!  No matter what theme I select, it's still there!

[Edit - fixed it.  Nevermind]