coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: AzorMachine on September 04, 2011, 08:56:09 PM

Title: Not sure of how to create a new theme
Post by: AzorMachine on September 04, 2011, 08:56:09 PM
Hello.
I was just going to start making the Theme for my gallery, using this topic as a reference : http://forum.coppermine-gallery.net/index.php?topic=38508.0

But I coudn't understand the method of creating themes. I have already done an HTML template, with CSS, but not sure of how to add the commands of coppermine, and it would be good, a list with all of them.
Any help of a theme artist?

Best Regards
Title: Re: Not sure of how to create a new theme
Post by: AzorMachine on September 04, 2011, 08:59:58 PM
Oh yes, I'm using 1.5.x
Title: Re: Not sure of how to create a new theme
Post by: Αndré on September 05, 2011, 10:08:07 AM
Quote from: AzorMachine on September 04, 2011, 08:56:09 PM
not sure of how to add the commands of coppermine
What exactly do you mean?
Title: Re: Re: Not sure of how to create a new theme
Post by: AzorMachine on September 05, 2011, 01:47:26 PM
Quote from: Αndré on September 05, 2011, 10:08:07 AM
What exactly do you mean?

I have an HTML document, with my gallery layout. How can I create an CPG Theme, with it?
Got it now?
Title: Re: Not sure of how to create a new theme
Post by: Αndré on September 05, 2011, 02:22:44 PM
You should read at least the following sections of the documentation:
- http://documentation.coppermine-gallery.net/en/theme_create.htm#theme_create
- http://documentation.coppermine-gallery.net/en/theme_examples.htm#theme_examples
- http://documentation.coppermine-gallery.net/en/theme.htm#theme_engine
Title: Re: Re: Not sure of how to create a new theme
Post by: AzorMachine on September 05, 2011, 05:47:47 PM
Quote from: Αndré on September 05, 2011, 02:22:44 PM
You should read at least the following sections of the documentation:
- http://documentation.coppermine-gallery.net/en/theme_create.htm#theme_create
- http://documentation.coppermine-gallery.net/en/theme_examples.htm#theme_examples
- http://documentation.coppermine-gallery.net/en/theme.htm#theme_engine

Okay, almost complete.
Now, where in "sample/theme.php", can I remove the albums list that is shown in the home page of the gallery (Inside the {GALLERY} Token)? I want that just the Last Images, and Random Images are showed.
Title: Re: Not sure of how to create a new theme
Post by: Αndré on September 05, 2011, 05:54:27 PM
I suggest to read the docs, as this is a simple setting: http://documentation.coppermine-gallery.net/en/configuration.htm#admin_album_list_content ::)
Title: Re: Re: Not sure of how to create a new theme
Post by: AzorMachine on September 06, 2011, 02:05:26 PM
Quote from: Αndré on September 05, 2011, 05:54:27 PM
I suggest to read the docs, as this is a simple setting: http://documentation.coppermine-gallery.net/en/configuration.htm#admin_album_list_content ::)

Done. Now I a complex question.
I removed catlist and alblist from my content page, because my layout has a fixed height. (With those two 'tokens', my layout would break.)
But, now I can't navigate on the gallery, as those tag have been removed. Is there a simple way, to only show the 'topn' and the 'lastup' in my home page, but then, when I open a category link, like http://www.reinorpg.com/resources/index.php?cat=14, show it's content? (Automatically insert alblist and catlist.)

And, another question. How to create a vertical menu with all of the albums and categories?
Title: Re: Re: Not sure of how to create a new theme
Post by: Αndré on September 06, 2011, 02:32:00 PM
Quote from: AzorMachine on September 06, 2011, 02:05:26 PM
Is there a simple way, to only show the 'topn' and the 'lastup' in my home page, but then, when I open a category link, like http://www.reinorpg.com/resources/index.php?cat=14, show it's content? (Automatically insert alblist and catlist.)

I assume you want to hide 'topn' and 'lastup' when you display the album and category lists? If so, add this to your theme.php file:
if ($superCage->get->getInt('cat')) {
    $CONFIG['main_page_layout'] = str_replace('topn', '', $CONFIG['main_page_layout']);
    $CONFIG['main_page_layout'] = str_replace('lastup', '', $CONFIG['main_page_layout']);
} else {
    $CONFIG['main_page_layout'] = str_replace('alblist', '', $CONFIG['main_page_layout']);
    $CONFIG['main_page_layout'] = str_replace('catlist', '', $CONFIG['main_page_layout']);
}
Title: Re: Not sure of how to create a new theme
Post by: AzorMachine on September 06, 2011, 02:42:31 PM
Not working.
When I click in a category, like this : http://www.reinorpg.com/resources/index.php?cat=14
It says : "Error - The selected album/image doesn't exists"
Title: Re: Not sure of how to create a new theme
Post by: Αndré on September 06, 2011, 02:57:41 PM
Please attach your theme as zip file to your next reply.
Title: Re: Not sure of how to create a new theme
Post by: AzorMachine on September 06, 2011, 03:16:56 PM
Sent it to you, via Personal Message.
Title: Re: Not sure of how to create a new theme
Post by: AzorMachine on September 06, 2011, 03:18:28 PM
Quote from: AzorMachine on September 06, 2011, 03:16:56 PM
Sent it to you, via Personal Message.

Tsc, it's blocked. Here it goes.

Title: Re: Not sure of how to create a new theme
Post by: Αndré on September 06, 2011, 03:23:18 PM
Works as expected to me. What exactly doesn't work in your opinion? As your gallery is in offline mode I'm not able to have a look at your gallery.
Title: Re: Not sure of how to create a new theme
Post by: AzorMachine on September 06, 2011, 03:24:33 PM
Quote from: AzorMachine on September 06, 2011, 02:42:31 PM
Not working.
When I click in a category, like this : http://www.reinorpg.com/resources/index.php?cat=14
It says : "Error - The selected album/image doesn't exists"

Try now, it's online.
Title: Re: Not sure of how to create a new theme
Post by: Αndré on September 06, 2011, 03:59:18 PM
I don't get an error message, but I'm only able to view the thumbnail pages.
Title: Re: Not sure of how to create a new theme
Post by: AzorMachine on September 06, 2011, 04:08:43 PM
No problem, fixed it now.
It was a problem in the admin config. I didn't put alblist and catlist in the content area. Now, with your snippet, that replaces those with a '' (blank), all is up to place.
Thank you.

Now, a quick one.
How to create a vertical menu, (to put in the left of my layout), that contains all of the albums and categories in one list?
Title: Re: Not sure of how to create a new theme
Post by: Αndré on September 06, 2011, 04:12:37 PM
Quote from: Joachim Müller on September 28, 2008, 10:28:42 AM
10. One question per thread
We have a strict "One question/issue per thread rule", which helps both supporters/moderators to keep track of open/closed issues as well as users who search the board or browse it, looking for answers to their question.


Quote from: Joachim Müller on September 28, 2008, 12:46:26 PM
you can tag your answer as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.