•  » Themes
  •  » [Theme] stripped (last version: 2.3.1)

#211 2011-11-29 17:08:35

lisaviolet
Member
san diego, california
2011-01-03
334

Re: [Theme] stripped (last version: 2.3.1)

Zaphod, I just upgraded my gallery and let it automatically upgrade my themes (all based on stripped).  Now I've got four  themes labeled "stripped" and none of my own. (My_green, My_stars, My_disney).

I'm really confused!  How do I get my customized themes back?  I tried adding a background to one of the stripped's CSS files and it doesn't do anything.

How do I change the name of the file from stripped to a name of my choosing?  When I check the "css" I see the name of my file, but it's still showing up in the main as "stripped".

I'm really confused!

Offline

 

#212 2011-11-29 17:39:18

lisaviolet
Member
san diego, california
2011-01-03
334

Re: [Theme] stripped (last version: 2.3.1)

lisaviolet wrote:

Zaphod, I just upgraded my gallery and let it automatically upgrade my themes (all based on stripped).  Now I've got four  themes labeled "stripped" and none of my own. (My_green, My_stars, My_disney).

I'm really confused!  How do I get my customized themes back?  I tried adding a background to one of the stripped's CSS files and it doesn't do anything.

How do I change the name of the file from stripped to a name of my choosing?  When I check the "css" I see the name of my file, but it's still showing up in the main as "stripped".

I'm really confused!

Adding screenshot.

Offline

 

#213 2011-11-29 23:17:45

Zaphod
Former Piwigo Team
2006-11-13
441

Re: [Theme] stripped (last version: 2.3.1)

lisaviolet wrote:

Zaphod, I just upgraded my gallery and let it automatically upgrade my themes (all based on stripped).  Now I've got four  themes labeled "stripped" and none of my own. (My_green, My_stars, My_disney).

I put a warning saying the release had major changes... the customization you did on v1 theme may not be possible for v2.

I don't know why the names of your themes have changed.

lisaviolet wrote:

I'm really confused!  How do I get my customized themes back?  I tried adding a background to one of the stripped's CSS files and it doesn't do anything.

I would try putting back an old version (1.5.10) of stripped theme.


lisaviolet wrote:

How do I change the name of the file from stripped to a name of my choosing?  When I check the "css" I see the name of my file, but it's still showing up in the main as "stripped".

It's supposed to be in the themeconf.inc.php file.

How are you theme made?
Are they a copy of the theme, or are they child themes?

If they are copies... maybe you left the url of the theme and they were updated... in this case all your files are lost.
I hope you have backups on your computer...

The best way to make customizations is to make child themes, in this case they benefit from the updates of the parent theme, without overwriting any of your files.

Last edited by Zaphod (2011-11-29 23:20:16)

Offline

 

#214 2011-11-30 00:13:58

lisaviolet
Member
san diego, california
2011-01-03
334

Re: [Theme] stripped (last version: 2.3.1)

Zaphod wrote:

lisaviolet wrote:

Zaphod, I just upgraded my gallery and let it automatically upgrade my themes (all based on stripped).  Now I've got four  themes labeled "stripped" and none of my own. (My_green, My_stars, My_disney).

I put a warning saying the release had major changes... the customization you did on v1 theme may not be possible for v2.

I don't know why the names of your themes have changed.

lisaviolet wrote:

I'm really confused!  How do I get my customized themes back?  I tried adding a background to one of the stripped's CSS files and it doesn't do anything.

I would try putting back an old version (1.5.10) of stripped theme.


lisaviolet wrote:

How do I change the name of the file from stripped to a name of my choosing?  When I check the "css" I see the name of my file, but it's still showing up in the main as "stripped".

It's supposed to be in the themeconf.inc.php file.

How are you theme made?
Are they a copy of the theme, or are they child themes?

If they are copies... maybe you left the url of the theme and they were updated... in this case all your files are lost.
I hope you have backups on your computer...

The best way to make customizations is to make child themes, in this case they benefit from the updates of the parent theme, without overwriting any of your files.

I thought they were child themes.  This is my old code:

Code:

<?php
/*
Theme Name: My stars
Version: 1.3.5
Description: My original green background
Theme URI: http://piwigo.org/ext/extension_view.php?eid=471
Author: lisaviolet
Author URI: http://www.lisaviolet.net
*/

$themeconf = array(
  'parent' => 'default',
  'load_parent_css' => false,
  'load_parent_local_head' => false,
  'name' => 'stripped',
  'theme_dir' => 'stripped',
  'icon_dir' => 'themes/stripped/icon',
  'admin_icon_dir' => 'themes/default/icon/admin',
  'mime_icon_dir' => 'themes/default/icon/mimetypes/',
  'local_head' => 'local_head.tpl',
);

load_language('theme.lang', PHPWG_THEMES_PATH.'stripped/');

pwg_set_session_var('show_metadata', true);

// max number of thumbnails by page 




?>

Offline

 

#215 2011-11-30 00:46:02

lisaviolet
Member
san diego, california
2011-01-03
334

Re: [Theme] stripped (last version: 2.3.1)

Well, I uploaded my old css files, they work, but it looks like they are missing some code. Like for captions and description.  Guess it's time to compare the old to the new.

Offline

 

#216 2011-11-30 01:03:53

lisaviolet
Member
san diego, california
2011-01-03
334

Re: [Theme] stripped (last version: 2.3.1)

What code to I need to add to make the description, information, etc work since it's not in my old stuff? I see the new theme.css is much smaller than the old css file.

Offline

 

#217 2011-11-30 16:21:27

lisaviolet
Member
san diego, california
2011-01-03
334

Re: [Theme] stripped (last version: 2.3.1)

I figured it out (what I need to compare to change the CSS in the local files editor).

Offline

 

#218 2011-11-30 23:16:01

Zaphod
Former Piwigo Team
2006-11-13
441

Re: [Theme] stripped (last version: 2.3.1)

lisaviolet wrote:

I thought they were child themes.  This is my old code:

No they're not.

Here is a code to make a child theme.
For instance, this one only calls "stripped" with a config value to set themeStyle to 'black':

Code:

<?php
/*
Theme Name: stripped-black
Version: Auto
Description: stripped Theme Black Edition
Theme URI:
Author URI: http://www.audreyetjulien.fr/galerie
*/
  
$themeconf = array(
  'parent' => 'stripped',
  'load_parent_css' => true,
  'load_parent_local_head' => true,
  'name' => 'stripped-black',
  'theme_dir' => 'stripped-black',
  'icon_dir' => 'themes/stripped/icon',
  'admin_icon_dir' => 'themes/default/icon/admin',
  'mime_icon_dir' => 'themes/default/icon/mimetypes/',
  'local_head' => 'local_head.tpl',
);

global $conf, $stripped;

$stripped['themeStyle']='black';

?>

This is just an example, you don't have to put the line with 'themeStyle'.

Add a theme.css and you need only these two files to make the child theme work.


Anyway, even withyour current theme, leave the "theme URI" blank. That's probably what caused your themes to be upgraded when you didn't want to.

Offline

 

#219 2011-11-30 23:23:21

lisaviolet
Member
san diego, california
2011-01-03
334

Re: [Theme] stripped (last version: 2.3.1)

Zaphod wrote:

lisaviolet wrote:

I thought they were child themes.  This is my old code:

No they're not.

Here is a code to make a child theme.
For instance, this one only calls "stripped" with a config value to set themeStyle to 'black':

Code:

<?php
/*
Theme Name: stripped-black
Version: Auto
Description: stripped Theme Black Edition
Theme URI:
Author URI: http://www.audreyetjulien.fr/galerie
*/
  
$themeconf = array(
  'parent' => 'stripped',
  'load_parent_css' => true,
  'load_parent_local_head' => true,
  'name' => 'stripped-black',
  'theme_dir' => 'stripped-black',
  'icon_dir' => 'themes/stripped/icon',
  'admin_icon_dir' => 'themes/default/icon/admin',
  'mime_icon_dir' => 'themes/default/icon/mimetypes/',
  'local_head' => 'local_head.tpl',
);

global $conf, $stripped;

$stripped['themeStyle']='black';

?>

This is just an example, you don't have to put the line with 'themeStyle'.

Add a theme.css and you need only these two files to make the child theme work.


Anyway, even withyour current theme, leave the "theme URI" blank. That's probably what caused your themes to be upgraded when you didn't want to.

Thanks, I've got them working now.  And I'll delete the theme URI.

Offline

 

#220 2011-12-08 13:40:32

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
14073

Re: [Theme] stripped (last version: 2.3.1)

Offline

 

#221 2011-12-08 13:47:35

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
14073

Re: [Theme] stripped (last version: 2.3.1)

Offline

 

#222 2012-01-28 19:10:37

Zaphod
Former Piwigo Team
2006-11-13
441

Re: [Theme] stripped (last version: 2.3.1)

stripped 2.1.0 is out.

You can now display albums thumbnails with description.
Several options are available :
- 5 albums per row (no description) like before
- 3 albums per row with description below thumbnail
- 2 albums per row with description beside thumbnail
- 1 album per row with description beside thumbnail

Menu is now available on all pages except picture page.

Be careful on update if you have custom template-extensions as 95% of stripped templates have been modified with version 2.1.0.

Offline

 

#223 2012-01-30 09:52:52

puschpull
Member
2011-04-04
32

Re: [Theme] stripped (last version: 2.3.1)

Zaphod:
Thanks!!


I make correction and upgrade translation to Czech Language
http://puschpull.org/root/p/cs_CZ.rar
(for new version Stripped Revision 2.1.1)
:)

Offline

 

#224 2012-03-28 01:05:38

edison23
Member
2009-08-28
12

Re: [Theme] stripped (last version: 2.3.1)

Hi,
first of all, Zaphod, thanks a lot for this theme - it's amazing ^__^

well, now, excuse me, if this question has been already asked (i'm sure it was), but i kinda don't feel like browsing thru 15 pages, so i'll make it short here:

is there a way, to display info below each thumbnail on category page (list of images in cat.)? currently, there is an option to display "title" (which is generated from filename) below the thumbnails, but since i label image thru real title it's useless for me. i'd like to have there for example comment number. I realize i could code it myself, but i prefer ways which dont get erased with next update.

thanks a lot for answer and your hard work,
edison23

Last edited by edison23 (2012-03-28 01:14:48)

Offline

 

#225 2012-03-28 07:52:35

Zaphod
Former Piwigo Team
2006-11-13
441

Re: [Theme] stripped (last version: 2.3.1)

It should be possible using only CSS, but I don't remember how to have the nb of comments be generated by piwigo for each thumbnail (it's not on my websites).
It's linked to a parameter {$thumbnail.NB_COMMENTS}... if anyone knows how to set it to true...

Offline

 
  •  » Themes
  •  » [Theme] stripped (last version: 2.3.1)

Board footer

Powered by FluxBB