New Theme: Greypop

rogun

Joined: 2004-01-05
Posts: 19
Posted: Wed, 2007-01-03 20:38

I probably should have posted my system information, so here it is for reference.

Gallery version = 2.1.2 core 1.1.0.2
PHP version = 4.4.4 cgi
Webserver = Apache/2.0.54 (Unix) PHP/4.4.2 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.3.2
Database = mysql 5.0.24a-standard-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Ffmpeg, Getid3, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = partial/21600, partial/21600
Operating system = Linux seltzer 2.4.32-grsec+f6b+gr217+nfs+a32+fuse23+tg+++opt+c8+gr2b-v6.194 #1 SMP Tue Jun 6 15:52:09 PDT 2006 i686
Default theme = matrix
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1

 
L5eoneill
L5eoneill's picture

Joined: 2004-07-02
Posts: 16
Posted: Wed, 2007-01-03 22:29

Any chance of getting quick patch (ie code here in forum) to turn off the gallery title when you're viewing the main page, so we don't see:

Abc's Gallery

Abc's Gallery

...from both breadcrumb and title area? Need the title for html headers, but the repetition is confusing and unsightly. Don't know squat about Smarty file coding, so I'd be stomping around the china shop if I try it myself.

Thanks,
--eon--

 
JRSFORUMS

Joined: 2004-12-15
Posts: 104
Posted: Thu, 2007-01-04 00:09
L5eoneill wrote:
Any chance of getting quick patch (ie code here in forum) to turn off the gallery title when you're viewing the main page, so we don't see:

Abc's Gallery

Abc's Gallery

...from both breadcrumb and title area? Need the title for html headers, but the repetition is confusing and unsightly. Don't know squat about Smarty file coding, so I'd be stomping around the china shop if I try it myself.

Thanks,
--eon--

I had been trying to do this in 'albumlight.tpl'. I had been trying in album.tpl and nothing worked. (Maybe 'LV' can explain what each of these do.)

Anyway, take out (around line 29)
<h2> {$theme.item.title|markup} </h2>

This should also work in photo.tpl, but I have not tried.

I also played with the gidescription in theme.css to get the space a bit narrower.

.giDescription {
    font-size: 1.1em;
    line-height: 1.4em;

CHANGED TO

.giDescription {
    font-size: 1.1em;
    line-height: 1.0em;

Also changed:

#gallery p {
    margin: 0.6em 0;
    padding: 0;

To

#gallery p {
    margin: 0.0em 0;
    padding: 0;

If you want an explanation of why/how these work, ya need someone else. i'm just a tinkerer.

John
*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log, lock.system=database
Toolkits = Exif

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Thu, 2007-01-04 02:54

I finally found the bug with lightbox. Please download version 1.2.2 of the theme here. The only two files that changed are albumlight.tpl and theme.inc.

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Thu, 2007-01-04 02:58

Use JRSForums suggestion to remove the title. To remove it from the breadcrumb edit /modules/core/templates/blocks/BreadCrumb.tpl and remove these lines from the bottom of the file.

  <span class="BreadCrumb-{counter name="BreadCrumb"}">
     {$theme.item.title|markup:strip|default:$theme.item.pathComponent}</span>
 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Thu, 2007-01-04 03:07

To change the description to summery either in album.tpl or albumlight.tpl and probibly photo.tpl change

{$theme.item.description|markup}

to

{$theme.item.summary|markup}

I think I've answered everyones questions from the last few days. If not let me know.

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Thu, 2007-01-04 03:09

Oh I forgot the question about adding other stuff to the lightbox. All you have to do is open up albumlight.tpl, before.tpl, and after.tpl and change the links that have lightbox in them. Be careful though as if you add something with an ' it will break.

 
JRSFORUMS

Joined: 2004-12-15
Posts: 104
Posted: Thu, 2007-01-04 03:49

LV....thanks for all the updates...will let ya know if any problems..

One other question you may not have seen....

What does album.tpl do vs. albumlight.tlp. My change to albumlight to eliminate 'title' printing seem to change on all the pages. When I did it on album.tpl, I could see no changes.

John

*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log, lock.system=database
Toolkits = Exif

 
JRSFORUMS

Joined: 2004-12-15
Posts: 104
Posted: Thu, 2007-01-04 04:23
lvthunder wrote:
I finally found the bug with lightbox. Please download version 1.2.2 of the theme here. The only two files that changed are albumlight.tpl and theme.inc.

LV.....

Sorry to report....changes do not seem to fix it.

I copied all the new 1.2.2 files in. then rolled the changes into my 'local' versions, as applicable.

That didn't work, so I "killed" the local versions of al.tpl and .icc. Still didn't work...i.e. problem stayed the same.

John
*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log, lock.system=database
Toolkits = Exif

 
JRSFORUMS

Joined: 2004-12-15
Posts: 104
Posted: Thu, 2007-01-04 11:18

Actually, LV, I have another question...ref: http://gallery.menalto.com/node/58943

I did try matrix and Greypop with sidebars. On Matrix, the "Back to..." in the "Cart" showed up....in greypop it didn't.

Now I do not WANT to use sidebars. Do you have any guidance on how to introduce "Back to..." to the Cart page?

Thanks for all you help....JOHN

EDIT.....

I found the code in the Matrix sidebar.tpl

For greypop, you need to modify \modules\cart\templates\viewcart.tpl at line 7 with:

<div class="gbBlock gcBackground1">
  <h2> {g->text text="Items Currently in Your Cart"} </h2>
  {g->block type="core.NavigationLinks" class="gbBlock"}
  </div>

I also added:

[code]<div class="gbBlock gcBackground1">
  {g->block type="core.NavigationLinks" class="gbBlock"}
  </div>

This was added to the very end, in case it was a long list


*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log, lock.system=database

 
JRSFORUMS

Joined: 2004-12-15
Posts: 104
Posted: Thu, 2007-01-04 15:17
lvthunder wrote:
To change the description to summery either in album.tpl or albumlight.tpl and probibly photo.tpl change

{$theme.item.description|markup}

to

{$theme.item.summary|markup}

I think I've answered everyones questions from the last few days. If not let me know.

LV....

I did some checking and foun that when creating a new album with Gallery Remote, the 'album description' does, in fact (surprise...common use of word) update the 'Description' in G2 'captions'.

So, this will show (with default templates) at the top of the photo thumbnails page for the album, but not under the thumb for the album (which would use 'Summary').

If you want to show the album 'description' under the album thumb you need to change the following code at line 126 in albumlight.tpl

Change:

 {if !empty($child.summary)}
  <p class="giDescription">
  {$child.summary|markup|entitytruncate:256}
   </p>

To:

   {if !empty($child.description)}
    <p class="giDescription">
     {$child.description|markup|entitytruncate:256}
     </p>

Since photo 'captions' would be entered individually, I have not yet decided if I will change those....but either one of the above methods could be used, depending on whether you wanted to show 'summary' or 'description'.

John


*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log,lock.system=database

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Thu, 2007-01-04 15:59
JRSFORUMS wrote:
LV....thanks for all the updates...will let ya know if any problems..

One other question you may not have seen....

What does album.tpl do vs. albumlight.tlp. My change to albumlight to eliminate 'title' printing seem to change on all the pages. When I did it on album.tpl, I could see no changes.

John

*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log, lock.system=database
Toolkits = Exif

The difference is if you have lightbox enabled or not. albumlight.tpl if you do album.tpl if you don't.

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Thu, 2007-01-04 16:02
JRSFORUMS wrote:
lvthunder wrote:
I finally found the bug with lightbox. Please download version 1.2.2 of the theme here. The only two files that changed are albumlight.tpl and theme.inc.

LV.....

Sorry to report....changes do not seem to fix it.

I copied all the new 1.2.2 files in. then rolled the changes into my 'local' versions, as applicable.

That didn't work, so I "killed" the local versions of al.tpl and .icc. Still didn't work...i.e. problem stayed the same.

John
*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log, lock.system=database
Toolkits = Exif

In Site Admin go under maintenance and delete template cache.

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Thu, 2007-01-04 16:08
JRSFORUMS wrote:
Actually, LV, I have another question...ref: http://gallery.menalto.com/node/58943

I did try matrix and Greypop with sidebars. On Matrix, the "Back to..." in the "Cart" showed up....in greypop it didn't.

Now I do not WANT to use sidebars. Do you have any guidance on how to introduce "Back to..." to the Cart page?

Thanks for all you help....JOHN

EDIT.....

I found the code in the Matrix sidebar.tpl

For greypop, you need to modify \modules\cart\templates\viewcart.tpl at line 7 with:

<div class="gbBlock gcBackground1">
  <h2> {g->text text="Items Currently in Your Cart"} </h2>
  {g->block type="core.NavigationLinks" class="gbBlock"}
  </div>

I also added:

[code]<div class="gbBlock gcBackground1">
  {g->block type="core.NavigationLinks" class="gbBlock"}
  </div>

This was added to the very end, in case it was a long list


*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log, lock.system=database

An easier way would be in the Theme Options to add Navigation Links to the album page.

 
L5eoneill
L5eoneill's picture

Joined: 2004-07-02
Posts: 16
Posted: Thu, 2007-01-04 17:36

For getting rid of the duplicate showing of album title, I actually took it one step further:

 {if !empty($theme.item.description)} <!-- moved this from after the if-/if below, 
                                           so to get rid of the whole div if there 
                                           isn't a description -->
        <div class="gbBlock gcBackground1">
          <table style="width: 100%">
            <tr>
              <td>
                {if !empty($theme.item.title)}
                <!-- <h2> {$theme.item.title|markup} </h2> 
                (could delete this whole if-/if now, but wanted to test first -->
                {/if}
                <p class="giDescription">
                  {$theme.item.description|markup}
                </p>
              </td>
            </tr>
          </table>
        </div>
 {/if}           <!-- this was after the </p> above -->

This eliminates an extra table and white bottom border for albums without a description.

Thanks for the help!
--eon--

 
JRSFORUMS

Joined: 2004-12-15
Posts: 104
Posted: Thu, 2007-01-04 19:56
lvthunder wrote:
JRSFORUMS wrote:
lvthunder wrote:
I finally found the bug with lightbox. Please download version 1.2.2 of the theme here. The only two files that changed are albumlight.tpl and theme.inc.

LV.....

Sorry to report....changes do not seem to fix it.

I copied all the new 1.2.2 files in. then rolled the changes into my 'local' versions, as applicable.

That didn't work, so I "killed" the local versions of al.tpl and .icc. Still didn't work...i.e. problem stayed the same.

John
*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log, lock.system=database
Toolkits = Exif

In Site Admin go under maintenance and delete template cache.

I have been frustrated by this so many times that now I make a change, clear the cache, make a change, clear..., etc. And still some of the changes don't come thru right away...with multiple cache clearings and local buffer resets.

On this, before I sent the note, I did multiple clears and went to two other machines...still did not work last night. This afternoon, it seems to be working....or at least the gremlins are :-)

Sorry for the false alarm...John

Ooops...in the rush to check this I did it on my small laptop without opening up the window (f11), so I did not see it switch from full window (using the original 1500x1000 image) to the smaller (800x600).

I guess it was not a false alarm....sh...ucks....JOHN


*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log,lock.system=database

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Thu, 2007-01-04 21:37

John,

In albumlight.tpl at this part

                <div>
                  {if isset($theme.params.$frameType) && isset($child.thumbnail)}
		    {g->container type="imageframe.ImageFrame" frame=$theme.params.$frameType
				  width=$child.thumbnail.width height=$child.thumbnail.height}
				  {if $child.canContainChildren}
                  <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">
                  {elseif isset($child.resizedId)}
		      <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}" rev="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$child.resizedId`"}" title='<h4>{$child.title|markup}</h4><br><a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">View Photo Page</a><br>{g->block type=exif.ExifInfo item=`$child`}' rel="lightbox[photos]">
		          {else}
		          <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}" rev="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$child.id`"}" title='<h4>{$child.title|markup}</h4><br><a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">View Photo Page</a><br>{g->block type=exif.ExifInfo item=`$child`}' rel="lightbox[photos]">
		          {/if}
			{g->image id="%ID%" item=$child image=$child.thumbnail
			 class="%CLASS% giThumbnail"}
		      </a>
		    {/g->container}

to add in this

                <div>{$child.resizedId}

Then see if it lists some numbers at the top of the images.

 
rogun

Joined: 2004-01-05
Posts: 19
Posted: Fri, 2007-01-05 01:23

Thanks for all the help lvthunder.

I downloaded the new version, replaced the two files you said are new, reversed the few changes I had previously made, deleted template chache, browser cache, etc. It now shows the resized image for every item, including those on other pages, but the "X" button to view the full-sized image has disappeared in lightbox altogether. Is this by design or am I still having trouble?

If it's by design, how do I get it back? I really liked that feature and can't live without it!

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Fri, 2007-01-05 02:39

The X button only shows up if lightbox itself has to resize the picture to fit in the current browser size. I didn't write lightbox so I don't know how to change it to show the full sized picture. If your able to figure out how it's done let me know. Why can't you live without it?

 
JRSFORUMS

Joined: 2004-12-15
Posts: 104
Posted: Fri, 2007-01-05 04:09
lvthunder wrote:
John,

In albumlight.tpl at this part

                <div>
                  {if isset($theme.params.$frameType) && isset($child.thumbnail)}
		    {g->container type="imageframe.ImageFrame" frame=$theme.params.$frameType
				  width=$child.thumbnail.width height=$child.thumbnail.height}
				  {if $child.canContainChildren}
                  <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">
                  {elseif isset($child.resizedId)}
		      <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}" rev="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$child.resizedId`"}" title='<h4>{$child.title|markup}</h4><br><a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">View Photo Page</a><br>{g->block type=exif.ExifInfo item=`$child`}' rel="lightbox[photos]">
		          {else}
		          <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}" rev="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$child.id`"}" title='<h4>{$child.title|markup}</h4><br><a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">View Photo Page</a><br>{g->block type=exif.ExifInfo item=`$child`}' rel="lightbox[photos]">
		          {/if}
			{g->image id="%ID%" item=$child image=$child.thumbnail
			 class="%CLASS% giThumbnail"}
		      </a>
		    {/g->container}

to add in this

                <div>{$child.resizedId}

Then see if it lists some numbers at the top of the images.

I was not sure where, exactly, you wanted it placed.

I tried: at the very end of the code you showed; after the 'elseif'; and after the '/if....which is where it currently is. All of thos were with Theme.inc maxedge of 810 on the test2 album (sizes 1500 & 800 edge). I then change it to 650, which is where it is now.

None of them showed any numbers on the Lightbox images, which is where I assume you wanted them.

John


*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log,lock.system=database

 
JRSFORUMS

Joined: 2004-12-15
Posts: 104
Posted: Fri, 2007-01-05 04:04
lvthunder wrote:
JRSFORUMS wrote:
Actually, LV, I have another question...ref: http://gallery.menalto.com/node/58943

I did try matrix and Greypop with sidebars. On Matrix, the "Back to..." in the "Cart" showed up....in greypop it didn't.

Now I do not WANT to use sidebars. Do you have any guidance on how to introduce "Back to..." to the Cart page?

Thanks for all you help....JOHN

EDIT.....

I found the code in the Matrix sidebar.tpl

For greypop, you need to modify \modules\cart\templates\viewcart.tpl at line 7 with:

<div class="gbBlock gcBackground1">
  <h2> {g->text text="Items Currently in Your Cart"} </h2>
  {g->block type="core.NavigationLinks" class="gbBlock"}
  </div>

I also added:

[code]<div class="gbBlock gcBackground1">
  {g->block type="core.NavigationLinks" class="gbBlock"}
  </div>

This was added to the very end, in case it was a long list


*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log, lock.system=database

An easier way would be in the Theme Options to add Navigation Links to the album page.

I have had it checked as a global almost from the beginning. I had Nav on all screens except cart, until I made the change.


*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log,lock.system=database

 
JRSFORUMS

Joined: 2004-12-15
Posts: 104
Posted: Fri, 2007-01-05 04:07
lvthunder wrote:
JRSFORUMS wrote:
LV....thanks for all the updates...will let ya know if any problems..

One other question you may not have seen....

What does album.tpl do vs. albumlight.tlp. My change to albumlight to eliminate 'title' printing seem to change on all the pages. When I did it on album.tpl, I could see no changes.

John

*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log, lock.system=database
Toolkits = Exif

The difference is if you have lightbox enabled or not. albumlight.tpl if you do album.tpl if you don't.

Where is the code that decides that "Lightbox" is set 'ON' and calls either album or albumlight. I would like to see (with your help, if possible) if a "binary" on/off swithch could be made available to the user...i.e. viewer.

John


*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log,lock.system=database

 
JRSFORUMS

Joined: 2004-12-15
Posts: 104
Posted: Fri, 2007-01-05 04:23
lvthunder wrote:
The X button only shows up if lightbox itself has to resize the picture to fit in the current browser size. I didn't write lightbox so I don't know how to change it to show the full sized picture. If your able to figure out how it's done let me know. Why can't you live without it?

I believe Lightbox uses Java code which executed the resizing at the client. You need to send the full size image down to have it available to either resize it or show full size ('X' in this implementation. If all you have sent down is the resized image, you could still have the 'X', but the maximum size would be the resized image sent to the client.

When I "implemented" (that is hacked some existing code, with help from others) on G!, I provided the user a "switch" to select either a "small"(resized) or "Large" (full) image. These were then resized (fit to) the window available. It was great for a mix of users having from small screens/dialup to large screens/broadband or any mix in between...and allowed the viewer to choose faster response with smaller images or slower response with larger....and each image (resized or full) could be expanded to it's full size by clicking the screen (such as the 'X'). You still cannot provide truely "full size" images....I shoot with a Canon 5D, which would provide a huge image and rediculously slow load times.

This implemementation has been the one major stumbling blocks keeping me from moving to G2. Greypop is the first theme which has "grabbed" me....plus larger screens and modestly fast broadband is getting pretty common.

John

*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log,lock.system=database

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Fri, 2007-01-05 05:18
JRSFORUMS wrote:

Where is the code that decides that "Lightbox" is set 'ON' and calls either album or albumlight. I would like to see (with your help, if possible) if a "binary" on/off swithch could be made available to the user...i.e. viewer.

John


*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log,lock.system=database

That is in theme.tpl. I'm not sure if you can make it user selectable though. The G2 database holds the variable that is set in the theme options that sets it.

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Fri, 2007-01-05 05:21
JRSFORUMS wrote:
lvthunder wrote:
John,

In albumlight.tpl at this part

                <div>
                  {if isset($theme.params.$frameType) && isset($child.thumbnail)}
		    {g->container type="imageframe.ImageFrame" frame=$theme.params.$frameType
				  width=$child.thumbnail.width height=$child.thumbnail.height}
				  {if $child.canContainChildren}
                  <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">
                  {elseif isset($child.resizedId)}
		      <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}" rev="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$child.resizedId`"}" title='<h4>{$child.title|markup}</h4><br><a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">View Photo Page</a><br>{g->block type=exif.ExifInfo item=`$child`}' rel="lightbox[photos]">
		          {else}
		          <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}" rev="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$child.id`"}" title='<h4>{$child.title|markup}</h4><br><a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">View Photo Page</a><br>{g->block type=exif.ExifInfo item=`$child`}' rel="lightbox[photos]">
		          {/if}
			{g->image id="%ID%" item=$child image=$child.thumbnail
			 class="%CLASS% giThumbnail"}
		      </a>
		    {/g->container}

to add in this

                <div>{$child.resizedId}

Then see if it lists some numbers at the top of the images.

I was not sure where, exactly, you wanted it placed.

I tried: at the very end of the code you showed; after the 'elseif'; and after the '/if....which is where it currently is. All of thos were with Theme.inc maxedge of 810 on the test2 album (sizes 1500 & 800 edge). I then change it to 650, which is where it is now.

None of them showed any numbers on the Lightbox images, which is where I assume you wanted them.

John


*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log,lock.system=database

I wanted it next to the div tag at the top of that code. The maxedge should be set a bit higher then the max edge of the resized picture.

 
JRSFORUMS

Joined: 2004-12-15
Posts: 104
Posted: Fri, 2007-01-05 09:56
lvthunder wrote:
JRSFORUMS wrote:
lvthunder wrote:
John,

In albumlight.tpl at this part

                <div>
                  {if isset($theme.params.$frameType) && isset($child.thumbnail)}
		    {g->container type="imageframe.ImageFrame" frame=$theme.params.$frameType
				  width=$child.thumbnail.width height=$child.thumbnail.height}
				  {if $child.canContainChildren}
                  <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">
                  {elseif isset($child.resizedId)}
		      <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}" rev="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$child.resizedId`"}" title='<h4>{$child.title|markup}</h4><br><a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">View Photo Page</a><br>{g->block type=exif.ExifInfo item=`$child`}' rel="lightbox[photos]">
		          {else}
		          <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}" rev="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$child.id`"}" title='<h4>{$child.title|markup}</h4><br><a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">View Photo Page</a><br>{g->block type=exif.ExifInfo item=`$child`}' rel="lightbox[photos]">
		          {/if}
			{g->image id="%ID%" item=$child image=$child.thumbnail
			 class="%CLASS% giThumbnail"}
		      </a>
		    {/g->container}

to add in this

                <div>{$child.resizedId}

Then see if it lists some numbers at the top of the images.

I was not sure where, exactly, you wanted it placed.

I tried: at the very end of the code you showed; after the 'elseif'; and after the '/if....which is where it currently is. All of thos were with Theme.inc maxedge of 810 on the test2 album (sizes 1500 & 800 edge). I then change it to 650, which is where it is now.

None of them showed any numbers on the Lightbox images, which is where I assume you wanted them.

John


*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log,lock.system=database

I wanted it next to the div tag at the top of that code. The maxedge should be set a bit higher then the max edge of the resized picture.

Seems to be printing now. I also reset the 650 to 810, which is where it was before (per your earlier advice)

JOHN

PS...let me know when you do not need this code in there anymore


*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log,lock.system=database

 
rogun

Joined: 2004-01-05
Posts: 19
Posted: Fri, 2007-01-05 10:13
lvthunder wrote:
The X button only shows up if lightbox itself has to resize the picture to fit in the current browser size. I didn't write lightbox so I don't know how to change it to show the full sized picture. If your able to figure out how it's done let me know. Why can't you live without it?

Well, I could live without it: I just don't want to. I guess it's because full-sized images break my layout with gallery embedded. And it just seems like a better way to view full size images (specifically when you lose your position in lightbox after leaving from it.)

I'll definitely see if I can make it work and I'll be sure to let you know how, if successful. Thanks a ton for all the help, because I wouldn't have known where to begin without it.

 
JRSFORUMS

Joined: 2004-12-15
Posts: 104
Posted: Fri, 2007-01-05 10:32

Rogun, if you have Lightbox set to download resized images, I think the only way to view full size images is to breakout with "View Photo Page" and provide a 'size selection' box on each photo page, which I have added to my modified greypop pages.

{g->block type="core.PhotoSizes" class="giInfo"}

*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log,lock.system=database

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Fri, 2007-01-05 16:14

John, Can you attach your theme.inc file here?

rogun, Is there a reason you want such large full size images? If it's just for things like cart it will you the full size images anyways.

 
JRSFORUMS

Joined: 2004-12-15
Posts: 104
Posted: Fri, 2007-01-05 17:11
lvthunder wrote:
John, Can you attach your theme.inc file here?

rogun, Is there a reason you want such large full size images? If it's just for things like cart it will you the full size images anyways.

Attached...

I reduce the camera full size (actually, I shoot raw, so it is out of PSCS2/3) to 1500 max-edge (usually 1500x1000) at jpeg-8, which results in a 200-400KB file size dependant on image detail.

I have not tested this across a link (just my local attach so far) with G@, but with G!, this gave acceptable response picture by picture. It also allows for "inspection" of a reasonably larger image ("full size") if the viewer wishes to do that.

I am restricting the "full window" (Java) slideshow to just resized images...normally 800 max edge (you'll see a mix on the current test site as they were load up at different times in the past and never removed). Most of these file sizes are <100KB. I think this gives better results and will be a means for those with slower connections.

John

EDIT-PS...the other reason I resize my "full size" to 1500max, is that I have never been really happy with Java's window-fit-resizing. With larger images, particularly sharpened for that larger size, I would get lots of pixelization and aliasing. The 1500max are resized with bicubic, then sharpened (with Focal Blade) specifically for web (screen vs. print) viewing. Seems, to me, to work better.


*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log,lock.system=database

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Fri, 2007-01-05 20:59

John try and turn on debug mode for me. To turn on debug mode edit config.php in the gallery2 folder and change

$gallery->setDebug(false);

to

$gallery->setDebug('buffered');
 
JRSFORUMS

Joined: 2004-12-15
Posts: 104
Posted: Fri, 2007-01-05 23:47
lvthunder wrote:
John try and turn on debug mode for me. To turn on debug mode edit config.php in the gallery2 folder and change

$gallery->setDebug(false);

to

$gallery->setDebug('buffered');

Done....John

PS....where can I change the color of the font...for the debug...it is just about unreadable....at least on my monitor


*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log,lock.system=database

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Sat, 2007-01-06 03:18

I'm not sure what class the debug code uses if it uses any, but what I wanted to see was in the popup. The popup shows all the template variables. The stuff at the bottom of the page shows more module and database errors. You can turn it off now. Unfortainatly it is something in theme.inc that is not working right. Let me look into some of the other lightbox threads and see if I see something. I didn't write the part in theme.inc so I don't know exactly how it works.

 
JRSFORUMS

Joined: 2004-12-15
Posts: 104
Posted: Sat, 2007-01-06 04:31

LV....

It is a nit...but can you put the "image 'x' of 'y'" on the top of the Lightbox page rather than the bottom....or point me in the area of where it is?

The reason I suggest the change is it is easier to see how many more images or if you have reach the end if it is on top. On the bottom, it will only be seen if one pages down or if you have a very small image on a very big screen.

Thanks...JOHN


*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log,lock.system=database

 
JRSFORUMS

Joined: 2004-12-15
Posts: 104
Posted: Sat, 2007-01-06 12:46

One add'l question....

On the 'Lightbox' "Photo Properties" table for the EXIF data...

If I have 'Colorpack' set to 'NONE', the background for each table item is white, like the rest of the "frame" around the image.

If I have "Colowpack' set to 'Greymatter', the background is a dark-ish grey, which makes it difficult to see the black text.

Can you tell me where and how to enter different color for this background?

Thanks....John


*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log,lock.system=database

 
gaynormcc
gaynormcc's picture

Joined: 2003-09-05
Posts: 426
Posted: Sat, 2007-01-06 13:21

Set the colorpack to any of the PG colorpacks
PGBrown is a nice one you can read the text in.
or PGSilver, or PGBlue

I am assuming they work with PGLightbox. They certainly work with the former G2

Gaynor

 
JRSFORUMS

Joined: 2004-12-15
Posts: 104
Posted: Sat, 2007-01-06 16:03
gaynormcc wrote:
Set the colorpack to any of the PG colorpacks
PGBrown is a nice one you can read the text in.
or PGSilver, or PGBlue

I am assuming they work with PGLightbox. They certainly work with the former G2

Gaynor

Thanks, but I like & want the grey/black background. I did try PGcharcoal, but have similar problems.

John


*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log,lock.system=database

 
rohrichb

Joined: 2005-10-12
Posts: 5
Posted: Sat, 2007-01-06 16:36
JRSFORUMS wrote:
LVTHUNDER....

I have been a Gallery 1 user for 2-3 years, with lots of mods which keep me at the 1.4.4 level.

After seeing your 'Theme', I have decided to try G2 once again. Much due to the look, but primarily the resizing on the 'Lightbox'.

I seem to have a minor problem with it. I pre-size my images to 1500x1000 (straight out of PS) and have G2 create an add'l resized image of 800x800 (max sides), retaining the original image.

Lightbox works fine for a few images (up to 8-10) resizing to the window size. It then seems to switch to using the 800x800 image...and will continue to use this smaller image until I close Lightbox. On reopening an image, it will use the larger image for a few, then goes back to the smaller (even using images that had been "samller" previously). I have verified that the "full" image is 1500x1000. This happens on both IE and Firefox.

Any ideas on what is happening?

Thanks....JOHN
(I will send you link to your private acct.)

[=9:ca08fac270]
Gallery version = 2.1.2
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32)
PHP/5.0.4
DB = mysql 4.1.11-log
Toolkits = Exif, ImageMagick, NetPBM, Thumbnail, Gd
OS: WIN XP SP2
Browser: IE7 & Firefox

LV

I seem to be having a problem with "greypop122" release.

When I access an album to view the images with Lightbox enabled it will display the full image with the X (resiaze) for the first page of images, but when I get to the sencond page it will start using my resized images (800X600). This is happening in IE 6 and 7 and Firefox 1.5.

My Problem
I would like it to always use the resized images, and I can't seem to figure out what would need to be done to make this happen.

I took a look at JSFORUMS site above and it appears that he is using the full image for all page, but I want to use the resized copy.

You can see the album with mostly large images some where sized before upload.

http://www.rohrichfamily.com/g2test/v/Dogs/

BTW-- Great theme and really nice to someone as dedicated as you building it.

Thanks
Bruce

Hosted by DreamHost
http://gallery.menalto.com/wiki/Web_Hosting_Referral_Page

Gallery version = 2.1.2 core 1.1.0.2
PHP version = 5.1.2 cgi-fcgi
Webserver = Apache/1.3.37 (Unix) mod_throttle/3.1.2 DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.4.4 mod_ssl/2.8.22 OpenSSL/0.9.7e
Database = mysql 5.0.24a-standard-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, NetPBM, Gd, ImageMagick
Acceleration = none/1800, none
Operating system = Linux century 2.4.32-grsec+f6b+gr217+nfs+a32+fuse23+++opt+c6+gr2b-v6.192 #1 SMP Wed Dec 14 17:06:16 PST 2005 i686
Default theme = greypop
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061206 Firefox/1.5.0.9

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Sat, 2007-01-06 17:51
JRSFORUMS wrote:
LV....

It is a nit...but can you put the "image 'x' of 'y'" on the top of the Lightbox page rather than the bottom....or point me in the area of where it is?

The reason I suggest the change is it is easier to see how many more images or if you have reach the end if it is on top. On the bottom, it will only be seen if one pages down or if you have a very small image on a very big screen.

Thanks...JOHN


*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log,lock.system=database

That part of the code is in the js files for lightbox.

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Sat, 2007-01-06 17:54
JRSFORUMS wrote:
One add'l question....

On the 'Lightbox' "Photo Properties" table for the EXIF data...

If I have 'Colorpack' set to 'NONE', the background for each table item is white, like the rest of the "frame" around the image.

If I have "Colowpack' set to 'Greymatter', the background is a dark-ish grey, which makes it difficult to see the black text.

Can you tell me where and how to enter different color for this background?

Thanks....John


*****************************
Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) mod_ssl/2.0.53 OpenSSL/0.9.7f PHP/5.0.4
Database = mysql 4.1.11-nt-log,lock.system=database

You would change all the colors, font sizes, and spacing in theme.css. I would do a search for EXIF and see what's there.

 
rogun

Joined: 2004-01-05
Posts: 19
Posted: Sun, 2007-01-07 07:53
lvthunder wrote:
John, Can you attach your theme.inc file here?

rogun, Is there a reason you want such large full size images? If it's just for things like cart it will you the full size images anyways.

The reason is that I like to view full-size images and I like the simple and elegant method which lightbox uses to do it. I haven't had time to mess with it recently, and it may be a while before I do, so I'm doing without the full-size image link right now. I don't know when I'll get around to it, but like I said previously, I'll be sure to let you know if I figure anything out.

 
gaynormcc
gaynormcc's picture

Joined: 2003-09-05
Posts: 426
Posted: Sun, 2007-01-07 14:15
JRSFORUMS wrote:
Thanks, but I like & want the grey/black background. I did try PGcharcoal, but have similar problems.

John

OK
Well I have had fun playing in the greymatter colorpack on PG theme in my experimenting albums.

I changed every colour to only one instance each without touching the backgrounds.

See http://www.piopionz.com/gallery2/v/PGtests/T2/
Login with user = gallery and pw team (this avoids google finding my experimenting)

Also note I changed the colorpack name to *greymatter 2* to avoid messing up the original.

Line 06: #dae8c4 pale green user text
Line 15: #f60808 red outer border of Albums etc
Line 17: #a1b7e3 pale blue gallery links
Line 18: #f7cccc Pink hovered over above
Line 19: #b6ef5c Bright green Selected above
Line 21: #ffb16b dark orange Success in Edit pages
Line 24: #25dbd5 Jade date etc
Line 25: #1a7cf5 Bright Blue - current position in list
Line 32: #da94e9 Light purple - Lots in edit pages
Line 45: #8b1d6d Dark Purple I don;t see it

I don;t see where to change the pale grey text, but that seems fine.

If you have photoshop play with these.
*PM* me if you need help.

Gaynor.

 
ndumais

Joined: 2007-01-26
Posts: 3
Posted: Fri, 2007-02-09 15:59

Dear lvthunder,

Using your Greypop theme (for which I thank you), I built a large familly photo site where a bunch of retired aunts and uncles bless me everyday for having done so. Now these fine people (no admin priviledges given to them) would like to be able to add comments of their own to specific photos. They would also like to see my comments (me, the photo "owner") already available in thumbnail mode, when the photo they are consulting is enlarged with your excellent "lightbox" feature. Is there a way of doing so? I'm asking because I spent in vain a couple of hours trying to find the answer on the Web.

Also, do you know of some add-on to your theme that I could implement to have them vote on the photos?

Thank you for your help.

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Fri, 2007-02-09 18:29

If you are using the comment module you can add it to the lightbox links. Take a look at albumlight.tpl. The EXIF module shows up in the lightbox so you can either change or add the comment module to it. You would also need to modify the before.tpl and after.tpl in the lightbox module if you change those links. One thing to keep in mind is that you cannot have an ' in the stuff that is in lightbox or it messes it up. If I knew more about Javascript I would try to change it but unfortainatly I don't.

 
janetmweber

Joined: 2007-02-09
Posts: 2
Posted: Fri, 2007-02-09 20:36

I like the theme, but is there a way the get rid of the space at top of the theme?

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Fri, 2007-02-09 21:17

If your talking about the area where the title goes you can remove the image in title.tpl. If that's not what your talking about your going to have to draw me a picture.

 
ndumais

Joined: 2007-01-26
Posts: 3
Posted: Fri, 2007-02-09 22:25

Me again, lvthunder,

Thank you for trying to help. You must understand your answer would only make sense to me if I'd know where to look, what to look for and what to do with what I might find. I guess before asking questions in this Help Forum one must be more fluent in php English than I am. If it's at my level of knowledge to install, adapt and configure Gallery2 with a nice theme like yours, I don't have what it takes (aka knowledge and time) to start tweeking unknown lines of code in the tpl files.

I'm sorry to have bothered. I'll try otherwise. Gallery2 is a great product.

Best regards.

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Mon, 2007-02-12 17:26

Well I guess I overestimated your abilities. It's hard for me to guess what everyones abilities are based on one forum post. Now that I know what your abilites are I can help you better.

Those tpl files I am talking about aren't PHP files (I don't even know very much PHP) they are Smarty files which is just HTML with some variables thrown in for the stuff that changes. So if you know HTML you will have no problem with these. I'm going on vacation starting Wednesday for a week, but I can help you when I get back if you want.

 
ndumais

Joined: 2007-01-26
Posts: 3
Posted: Fri, 2007-03-09 15:31

Well I finally managed to find my ways around Gallery2 with your Greypop theme. I did a little tweaking, typed some HTML and was able to finish the <a href="http://www.nelsondumais.com/photos.html">familly photos site</a>. As you said, it's basically HTML, not PHP. As a result, everybody loves it and they all think your design is gorgeous. Thank you.

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Fri, 2007-03-09 18:26

I'm gald it worked out for you.