Image Descriptions

Isomorph

Joined: 2009-08-24
Posts: 12
Posted: Mon, 2009-08-24 05:50

I was wondering if there was a way to change what info is displayed under the images in Album View? For instance, I would like to have each image only show the description under it instead of how many views, owner, etc.

 
Isomorph

Joined: 2009-08-24
Posts: 12
Posted: Mon, 2009-08-24 07:10

Well, at the prodding of the person who I was making this image gallery for, I poked around a little more and found the code to change this. It was an entry in Modules->Info->Helpers->info_theme.php. I simply had to change the function call for thumb_info to include the info I wanted to show.

 
Okat
Okat's picture

Joined: 2009-04-05
Posts: 77
Posted: Mon, 2009-08-24 09:53

Problem with that particular approach is when you update gallery3 the changes will be overwritten. It's probably better to copy the default theme and edit album.html.php. Come to think of it; did you upgrade to the latest experimental version? http://github.com/gallery/gallery3/zipball/master I think references to owner and times viewed are removed from the default theme in the latest version. Just the directory name (and icon) under a directory and the image name under images are left, If I'm not mistaken.

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2138
Posted: Mon, 2009-08-24 18:46

You can customize existing default theme and use CSS to hide stuff.
Something like this added into CSS would do

#gAlbumGrid .gMetadata { display: none; }

 
Okat
Okat's picture

Joined: 2009-04-05
Posts: 77
Posted: Mon, 2009-08-24 21:36

True, but personally I find editing the css of the default theme a bit risky. Some declarations are used across multiple pages and tends to break things up somewehere else. Not in this case maybe, but I remember noticing it at some declaration or other. Btw Serge D; am I correct in thinking the metadata (times viewed, owner) has been removed? Haven't seen it for a while.

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2138
Posted: Mon, 2009-08-24 22:00

@Okat, not that I can see. Album still produces parts of the markup with metadata (I have one of the last gits and I would think that it is ok to have this data in general).
Yes, One can create custom theme, but then with every new rollout theme need to be syncronized... I have done it numerous time already for my theme...

 
Isomorph

Joined: 2009-08-24
Posts: 12
Posted: Mon, 2009-08-24 22:43

From what I've seen the css tag gMetadata is used in at least 1 other place, namely the info block on the single image view. as it was I did some alteration to the css and had to change the tag on the other instance so that it didn't use the same style. As for editing the album.html.php in the theme, the 'views' and 'owner' entries are both tied to a single function call 'thumb_info' from the info module. The only way I saw to change what was dislayed here with the admittedly beginner understanding of php, was to alter the function itself in the module. I do keep saved copies of any alterations I do on my hard drive though and its really no more difficult than having to redo alterations to the theme every time G3 is updated. I'll just continue to redo the changes in each release until some functionality is added to do this easier I guess.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Tue, 2009-08-25 00:54

Try a recent version the behavior has changed.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Isomorph

Joined: 2009-08-24
Posts: 12
Posted: Wed, 2009-08-26 03:49

@Dave I have updated to the latest git and the code seems unchanged from the previous version. The default still shows "views" and "owner" under the image and the code used to call it is the exact same as before. Am I missing something?

Also, is there a way, at the single image view, to have it display what tags are associated with the image underneath the description?

Edit: My apologies. I had searched for the tags thing in the forums and hadn't found anything the first time. I just located rWatcher's displaytags module however.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Wed, 2009-08-26 04:24
Quote:
The default still shows "views" and "owner" under the image and the code used to call it is the exact same as before. Am I missing something?

I think so, http://www.langleycom.com/gallery3/ only the title is shown until you mouseover the item. Views and owner are hidden until mouseover.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Isomorph

Joined: 2009-08-24
Posts: 12
Posted: Wed, 2009-08-26 04:39
floridave wrote:
Quote:
The default still shows "views" and "owner" under the image and the code used to call it is the exact same as before. Am I missing something?

I think so, http://www.langleycom.com/gallery3/ only the title is shown until you mouseover the item. Views and owner are hidden until mouseover.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

This doesn't seem to be the case with the revision I pulled from git. I even checked the code and it looks exactly like it did from the g3beta2 release I started with. Am I somehow pulling the wrong revision from git?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Wed, 2009-08-26 05:12
Quote:
This doesn't seem to be the case with the revision I pulled from git.

I guess you need to try again as it works for me and Okat as well:

Okat wrote:
did you upgrade to the latest experimental version? http://github.com/gallery/gallery3/zipball/master I think references to owner and times viewed are removed from the default theme in the latest version. Just the directory name (and icon) under a directory and the image name under images are left, If I'm not mistaken.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Isomorph

Joined: 2009-08-24
Posts: 12
Posted: Wed, 2009-08-26 18:18

@Dave Somehow I had apparently downloaded a slightly older revision it seems. I was able to get the proper one and it seems to be working properly. I still had to edit the info module to display what I wanted, but the mouseover effect is nice.

 
Okat
Okat's picture

Joined: 2009-04-05
Posts: 77
Posted: Thu, 2009-08-27 08:07
Serge D wrote:
@Okat, not that I can see. Album still produces parts of the markup with metadata (I have one of the last gits and I would think that it is ok to have this data in general).
Yes, One can create custom theme, but then with every new rollout theme need to be syncronized... I have done it numerous time already for my theme...

Have the latest (as of today the second latest) as well. With "every new rollout" you mean every new GIT version? Like: with every new git version you install one needs to sync the custom theme?
I'm not sure how I should do this. Might not be something for this thread (since this has nothing to do with the question of OP), but can you explain to me what procedure works for you? If OP has no objections (since he's theming himself) you can do it here.

I just updated (overwritten) default theme in both my editor and on my server, but I still can't see any metadata other than album name. Im sure I didn't change the function. I must've done something wrong but can't figure out what. Have default enabled, so should see the latest changes.

 
Okat
Okat's picture

Joined: 2009-04-05
Posts: 77
Posted: Thu, 2009-08-27 08:22
Quote:
I just updated (overwritten) default theme in both my editor and on my server, but I still can't see any metadata other than album name. Im sure I didn't change the function. I must've done something wrong but can't figure out what. Have default enabled, so should see the latest changes.

Never mind this one. I disabled the info module and forgot all about it. Sigh. Too busy trying to figure out a decent GIT workflow, I guess.

 
wbarek

Joined: 2007-05-02
Posts: 153
Posted: Mon, 2009-08-31 15:05

Today, I have upgraded to the latest version gallery-gallery3-8312eb116e65195e3fc70d59b3b0817b9c807287 and noticed strange behavior under Image title and under views. The tag is By: owner but it is displayed as html code not aas link
Views: 55
By: <a href="http://williambarek.com/g3/">Gallery Administrator</a>
I presume it is a bug in theme css?
wbarek

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2009-08-31 20:36

Are you making changes? I just pulled the latest git and don't see that issue with my install, but when I go to your site, your G3 page stops loading part way through.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
wbarek

Joined: 2007-05-02
Posts: 153
Posted: Mon, 2009-08-31 20:55

Yes, I just wanted to make sure that I have the latest so I downdloaded gallery-gallery3-8312eb116e65195e3fc70d59b3b0817b9c807287 and now I was installing it. Reinstalled the new version of basket and have the same problem.
wbarek

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2009-08-31 21:03

hmm, yeah your site is still not loading all the way for me, stops shortly after loading <body>

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
wbarek

Joined: 2007-05-02
Posts: 153
Posted: Mon, 2009-08-31 21:10

nivekiam,
Yes that was the result when basket was enabled. Right know I disabled it and it is back.
I gave the log errors to Ben's posting, but here it is again:

Quote:
2009-08-31 16:32:06 -04:00 --- error: Uncaught Kohana_404_Exception: The page you requested, file_proxy/Miscellaneous/.album.jpg, could not be found. in file system/core/Kohana.php on line 841
2009-08-31 16:33:29 -04:00 --- error: Can't find script file: jquery.dropshadow.js
2009-08-31 16:33:38 -04:00 --- error: Can't find script file: jquery.dropshadow.js
2009-08-31 16:33:42 -04:00 --- error: Missing URL reference 'indicator.gif' in CSS file '/home/willkcom/public_html/g3/lib/jquery.autocomplete.css'
2009-08-31 16:34:06 -04:00 --- error: Can't find script file: jquery.dropshadow.js
2009-08-31 16:34:14 -04:00 --- error: Can't find script file: jquery.dropshadow.js
2009-08-31 16:34:29 -04:00 --- error: Missing URL reference 'indicator.gif' in CSS file '/home/willkcom/public_html/g3/lib/jquery.autocomplete.css'
2009-08-31 16:42:56 -04:00 --- error: Uncaught Kohana_404_Exception: The page you requested, view_basket, could not be found. in file system/core/Kohana.php on line 841
2009-08-31 16:44:35 -04:00 --- error: Can't find css file: yui/reset-fonts-grids.css
2009-08-31 16:44:35 -04:00 --- error: Can't find css file: themeroller/ui.base.css
2009-08-31 16:44:35 -04:00 --- error: Missing URL reference 'indicator.gif' in CSS file '/home/willkcom/public_html/g3/lib/jquery.autocomplete.css'
2009-08-31 16:45:56 -04:00 --- error: Uncaught Kohana_404_Exception: The page you requested, welcome, could not be found. in file system/core/Kohana.php on line 841
2009-08-31 16:46:02 -04:00 --- error: Uncaught Kohana_404_Exception: The page you requested, welcome, could not be found. in file system/core/Kohana.php on line 841
2009-08-31 16:46:10 -04:00 --- error: Uncaught Kohana_404_Exception: The page you requested, albums/1, could not be found. in file system/core/Kohana.php on line 841
2009-08-31 16:50:42 -04:00 --- error: Missing URL reference 'indicator.gif' in CSS file '/home/willkcom/public_html/g3/lib/jquery.autocomplete.css'
2009-08-31 16:52:58 -04:00 --- error: Can't find script file: jquery.dropshadow.js
2009-08-31 16:53:00 -04:00 --- error: Can't find script file: jquery.dropshadow.js
2009-08-31 16:53:42 -04:00 --- error: Missing URL reference 'indicator.gif' in CSS file '/home/willkcom/public_html/g3/lib/jquery.autocomplete.css'
2009-08-31 16:53:59 -04:00 --- error: Can't find script file: jquery.dropshadow.js
2009-08-31 16:54:00 -04:00 --- error: Can't find script file: jquery.dropshadow.js
2009-08-31 16:54:05 -04:00 --- error: Missing URL reference 'indicator.gif' in CSS file '/home/willkcom/public_html/g3/lib/jquery.autocomplete.css'
2009-08-31 17:02:47 -04:00 --- error: Can't find script file: jquery.dropshadow.js
2009-08-31 17:02:59 -04:00 --- error: Can't find script file: jquery.dropshadow.js
2009-08-31 17:03:06 -04:00 --- error: Missing URL reference 'indicator.gif' in CSS file '/home/willkcom/public_html/g3/lib/jquery.autocomplete.css'

 
wbarek

Joined: 2007-05-02
Posts: 153
Posted: Tue, 2009-09-15 15:11

nivekiam, I am observing the same behaviour with latest release G3 B3 the by: tag is displaying html code instead of its actual link rendering actually it is duplication (this only appears in admin mode) - how do I remove this duplication?:
By: <a href="http://williambarek.com/g3/">Gallery Administrator</a>

In visiting mode (no login of reg user) this information is cut off and only views number is displayed. The size of the container seems to be too small.

Any suggestion? I still would like to display an image owner name-link. Otherwise great work. W

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-09-15 15:54
Quote:
nivekiam, I am observing the same behaviour with latest release G3 B3 the by: tag is displaying html code instead of its actual link rendering actually it is duplication (this only appears in admin mode) - how do I remove this duplication?:
By: <a href="http://williambarek.com/g3/">Gallery Administrator</a>

It's not doing that for me. Can you post or PM a link to your site?

Quote:
In visiting mode (no login of reg user) this information is cut off and only views number is displayed. The size of the container seems to be too small.

That's a reported bug so it should be fixed sometime before RC1 is released if you stay current with git
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
wbarek

Joined: 2007-05-02
Posts: 153
Posted: Tue, 2009-09-15 16:57

Here is my website:
http://williambarek.com/g3/

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-09-15 17:03

It's not loading for me which makes me think that you need to go here and finish the upgrade:

http://williambarek.com/g3/index.php/upgrader/
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
wbarek

Joined: 2007-05-02
Posts: 153
Posted: Tue, 2009-09-15 17:29

nivekiam, it is upgraded and loading fine for me. However, discovered another problem. I can edit album but when I tried to edit image it is doing nothing (no edit window appears). My permissions is set to edit for registered users, so when I am trying to edit as administrator it should allow it, no?
Tx W

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-09-15 17:45

The HTML was not fully loading for me, it is now.

Can you PM me login details?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
wbarek

Joined: 2007-05-02
Posts: 153
Posted: Wed, 2009-09-16 14:57

nivekian, related to displaying html code in doubled displayed link to by, which by the way only occurs with landscape oriented images. This might be related to more distressing problem and that is scaling of the images into thumbs layout.
All images seem to be in a square format and thus images do not fill the box properly. What is the proper size for thumbs?
I tried to change it in the "settings" > advanced anywhere from 150 to 300 px, but it didn't seem to make any difference. Is there anything set incorrectly?
I looked at these examples and the images seems to be scaled and oriented properly, they are also evenly spaced not like mine that are not? http://williambarek.com/g3/

http://gallery.soft-focus-imagining.com/
http://www.gatephotography.co.nz/next/index.php

Please, could you let me know what is set incorrectly? Thanks William

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2009-09-16 15:30

Start a fresh, new install. Something is messed up in your Gallery. Thumbnails are not scaled for one thing.

I don't know if you've done custom modifications or what, but G3 does not have square thumbnails and cannot do it unless you're using a hack I've seen posted. Nobody has written a module for that yet.

Changing thumbnail size in Settings > Advanced doesn't do anything, or I'm not exactly sure what it does :). To force the change go to Admin > Appearance > Theme Options. Change the size there and you'll be prompted update the thumbs.

As for the HTML being displayed, I think it has to do with something you've put into your description, but I can't click on Edit Photo.

I didn't get a chance to look at your install again last night. But I'd suggest starting fresh to see if it happens on a fresh install on your server. Stay way from all the 3rd party modules for the time being, make sure the basic functionality works, then add one module at a time and test. I think either a module that hasn't been updated to work with the latest code or some other modification is not working right on your install.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
wbarek

Joined: 2007-05-02
Posts: 153
Posted: Wed, 2009-09-16 15:44

nivekiam, thanks for the advice but I have a naive question. Should I just use upgrader or start with a new clean installation. That is removing var directory. Where is the proper code to download?
Thanks William

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2009-09-16 16:21

First thing I would try.

Leave your current install alone.

Install G3 into a different location and test to make sure everything is working.

For downloading. I use git to stay current with the code base. But you can get what is frozen as B3 here:
http://gallery.menalto.com/gallery_3.0_beta_3_released

Or grab the zipball from git for the experimental code here to grab the changes that have already happened since B3 was released 3 days ago:
http://codex.gallery2.org/Gallery3:Upgrading
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
wbarek

Joined: 2007-05-02
Posts: 153
Posted: Wed, 2009-09-16 17:05

nivekiam, well I took the dive, removed the old (there were only 3 images. Created new mysql database and install clean. The problem with resizing and fitting images disappeared, so did the html code there. However,in portrait orientation image the text is cut off in the middle of the title, is this something it will be worked out?. Thanls
You can have a look: http://williambarek.com/g3/index.php/Travel-Places/Canada/Ontario-Parks/Sturgeon

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2009-09-16 17:12
Quote:
However,in portrait orientation image the text is cut off in the middle of the title, is this something it will be worked out?.

Yes, that's a known bug with a ticket assigned to it. If you install/activate the digibug module this behavior goes away because then guests have an option and the "normal" hover effect works as intended. Otherwise we'll just need to wait for this to be fixed.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
wbarek

Joined: 2007-05-02
Posts: 153
Posted: Wed, 2009-09-16 17:41

nivekiam, NO WAY I AM INSTALLING DIGIBUG MODULE - I wrote two weeks ago about Digibug problems and asked the team not to support a company that CHARGES you for service they do not provide and they do not respond to email to their customer support. THEY STILL HAVE NOT CREDITED ME THE CHARGE AND HAVEN'T RESPONDED TO MY EMAILS. Thieves and not company to be dealt with as far as I am concerned. I am disappointed that this was not picked upon.
William

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2009-09-16 17:52

Sorry, I did forget it was you who had the problems with then. Your issues and what I experienced has not fallen on deaf ears though, and all of the issues are being looked at. I was only thinking that's the only module right now that gives guests any option to do anything with a photo to create the thumbmenu.

And thank you for mentioning this again. I'll make sure the rest of the team see this.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
wbarek

Joined: 2007-05-02
Posts: 153
Posted: Wed, 2009-09-16 19:55

nivekiam, thanks, apart from the tags, everything seems working well, I will slowly explore and test other features, move images and albums around, etc. will of course post any problems that I will come across. You guys have done tremendous job and I will look forward to the final version, if there is anything like that. William