Announcement

  •  » Website
  •  » Piwigo demo upgraded to 2.1

#1 2010-06-06 02:10:41

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

Piwigo demo upgraded to 2.1

Oh yes, we were still running Piwigo 2.0 on the demo. Because not enough themes had been converted to the new theme architecture. Now it's OK and we even have LucianoAmodio and Kardon themes :-)

I have one problem, in the page_banner, I had:

Code:

body {background-position:left 35px}

this makes the Kardon theme looks correct but makes the Sylvia theme fail on the bottom left background image :-/ I don't know yet what I can do to make the #veryTopHeader work with Sylvia and Kardon at the time.

Offline

 

#2 2010-06-06 09:14:00

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: Piwigo demo upgraded to 2.1

I changed my gallery to kardon theme yesterday.
I discovered some minor defects due to absolute positioning of some blocks with kardon.
You're facing the same issue in fact.

Solution will be a revised version of kardon.

Anyway you could have the same issue with other themes.
I suggest to change a bit how demo is working.

IMHO, your current page_banner should be a real html page and the gallery has to be in an iframe.

Anyway it's acceptable, I am going to read your page_banner and next week to propose fixes to kardon creator.
;-)


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#3 2010-06-07 10:53:16

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

Re: Piwigo demo upgraded to 2.1

I have added a small piece of code to fix Kardon display on the demo:

Code:

   if (jQuery("select[name=theme] option:selected").text() == "Kardon") {
     jQuery("body").css("background-position", "0 35px");
   }

Offline

 

#4 2010-06-07 10:54:22

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

Re: Piwigo demo upgraded to 2.1

it doesn't work on the picture.php page... of course there is no themeSwitch... let's find better.

Offline

 

#5 2010-06-07 12:35:56

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

Re: Piwigo demo upgraded to 2.1

OK, much better now... considering that there is no themeSwitch outside index.php (body id="theCategoryPage") I've decided to hide the veryTopHeader outside index.php.

Code:

<script type="text/javascript">
 $.noConflict();
 jQuery(document).ready(function(){
   jQuery("#verytopHeader").prependTo('body');
   jQuery("#themeSwitch").appendTo("#verytopHeader");
   jQuery("#languageSwitch").appendTo("#verytopHeader");

   if (jQuery("body").attr("id") == "theCategoryPage") {
     jQuery("#verytopHeader").show();
     jQuery("body").css("padding-top", "35px");
     jQuery("#the_page").css("background-position", "left 35px");

     if (jQuery("select[name=theme] option:selected").text() == "Kardon") {
       jQuery("body").css("background-position", "0 35px");
     }

     if (jQuery("select[name=theme] option:selected").text() == "Sylvia") {
       jQuery("#theHeader").css("padding-top", "35px");
     }
   }
 });
</script>

And it also fixes a bug with Sylvia : before it was impossible to see the H1.

Offline

 

#6 2010-06-07 17:40:59

flop25
Piwigo Team
2006-07-06
7037

Re: Piwigo demo upgraded to 2.1

You have forgotten a lot of style !


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

 
  •  » Website
  •  » Piwigo demo upgraded to 2.1

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact