Not sure of how to create a new theme Not sure of how to create a new theme
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Not sure of how to create a new theme

Started by AzorMachine, September 04, 2011, 08:56:09 PM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

AzorMachine

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

AzorMachine


Αndré


AzorMachine

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?


AzorMachine

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.

Αndré


AzorMachine

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?

Αndré

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']);
}

AzorMachine

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"

Αndré

Please attach your theme as zip file to your next reply.

AzorMachine


AzorMachine

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.


Αndré

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.

AzorMachine

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.

Αndré

I don't get an error message, but I'm only able to view the thumbnail pages.

AzorMachine

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?

Αndré

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.