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. 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: * 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 noticed any bugs let me know, i'll try to fix it as soon as possible. ********************** Latest bugs fixed ******************************* ******************* 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: X_treme Forum here: http://gallery.menalto.com/node/61330 ************************************************************************** http://pedrogilberto.net/g2/ |
|
Posts: 32509
great work! i hoped you'd release a beta 4 theme of your old layout soon
Posts: 808
Good job. The only problem is the link to download it gave me a 404 error.
Posts: 9
Posts: 157
The link to download is working now!
Posts: 26
dude that is one HOT theme
Posts: 164
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
Posts: 15
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?
Posts: 157
patrickthickey,
Sorry my mistake, it's:
gallery2/modules/core/classes/GalleryTheme.class
sleze,
"Logo" it's not the same as "logo"...
Posts: 164
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
Posts: 1023
Pedro - absolutely stunning theme
Only twoquestions
- how to get rid of the date / owner box ?
- The next/last links disappear on mouseover
Any idea?
Posts: 1023
pgilbert,
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?
Posts: 1023
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
Posts: 1023
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.
Posts: 1023
Everything customized and working now
Posts: 164
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/
Posts: 1023
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.
Posts: 157
LFrank,
Thank´s for help.
There's an updated version of PGTheme with corrected bugs and some more options.
Now working well with colorpacks.
Posts: 164
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
Posts: 1023
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
Posts: 164
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
Posts: 1023
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)
Posts: 1023
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)
Posts: 1023
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;
}
Posts: 157
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
Posts: 3
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
Posts: 16504
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.
Posts: 8601
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.
Posts: 1023
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
Posts: 1023
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
Posts: 157
LFrank,
Download it again I discovered some bugs
Posts: 157
mindless,
I' m trying but it's not working, how and were can I set it?
Posts: 164
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
Posts: 4
Is it possible to allow right clicks rather than have the copyright prompt come up?
Posts: 8601
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.
Posts: 8601
also maybe check that slideshow module is active and omit slideshow links if not?
Posts: 1023
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)
Posts: 164
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
Posts: 808
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.
Posts: 8601
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"}
Posts: 8
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?
Posts: 16504
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
Posts: 10
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)
Posts: 16504
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.
Posts: 8
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.
Posts: 1023
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 !!
Posts: 157
LFrank, customize the variables at the top of theme.js
Posts: 1023
pgilbert,
ouch ... I've missed to check with the latest change... Sorry
Thanks Pedro!
Posts: 1
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!
Posts: 8601
pgilbert, when you've updated to use $params['peerWindowSize'] then you should update your theme.html to not recommend modifying GalleryTheme.class anymore.. thanks!
Posts: 16504
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/