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: Basic theme (clean to apply your own styles - start theme)  (Read 11591 times)

0 Members and 1 Guest are viewing this topic.

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Basic theme (clean to apply your own styles - start theme)
« on: November 09, 2019, 05:51:53 am »

Is a starter theme so users can style the theme the way they like it.

This way users don't have to work at starting a theme or spent time to clean unnecessary code from some theme.
When cleaning a theme like the curve theme, unneccesary code takes time to remove and may even remain some of it.
Not responsive. Basic cpg theme.
« Last Edit: November 09, 2019, 09:36:55 pm by allvip »
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Basic theme (clean to apply your own styles - start theme)
« Reply #1 on: November 09, 2019, 06:39:58 am »

Previews attached.

« Last Edit: November 09, 2019, 08:24:47 pm by allvip »
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Basic theme (clean to apply your own styles - start theme)
« Reply #2 on: November 09, 2019, 05:22:38 pm »

You should try to use the global $THEME_DIR in your theme.php file instead of hard coded theme directory (themes/basic/). That way the theme folder could be renamed without issue.
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Basic theme (clean to apply your own styles - start theme)
« Reply #3 on: November 09, 2019, 05:34:55 pm »

You should try to use the global $THEME_DIR in your theme.php file instead of hard coded theme directory (themes/basic/). That way the theme folder could be renamed without issue.

I know that but is not working in that function.
I don't want to use the curve theme code for the admin menu that is really long.
The code for the menu is from theme Theme Pinmine by Jeff Bailey
https://forum.coppermine-gallery.net/index.php/topic,75270.0.html

If I can add another small function or code to be able to use $THEME_DIR, I will.
If not, is better this way.
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Basic theme (clean to apply your own styles - start theme)
« Reply #4 on: November 09, 2019, 07:00:06 pm »

If I can add another small function or code to be able to use $THEME_DIR, I will.
If not, is better this way.

No. I don't know how.
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Basic theme (clean to apply your own styles - start theme)
« Reply #5 on: November 09, 2019, 09:07:15 pm »

Reuploaded the zip with a nice menu (was to basic) and a fix for thumbnails error.
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Basic theme (clean to apply your own styles - start theme)
« Reply #6 on: November 09, 2019, 09:25:39 pm »

No. I don't know how.

Your theme.php file is trying to use a variable ($current_id) that doesn't exist.

But here is the theme.php that uses $THEME_DIR to make it folder agnostic.
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Basic theme (clean to apply your own styles - start theme)
« Reply #7 on: November 09, 2019, 09:38:09 pm »

Your theme.php file is trying to use a variable ($current_id) that doesn't exist.

But here is the theme.php that uses $THEME_DIR to make it folder agnostic.

Thanks and both issues fixed and reuploaded.
Nobody downloaded the zip so was ok to reuplod not make a new version.
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 22 queries.