X_treme theme

revuar

Joined: 2007-08-21
Posts: 14
Posted: Wed, 2007-10-24 17:02

Navigation hover links don't work in IE, but works in FireFox (maybe other browsers)
http://pedrogilberto.net/gallery2/v/secret_places/2.jpg.html

Any suggestions, solutions? Or this just can't be done under IE?
My current IE version is 6.0.2900.2180

 
Dragonsys

Joined: 2004-12-27
Posts: 72
Posted: Wed, 2007-10-24 18:23

Couple of things:

1. ALBUM - Info Message :: 1st link tpl file (default: default_link1.tpl)
I change this to a different filename, and it only shows x_treme/templates/extra/info/default_link1.tpl.
ALBUM - Info Message :: 2nd link tpl file (default: default_link2.tpl)
I change this to a different filename, and it still shows x_treme/templates/extra/info/default_link2.tpl or x_treme/templates/extra/info/local/default_link2.tpl.

2. Just upgraded to 1.0.5
The IE fix removal seems to be working for the albums, but the Admin Pages still try to load over 3000 image files. Was the IE Fix included in the Admin section as well?

 
drivindisco

Joined: 2006-09-18
Posts: 114
Posted: Wed, 2007-10-24 22:43

Pedro,

I upgraded with the full version and that eliminated the problem with the FULL SIZE image not displaying.
I still have the issue with the thumbnail where the mouseover does not cover the whole thumbnail.

Thanks for the continued assistance.

Ian

 
nicoprod

Joined: 2006-06-18
Posts: 15
Posted: Thu, 2007-10-25 10:29

Thanks a lot Pedro for fixing links in dynamic album... it works fine !

www.alasce-en-photos.com

 
toutoucouleur

Joined: 2007-03-13
Posts: 24
Posted: Fri, 2007-10-26 06:25

Hello I have a probleme with caracteres Latin for the display(posting) of the pages of the site I do not know in which file to intervene for resoudre this abnormality
Gallery 2.2.3
x_treme 1.0.3

 
Dragonsys

Joined: 2004-12-27
Posts: 72
Posted: Fri, 2007-10-26 14:38
revuar wrote:
Navigation hover links don't work in IE, but works in FireFox (maybe other browsers)
http://pedrogilberto.net/gallery2/v/secret_places/2.jpg.html

Any suggestions, solutions? Or this just can't be done under IE?
My current IE version is 6.0.2900.2180

it's a problem with IE

 
seppi

Joined: 2006-11-19
Posts: 6
Posted: Sun, 2007-10-28 10:30

Hi everyone,

i downloaded wordpress 2.3 and the new xtreme 1.0.5.

How can i embedd the gallery with wp-gallery2.php?
With other themes it works fine. With this one it simply displays an empty page.

Thanks for help!

 
revuar

Joined: 2007-08-21
Posts: 14
Posted: Mon, 2007-10-29 07:12
Dragonsys wrote:
revuar wrote:
Navigation hover links don't work in IE, but works in FireFox (maybe other browsers)
http://pedrogilberto.net/gallery2/v/secret_places/2.jpg.html

Any suggestions, solutions? Or this just can't be done under IE?
My current IE version is 6.0.2900.2180

it's a problem with IE

So there is no way to make it work with ie? Or it just under development?

 
revuar

Joined: 2007-08-21
Posts: 14
Posted: Mon, 2007-10-29 07:26

Another problems arise.
In album index it seems there is strange behavior of rating module inclusion.
It work in 2 ways.
1) Where is one is good, but results not used.
2) And one is that better to avoid.

Detailed explanation:
1) Theme includes rating modules scheme wich count rating for all images on the album page and stores data somewhere(don't really sure if it so). Thats includes one call for template and 1 select with "WHERE ItemId in (?,?,etc..)" which one is good of request to DB.
2) But then for EACH image called template "RatingInterface" and also function to get Rating just for 1 this image. So it goes like "WHERE ItemId in (<imageid>)" and multiple by quantity of images per page. Thats costly work for DB and adds load overall.

Questions:
1) Is there a way to avoid so called {g->callback type="rating.LoadRating" ItemId=$item.id} request for EACH image and use data from the first request for ALL images?
2) Is there a way to avoid including template file for rating, or its not so costly operation how I imagine, so I may be shouldn't worry to much about it?

It seems that answers somewhere at "blocks", but can't figure out how to do it right.
I'm not good with theme development, so if someone can at least show me the right direction, I'd really appreciate it.

Thanks.

 
Dragonsys

Joined: 2004-12-27
Posts: 72
Posted: Mon, 2007-10-29 14:24
revuar wrote:
Dragonsys wrote:
revuar wrote:
Navigation hover links don't work in IE, but works in FireFox (maybe other browsers)
http://pedrogilberto.net/gallery2/v/secret_places/2.jpg.html

Any suggestions, solutions? Or this just can't be done under IE?
My current IE version is 6.0.2900.2180

it's a problem with IE

So there is no way to make it work with ie? Or it just under development?

My understanding is, Pedro is working to find a way to make it work.

 
revuar

Joined: 2007-08-21
Posts: 14
Posted: Tue, 2007-10-30 14:53
revuar wrote:
Another problems arise.
In album index it seems there is strange behavior of rating module inclusion.
It work in 2 ways.
1) Where is one is good, but results not used.
2) And one is that better to avoid.

Detailed explanation:
1) Theme includes rating modules scheme wich count rating for all images on the album page and stores data somewhere(don't really sure if it so). Thats includes one call for template and 1 select with "WHERE ItemId in (?,?,etc..)" which one is good of request to DB.
2) But then for EACH image called template "RatingInterface" and also function to get Rating just for 1 this image. So it goes like "WHERE ItemId in (<imageid>)" and multiple by quantity of images per page. Thats costly work for DB and adds load overall.

Questions:
1) Is there a way to avoid so called {g->callback type="rating.LoadRating" ItemId=$item.id} request for EACH image and use data from the first request for ALL images?
2) Is there a way to avoid including template file for rating, or its not so costly operation how I imagine, so I may be shouldn't worry to much about it?

It seems that answers somewhere at "blocks", but can't figure out how to do it right.
I'm not good with theme development, so if someone can at least show me the right direction, I'd really appreciate it.

Thanks.

Ok, finally found it myself.

Theme actually already has loaded rating interface and all necessary data, so you don't need to do it again, just make use out of it.
My solution:
Replace code block:

                      		  {g->callback type="rating.LoadRating" itemId=$item.id}
			          {if !empty($block.rating.RatingData)}
		                  <table align="center" class="tableacpic">
                   	            <tr>
                          	      <td>
                                        <div style="border:1px; text-align:center" class="{$class}">
 	        	                  {include file="gallery:modules/rating/templates/RatingInterface.tpl3"
		                          RatingData=$block.rating.RatingData
		                          RatingSummary=$block.rating.RatingSummary
		                          l10Domain="modules_rating"
		                          }
                        	        </div>
	                              </td>
        	                    </tr>
                	          </table>
			 	  {/if}

With following block:

       	 		        {if isset($child.itemSummaries.rating)}
                          	  	<table align="center" class="tableacpic">
	                            	  <tr>
          	                      	    <td>
                      		              <div style="border:1px; text-align:center" class="{$class}">
                      		              {$child.itemSummaries.rating}
                                	      </div>
                           	      	    </td>
                           	    	  </tr>
	                         	</table>
	                       	{/if}

All the rating data for item contains in variable {$child.itemSummaries.rating}
All we need is just to display it where we need it.

I didn't check it for everything (lack of time), but for my configuration its works just fine.

With this you decrease load for calling function and additional template parsing.

 
Dragonsys

Joined: 2004-12-27
Posts: 72
Posted: Tue, 2007-10-30 21:26
revuar wrote:
Replace code block:

                      		  {g->callback type="rating.LoadRating" itemId=$item.id}
			          {if !empty($block.rating.RatingData)}
		                  <table align="center" class="tableacpic">
                   	            <tr>
                          	      <td>
                                        <div style="border:1px; text-align:center" class="{$class}">
 	        	                  {include file="gallery:modules/rating/templates/RatingInterface.tpl3"
		                          RatingData=$block.rating.RatingData
		                          RatingSummary=$block.rating.RatingSummary
		                          l10Domain="modules_rating"
		                          }
                        	        </div>
	                              </td>
        	                    </tr>
                	          </table>
			 	  {/if}

In what file? theme.tpl?

 
revuar

Joined: 2007-08-21
Posts: 14
Posted: Wed, 2007-10-31 11:16

Its true for any file in this template, that have same construct, but actual problem were indeed in album.tpl

 
barleywine

Joined: 2007-04-10
Posts: 24
Posted: Wed, 2007-10-31 16:10

sorry for the double post - tried to remove it but it added a new one. see above for the real one

 
barleywine

Joined: 2007-04-10
Posts: 24
Posted: Wed, 2007-10-31 16:07

Hi all,

Let me add my kudos for a beautiful theme.

Just a quick question, though - I have the mod Display New Items activated, and in Matrix, it shows the "New" in both the album views and the photo, but in Xtreme, which I really want to use, the only place I can see it is if I click on the tiny box in the corner of the image, and my client is never going to go for that. In fact he'll want to eliminate that little "i" altogether. So, how do I display the "New" under the thumbnail on the album and in the desciption of the photo?

Has anyone else had this problem? I really want to use this theme, but also really need to be able to see "New" under the items like in Matrix, etc. Any help in fixing this would be greatly appreciated.

(Please, please let it be simple!!)

Thanks,
Melissa

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Thu, 2007-11-01 08:34

Pedro,

Given the excellent work by Dayo on the ZenCart bridge, do you have any plans to integrate it into Xtreme? Primarily, being able to use 'cart icons' in the same was the checkout modules use them now? Dayo has created text menu items, but wondered if you had planned on supporting Zencart via cart icons too?

 
pinkponk

Joined: 2007-10-12
Posts: 14
Posted: Fri, 2007-11-02 01:25

The gallery constantly breaks at installation of a theme x_treme. Why?

Error
Error (ERROR_PLATFORM_FAILURE) :

* in modules/core/classes/FlockLockSystem.class at line 72 (GalleryCoreApi::error)
* in modules/core/classes/GalleryLockSystem.class at line 147 (FlockLockSystem::_acquireLock)
* in modules/core/classes/helpers/GalleryLockHelper_simple.class at line 176 (GalleryLockSystem::acquireWriteLock)
* in modules/core/classes/GalleryCoreApi.class at line 2193 (GalleryLockHelper_simple::acquireWriteLock)
* in modules/randomhighlight/module.inc at line 210 (GalleryCoreApi::acquireWriteLock)
* in modules/core/classes/GalleryEntity.class at line 468 (RandomHighlightModule::onLoad)
* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 91 (GalleryEntity::onLoad)
* in modules/core/classes/GalleryCoreApi.class at line 2259 (GalleryEntityHelper_simple::loadEntitiesById)
* in modules/randomhighlight/module.inc at line 282 (GalleryCoreApi::loadEntitiesById)
* in modules/core/classes/GalleryEntity.class at line 468 (RandomHighlightModule::onLoad)
* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 91 (GalleryEntity::onLoad)
* in modules/core/classes/GalleryCoreApi.class at line 2259 (GalleryEntityHelper_simple::loadEntitiesById)
* in modules/core/classes/helpers/GalleryDerivativeHelper_simple.class at line 170 (GalleryCoreApi::loadEntitiesById)
* in modules/core/classes/helpers/GalleryDerivativeHelper_simple.class at line 72 (GalleryDerivativeHelper_simple::_loadDerivatives)
* in modules/core/classes/GalleryCoreApi.class at line 970 (GalleryDerivativeHelper_simple::fetchThumbnailsByItemIds)
* in modules/core/module.inc at line 92 (GalleryCoreApi::fetchThumbnailsByItemIds)
* in modules/core/classes/GalleryTheme.class at line 1503 (CoreModule::getItemLinks)
* in themes/x_treme/theme.inc at line 2305 (GalleryTheme::loadCommonTemplateData)
* in modules/core/classes/GalleryTheme.class at line 926 (x_tremeTheme::showAlbumPage)
* in modules/core/classes/GalleryView.class at line 308 (GalleryTheme::loadTemplate)
* in main.php at line 441 (GalleryView::doLoadTemplate)
* in main.php at line 94
* in main.php at line 83

I use the dictionary

 
digimatik

Joined: 2007-11-02
Posts: 3
Posted: Fri, 2007-11-02 16:32

I have installed Gallery 2.2.3 and the X-Treme Theme 1.05 for my wifes Art Gallery:
http://www.heike-ponge.de/gallery/
Everything is fine except the small rectangle at the bottom of the first (root) page. This rectangle is only shown with the X-treme theme.
Can anyone give me hint to avoid this?

Cheers
Digimatik

 
digimatik

Joined: 2007-11-02
Posts: 3
Posted: Fri, 2007-11-02 19:09

Got it, it was the placeholder for comments

 
digimatik

Joined: 2007-11-02
Posts: 3
Posted: Sat, 2007-11-03 10:41

Another Problem,
when I use the checkout plugin, the "view cart" icon is not shown, instead the "blank.gif" is inserted by the script.
Any suggestions?

 
drivindisco

Joined: 2006-09-18
Posts: 114
Posted: Sun, 2007-11-04 13:34

Pedro,

Any updates on the thumbnail mouseover problem i mentioned earlier?
This was not occurring in earlier versions of this theme.

http://playindead.org/gallery2/main.php?g2_itemId=21855

Regards,

drivindisco

 
jeclic

Joined: 2007-09-14
Posts: 48
Posted: Thu, 2007-11-08 14:24

is anyone test video with the embed module for Youtbe, google,...
http://gallery.menalto.com/node/65656
This module use the description to display the video and it's not very cool because I've the video on top of the photo like this :
http://galerie.de.photos.free.fr/main.php?g2_itemId=895
With another themes, it's OK.

 
gadams999

Joined: 2005-05-18
Posts: 2
Posted: Sat, 2007-11-10 21:38

I love the x_treme theme andhve it (1.0.3) running under Gallery 2.2.3. I have a problem where I cannot upgrade to 1.0.5 of the theme pack. Under my modules, it shows the 1.0.3 as installed, but without the option to remove. Untarring in the base gallery2 directory causes the theme to break.

I'm sure I've done something basically wrong, but since gallery has been so stable, have not been able to find out where to fix this.

Any pointers would be helpful.

 
bauchi

Joined: 2007-11-11
Posts: 70
Posted: Sun, 2007-11-11 15:03

I´ve just installed theme pack 1.05 and have one single customization problem I cannot solve.
How can I get the language selector on top right of the first album page?
I think I´ll have to edit somehow theme.inc or theme.tpl, but I don´t know how.
Thanks in advance for any advice or help.

 
lightpainter

Joined: 2005-11-25
Posts: 64
Posted: Thu, 2007-11-15 18:03

Firstly, thanks for a fantastic theme, and for the upgrades that have fixed most of the issues I was going to bring up. There is a minor one remaining- when I am at the main gallery page, or anywhere in the Admin sections, I see my favicon in the URL. As soon as I go into the gallery albums, it disappears. This is not a problem in PGTheme.

Are there additional locations I should be copying the favicon to? I already had to copy it to the theme folder to get it to appear at all. Normally it resides in the gallery root folder and works for all pages in the site.

However, this is easily fixed. The theme.tpl file in the x_treme theme templates folder has extra lines at line 27-29 specifying the favicon location that were not in PGTheme. They can be commented out thus:

{* Set the GALLERY2 Favicon for the GALLERY pages *}
{*<link rel="SHORTCUT ICON" href="favicon.ico"/> *}
{*<link rel="icon" href="favicon.ico"/> *}
And then my favicon appears on all gallery pages.

I expect there is a more elegant way, but it worked for me. It must be a relative link issue.

Tom

-----------------------------
www.lightpainter.co.uk

 
lightpainter

Joined: 2005-11-25
Posts: 64
Posted: Sun, 2007-11-25 11:44

Hi Pedro,

I have x_treme 1.05, installed from the full version, but I still can't get full-size popups (works in PGTheme, PGLightbox). Can you suggest why, or tell me which files from the release I could try re-uploading?

Thanks
-----------------------------
www.lightpainter.co.uk

 
SilverApe

Joined: 2007-11-25
Posts: 1
Posted: Wed, 2007-11-28 22:33

Hi all,

sooo many reactions on this theme :)

specs:
Gallery version = 2.2.3 core 1.2.0.5
Default theme = x_treme

I have a question for which I haven't found an answer yet. I really did a good search, but nothing.
I am new to Gallery2 (4 days now, coming from joomla), so please be gentle.

I have the x_treme theme installed and it is working fine. I wanted to change it to my liking and although you can change allot in the admin I wanted more.
So I started messing with the .tpl files (in local, yes). It is hard but fun to do.
Now I am stuck on something. I want to remove the album view from the main page and place the Image Block instead (with the latest galleries). To go to the album I have placed a link on top, so that will be no problem.

I just can't find where I can remove the album on the main page (or put an if statement). My main search was in album.tpl but there is so much there....

How can I call the Image Block?

thanks in advance for your help
Aaron

 
Raid

Joined: 2007-11-12
Posts: 24
Posted: Thu, 2007-12-06 10:29

Has anyone got the IE "next" and "previous" navigation problem figured out? On the photo page, the "next" and "previous" mouse-over links don't work when clicked. if you right click them, and click "open link" it works, but not with normal clicking. Thanks.

 
Dragonsys

Joined: 2004-12-27
Posts: 72
Posted: Thu, 2007-12-06 14:24
Raid wrote:
Has anyone got the IE "next" and "previous" navigation problem figured out? On the photo page, the "next" and "previous" mouse-over links don't work when clicked. if you right click them, and click "open link" it works, but not with normal clicking. Thanks.

Try this:
Turn off - PHOTO :: Show Photos fading in

 
Raid

Joined: 2007-11-12
Posts: 24
Posted: Thu, 2007-12-06 20:32
Dragonsys wrote:
Raid wrote:
Has anyone got the IE "next" and "previous" navigation problem figured out? On the photo page, the "next" and "previous" mouse-over links don't work when clicked. if you right click them, and click "open link" it works, but not with normal clicking. Thanks.

Try this:
Turn off - PHOTO :: Show Photos fading in

Thanks Dragonsys, but I already have this turned off. Are these links working for anyone in IE, or does everyone have this problem? Most users who view my site (sadly) use IE, so the navigation problem is kind of a big deal for me. Is there a fix or workaround for this? I noticed it's working on Pedro's site. Thanks again.

 
reefhammer

Joined: 2007-12-11
Posts: 5
Posted: Wed, 2007-12-12 09:10

Hello,
First of all, it's hard to avoid thanking you for all your work on X-treme theme ! For me it's the best theme ever for gallery... I've installed it on my Website and sometimes I use IE to access it (at my job, no choice) and I've some problems with navigation. Firstly, it's really slow... all items are charging and it takes a long time, especially for admin issues. I'm sure you already know this problem due more to IE to your implementation (with Firefox it's a real pleasure !). For "users" just taking a look at pictures, that's not a big deal, it's not so slow.
But I've tried to implement rating interface and stars don't appear with IE. I've tried with other Web browser and Firefox is the only one showing me stars of rating interface. Safari, Opera have the same problem that IE : is it a bug ?
Thanks again for all your work !

 
ASNet0007

Joined: 2006-10-17
Posts: 177
Posted: Wed, 2007-12-12 14:46

Hi reefhammer
I cant fix your problem but wanted to let you know I have used all the versions of the Xtreme theme and have never had any problems with the star rating system in IE 6/7.

 
cachaco87

Joined: 2007-12-10
Posts: 3
Posted: Thu, 2007-12-13 05:52

Hi,

I'm using the x-treme with G2 embedded into Joomla. And I have a small problem, the Navigation icons (prev, full size, next) do not show up on the embedded page, but they do show on the standalone page of G2. When I have it set to "Show Thumbnails" it works in both cases, but when I change it to "Show Icons" it doesn't work with Joomla.

You can see the problem here,
Embedded: http://mediavelada.com/index.php?option=com_gallery2&Itemid=72
Direct link to G2: http://mediavelada.com/gallery/main.php

Thanks for any help solving the issue.

 
nortonx

Joined: 2002-11-19
Posts: 3
Posted: Sun, 2007-12-23 02:56

First of all, thanks for a great theme :-) Have used gallery for many years, and ar now starting a new site, this time with this exelent theme :-)

I have one problem.. when viewing an album for the first time, all the thumb's are showing as they should - but, if i go to the gallery root, then select the same album, the thumb's are not showing (only a one pixel frame, with the picture name in it). I have to refresh the page, to get the thumb's to load.

Can anyone help me??

Kind regards
NortonX
Trondheim, Norway

--------------------------------
X_treme 1.0.5

Gallery-versjon = 2.2.3 kjerne 1.2.0.5
PHP-versjon = 5.2.5 cgi
Nettjener = Apache/2.0.59
Database = mysqli 5.0.45-log, lock.system=flock
Verktøy = NetPBM, Gd
Akselerasjon = full/86400, full/86400
Operativsystem = Linux astoria 2.6.16.29-2006100901-786-smp #1 SMP Mon Oct 9 10:01:57 CEST 2006 i686
Standardtema = x_treme
gettext = aktivert
Lokaltilpassing = no_NO
Nettleser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Rader i tabell GalleryAccessMap = 32
Rader i tabell GalleryAccessSubscriberMap = 112
Rader i tabell GalleryUser = 8
Rader i tabell GalleryItem = 112
Rader i tabell GalleryAlbumItem = 11
Rader i tabell GalleryCacheMap = 31

 
martin_bissig

Joined: 2004-04-18
Posts: 13
Posted: Sun, 2007-12-23 14:45

Hi there,

first I also would like to thank Pedro and everyone else involved in this for their great work! I have a little problem. Please have a look at the screenshot:

[img]http://www.bissig.ch/d.jpg[/img]

I would like to reduze the space you see above. It is clear for me that I can't show Icons and titles after that, but for me this is no problem because I don't want to show titles and icons anyway. The grey line can also be removed, I don't need it.

Which kind of code in which file do I have to change in order to reduce this space to 10 pixels?

Best regards,
Martin

 
jhuerta

Joined: 2007-12-26
Posts: 2
Posted: Wed, 2007-12-26 08:28

Hi,
I just installed X_Treme and trying to make 2 modifications:

- I'd like to have the Top Navigation at the bottom:
The menu: "Site Admin | Your Account | Logout"
I'd like to have it at the same level as: "G2.2 :: X_treme by PedroGilberto.net"

Is there a way to make the Top Navigation a "Bottom Navigation"?

- This is related to PHP, which I dont know anything. Im trying to use the image block where Pedro has the picture. To do so, im modifying:

<img style="width: 150px; float: left; margin-bottom:6px; margin-right:6px" src="{g->theme url='templates/extra/info/pgfoto.jpg'}" alt="Pedro Gilberto"/>

with

<img style="width: 150px; float: left; margin-bottom:6px; margin-right:6px" src="{g->theme url='<?php @readfile('http://yolucas.com/gallery/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title'); ?>}" alt="Pedro Gilberto"/>

That does not work ... What is the syntax that I sould add instead of pgfoto.jpg to have a random/block image?

thanks,

Juan

 
reefhammer

Joined: 2007-12-11
Posts: 5
Posted: Wed, 2007-12-26 09:36

Hello,
I'm using the X-treme theme on my gallery (settings at the end of the message) and I'd like to customize default.tpl to manage multilanguage : I would like to have different messages depending on browser language settings...do you know if it's possible and what the default.tpl config would be ?
Thanks
Reefhammer

-----------------------------------------------------------------
Gallery version = 2.2.3 noyau 1.2.0.5
PHP version = 4.4.7 cgi
Serveur Web = Apache
Base de données = mysqlt 5.0.44-log, lock.system=flock
Boîtes à outils = ArchiveUpload, Exif, Getid3, LinkItemToolkit, Thumbnail, Gd
Accélération = none, none
Système d'exploitation = Linux web432.90.ha.ovh.net 2.6.21.5-grsec-mutu-grs-ipv4-32 #2 SMP Tue Oct 9 17:54:26 CEST 2007 i686
Thème par défaut = x_treme
gettext = activé
Langage = fr_FR
Navigateur Web = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Lignes dans la table GalleryAccessMap = 16
Lignes dans la table GalleryAccessSubscriberMap = 603
Lignes dans la table GalleryUser = 4
Lignes dans la table GalleryItem = 601
Lignes dans la table GalleryAlbumItem = 7
Lignes dans la table GalleryCacheMap = 0

 
jens_k

Joined: 2007-01-28
Posts: 244
Posted: Wed, 2007-12-26 13:21
reefhammer wrote:
Hello,
...I'd like to customize default.tpl to manage multilanguage : I would like to have different messages depending on browser language settings...do you know if it's possible and what the default.tpl config would be ?

I've tried it to implement but without success.
By now my thoughts are to include different tpl files depending on the selected language.

1) Language:
As I could see the selected language is written to the header with {g->language}.
To see the selected language you could place {g->language} in your default.tpl
2) Include:
Including looks like {g->theme include="file.tpl"}
If the file you want to include is in your extras/info subfolder you have to write this path too because the template folder ist the base.

Both works fine for me as a separate implementation. So I have tried to merge them as follows in my default.tpl:

if {{g->language == "de-DE"}}
	{g->theme include="/extra/info/german.tpl"}
{else}
	{g->theme include="/extra/info/english.tpl"}
{/if}

=> But this do not work. <= I am sure the mistake is in front of my pc ;-).

Perhaps this may help you.
__________________
http://jekophoto.de

 
reefhammer

Joined: 2007-12-11
Posts: 5
Posted: Wed, 2007-12-26 14:40

Thanks for your answer and to see that this problem is shared with others !
Wouldn't it be possible to write something like :

Quote:
if {{g->language == "de-DE"}}
The text in German
{else}
The text in English{/if}

directly in default.tpl ? I can't test it on my localhost because of php configuration of Easyphp (when I put gettext on, my gallery isn't available !) but do you thnik that could be possible ?

 
jens_k

Joined: 2007-01-28
Posts: 244
Posted: Wed, 2007-12-26 14:54

Hi Pedro,
hi community,

thanks for this amazing theme and the great support!

I am using gallery v. 2.2.3 and X-treme v. 1.0.5 at my new gallery.

There is are different behaviours in displaying the "flying boxes" between Internet Explorer 6 and Firefox / Safari browsers

viewing with IE:
[IMG]http://img172.imageshack.us/img172/2983/xtremeflyingiepi9.jpg[/IMG]

viewing with FF and Safari:
[IMG]http://img505.imageshack.us/img505/662/xtremeflyingffsafariqt6.jpg[/IMG]

Here you can see 2 differences:
1) Alignment:
Viewing with IE all objects are centered. FF and Safari are showing the thumbnail left aligned. If you have activated the rating module these infos are note centered too.

2) z-index:
At IE the interpretation of the z-index works fine - > the flying boxes are on top of the expand info icons.
Viewing with FF or Safari browser the flying boxes are "under" the expand info icons.

The third behaviour is that IE sometimes does not show the close-button at the flying boxes. I don't know the dependencies. It seems to be as follow: if the close button is displayed once than it's ok for the whole browser-session.

I have tested with following configuration:
Windows XP with Internet Explorer (6.0.29) and Firefox (2.0.0.11)
Mac OS X 10.5.1 with Safari (3.0.4) and Firefox (3.0.b2)
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 4.4.7 apache2handler
Webserver = Apache/2.2.6
Database = mysqlt 4.1.22-max-log, lock.system=flock
Toolkits = Gd, Thumbnail, Exif
Acceleration = none/86400, none/3600
Operating system = Linux kernel 2.6.17.8-nmm1 #4 SMP Fri Jan 26 15:05:12 CET 2007 i686
Default theme = x_treme
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.11) Gecko/20071127 ImageShackToolbar/4.3.5 Firefox/2.0.0.11
Rows in GalleryAccessMap table = 52
Rows in GalleryAccessSubscriberMap table = 532
Rows in GalleryUser table = 10
Rows in GalleryItem table = 528
Rows in GalleryAlbumItem table = 36
Rows in GalleryCacheMap table = 0

If you want to have a liveview to the gallery please use the link at my signature and replace the .de with .eu. (It's too early to propagate it to searchengines.)

Thanks
__________________
http://jekophoto.de

 
jens_k

Joined: 2007-01-28
Posts: 244
Posted: Wed, 2007-12-26 15:01
reefhammer wrote:
Thanks for your answer and to see that this problem is shared with others !
Wouldn't it be possible to write something like :

Quote:
if {{g->language == "de-DE"}}
The text in German
{else}
The text in English{/if}

directly in default.tpl ? I can't test it on my localhost because of php configuration of Easyphp (when I put gettext on, my gallery isn't available !) but do you thnik that could be possible ?

This would be possible I think. But with this solution you have to manage all your changes in one file.
The charme of my thoughts is to implement intelligence only in the default.tpl and the content in separate files.
So if I want to change only the content for one language you don't need to touch other files. I think this is easier in maintining.

__________________
http://jekophoto.de

 
jhuerta

Joined: 2007-12-26
Posts: 2
Posted: Thu, 2007-12-27 02:10

- I'd like to have the Top Navigation at the bottom:
Fixed. It was a matter of modifying theme.tpl file

- Id like to know how to add a random picture in the welcome message (default.tpl).

It seems i need to include the php code in here:
<img style="width: 150px; float: left; margin-bottom:6px; margin-right:6px" src="{g->theme url='HERE_THE_FILE')}" alt="Pedro Gilberto"/>

Id like to know how to add this code into that file:

<?php @readfile('http://yolucas.com/gallery/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title'); />

thanks,

Juan

 
jens_k

Joined: 2007-01-28
Posts: 244
Posted: Thu, 2007-12-27 09:57
jhuerta wrote:
- Id like to know how to add a random picture in the welcome message (default.tpl).

Just add {g->block type="imageblock.ImageBlock" blocks="randomImage" showDate=0 showOwner=0 showViews=0 showTitle=0 showHeading=0 useDefaults=0} to your default.tpl.
More informations are here: http://codex.gallery2.org/Gallery2:Themes:Reference:Blocks.

Regards,
Jens
__________________
http://jekophoto.de

 
JST

Joined: 2008-01-02
Posts: 6
Posted: Wed, 2008-01-02 17:56

Hi! Thank you for this wonderful theme. I have used gallery before but never have I been so excited like with this particular theme. Congratulations.

My question is how do I make the Favicon appear in all the pages and not just in the Main page? Plus, I wanted to change the first one that I uploaded but it seems even if I chnaged it I am still seeing the old one.

I inserted it inside the Gallery folder. I hope it's the proper thing to do. Thanks!

http://www.josesantiagotan.com/
http://www.josesantiagotan.com/photos/
http://www.heddatan.com/

 
Carpcatcher

Joined: 2004-02-02
Posts: 92
Posted: Thu, 2008-01-03 19:34

Hi There

Does anyone know how to set the colors of the sidebar?
Mine now is fully transparent (doesn’t look nice :)

Thanks in advance

 
Torvon

Joined: 2007-12-26
Posts: 70
Posted: Fri, 2008-01-04 14:49

Hello Community,

I still have the following problems with the xtreme theme:

(1) Floating Comment Window: it uses gcBorder2 and gcBackground2 as main CSS classes, but having set #000 there (I want my gallery to be black without borders), the comment window looks ... well ... black on black, you can imagine. Therefor I need to change the border around the floating window to something grey, but can't find the tpl file in which to change the class (I tried all tpl files in the comment section, and changed the classes to my own classes e.g. gcBorder3, but only inner borders changed in the comments window, not the outer ones. Help please :)

(2) Sidebar: Same problem. Can't change the "outer" border. Moreover, I want spacing between the different functions (search box, album drop down et cetera.), and have no clue how to insert a spacing command into the php code.

(3) I really want to get rid of the comments on photo pages shown in the left bottom page of the screen - I only want them floating if you click the button. But I can't get that working in the theme options.

(4) I want to change "Register" and "Options" to "register" and "options" (upper menu) but can't find those in the inc or tpl files.

Thanks in advance
ta-ta
T.

---
This gallery was setup only a few ks and is still in the beta testing phase, I'm just posting it in case you need the info in case it helps you to help me with my questions:
revelation-of-silence DOT com SLASH gallery

 
jens_k

Joined: 2007-01-28
Posts: 244
Posted: Sat, 2008-01-05 10:15

Hi Torvon,

(1) Floating Window:
You can find the floating windows for the infoblock at the album.tpl.
I have altered my album tpl so I can not give you the right line number (It should be around 780). Search for "id="infoblockI{$child.id}" - that's the identifier for the comment windows.

Here is the code snippet around:

{if !empty($theme.params.Iinfo) && !empty($theme.params.IinfoLink)}
  <div id="infoblockI{$child.id}" style="position:absolute; top:0px; left:0px; visibility: hidden; text-align:center; z-index: 30;" class="infoblockIopacity">
    <div {if !empty($theme.params.Iinfo)} style="width:220px;" class="gcBackground2 gcBorder2"{/if}>
      <table style="width:220px;" class="gcBorder1 gcBackground1">
        <tr>
          <td class="gcBorder1 gcBackground1" style="text-align:right">
            <div onmousedown="dragStart(event, 'infoblockI{$child.id}')" class="BlockMove" style="text-align:right" title="{g->text text='click on this bar, drag and drop to move'}">
              <a onmouseover="hideLyr('infoblockI{$child.id}')" title="{g->text text='Close'}" class="icon tLink-close"><img src="{$imageURL_base}blank.gif" alt="{g->text text='Close'}" title="{g->text text='Close'}"/></a>
            </div>

There you should change the flying boxes as you wish to do.

(2) Sidebar:
The formatting for the floating Sidebar you can find at album.tpl, module.tpl and photo.tpl
Search for the following comments:

{* sidebar *}
...
{* /sidebar*}

Between these lines you will find the code for (visual) creating the sidebar. Inside module.tpl you will not find these comments. Try to search for {g->theme include="sidebar.tpl"}. Above these line there is the code you are searching for.

Here comes the relevant snippet (from my point of view):

	{if $sidebar == 'floating'}
{literal}
	<script type="text/JavaScript">
	//<![CDATA[
	<!--
divSidebar = {/literal}"<div id=\"floatingSidebar\" class=\"BlockOpacity\">"{literal};
function sidebarT(){document.write(divSidebar);}
sidebarT();
	//-->
	//]]>
	</script>
{/literal}

  <table>
<tr>
  <td>

{literal}
<script type="text/JavaScript">
//<![CDATA[
<!--
divSidebarClose = {/literal}"<table class=\"gcBorder2 gcBackground2\"><tr><td class=\"gcBorder1 gcBackground1\"><div onmousedown=\"dragStart(event, 'floatingSidebar')\" class=\"BlockMove\" style=\"text-align:right\"><a onmouseover=\"toggleLyr('floatingSidebar')\" title=\"{g->text text='Close'}\" class=\"icon tLink-close\"><img src='{$imageURL_base}blank.gif' alt='{g->text text='Close'}'\/><\/a><\/div><\/td><\/tr><tr><td class=\"gcBorder1\">"{literal};
function sidebarClose(){document.write(divSidebarClose);}
sidebarClose();
//-->
//]]>
</script>
{/literal}

  {g->theme include="sidebar.tpl"}

The content for the Sidebar is described at sidebar.tpl. But I am not sure how to implement spaces, because there are defined blocks inserted. I don't know where these blocks are used also.

Ciao,
Jens

__________________
http://jekophoto.de

 
Torvon

Joined: 2007-12-26
Posts: 70
Posted: Sat, 2008-01-05 09:56

Thank you very much, Jens_K.

(1) I changed the parts you named, without success. I inserted weird data (width = 1000px, wrong aligning, border class with red borders et cetera.), but it didn't change anything. I triple checked the upload, saved files ... either there is some very weird bug going on, or this part is overwritten by some other piece of code. Here some proof of weird code:

Quote:
<div id="infoblockI{$child.id}" style="position:absolute; top:1000px; left:500px; visibility: hidden; text-align:center; z-index: 30;" class="infoblockIopacity">
<div {if !empty($theme.params.Iinfo)} style="width:1000px;" class="gcBackground3 gcBorder3"{/if}>
<table style="width:1000px;" class="gcBorder3 gcBackground3">
<tr>
<td class="gcBorder3 gcBackground3" style="text-align:right">
<div onmousedown="dragStart(event, 'infoblockI{$child.id}')" class="BlockMove" style="text-align:right" title="{g->text text='click on this bar, drag and drop to move'}">
<a onmouseover="hideLyr('infoblockI{$child.id}')" title="{g->text text='Close'}" class="icon tLink-close"><img src="{$imageURL_base}blank.gif" alt="{g->text text='Close'}" title="{g->text text='Close'}"/></a>

Those classes are all #ff0000 ones and should show red - but nothing changes.
I checked the complete album.tpl, as there are many more pieces of code which seem to refer to the comments section, e.g. 1271+:

Quote:
{if !empty($block.comment.AddComment) && ($theme.params.IAddComment == 'floating') && ($theme.params.IAddComment != 'none') && (isset ($theme.permissions.comment_add))}
<div id="addcommentI{$child.id}" style="position:absolute; left: 0px; top: 0px; text-align:left; z-index: 35; visibility: hidden;" class="BlockOpacity">
<table class="gcBackground3 gcBorder3">
<tr>
<td class="gcBorder4 gcBackground3">
<div onmousedown="dragStart(event, 'addcommentI{$child.id}')" class="BlockMove" style="text-align:right" title="{g->text text='click on this bar, drag and drop to move'}">

But changes there don't do anything either. Perhaps the album.tpl is overwritten by some other pieces of code?

(2) Changing the classes works perfectly, thank you very very much for your posting! There also seems to be some overwriting going on, but I managed to get the window the way I want it.
Too bad you don't know a way to emply some kind of break function for the spacing ... I hope I'll find someone who is able to write that in php (floridave perhaps :-) ) ...

(3) - SOLVED

(4) *bump* Still looking for the *.inc files in which I can change "Register" and "Options" to "register" and "options".

Thanks again for your help!

ta-ta
T.
---
This gallery was setup only a few days back and is still in the beta testing phase, I'm just posting it in case you need the info in case it helps you to help me with my questions:
revelation-of-silence DOT com SLASH gallery

 
jens_k

Joined: 2007-01-28
Posts: 244
Posted: Sat, 2008-01-05 10:41

Hi Torvon,

sorry it was my mistake...
The hints I gave you to your first question change the appearance of the flying infoboxes - not the comment windows. -> I have altered my recent post.
Here are the corrected infos for the floating comment windows:

(1)You have to change 3 files: album.tpl, navigatorTop.tpl and photo.tpl. The given line numbers are the starting lines. But they may differ because I have changed my files.

album.tpl:

-> addcomment
line 1291
<div id="addcommentI{$child.id}" style="position:absolute; left: 0px; top: 0px; text-align:left; z-index: 35; visibility: hidden;" class="BlockOpacity">
line 1468
<div id="addcomment" style="position: absolute; left:0px; top:0px; text-align:left; z-index: 25; visibility: hidden;" class="BlockOpacity">

-> viewcomments
line 1318
<div id="commentsI{$child.id}" style="position:absolute; left: 0px; top: 0px; text-align:left; z-index: 35; visibility: hidden;" class="BlockOpacity">

photo.tpl:

-> addcomment
line 853
<div id="addcomment{$item.id}" style="position: absolute; left:0px; top:0px; text-align:left; z-index: 25; visibility: hidden;" class="BlockOpacity">
line 1139
<div id="addcomment" style="position: absolute; left:0px; top: 0px; text-align:left; z-index: 30; visibility: hidden;" class="BlockOpacity">

navigatorTop.tpl

-> addcomment
line 269
<div id="addcomment{$item.id}" style="position: absolute; left:0px; top:0px; text-align:left; z-index: 25; visibility: hidden;" class="BlockOpacity">

-> viewcomments
line 314
<div id="comments{$item.id}" style="position: absolute; left:0px; top:0px; text-align:left; z-index: 30; visibility: hidden;" class="BlockOpacity">

(4) Change "Register" and "Options" to lowercase
The solution would be to generate new language files and to alter some tpl and inc-files. I am not familar with it.
The way I will discribe is really quick and dirty becaus you are loosing the flexibility of multilanguage support. As I could see you are not using it so this way could be an option for your site.

-> theme.tpl
line 844
original: txt = {/literal}"{g->text text='Options'}{assign var='TopLinksseparator' value='0'}"{literal};
changed: txt = {/literal}"{g->text text='options'}{assign var='TopLinksseparator' value='0'}"{literal};

-> modules/register/module.inc
line 109
original: 'text' => $this->translate('Register'),
changed: 'text' => $this->translate('register'),

Cheers,
Jens
__________________
http://jekophoto.de

 
Torvon

Joined: 2007-12-26
Posts: 70
Posted: Sat, 2008-01-05 12:00

Hello Jens,

thank you so much for your commitment ! After knowing the IDs (comments / addcomments) to look for, it was no problem at all to browse through the files and alter them to what I wanted - there were a few more things to change (one more line in the NavigatorTop.tpl, and line 15 in AddComment.tpl), but it works perfect now. I love the looks :)

I am not using multiple languages, and already had altered login, logout and site admin in module.inc.
Unfortunately, there is no "Register" line listed in my module.inc (I also checked the original xtreme theme file, I didn't delete the line, it wasn't implemented), therefor I'm a bit lost still. It is listed in my upper menu, so it has to come from somewhere in the code :-/ ...

Changing "options" in the theme.tpl worked fine, of course.

Thank you again, and greetings to Berlin from Munich
ta-ta
T.

--------------
In case you need the link to my gallery in order to answer my help requests:
revelation-of-silence DOT com SLASH gallery