PG theme

pgilbert

Joined: 2005-03-28
Posts: 157
Posted: Wed, 2005-07-27 15:25

*************************** PG Theme ***************************

YOU CAN DOWNLOAD IT NOW FOR G2.1 (it will work for G2.2 also)

The theme was upgraded again.
Some bugs fixed, cleaner code and new options added, thank's to all your reports and requests for new features.

As there are so many changes i made a new version.

Go to http://pedrogilberto.net/pgtheme/ where you can download "PGtheme" (Version 1.1.0RC1) for G2.1 and G2.0 (some features probably will not work on G2.0.

* To use PGcolorpacks you must install and activate colorpack module. (download:
Zip - http://prdownloads.sourceforge.net/gallery/g2-module-colorpack-1.0.0.zip
themTar.gz (10KB) - http://prdownloads.sourceforge.net/gallery/g2-module-colorpack-1.0.0.tar.gz
* The theme will not work correctly with non PG colorpacks, since there are missing all the backgrounds and icons images.

* To change the top Logo, or any navigation pic, create your one image name it "logo.gif" and "logoon.gif" to use on mouse over.

- If you aren't using a PGcolorpack, the images should be located under: ".../themes/PGtheme/images"
- If you ARE USING a PGcolorpack, the images should be located under: ".../modules/colorpack/packs/PG###/images"

If you noticed any bugs let me know, i'll try to fix it as soon as possible.

********************** Latest bugs fixed *******************************
"Separator" bug on using "Static Bar";
"Logo" at Slideshow;
"Cart" icons for checkout;
Wrong footer link to Pgtheme;
Translation;
Options wrong link with Joomla;
A small bug on showing action icons at album page;
On site admin link to PGtheme Help bug

******************* You can try also X_treme based on PGtheme (For G2.2 and later)********************

[img]http://www.pedrogilberto.net/gallery2/themes/x_treme/templates/extra/logos/logo.png[/img]

Information: http://codex.gallery2.org/Gallery2:Themes:X_treme

Downloads:
http://pedrogilberto.net/g2
http://www.pedrogilberto.net/g2/x_treme_pack_full.tar.gz
http://www.pedrogilberto.net/g2/x_treme_pack_full.zip

X_treme Forum here: http://gallery.menalto.com/node/61330

**************************************************************************

http://pedrogilberto.net/g2/
http://pedrogilberto.net/gallery2/

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-07-27 16:27

great work! i hoped you'd release a beta 4 theme of your old layout soon :)

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Wed, 2005-07-27 19:38

Good job. The only problem is the link to download it gave me a 404 error.

 
allanak

Joined: 2005-04-05
Posts: 9
Posted: Wed, 2005-07-27 21:51
lvthunder wrote:
Good job. The only problem is the link to download it gave me a 404 error.

 
pgilbert

Joined: 2005-03-28
Posts: 157
Posted: Thu, 2005-07-28 09:10

The link to download is working now!

 
mvettas
mvettas's picture

Joined: 2005-07-23
Posts: 26
Posted: Thu, 2005-07-28 11:06

dude that is one HOT theme

 
patrickthickey
patrickthickey's picture

Joined: 2004-08-22
Posts: 164
Posted: Thu, 2005-07-28 15:51

Really nice work. Thank you for sharing it.

Question: I cannot locate the specific file you reference to edit?

gallery2/modules/core/classes/GalleryLayout.class

?

patrick

 
sleze

Joined: 2004-05-08
Posts: 15
Posted: Fri, 2005-07-29 02:19

This is probably a very elementary css question. I am trying to change the logo.gif and logoon.gif to my own .png files but for some reason when I change the path, there are no images at all displaying. Here is what I changed in theme.tpl:

<a href="g->url"
onmouseover="logo.src='{g->url href='themes/PGtheme/images/Logoon.png'}'"onmouseout="logo.src='{g->url href='themes/PGtheme/images/Logo.png'}'" > <img id="logo" src="{g->url href="themes/PGtheme/images/Logo.png"}" alt="home" longdesc="home"/></a>

I uploaded 2 new files(logo.png and logoon.png) to the images directory. As you can see, all I did was change the extension from .gif to .png.

What am I forgetting to do?

 
pgilbert

Joined: 2005-03-28
Posts: 157
Posted: Fri, 2005-07-29 09:00

patrickthickey,
Sorry my mistake, it's:

gallery2/modules/core/classes/GalleryTheme.class

sleze,

"Logo" it's not the same as "logo"...

 
patrickthickey
patrickthickey's picture

Joined: 2004-08-22
Posts: 164
Posted: Fri, 2005-07-29 15:11

Pedro - thanks for the pointer.

I'm using the theme and think it is really solid, even with one or two small bugs. I'm sure you will work them out as time pemits.

http://www.idyll.com/gallery2

thank you again.

regards,
patrick

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Fri, 2005-07-29 19:52

Pedro - absolutely stunning theme

Only twoquestions
- how to get rid of the date / owner box ?
- The next/last links disappear on mouseover
Any idea?

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Sat, 2005-07-30 05:37

pgilbert,

Quote:
- The next/last links disappear on mouseover

just found, that if I use the microthumbs to display an image, the "next, last..." are replaced by the little icons which then function according the mouseover-function defined.
It looks like that initially the icons are not initialized - only after using the microthumbs.

Could this be one of your Friefox issues you've mentioned?

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Sat, 2005-07-30 11:13

Found that the Navigation Templates use a src="themes/images.../icon.gif" - changing this to the full path src="http://mysite.com/themes..../icon.gif" and the Icons function from the beginning

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Sat, 2005-07-30 13:03

pgilbert, was able to fix the Opacity of the Thumbs in Firefox by changing the
themes.css lines for i.e. the opacity lines (Ln.693ff)

.opacity1 {
filter: alpha(opacity=10);
}
to
.opacity1 {
filter: alpha(opacity=10);
-moz-opacity: 0.1; opacity:0.1;
}

Now perfect in IE and Firefox. In IE7 even the transparency of the icons is fixed.

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Sat, 2005-07-30 13:12

Everything customized and working now :)

 
patrickthickey
patrickthickey's picture

Joined: 2004-08-22
Posts: 164
Posted: Sat, 2005-07-30 15:21

LFrank....

I am still not seeing the opacity you reference when I use FF. I made the changes you depict, but I also notice you are using much newer versions of a few core programs.

Very nice integration and work, by the way.

And of course, a really beautiful theme.

regards,

patrick

Gallery version = 2.0-beta-4 core 0.9.32
PHP version = 4.3.11 apache
Webserver = Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 mod_ssl/2.8.22 OpenSSL/0.9.7a
Database = mysql 4.0.24-standard
Toolkits = ArchiveUpload, Exif, Gd, ImageMagick, NetPBM, Thumbnail
Operating system = Linux dedi1.bagy.net 2.4.21-20.0.1.ELsmp #1 SMP Wed Nov 24 20:34:01 EST 2004 i686
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

http://www.idyll.com/gallery2/

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Sat, 2005-07-30 15:40

patrickthickey, Thanks a lot. I had to restart FF and to clear the cache before it worked on my system, too. I first thought it wouldn't help - and suddenly, it worked.

 
pgilbert

Joined: 2005-03-28
Posts: 157
Posted: Mon, 2005-08-01 14:41

LFrank,

Thank´s for help.

There's an updated version of PGTheme with corrected bugs and some more options.
Now working well with colorpacks.

 
patrickthickey
patrickthickey's picture

Joined: 2004-08-22
Posts: 164
Posted: Mon, 2005-08-01 15:00

Hello.

I checked the download off your web site but the version number of the .zip file is unchanged?

Did you simply post a new version with the old name?

thanks

regards,

patrick

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Mon, 2005-08-01 15:54

pgilbert, perfect - glad I could help a bit.
One wish - could you make the "Item Actions" configurable, too - or put them on right mouseclick ;)

I changed album.tpl to
</div>
{* {g->block type="core.ItemLinks" item=$child links=$child.itemLinks} *}

{if !empty($child.title)}
<p class="giTitle">
{if $child.canContainChildren}
{* {g->text text="▪ %s ▪" arg1=$child.title|markup} *}
{else}
{* {$child.title|markup} *}
{/if}
to temove the Actions below the Thumbs

 
patrickthickey
patrickthickey's picture

Joined: 2004-08-22
Posts: 164
Posted: Mon, 2005-08-01 16:18

I am using #333333

and it is close but there is still a tiny difference.

I am also unable to change the background color associated with the microthumb window.

Any help?

thanks

patrick

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Mon, 2005-08-01 17:29

pgilbert, I still had to add the lines to themes.css to get Opacity working for Firefox (downloaded 1h ago - upgraded to v0.10.0)

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Mon, 2005-08-01 17:52

pgilbert, photo.tpl needs a little fix - if you don't want to display the info on the photo page - but still want to change sizes, one needs to change Ln 29-38 to
{if $theme.params.InfoPhoto}
{g->block type="core.ItemInfo"
item=$theme.item
showDate=true
showOwner=true
class="giInfo"}
<br></br>
{/if}
{g->block type="core.PhotoSizes" class="giInfo"}
</td>
;) (the /if was - for my feeling - one line too late)

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Mon, 2005-08-01 18:08

pgilbert, joiii .... where is my cool "Loading..." animation during the fade in of the pictures ... it's gone...

... hey, here it is - after changing to the full path to the image - back:
.gsSingleImage {
background: url('http://localmail.dynip.com/GALLERY2/themes/PGtheme/images/loading.gif') no-repeat 50% 50%;
font-size: 0px;
padding: 0px;
margin: 0px;
align:center;
border: 0px solid #666;
}

 
pgilbert

Joined: 2005-03-28
Posts: 157
Posted: Tue, 2005-08-02 08:41

LFrank,

Thank's for help, I upgrade the PGtheme, some more options and bugs corrected.
Now working perfectly with color packs.

PGTheme Version ('0.10.1')

The file as the same name: PGtheme_G2b4.zip

 
ericsc
ericsc's picture

Joined: 2005-08-02
Posts: 3
Posted: Tue, 2005-08-02 14:13

Can the original be used, with just my site info there? Where does this need to be changed? I have changed the info in themes.js but Pedro's name is still at the top of my page

sleze wrote:
This is probably a very elementary css question. I am trying to change the logo.gif and logoon.gif to my own .png files but for some reason when I change the path, there are no images at all displaying. Here is what I changed in theme.tpl:

<a href="g->url"
onmouseover="logo.src='{g->url href='themes/PGtheme/images/Logoon.png'}'"onmouseout="logo.src='{g->url href='themes/PGtheme/images/Logo.png'}'" > <img id="logo" src="{g->url href="themes/PGtheme/images/Logo.png"}" alt="home" longdesc="home"/></a>

I uploaded 2 new files(logo.png and logoon.png) to the images directory. As you can see, all I did was change the extension from .gif to .png.

What am I forgetting to do?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2005-08-02 14:23

Logoon.png is not the same as logoon.png. You must make sure the file names use the same case. *Nix based operating systems are case sensitive. You can have a two files in the same directory: myfile.txt and myFile.txt and they are completely different files.

I haven't looked around Pedro's theme much yet, but if he followed the other themes. You can probably edit theme.tpl to change that header information. Just follow the intstruction at the top of the file about creating a 'local' directory in your templates directory and copying theme.tpl into it to edit.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-08-02 16:02

pgilbert, I updated GalleryTheme.class so you can override the $peerWindowSize value from your theme... just set $params['peerWindowSize'] = 20 (or whatever) before you call loadCommonTemplateData in showAlbumPage.

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Tue, 2005-08-02 17:01

pgilbert,

- I have problems with the "greymatter" colorpack - it seems not to be recognized and the nav-icons arn't displayed

- Fading in the image isn't working. The load-gif is displayed but the picture simply roles in in front of it

- I get an error saving the options from admin since 0.10.1:

Error Detail -
Error (ERROR_STORAGE_FAILURE)

* in C:\Inetpub\Scripts\GALLERY2\modules\core\classes\GalleryStorage\DatabaseStorage.class at line 1238 (GalleryStatus::error)
* in C:\Inetpub\Scripts\GALLERY2\modules\core\classes\GalleryStorage.class at line 294 (DatabaseStorage::addMapEntry)
* in C:\Inetpub\Scripts\GALLERY2\modules\core\classes\interfaces\GalleryPluginParameterMap.inc at line 98 (GalleryStorage::addMapEntry)
* in C:\Inetpub\Scripts\GALLERY2\modules\core\classes\helpers\GalleryPluginHelper_medium.class at line 397 (GalleryPluginParameterMap::addMapEntry)
* in C:\Inetpub\Scripts\GALLERY2\modules\core\classes\helpers\GalleryPluginHelper_medium.class at line 347 (GalleryPluginHelper_medium::_addParameter)
* in C:\Inetpub\Scripts\GALLERY2\modules\core\classes\GalleryCoreApi.class at line 374 (GalleryPluginHelper_medium::setParameter)
* in C:\Inetpub\Scripts\GALLERY2\modules\core\classes\GalleryPlugin.class at line 393 (GalleryCoreApi::setPluginParameter)
* in C:\Inetpub\Scripts\GALLERY2\modules\core\AdminThemes.inc at line 163 (GalleryPlugin::setParameter)
* in C:\Inetpub\Scripts\GALLERY2\main.php at line 173 (AdminThemesController::handleRequest)
* in C:\Inetpub\Scripts\GALLERY2\main.php at line 87
* in C:\Inetpub\Scripts\GALLERY2\main.php at line 78

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Tue, 2005-08-02 17:03

ah, yes ... in navigatorThumbs.tpl, you suddenly half the thumbnail on clicking it

onclick="pic{$nome}.width={$largura}/2; pic{$nome}.height={$altura}/2;

is this intended - I like th +{over} instead of /2 for my rather big thumbs

 
pgilbert

Joined: 2005-03-28
Posts: 157
Posted: Tue, 2005-08-02 17:59

LFrank,

Download it again I discovered some bugs

 
pgilbert

Joined: 2005-03-28
Posts: 157
Posted: Tue, 2005-08-02 18:02

mindless,

I' m trying but it's not working, how and were can I set it?

 
patrickthickey
patrickthickey's picture

Joined: 2004-08-22
Posts: 164
Posted: Tue, 2005-08-02 18:15

Great work folks.

Now the "next and previous" button placement works, and in my case I prefer them to be on the top.

LFRANK - I haven't been able to reach your site all day?

thanks

patrick

 
ruggedman

Joined: 2005-08-01
Posts: 4
Posted: Tue, 2005-08-02 18:25

Is it possible to allow right clicks rather than have the copyright prompt come up?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-08-02 19:05

pgilbert, didn't expect such a fast response.. you need to wait a few hours for the change to make it to anonymous cvs. Then put $params['peerWindowSize'] = 20 in showPhotoPage (not showAlbumPage as I said before), before the loadCommonTemplateData call.
Also, you need to change 'Columns1st' in getSettings to 'columns1st' to match the case you use further down in that function.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-08-02 19:09

also maybe check that slideshow module is active and omit slideshow links if not?

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Tue, 2005-08-02 19:39

patrickthickey, jup - unfortunately - my servr decided to hibernate last night and after waking up it seems to have lost the network connections.

pgilbert, OK - just wanted to tell that exchanging the themes.js to the 0.10.0 release fixed a few things ... (even if compare didn't show differences)

 
patrickthickey
patrickthickey's picture

Joined: 2004-08-22
Posts: 164
Posted: Tue, 2005-08-02 20:34

LFrank...

damn, I wish we could figure out how to make the "shadow" frames work under IE. They look splendid under FF or Moz but under IE they put these hideous white frames up. And the majority of users are under IE, so there you have it.

I connected to your site. Beautiful. Under FF!

patrick

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Tue, 2005-08-02 20:46

All you have to do to get it to work in IE is make the images with the same background color as the background since the background is a solid color or wait until everyone upgrades to IE7. I read that IE7 will include support for alpha channel pngs.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-08-02 22:20

pgilbert, now I've also added a separator parameter for core.SystemLinks block. Where you include this block in theme.tpl you can add: separator=$theme.params.MenuSeparator
(again you have to wait a few hours for this change..)

Also look for hardcoded strings, like "Options" you have in theme.tpl.. that should be {g->text text="Options"}

 
starkness

Joined: 2005-07-21
Posts: 8
Posted: Wed, 2005-08-03 05:07

I installed the PG theme, and then activated it, but now that I'm using it I can't access the Site Admin page, among other problems. Which files should I edit by hand to switch back to the matrix theme?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2005-08-03 05:20

You don't need to edit anything by hand, at least you shouldn't but I don't know what you would if you did have to.

You should be able to browse to the README.html file at the root of your gallery install. In that file there is a link to Site Admin, from there you should be able to change your theme.

If you provide a link to your site or additional details of your problems we could probably help with the issues. For example:
http://codex.gallery2.org/index.php/Gallery2:faq#What_information_is_required_when_I_ask_for_help_in_the_forums.3F

 
Xprcsn7

Joined: 2005-08-01
Posts: 10
Posted: Wed, 2005-08-03 05:24

Hi, I tried updating to this new version of the PG theme and it crashed, leaving me with no choice but to do a complete reinstall (gallery and PG theme, because i like it so darned much). and apparently this happened to the guy who posted previous to me, but I saved the g2data folder and am wondering how to 're-insert' the saved pictures back in this fresh installation. (I tried copying the contents, but of course no go, so now i'm thinking i'm screwed and will have to upload all my thousands of pictures again) please help

Gallery version = 2.0-beta-4 core 0.9.32
PHP version = 4.3.11 apache
Webserver = Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 mod_jk/1.2.8 PHP/4.3.11 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a
Database = mysql 4.0.25-standard
Toolkits = ArchiveUpload, Exif, Gd, ImageMagick, NetPBM, SquareThumb, Thumbnail
Operating system = Linux comet.fastwhb.com 2.4.21-32.0.1.ELsmp #1 SMP Wed May 25 14:26:33 EDT 2005 i686
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Hotbar 4.4.6.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322)

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2005-08-03 05:41

EDIT: One question. You said you tried updating to this version of PG. Did you already have a previous version of PG installed? If so, what version?

The only way to restore a G2 setup is to have a backup of your database *and* g2data and preferrably your config.php

Without all 3 of those you cannot restore a G2 install.

You're best bet now would probably be to upload from "Local Server" from your backed up "albums" directory in your old g2data directory. Make sure you old 'albums' directory is outside of your new g2data directory.

I don't know what kind of processing or memory requirements will be needed to process 1000s of images though.

 
starkness

Joined: 2005-07-21
Posts: 8
Posted: Wed, 2005-08-03 10:40
nivekiam wrote:
You don't need to edit anything by hand, at least you shouldn't but I don't know what you would if you did have to.

You should be able to browse to the README.html file at the root of your gallery install. In that file there is a link to Site Admin, from there you should be able to change your theme.

If you provide a link to your site or additional details of your problems we could probably help with the issues. For example:
http://codex.gallery2.org/index.php/Gallery2:faq#What_information_is_required_when_I_ask_for_help_in_the_forums.3F

The site is http://rivard-family.net/gallery2 . When I click on Login or try to go directly to the Site Admin page I get a blank page, so I need to revert back to another theme somehow.

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Wed, 2005-08-03 14:31

pgilbert, wow .. the new version is nearly perfect.
I found myself only customizing the page logos on the theme and slideshow template and fixing some minor CSS issues (the EXIF table looks terrible using the charcoal colorpack, and the a, a visited and hoover were not consistent on first page and album/photopage (might be due to some different definitions of the same in colorpack-css and theme-css)).
Using the greymatter colorpack still doesn't give me the icons - but your charcoal pack
is perfect, too.

And finally, I had to adjust the footer template to show a copyright to my site (what is the customization in the theme.js for?)

Thanks - as said - nearly perfect now !!

 
pgilbert

Joined: 2005-03-28
Posts: 157
Posted: Wed, 2005-08-03 15:14

LFrank, customize the variables at the top of theme.js

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Wed, 2005-08-03 16:04

pgilbert,

Quote:
LFrank , customize the variables at the top of theme.js

ouch ... I've missed to check with the latest change... Sorry :)

Thanks Pedro!

 
lifehouse

Joined: 2005-08-03
Posts: 1
Posted: Wed, 2005-08-03 18:25

Hi all, I just installed this theme (which is great, congrats on your work!) and I was wondering, how many micro thumbs per column shows up? Is it configurable? Thank you!

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-08-03 19:30

pgilbert, when you've updated to use $params['peerWindowSize'] then you should update your theme.html to not recommend modifying GalleryTheme.class anymore.. thanks!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2005-08-04 02:16

starkness, Please start a new topic in the G2 Support forum and be sure to include your G2 version number, which is 0.9.31 and a link to phpinfo.php

information on creating a phpinfo file can be found here, http://codex.gallery2.org/index.php/Gallery2:faq#What_information_is_required_when_I_ask_for_help_in_the_forums.3F

You might also want to turn on 'buffered' debug mode in config.php.

The devs might just suggest you upgrade gallery, from a nightly since you're not even running B4 but I don't want to suggest that as I don't know if it would mess up with your install with this problem you're currently having. The devs would know better.

You can find G2 nightly builds here, http://galleryupdates.jpmullan.com/