Hey Erlis. Just wondering if it would be possible to get a way to retrieve the urls for the various sizes of the pictures.. I hope I can explain this well enough... The sidebar doesn't show in the individual picture view, so I can't use the embed links module there for instance in order to retrieve the full sized url.. So if I copy the url of the picture, even if it's displayed in the album at the full size, it always defaults to the resized 800 pixels in the link. So if I have a picture that I uploaded at 1024 pixels and I want to share it at that size somewhere else, I can't do it. Thanks
(By the way, the "resized_size" option in the advanced menu doesn't seem to effect this no matter what setting I try.. I also tried rebuilding images after setting resized_size to zero or empty, and it still defaults back to 800px)
Nevermind.. I figured it out lol.. I had to set the resize to 1024 and rebuild the images..
canyonbreeze
Joined: 2009-05-06
Posts: 5
Posted: Wed, 2012-06-27 21:33
Hi. I just downloaded this and installed it on a new Gallery3 Install, rebuilt all images, etc. Works pretty well but is not showing all the images in Mosaic mode. I have about 1500 in the album and I can scroll down around 1100 of them then it stops loading new ones. Is there a limit I can tweak somewhere to fix this?
EDIT: It appears all those thumbnails are being held in memory and exceed the 2 GB resource limit of the server (64 bit Debian with 8 GB RAM).
Another edit: I changed the resize to 640 and thumbnail size to 150 and rebuilt everything, didn't help. Same issue in grid and carousel, is only loading 850 of 1443 images.
Are thumbnail sizes hard coded in the pear theme? They don't seem to accept the system setting.
petri
Joined: 2005-12-15
Posts: 253
Posted: Tue, 2012-07-17 01:57
Hi Erlis,
Long time no read !
Just a little word to say that your theme is doing well on my website. I was just wondering how the item count was working with Pear.
I am using Dave's carousel for popular and recent items. If I understand well, the popular is counting the number of time the photo page was refreshed.
How do you think this is working with Pear ? Is it working in slideshow mode or in grid-mozaic ? or not at all ?
First I want to say that I love this theme! It is fast, uncluttered, and crisp looking.
My only request is that it could integrate with the facebook_like module. It would be really slick if the facebook "Like" button could be shown just below the image.
I tried letting the facebook_like module put its buttons into the sidebar, but there is some problem with that too because the little pop-up dialog box that allows the user to type some comments for facebook goes under the main window and is not accessible, so you can't see what you're typing.
I have created a screenshot of what I am requesting.
Thanks,
Dave
dmcantrell
Joined: 2007-10-04
Posts: 44
Posted: Fri, 2012-07-20 17:25
Also, one more request. I would like the "download this photo" link to be admin-configured. I don't really want all the images to be downloadable.
erlis
Joined: 2004-01-16
Posts: 205
Posted: Thu, 2012-08-23 11:12
Pear
Have been really busy lately but here are my inputs on your problems.
manchesterca wrote:
First, love the theme, it's fantastic.
Any chance to make the footer logo a custom link? Or to implement a way within your design to have an external link?
Hmm, I changing the bottom icon should be configured via the settings.
To get the icon to work as a link modify the code:
Hey Erlis. Just wondering if it would be possible to get a way to retrieve the urls for the various sizes of the pictures.. I hope I can explain this well enough... The sidebar doesn't show in the individual picture view, so I can't use the embed links module there for instance in order to retrieve the full sized url.. So if I copy the url of the picture, even if it's displayed in the album at the full size, it always defaults to the resized 800 pixels in the link. So if I have a picture that I uploaded at 1024 pixels and I want to share it at that size somewhere else, I can't do it. Thanks
(By the way, the "resized_size" option in the advanced menu doesn't seem to effect this no matter what setting I try.. I also tried rebuilding images after setting resized_size to zero or empty, and it still defaults back to 800px)
Nevermind.. I figured it out lol.. I had to set the resize to 1024 and rebuild the images..
Hi. I just downloaded this and installed it on a new Gallery3 Install, rebuilt all images, etc. Works pretty well but is not showing all the images in Mosaic mode. I have about 1500 in the album and I can scroll down around 1100 of them then it stops loading new ones. Is there a limit I can tweak somewhere to fix this?
Are thumbnail sizes hard coded in the pear theme? They don't seem to accept the system setting.
Yes, the thumbnail sizes are hardcoded to 150px (but if you build them smaller the theme will load the small images).
petri wrote:
I was just wondering how the item count was working with Pear.
I am using Dave's carousel for popular and recent items. If I understand well, the popular is counting the number of time the photo page was refreshed.
How do you think this is working with Pear ? Is it working in slideshow mode or in grid-mozaic ? or not at all ?
Or create an issue on github and I'll get back to it.
dmcantrell wrote:
My only request is that it could integrate with the facebook_like module. It would be really slick if the facebook "Like" button could be shown just below the image.
I tried letting the facebook_like module put its buttons into the sidebar, but there is some problem with that too because the little pop-up dialog box that allows the user to type some comments for facebook goes under the main window and is not accessible, so you can't see what you're typing.
I have created a screenshot of what I am requesting.
Is it you that did comment on my issue on github, as I said there it should be possible to implement. I'll get to it when I can find the time.
dmcantrell wrote:
Also, one more request. I would like the "download this photo" link to be admin-configured. I don't really want all the images to be downloadable.
If anyone have the time please help me update the theme wiki page here on menalto to reflect features that exists in the theme (but perhaps are a bit hidden) it would be much appreciated.
melodifestivalen
Joined: 2012-07-23
Posts: 1
Posted: Mon, 2012-07-23 07:48
Thanks a lot for your contribution on this brilliant theme, it looks great on Chrome.
------------------- Melodifestivalen 2013
dmcantrell
Joined: 2007-10-04
Posts: 44
Posted: Mon, 2012-07-23 21:10
erlis wrote:
dmcantrell wrote:
My only request is that it could integrate with the facebook_like module. It would be really slick if the facebook "Like" button could be shown just below the image.
I tried letting the facebook_like module put its buttons into the sidebar, but there is some problem with that too because the little pop-up dialog box that allows the user to type some comments for facebook goes under the main window and is not accessible, so you can't see what you're typing.
I have created a screenshot of what I am requesting.
Is it you that did comment on my issue on github, as I said there it should be possible to implement. I'll get to it when I can find the time.
Hello,
No it was not me who commented on github, I was not even aware of anything called github until you mentioned it. I read the reply there, but for the sake of documentation I'll post the like here for others :
and I believe that you have pointed to a possible solution?
Thanks for your reply!
petri
Joined: 2005-12-15
Posts: 253
Posted: Tue, 2012-07-24 01:41
Hi Erlis,
For help, if you explain me what and how (never used wiki before) I can try to help, are you talking about the help content in the admin section of the theme ? Or just the theme page on Menalto ?
For Github, I don't remember how to uncomment and post issues... sorry
Thanks a lot for your contribution on this brilliant theme, it looks great on Chrome.
Kul att du gillar det!
dmcantrell wrote:
No it was not me who commented on github, I was not even aware of anything called github until you mentioned it. I read the reply there, but for the sake of documentation I'll post the like here for others :
and I believe that you have pointed to a possible solution?
Thanks for your reply!
Yes, now I know *how* to do it I just have to find time to actually *DO* it.
petri wrote:
Hi Erlis,
For help, if you explain me what and how (never used wiki before) I can try to help, are you talking about the help content in the admin section of the theme ? Or just the theme page on Menalto ?
For Github, I don't remember how to uncomment and post issues... sorry
It's a more detailed description of the theme and it's features on this page I need some help with http://codex.gallery2.org/Gallery3:Themes:pear4gallery3 for example what modules that are supported (even if the list is incomplete it's better than nothing), what settings can be configured via the admin page and so on..
What I meant is that you should try to find the same line in your local copy of the file and remove the // in the beginning of the line and hopefully it would just work.
vozzibaer
Joined: 2012-07-26
Posts: 5
Posted: Thu, 2012-07-26 10:01
Hi,
I am new in this forum and I have installed the theme Pear4gallery3 as discussed here.
First, it is wunderfull. Thanks.
But my questions are:
- How can I add tags onto all pictures in a album?
- How can I change the resolution for the enlarged pictures only?
Regards
vozzibaer
petri
Joined: 2005-12-15
Posts: 253
Posted: Fri, 2012-07-27 01:28
Quote:
- How can I add tags onto all pictures in a album?
- How can I change the resolution for the enlarged pictures only?
I'm not sure I understand what you mean, can you eleborate a bit?
berad
Joined: 2012-08-08
Posts: 1
Posted: Wed, 2012-08-08 12:03
Not sure if vozzibaer is talking about the same thing, but I want the current image to display at its native resolution. They're downsampled to 640x..., which seems an odd design choice if it was intentional. Otherwise is this a bug? I like the theme a lot, but photos don't look good at 640! See http://goo.gl/4XwOr
Cheers
Among other changes we now have the option to change the photo-resize size (under theme options) & support for no album skimming (set skimm_img to 0).
georgek
Joined: 2012-08-16
Posts: 2
Posted: Thu, 2012-08-16 21:58
erlis,
The photo-resize works very well -very nice option, pictures looks much sharper now! Thank you.
On another note, is there a way to delete the title/file name from the photos and thumbnail files (but not the albums title) on this theme? Also, is there any way to delete or not show the info button (show more info about this photo) and just leave the download this photo button on the page. Thanks in advance
Just minor fixes, description of the meaning of skimm_lim=0 + better support for site status(es).
georgek wrote:
On another note, is there a way to delete the title/file name from the photos and thumbnail files (but not the albums title) on this theme? Also, is there any way to delete or not show the info button (show more info about this photo) and just leave the download this photo button on the page. Thanks in advance
Short answer: NO.
Longer answer:
I'm not planning to support each and every modification (I just can't find the time for that). Try to make the modification yourself.
You can remove all titles from your images, that will remove it.
Thank you for this upgrade, just installed in finished customization. The images looks indeed much crisper now. NICE !
I set the skimming to zero, and the website is loading much faster from China now, although I really like the skimming... I was wondering if in the future it would be possible to set the theme to display the page once all the original thumbnails were loaded and then load the rest in the background...
I have a new king of bug with this release, it's the Tag cloud :
when I click on a tag, I get to a strange page with an empty sidebar and no footer..
appart from that...it runs smoothly and crispy !
UPDATE :
oups, I was writing this post when you were writing the 3.5.4 release...
Guess I will update and customize again.....test and get back to you
I set the skimming to zero, and the website is loading much faster from China now, although I really like the skimming... I was wondering if in the future it would be possible to set the theme to display the page once all the original thumbnails were loaded and then load the rest in the background...
I have a new king of bug with this release, it's the Tag cloud :
when I click on a tag, I get to a strange page with an empty sidebar and no footer..
I thought I were doing so, but apparently I'm not.. I'll have a look at it, I know how.
I can't reproduce the tag cloud issue.
georgek
Joined: 2012-08-16
Posts: 2
Posted: Sat, 2012-08-18 04:26
Hi there Erlis,
I was a MobileMe Gallery user so this theme is to me a great find and a great substitute. Thank you so much.
I'm new at this and not much into coding but I managed to make some of the modification that you suggested on my first post -they work, thanks. The only thing I could not figure out was how to remove/delete the title/file name of the photos when in Grid-view
I changed the ($child->title, 20) from 20 to 0 in the thumbs.html but this also removed the titles from all the albums name.
One more thing, if you know the fix to this I would appreciate it -some of my photos were taken with different cameras thus different sizes/resolutions, when I create albums and the resolutions of the photos are different on the albums, the albums thumbnails have different sizes in the Grid-view, and not consistent, any suggestions on how I can fix that? -thanks again.
Beer's on the way -enjoy.
georgek
erlis
Joined: 2004-01-16
Posts: 205
Posted: Mon, 2012-08-20 07:12
georgek wrote:
Hi there Erlis,
I was a MobileMe Gallery user so this theme is to me a great find and a great substitute. Thank you so much.
I'm new at this and not much into coding but I managed to make some of the modification that you suggested on my first post -they work, thanks. The only thing I could not figure out was how to remove/delete the title/file name of the photos when in Grid-view
I changed the ($child->title, 20) from 20 to 0 in the thumbs.html but this also removed the titles from all the albums name.
One more thing, if you know the fix to this I would appreciate it -some of my photos were taken with different cameras thus different sizes/resolutions, when I create albums and the resolutions of the photos are different on the albums, the albums thumbnails have different sizes in the Grid-view, and not consistent, any suggestions on how I can fix that? -thanks again.
To get the thumbs display consistent you need to install the square_thumb plugin (see link on the config page).
Also I've decided to make the feature "faster load time" a premium feature so please contact me via a pm and I send you instructions on how to get it working.
bburnett
Joined: 2008-09-03
Posts: 77
Posted: Wed, 2012-08-22 22:43
I was wondering how do I change the text in the Header (Gallery's home page) from GALLERY to my own text of VIDEO ARCHIVE.
(sorry if I missed it in this thread)
Thank You, Sincerely,
bburnett
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"sometimes the world is cruel to shiny things" - Elroy "Lucky" Kleinschmidt
petri
Joined: 2005-12-15
Posts: 253
Posted: Thu, 2012-08-23 01:19
Hi bburnett,
You could try by using Firefox with firebug, then you just select the item you want to know about and firebug will tell you where to find it...
In this case, I don't see what you are referring to... I don't have any "Gallery"…. I have "Pear4Gallery3", if this is what you are talking about, you have to login, and, from your homepage, go into the menu called "albums options" --> "edit album" … just change the title over there…
I was wondering how do I change the text in the Header (Gallery's home page) from GALLERY to my own text of VIDEO ARCHIVE.
(sorry if I missed it in this thread)
In this case, I don't see what you are referring to... I don't have any "Gallery"…. I have "Pear4Gallery3", if this is what you are talking about, you have to login, and, from your homepage, go into the menu called "albums options" --> "edit album" … just change the title over there…
Exactly as petri is saying, just set the right title of your album.
See this img:
Thank you both for the help. I sincerely appreciate it. I have my head buried in this Watermarking/Emboss module issue for the last couple of days, so I didn't even think about this method, duh!
Thanks Again,
bburnett
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"sometimes the world is cruel to shiny things" - Elroy "Lucky" Kleinschmidt
dmcantrell
Joined: 2007-10-04
Posts: 44
Posted: Fri, 2012-08-24 21:55
He erlis,
I'm finally sitting down to try to add the fb like button to the dynamic photo pages as I mentioned previously.
If you get it to work send me a pm with a demo link and a git pull request and I'll happily add it to the code base.
dmcantrell
Joined: 2007-10-04
Posts: 44
Posted: Sat, 2012-08-25 01:25
Well, I've spent the better art of the night messing with this, I can't figure it out. There seems to be some problem with the page <head> and the og: tags. No matter what I do, I can't get the thumbnail for the image being displayed to be sent to facebook via the like button. It always sends the thumbnail for the Album, which seems to be set in the og:image and the og:url in the <head> of the page. I'm not sure where to get this from or where to edit it, I'm just not familiar enough with the code base.
erlis
Joined: 2004-01-16
Posts: 205
Posted: Sat, 2012-08-25 05:25
dmcantrell wrote:
Well, I've spent the better art of the night messing with this, I can't figure it out. There seems to be some problem with the page <head> and the og: tags. No matter what I do, I can't get the thumbnail for the image being displayed to be sent to facebook via the like button. It always sends the thumbnail for the Album, which seems to be set in the og:image and the og:url in the <head> of the page. I'm not sure where to get this from or where to edit it, I'm just not familiar enough with the code base.
The fb:like href should be the contence of slidshowImages[pear.currentimage][6] that is the full URL to the image. Try that an I'm sure you'll get it to work.
Also you only need to load the fb js once so that should
Preferable be set in the album.html.php or so.
dmcantrell
Joined: 2007-10-04
Posts: 44
Posted: Sat, 2012-08-25 16:30
Hi Erlis,
I feel like I'm close now, but I don't know to use the variable slideshowImages[pear.currentimage][6]. Is this a PHP variable? Is this a Javascript function? I'm not sure about the syntax needed to utilize this element properly.
erlis
Joined: 2004-01-16
Posts: 205
Posted: Sat, 2012-08-25 17:28
dmcantrell wrote:
Hi Erlis,
I feel like I'm close now, but I don't know to use the variable slideshowImages[pear.currentimage][6]. Is this a PHP variable? Is this a Javascript function? I'm not sure about the syntax needed to utilize this element properly.
Ok, I'm posting from my phone now so sorry for not being correct with the syntax.
I don't know how "close" you are but this is my idea on how to implement fb like.
1. As I said in album.html.php add a placeholder (a div) where you like to have the button.
2. Make sure you load the necisarry Facebook js (perhaps in page.html.php).
3. Now the fun begins ;). You need to reloa the like code every time the focused image changes (now we are in pear.js and in the function SwatchImage). Fill your placeholder with the correct info, use the VARIABLE slideshowImages[pear.currentImage][6] where you should fill the URL (that will give you the full URL to the focused image hence render correctly on Facebook).
4. Test test and test
5. Break everything by making it integrate with the current fb like module in a nice way (here you can have a look in my code what I did to make the theme integrate with te fb comment module).
6. Test a bit more.
7. Celibrate. ;)
GLHF.
Was that close to what you are doing? (at what stage are you)
dmcantrell
Joined: 2007-10-04
Posts: 44
Posted: Sat, 2012-08-25 17:53
Hello,
I'm editing album.html.php, and I have put the Facebook SDK Javascript near the top of the file just as they documented on facebook developers instructions.
Then, down towards the middle of the file, near the DIV for mosaicDetailContainer, I added the new DIV for the fb-like button. I can get the button to work just fine, but it is sending the URL of the album not the image.
I see in the code that there is some use of slideshowImages[pear.currentImg][1], in the line that looks like this :
Up till now, I've been editing only the file album.html.php trying to resolve the data that is stored in slideshowImages[pear.currentImg][6], but I can't quite get the syntax correct. I'm mostly a PERL and TCL coder, I don't work with JS nor PHP so this is all new to me.
erlis
Joined: 2004-01-16
Posts: 205
Posted: Sat, 2012-08-25 18:00
You need to re generate the button on swatchImage (every time the image is changed). So re add the fb like code into the div from swatchImage and use the var I referred to then trigger the fb generate button.
The theme are jusing jquery so modifying the doc from JavaScript is like: $('#your-div').html(<fb like html>);
dmcantrell
Joined: 2007-10-04
Posts: 44
Posted: Sat, 2012-08-25 18:09
Hello,
I do really appreciate your help, and I'm going to send you a beer. I think this is all just over my head. I'm sure your advice is useful to someone who is more familiar with JS and PHP and dynamic content like this, but I am very inexperienced with this sort of thing. Thanks for being so patient!
I'm not sure what you mean when you say "you need to regenerate the button on swatchImg". Can you elaborate? Also, in the file pear.js I don't see anything that resembles a div, so I'm not sure what this means "re add the fb like code into the div from swatchImage and use the var I referred to".
suryadilaga
Joined: 2012-08-25
Posts: 1
Posted: Sat, 2012-08-25 18:15
erlis wrote:
Ok, I'm posting from my phone now so sorry for not being correct with the syntax.
I don't know how "close" you are but this is my idea on how to implement fb like.
1. As I said in album.html.php add a placeholder (a div) where you like to have the button.
2. Make sure you load the necisarry Facebook js (perhaps in page.html.php).
3. Now the fun begins ;). You need to reloa the like code every time the focused image changes (now we are in pear.js and in the function SwatchImage). Fill your placeholder with the correct info, use the VARIABLE slideshowImages[pear.currentImage][6] where you should fill the URL (that will give you the full URL to the focused image hence render correctly on Facebook).
4. Test test and test
5. Break everything by making it integrate with the current fb like module in a nice way (here you can have a look in my code what I did to make the theme integrate with te fb comment module).
6. Test a bit more.
7. Celibrate. ;)
GLHF.
Was that close to what you are doing? (at what stage are you)
thank you for your explanation
I will try and follow the steps according to what you described above
dmcantrell
Joined: 2007-10-04
Posts: 44
Posted: Sat, 2012-08-25 18:48
Well, I just made a breakthrough. I had the facebook_like module active, left over from a previous theme. This module added all the og:site_name, og:image, etc meta tags into the <head> of the resulting HTML page. This means that, no matter what I did with the like button itself, it was overridden by these open graph meta tags...
Now that this is deactivated, I can get the facebook like button to send the URL of the correct image, it just doesn't send the thumbnail anymore. So this is a step in the right direction. Thanks again for the guidance. I'm still working.
dmcantrell
Joined: 2007-10-04
Posts: 44
Posted: Sat, 2012-08-25 20:39
All right, I finally have it working now where it is sending the correct URL to facebook.
However, the facebook like button depends on some meta tags to be set in the <head> of the document. These are og:title, og:image, and og:type. These cannot be passed to the facebook like button, they need to be in the <head> of the page. So, even though I have the correct URL being sent, there's no thumbnail and no description showing up in the facebook news feed - just the bare link.
Is there a way to generate these meta tags dynamically as the images change? That is the key to getting this whole thing working I think.
edit: I should add that I'm not going to leave it this way. I'm taking all the additions out until this can be implemented correctly.
erlis
Joined: 2004-01-16
Posts: 205
Posted: Sat, 2012-08-25 20:44
dmcantrell wrote:
All right, I finally have it working now where it is sending the correct URL to facebook.
However, the facebook like button depends on some meta tags to be set in the <head> of the document. These are og:title, og:image, and og:type. These cannot be passed to the facebook like button, they need to be in the <head> of the page. So, even though I have the correct URL being sent, there's no thumbnail and no description showing up in the facebook news feed - just the bare link.
Is there a way to generate these meta tags dynamically as the images change? That is the key to getting this whole thing working I think.
Didn't you read my post earlier? You need to tell Facebook The image full URL (that you can find in the slideshowImages array.
The web does not work like that, its not possible to tell facebook (a separate session and thread) which dynamic page to feed.
Just follow my 1-6 steps and you should be home (or wait a few days and I'll hopefully have time to build support for fb-like in our loved theme).
dmcantrell
Joined: 2007-10-04
Posts: 44
Posted: Sat, 2012-08-25 21:01
Hello,
I did read your post, and like I said I can now send the full image URL to the news feed. However, there is more to it than that. In order for it to show up properly on the Facebook news feed, there needs to be am image thumbnail, and a title - otherwise all that shows up on the news feed is the bare (text) link and no thumbnail image. I guess this is okay, but it is not what I want.
The standard facebook like button code looks like this : <div class="fb-like" data-href="http://foo.com" data-send="true" data-width="450" data-show-faces="true"></div>
The facebook like button code gets the URL of whatever is being sent from the "data-href" field in the HTML code above. However, the thumbnail image and the title do not come from this HTML, they come from the meta tags in the <head> of the page.
So, in summary, I can now get the correct bare link to show up using your suggestions above, but I cannot get the appropriate thumbnail image nor the appropriate title to show up on the Facebook News Feed.
Hello again, and sorry to keep bothering you. I downloaded and installed this version 3.5.4 last week, and just now I noticed that the admin screen still shows 3.4.1. Also, I don't see the field to change the image resize size in the theme options panel. Do I need to get a new admin page from a separate repository?
Also, on the right hand side of the admin page there is a Help section. There are some items listed there, namely "General Settings", "Advanced Options - General", "Advanced Options - Mosaic Page", etc. Are these supposed to be links? They are just dead text on my installation.
Thanks!
dmcantrell
Joined: 2007-10-04
Posts: 44
Posted: Sat, 2012-08-25 22:11
Ah, I see that the zip file unpacked into ./fredrike-pear4gallery3-b331f51 instead of into ./pear4gallery3, so my files didn't actually get updated. Silly me.
dmcantrell
Joined: 2007-10-04
Posts: 44
Posted: Sun, 2012-08-26 16:20
Hello,
It's worth pointing out to anyone who might put forth effort to this that there is a gallery3 module called facebook_like (http://codex.gallery2.org/Gallery3:Modules:facebook_like) that could be integrated with theme as opposed to just hacking it into the theme files themselves.
erlis
Joined: 2004-01-16
Posts: 205
Posted: Tue, 2012-08-28 09:18
erlis wrote:
1. As I said in album.html.php add a placeholder (a div) where you like to have the button.
2. Make sure you load the necisarry Facebook js (perhaps in page.html.php).
3. Now the fun begins ;). You need to reloa the like code every time the focused image changes (now we are in pear.js and in the function SwatchImage). Fill your placeholder with the correct info, use the VARIABLE slideshowImages[pear.currentImage][6] where you should fill the URL (that will give you the full URL to the focused image hence render correctly on Facebook).
4. Test test and test
5. Break everything by making it integrate with the current fb like module in a nice way (here you can have a look in my code what I did to make the theme integrate with te fb comment module).
6. Test a bit more.
7. Celibrate. ;)
I'm currently at stage 5+ with the following changes (the fb-like module is required to be enabled but don't check any of the "Show on.." buttons yet).
It looks pretty nice, you got farther than I did. When you "like" one of the photos, does the correct thumbnail and image title show up on the facebook News Feed? When I liked a few of your photos in the Skiing gallery, I did not see anything show up on my facebook News Feed.
edit: Perhaps that's what you meant by don't click on buttons yet.
dmcantrell
Joined: 2007-10-04
Posts: 44
Posted: Mon, 2012-08-27 19:38
Hello, is it possible that some of the code was truncated in your cut-n-paste above?
Yes, I've updated my previous code with the right one..
Also, there were a bug where I forgot to include the host and protocol in the fb:like href which should be fixed now.
dmcantrell
Joined: 2007-10-04
Posts: 44
Posted: Tue, 2012-08-28 13:28
Hi erlis,
I've incorporated these changes and I'm excited to say that it works! With the facebook_like module enabled, I am now seeing the correct thumbnail and link appear on the facebook News Feed.
Here's something strange though. When I click the link on facebook to come back to my site, it opens my site in the "grid" view instead of the "mosaic" view. Does this happen in your testing as well?
erlis
Joined: 2004-01-16
Posts: 205
Posted: Tue, 2012-08-28 13:40
dmcantrell wrote:
Hi erlis,
I've incorporated these changes and I'm excited to say that it works! With the facebook_like module enabled, I am now seeing the correct thumbnail and link appear on the facebook News Feed.
Here's something strange though. When I click the link on facebook to come back to my site, it opens my site in the "grid" view instead of the "mosaic" view. Does this happen in your testing as well?
What is your theme & album setting? Is it mosaic or grid?
Try copying the link to the page and test in a browser running in "incognito mode". It could be a bug, but I think it's a feature ;).
Posts: 104
Hey Erlis. Just wondering if it would be possible to get a way to retrieve the urls for the various sizes of the pictures.. I hope I can explain this well enough... The sidebar doesn't show in the individual picture view, so I can't use the embed links module there for instance in order to retrieve the full sized url.. So if I copy the url of the picture, even if it's displayed in the album at the full size, it always defaults to the resized 800 pixels in the link. So if I have a picture that I uploaded at 1024 pixels and I want to share it at that size somewhere else, I can't do it. Thanks
(By the way, the "resized_size" option in the advanced menu doesn't seem to effect this no matter what setting I try.. I also tried rebuilding images after setting resized_size to zero or empty, and it still defaults back to 800px)
Nevermind.. I figured it out lol.. I had to set the resize to 1024 and rebuild the images..
Posts: 5
Hi. I just downloaded this and installed it on a new Gallery3 Install, rebuilt all images, etc. Works pretty well but is not showing all the images in Mosaic mode. I have about 1500 in the album and I can scroll down around 1100 of them then it stops loading new ones. Is there a limit I can tweak somewhere to fix this?
EDIT: It appears all those thumbnails are being held in memory and exceed the 2 GB resource limit of the server (64 bit Debian with 8 GB RAM).
Another edit: I changed the resize to 640 and thumbnail size to 150 and rebuilt everything, didn't help. Same issue in grid and carousel, is only loading 850 of 1443 images.
Are thumbnail sizes hard coded in the pear theme? They don't seem to accept the system setting.
Posts: 253
Hi Erlis,
Long time no read !
Just a little word to say that your theme is doing well on my website. I was just wondering how the item count was working with Pear.
I am using Dave's carousel for popular and recent items. If I understand well, the popular is counting the number of time the photo page was refreshed.
How do you think this is working with Pear ? Is it working in slideshow mode or in grid-mozaic ? or not at all ?
Thank you in advance for your answer
Petri
------
Gallery 3 URL = http://www.coquille.org/gallery
Version: 3.0.2 (Coollanta)
Operating system: Linux 2.6.18-194.32.1.el5
Apache: Apache/2.2.3 (Red Hat)
PHP: 5.2.6
MySQL: 5.0.77
Server load: 1.31 1.58 1.53
Graphics toolkit: gd
-------
Posts: 44
Hello,
First I want to say that I love this theme! It is fast, uncluttered, and crisp looking.
My only request is that it could integrate with the facebook_like module. It would be really slick if the facebook "Like" button could be shown just below the image.
I tried letting the facebook_like module put its buttons into the sidebar, but there is some problem with that too because the little pop-up dialog box that allows the user to type some comments for facebook goes under the main window and is not accessible, so you can't see what you're typing.
I have created a screenshot of what I am requesting.
Thanks,
Dave
Posts: 44
Also, one more request. I would like the "download this photo" link to be admin-configured. I don't really want all the images to be downloadable.
Posts: 205
Pear
Have been really busy lately but here are my inputs on your problems.
Hmm, I changing the bottom icon should be configured via the settings.
To get the icon to work as a link modify the code:
to
at: https://github.com/fredrike/pear4gallery3/blob/master/views/page.html.php#L234
Or you can use the dl-link as shown in:
[img=496x341]http://i.imgur.com/L0oN3.png[/img]
Strange, create an issue at: https://github.com/fredrike/pear4gallery3/issues/new
And I'll have a look at it.
Yes, the thumbnail sizes are hardcoded to 150px (but if you build them smaller the theme will load the small images).
According to https://github.com/fredrike/pear4gallery3/blob/master/js/pear.js#L392 It's not working (it's commented out). I can't really recall my thoughts on this and why I have commented it. Try to un-comment it, and report back on how well it works.
Or create an issue on github and I'll get back to it.
Is it you that did comment on my issue on github, as I said there it should be possible to implement. I'll get to it when I can find the time.
It's possible to disable the download feature by setting the correct album permissions just like shown here:
[img=496x431]http://i.imgur.com/Sd4ff.png[/img]
If anyone have the time please help me update the theme wiki page here on menalto to reflect features that exists in the theme (but perhaps are a bit hidden) it would be much appreciated.
Posts: 1
Thanks a lot for your contribution on this brilliant theme, it looks great on Chrome.
-------------------
Melodifestivalen 2013
Posts: 44
Hello,
No it was not me who commented on github, I was not even aware of anything called github until you mentioned it. I read the reply there, but for the sake of documentation I'll post the like here for others :
https://github.com/fredrike/pear4gallery3/issues/22
and I believe that you have pointed to a possible solution?
Thanks for your reply!
Posts: 253
Hi Erlis,
For help, if you explain me what and how (never used wiki before) I can try to help, are you talking about the help content in the admin section of the theme ? Or just the theme page on Menalto ?
For Github, I don't remember how to uncomment and post issues... sorry
------
Gallery 3 URL = http://www.coquille.org/gallery
Version: 3.0.2 (Coollanta)
Operating system: Linux 2.6.18-194.32.1.el5
Apache: Apache/2.2.3 (Red Hat)
PHP: 5.2.6
MySQL: 5.0.77
Server load: 1.31 1.58 1.53
Graphics toolkit: gd
-------
Posts: 205
Kul att du gillar det!
Yes, now I know *how* to do it I just have to find time to actually *DO* it.
It's a more detailed description of the theme and it's features on this page I need some help with http://codex.gallery2.org/Gallery3:Themes:pear4gallery3 for example what modules that are supported (even if the list is incomplete it's better than nothing), what settings can be configured via the admin page and so on..
What I meant is that you should try to find the same line in your local copy of the file and remove the // in the beginning of the line and hopefully it would just work.
Posts: 5
Hi,
I am new in this forum and I have installed the theme Pear4gallery3 as discussed here.
First, it is wunderfull. Thanks.
But my questions are:
- How can I add tags onto all pictures in a album?
- How can I change the resolution for the enlarged pictures only?
Regards
vozzibaer
Posts: 253
you have to install the module called Captionator
for the last question I don't have an answer, sorry
------
Gallery 3 URL = http://www.coquille.org/gallery
Version: 3.0.2 (Coollanta)
Operating system: Linux 2.6.18-194.32.1.el5
Apache: Apache/2.2.3 (Red Hat)
PHP: 5.2.6
MySQL: 5.0.77
Server load: 1.31 1.58 1.53
Graphics toolkit: gd
-------
Posts: 205
I'm not sure I understand what you mean, can you eleborate a bit?
Posts: 1
Not sure if vozzibaer is talking about the same thing, but I want the current image to display at its native resolution. They're downsampled to 640x..., which seems an odd design choice if it was intentional. Otherwise is this a bug? I like the theme a lot, but photos don't look good at 640! See http://goo.gl/4XwOr
Cheers
Posts: 205
New version uploaded to github v3.5.2.
Among other changes we now have the option to change the photo-resize size (under theme options) & support for no album skimming (set skimm_img to 0).
Posts: 2
erlis,
The photo-resize works very well -very nice option, pictures looks much sharper now! Thank you.
On another note, is there a way to delete the title/file name from the photos and thumbnail files (but not the albums title) on this theme? Also, is there any way to delete or not show the info button (show more info about this photo) and just leave the download this photo button on the page. Thanks in advance
Posts: 205
New version uploaded to github v3.5.4.
Just minor fixes, description of the meaning of skimm_lim=0 + better support for site status(es).
Short answer: NO.
Longer answer:
I'm not planning to support each and every modification (I just can't find the time for that). Try to make the modification yourself.
Submit a patch in github if you get it to work via settings in the theme_options page and I'll add it as a feature for all.
Posts: 205
One more thing..
If you have feature requests (or just finds any more bugs) please take a screenshot (I suggest you use https://chrome.google.com/webstore/detail/cpngackimfmofbokmjmljamhdncknpmg) to describe the errors..
Posts: 253
Hi Erlis,
Thank you for this upgrade, just installed in finished customization. The images looks indeed much crisper now. NICE !
I set the skimming to zero, and the website is loading much faster from China now, although I really like the skimming... I was wondering if in the future it would be possible to set the theme to display the page once all the original thumbnails were loaded and then load the rest in the background...
I have a new king of bug with this release, it's the Tag cloud :
when I click on a tag, I get to a strange page with an empty sidebar and no footer..
appart from that...it runs smoothly and crispy !
UPDATE :
oups, I was writing this post when you were writing the 3.5.4 release...
Guess I will update and customize again.....test and get back to you
------
Gallery 3 URL = http://www.coquille.org/gallery
Version: 3.0.2 (Coollanta)
Operating system: Linux 2.6.18-194.32.1.el5
Apache: Apache/2.2.3 (Red Hat)
PHP: 5.2.6
MySQL: 5.0.77
Server load: 1.31 1.58 1.53
Graphics toolkit: gd
-------
Posts: 205
I thought I were doing so, but apparently I'm not.. I'll have a look at it, I know how.
I can't reproduce the tag cloud issue.
Posts: 2
Hi there Erlis,
I was a MobileMe Gallery user so this theme is to me a great find and a great substitute. Thank you so much.
I'm new at this and not much into coding but I managed to make some of the modification that you suggested on my first post -they work, thanks. The only thing I could not figure out was how to remove/delete the title/file name of the photos when in Grid-view
50 <p class="giTitle <? if(!$child->is_album()) print 'center';?>"><?= html::purify(text::limit_chars($child->title, 20 )) ?> </p>
51 <? if($child->is_album() && !module::get_var("th_pear4gallery3", "hide_item_count")): ?><div class="giInfo"><?= count($granchildren)?> photos</div><? endif ?>
I changed the ($child->title, 20) from 20 to 0 in the thumbs.html but this also removed the titles from all the albums name.
One more thing, if you know the fix to this I would appreciate it -some of my photos were taken with different cameras thus different sizes/resolutions, when I create albums and the resolutions of the photos are different on the albums, the albums thumbnails have different sizes in the Grid-view, and not consistent, any suggestions on how I can fix that? -thanks again.
Beer's on the way -enjoy.
georgek
Posts: 205
I'm glad you like my theme, thanks for the beer!
This is the correct line 50:
To get the thumbs display consistent you need to install the square_thumb plugin (see link on the config page).
Also I've decided to make the feature "faster load time" a premium feature so please contact me via a pm and I send you instructions on how to get it working.
Posts: 77
I was wondering how do I change the text in the Header (Gallery's home page) from GALLERY to my own text of VIDEO ARCHIVE.
(sorry if I missed it in this thread)
Thank You, Sincerely,
bburnett
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"sometimes the world is cruel to shiny things" - Elroy "Lucky" Kleinschmidt
Posts: 253
Hi bburnett,
You could try by using Firefox with firebug, then you just select the item you want to know about and firebug will tell you where to find it...
In this case, I don't see what you are referring to... I don't have any "Gallery"…. I have "Pear4Gallery3", if this is what you are talking about, you have to login, and, from your homepage, go into the menu called "albums options" --> "edit album" … just change the title over there…
------
Gallery 3 URL = http://www.coquille.org/gallery
Version: 3.0.2 (Coollanta)
Operating system: Linux 2.6.18-194.32.1.el5
Apache: Apache/2.2.3 (Red Hat)
PHP: 5.2.6
MySQL: 5.0.77
Server load: 1.31 1.58 1.53
Graphics toolkit: gd
-------
Posts: 205
Exactly as petri is saying, just set the right title of your album.
See this img:
[img=543x400]http://i.imgur.com/kks9n.png[/img]
Posts: 77
Thank you both for the help. I sincerely appreciate it. I have my head buried in this Watermarking/Emboss module issue for the last couple of days, so I didn't even think about this method, duh!
Thanks Again,
bburnett
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"sometimes the world is cruel to shiny things" - Elroy "Lucky" Kleinschmidt
Posts: 44
He erlis,
I'm finally sitting down to try to add the fb like button to the dynamic photo pages as I mentioned previously.
Here is the technique I'm following : http://allurcode.com/2011/06/30/multiple-dynamic-facebook-like-buttons-on-one-page/
I don't know which file to actually edit though. Could you point me in the right direction?
Thanks!
Posts: 205
In general you need to create a div where you like to have the like button on the page.
This div should then be updated here https://github.com/fredrike/pear4gallery3/blob/master/js/pear.js#L271 and using the slideshowImages array.
If you get it to work send me a pm with a demo link and a git pull request and I'll happily add it to the code base.
Posts: 44
Well, I've spent the better art of the night messing with this, I can't figure it out. There seems to be some problem with the page <head> and the og: tags. No matter what I do, I can't get the thumbnail for the image being displayed to be sent to facebook via the like button. It always sends the thumbnail for the Album, which seems to be set in the og:image and the og:url in the <head> of the page. I'm not sure where to get this from or where to edit it, I'm just not familiar enough with the code base.
Posts: 205
Have a look at the comment code used here: https://github.com/fredrike/pear4gallery3/blob/master/controllers/pear.php and here https://github.com/fredrike/pear4gallery3/blob/master/views/facebook_comment.html.php
Posts: 205
The fb:like href should be the contence of slidshowImages[pear.currentimage][6] that is the full URL to the image. Try that an I'm sure you'll get it to work.
Also you only need to load the fb js once so that should
Preferable be set in the album.html.php or so.
Posts: 44
Hi Erlis,
I feel like I'm close now, but I don't know to use the variable slideshowImages[pear.currentimage][6]. Is this a PHP variable? Is this a Javascript function? I'm not sure about the syntax needed to utilize this element properly.
Posts: 205
Ok, I'm posting from my phone now so sorry for not being correct with the syntax.
I don't know how "close" you are but this is my idea on how to implement fb like.
1. As I said in album.html.php add a placeholder (a div) where you like to have the button.
2. Make sure you load the necisarry Facebook js (perhaps in page.html.php).
3. Now the fun begins ;). You need to reloa the like code every time the focused image changes (now we are in pear.js and in the function SwatchImage). Fill your placeholder with the correct info, use the VARIABLE slideshowImages[pear.currentImage][6] where you should fill the URL (that will give you the full URL to the focused image hence render correctly on Facebook).
4. Test test and test
5. Break everything by making it integrate with the current fb like module in a nice way (here you can have a look in my code what I did to make the theme integrate with te fb comment module).
6. Test a bit more.
7. Celibrate. ;)
GLHF.
Was that close to what you are doing? (at what stage are you)
Posts: 44
Hello,
I'm editing album.html.php, and I have put the Facebook SDK Javascript near the top of the file just as they documented on facebook developers instructions.
Then, down towards the middle of the file, near the DIV for mosaicDetailContainer, I added the new DIV for the fb-like button. I can get the button to work just fine, but it is sending the URL of the album not the image.
I see in the code that there is some use of slideshowImages[pear.currentImg][1], in the line that looks like this :
Up till now, I've been editing only the file album.html.php trying to resolve the data that is stored in slideshowImages[pear.currentImg][6], but I can't quite get the syntax correct. I'm mostly a PERL and TCL coder, I don't work with JS nor PHP so this is all new to me.
Posts: 205
You need to re generate the button on swatchImage (every time the image is changed). So re add the fb like code into the div from swatchImage and use the var I referred to then trigger the fb generate button.
The theme are jusing jquery so modifying the doc from JavaScript is like: $('#your-div').html(<fb like html>);
Posts: 44
Hello,
I do really appreciate your help, and I'm going to send you a beer. I think this is all just over my head. I'm sure your advice is useful to someone who is more familiar with JS and PHP and dynamic content like this, but I am very inexperienced with this sort of thing. Thanks for being so patient!
I'm not sure what you mean when you say "you need to regenerate the button on swatchImg". Can you elaborate? Also, in the file pear.js I don't see anything that resembles a div, so I'm not sure what this means "re add the fb like code into the div from swatchImage and use the var I referred to".
Posts: 1
thank you for your explanation
I will try and follow the steps according to what you described above
Posts: 44
Well, I just made a breakthrough. I had the facebook_like module active, left over from a previous theme. This module added all the og:site_name, og:image, etc meta tags into the <head> of the resulting HTML page. This means that, no matter what I did with the like button itself, it was overridden by these open graph meta tags...
Now that this is deactivated, I can get the facebook like button to send the URL of the correct image, it just doesn't send the thumbnail anymore. So this is a step in the right direction. Thanks again for the guidance. I'm still working.
Posts: 44
All right, I finally have it working now where it is sending the correct URL to facebook.
However, the facebook like button depends on some meta tags to be set in the <head> of the document. These are og:title, og:image, and og:type. These cannot be passed to the facebook like button, they need to be in the <head> of the page. So, even though I have the correct URL being sent, there's no thumbnail and no description showing up in the facebook news feed - just the bare link.
Is there a way to generate these meta tags dynamically as the images change? That is the key to getting this whole thing working I think.
edit: I should add that I'm not going to leave it this way. I'm taking all the additions out until this can be implemented correctly.
Posts: 205
Didn't you read my post earlier? You need to tell Facebook The image full URL (that you can find in the slideshowImages array.
The web does not work like that, its not possible to tell facebook (a separate session and thread) which dynamic page to feed.
Just follow my 1-6 steps and you should be home (or wait a few days and I'll hopefully have time to build support for fb-like in our loved theme).
Posts: 44
Hello,
I did read your post, and like I said I can now send the full image URL to the news feed. However, there is more to it than that. In order for it to show up properly on the Facebook news feed, there needs to be am image thumbnail, and a title - otherwise all that shows up on the news feed is the bare (text) link and no thumbnail image. I guess this is okay, but it is not what I want.
The standard facebook like button code looks like this :
<div class="fb-like" data-href="http://foo.com" data-send="true" data-width="450" data-show-faces="true"></div>
The facebook like button code gets the URL of whatever is being sent from the "data-href" field in the HTML code above. However, the thumbnail image and the title do not come from this HTML, they come from the meta tags in the <head> of the page.
So, in summary, I can now get the correct bare link to show up using your suggestions above, but I cannot get the appropriate thumbnail image nor the appropriate title to show up on the Facebook News Feed.
Posts: 44
Hello again, and sorry to keep bothering you. I downloaded and installed this version 3.5.4 last week, and just now I noticed that the admin screen still shows 3.4.1. Also, I don't see the field to change the image resize size in the theme options panel. Do I need to get a new admin page from a separate repository?
Also, on the right hand side of the admin page there is a Help section. There are some items listed there, namely "General Settings", "Advanced Options - General", "Advanced Options - Mosaic Page", etc. Are these supposed to be links? They are just dead text on my installation.
Thanks!
Posts: 44
Ah, I see that the zip file unpacked into ./fredrike-pear4gallery3-b331f51 instead of into ./pear4gallery3, so my files didn't actually get updated. Silly me.
Posts: 44
Hello,
It's worth pointing out to anyone who might put forth effort to this that there is a gallery3 module called facebook_like (http://codex.gallery2.org/Gallery3:Modules:facebook_like) that could be integrated with theme as opposed to just hacking it into the theme files themselves.
Posts: 205
I'm currently at stage 5+ with the following changes (the fb-like module is required to be enabled but don't check any of the "Show on.." buttons yet).
Let me know what you think so we can continue on stage 6 & 7.
Here is a live demo: http://erlandssson.nu/~fer/gallery3/album_003/
Posts: 44
Hi erlis,
It looks pretty nice, you got farther than I did. When you "like" one of the photos, does the correct thumbnail and image title show up on the facebook News Feed? When I liked a few of your photos in the Skiing gallery, I did not see anything show up on my facebook News Feed.
edit: Perhaps that's what you meant by don't click on buttons yet.
Posts: 44
Hello, is it possible that some of the code was truncated in your cut-n-paste above?
For example, I think this line is incomplete :
+ $('#fbLike-detail').html('<fb:like href="'+ slideshowImages[pear.currentImg][6] +'" send="false" width="450" show_faces="true" colorscheme="dark" font="verdana"
Posts: 205
Yes, I've updated my previous code with the right one..
Also, there were a bug where I forgot to include the host and protocol in the fb:like href which should be fixed now.
Posts: 44
Hi erlis,
I've incorporated these changes and I'm excited to say that it works! With the facebook_like module enabled, I am now seeing the correct thumbnail and link appear on the facebook News Feed.
Here's something strange though. When I click the link on facebook to come back to my site, it opens my site in the "grid" view instead of the "mosaic" view. Does this happen in your testing as well?
Posts: 205
What is your theme & album setting? Is it mosaic or grid?
Try copying the link to the page and test in a browser running in "incognito mode". It could be a bug, but I think it's a feature ;).