Piwigo.org

You are not logged in. (Register / Login)

Announcement

#1 2012-01-05 12:48:30

alexpreyer
Member
Location: Hammelburg (Ger)
Registered: 2009-11-27
Posts: 136
Website

Theme changing with localfiles editor don't work

I try to give my theme (stripped) a background image. Directly addet to the responsible css file in the theme it is no problem. But trying it wit the local files editor gives no change:
Here my setting in local/css/rules.css

/* Die Datei ist nicht vorhanden und wird erstellt vom Localfiles Editor */
BODY
  {
  background: url("images/bg.jpg") repeat-x fixed 50% 0 #000000;
  background-color: #000000;
}

And an additional question. Is there anywhere a documention how to use the plugin localfiles editor?

Last edited by alexpreyer (2012-01-05 13:41:51)

Offline

#2 2012-01-05 16:12:15

flop25
Piwigo Team
Registered: 1970-01-01
Posts: 3375
Website

Re: Theme changing with localfiles editor don't work

Hello
I assume this is not : http://www.fotos.preyer.net Or if it is the gallery, can you set stripped as the theme ?
try
BODY
{
  background: url("images/bg.jpg") repeat-x fixed 50% 0 #000000 !important;
}


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

#3 2012-01-05 17:26:51

alexpreyer
Member
Location: Hammelburg (Ger)
Registered: 2009-11-27
Posts: 136
Website

Re: Theme changing with localfiles editor don't work

No, its on http://alex-finest.de

And your hint doesn't help, sorry.

Offline

#4 2012-01-05 19:19:12

flop25
Piwigo Team
Registered: 1970-01-01
Posts: 3375
Website

Re: Theme changing with localfiles editor don't work

alexpreyer wrote:

No, its on http://alex-finest.de

And your hint doesn't help, sorry.

Okay, in fact your path to the picture don't work. Correct it and it will work


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

#5 2012-01-06 09:21:41

alexpreyer
Member
Location: Hammelburg (Ger)
Registered: 2009-11-27
Posts: 136
Website

Re: Theme changing with localfiles editor don't work

It was not only the path. After inserting in the themes css (stripped-rules.css) it worked.
Whats the difference between rules.css and "theme-name"-rules.css ?

Thanks for you help - I love this gallery and the way you get fast and professional help here in the forum.

Offline

#6 2012-01-06 11:03:23

flop25
Piwigo Team
Registered: 1970-01-01
Posts: 3375
Website

Re: Theme changing with localfiles editor don't work

alexpreyer wrote:

It was not only the path. After inserting in the themes css (stripped-rules.css) it worked.
Whats the difference between rules.css and "theme-name"-rules.css ?

Thanks for you help - I love this gallery and the way you get fast and professional help here in the forum.

Piwigo combine all the CSS files in one : so it redefines the path. For stripped-rules.css it seems to refer to /themes/stripped/ and for rules.css, to local/css/


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

#7 2012-01-06 19:16:21

alexpreyer
Member
Location: Hammelburg (Ger)
Registered: 2009-11-27
Posts: 136
Website

Re: Theme changing with localfiles editor don't work

It's really strange. Now, after finishing my tests, I installed a new piwigo gallery in a subfolder of my new homepage (a new piwigo installation). Then I tried there to customize the stripped theme in the same way as in my test installation. And again, nothing happens. The background jpg is in the same subfolder as it was in the test environment and also the css settings in stripped-rules.css are the same. But no background picture apears - thats ridicoulus, isnt it?

The new URL is: http://www.preyer.net/galerie/

Offline

#8 2012-01-06 23:21:55

flop25
Piwigo Team
Registered: 1970-01-01
Posts: 3375
Website

Re: Theme changing with localfiles editor don't work

alexpreyer wrote:

It's really strange. Now, after finishing my tests, I installed a new piwigo gallery in a subfolder of my new homepage (a new piwigo installation). Then I tried there to customize the stripped theme in the same way as in my test installation. And again, nothing happens. The background jpg is in the same subfolder as it was in the test environment and also the css settings in stripped-rules.css are the same. But no background picture apears - thats ridicoulus, isnt it?

The new URL is: http://www.preyer.net/galerie/

this time I don't see the CSS attribute : seems to be an other problem, like not saved...


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

#9 2012-01-06 23:32:32

alexpreyer
Member
Location: Hammelburg (Ger)
Registered: 2009-11-27
Posts: 136
Website

Re: Theme changing with localfiles editor don't work

Sorry, for the moment I deleted the code because I'm only using the Header.
I put it back in again, so that you can see it again.
I also tried to use the complete path to the file (www.preyer.net/galerie/themes/stripped/images/bg.jpg), but also no success.

An Interesting thing, the color setting to #000000 works. Only the picture is not shown.

BODY
{
  background: url("/themes/stripped/images/bg.jpg") repeat-x fixed 100% 0 #000000 !important;
}

Offline

#10 2012-01-06 23:35:24

flop25
Piwigo Team
Registered: 1970-01-01
Posts: 3375
Website

Re: Theme changing with localfiles editor don't work

try with ../../themes/stripped/images/bg.jpg


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

#11 2012-01-06 23:40:01

alexpreyer
Member
Location: Hammelburg (Ger)
Registered: 2009-11-27
Posts: 136
Website

Re: Theme changing with localfiles editor don't work

Ok, that works -what a pain to get there. Thanks for your big effort. Now I try to understand why and also why the setting, working in my test environment, not worked here.

Offline

#12 2012-01-06 23:43:52

alexpreyer
Member
Location: Hammelburg (Ger)
Registered: 2009-11-27
Posts: 136
Website

Re: Theme changing with localfiles editor don't work

Oh, and again. I love your stripped themes. Their simplicity, showing only the important part - the photos - are absolute great. Really great work you have done here.

Well, tomorrow I have to try to get the album frames bigger :-)

Offline

#13 2012-01-06 23:45:31

flop25
Piwigo Team
Registered: 1970-01-01
Posts: 3375
Website

Re: Theme changing with localfiles editor don't work

alexpreyer wrote:

Ok, that works -what a pain to get there. Thanks for your big effort. Now I try to understand why and also why the setting, working in my test environment, not worked here.

the path need to be related to file you put it in : here the file is local/css/fvgzhfn.css and the image themes/stripped/images/bg.jpg, so we need to go to level up "../../" to retrieve the root of Piwigo. then "themes/stripped/images/bg.jpg". Then Piwigo manage itself the path (assuming they are correct at the beginning ^^)  to combine all CSS code in one file : absolute path "mysite.com/blabla" don't work currently with that combination system


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

#14 2012-01-06 23:46:31

flop25
Piwigo Team
Registered: 1970-01-01
Posts: 3375
Website

Re: Theme changing with localfiles editor don't work

alexpreyer wrote:

Oh, and again. I love your stripped themes. Their simplicity, showing only the important part - the photos - are absolute great. Really great work you have done here.

Well, tomorrow I have to try to get the album frames bigger :-)

Zaphod will be happy to see such enthusiasms ^^
just a hint for customization : [Forum, post 126333 by flop25 in topic 18476] default font type & font size

Last edited by flop25 (2012-01-06 23:47:52)


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

Board footer

Powered by FluxBB

About this website · Donate · Contact Piwigo project © 2002-2013