Advanced search  

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

Pages: [1]   Go Down

Author Topic: Not sure of how to create a new theme  (Read 7638 times)

0 Members and 1 Guest are viewing this topic.

AzorMachine

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Not sure of how to create a new theme
« 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
Logged

AzorMachine

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: Not sure of how to create a new theme
« Reply #1 on: September 04, 2011, 08:59:58 pm »

Oh yes, I'm using 1.5.x
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Not sure of how to create a new theme
« Reply #2 on: September 05, 2011, 10:08:07 am »

not sure of how to add the commands of coppermine
What exactly do you mean?
Logged

AzorMachine

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: Re: Not sure of how to create a new theme
« Reply #3 on: September 05, 2011, 01:47:26 pm »

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?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Logged

AzorMachine

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: Re: Not sure of how to create a new theme
« Reply #5 on: September 05, 2011, 05:47:47 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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Not sure of how to create a new theme
« Reply #6 on: September 05, 2011, 05:54:27 pm »

Logged

AzorMachine

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: Re: Not sure of how to create a new theme
« Reply #7 on: September 06, 2011, 02:05:26 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?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Re: Not sure of how to create a new theme
« Reply #8 on: September 06, 2011, 02:32:00 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:
Code: [Select]
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']);
}
Logged

AzorMachine

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: Not sure of how to create a new theme
« Reply #9 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"
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Not sure of how to create a new theme
« Reply #10 on: September 06, 2011, 02:57:41 pm »

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

AzorMachine

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: Not sure of how to create a new theme
« Reply #11 on: September 06, 2011, 03:16:56 pm »

Sent it to you, via Personal Message.
Logged

AzorMachine

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: Not sure of how to create a new theme
« Reply #12 on: September 06, 2011, 03:18:28 pm »

Sent it to you, via Personal Message.

Tsc, it's blocked. Here it goes.

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Not sure of how to create a new theme
« Reply #13 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.
Logged

AzorMachine

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: Not sure of how to create a new theme
« Reply #14 on: September 06, 2011, 03:24:33 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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Not sure of how to create a new theme
« Reply #15 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.
Logged

AzorMachine

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: Not sure of how to create a new theme
« Reply #16 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?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Not sure of how to create a new theme
« Reply #17 on: September 06, 2011, 04:12:37 pm »

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.


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.
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 19 queries.