Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Basic theme (clean to apply your own styles - start theme)  (Read 1737 times)

0 Members and 1 Guest are viewing this topic.

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1335
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

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1335
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1363
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

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1335
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

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1335
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

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1335
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1363
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

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1335
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 23 queries.