News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Picasa Gallery Browser

Started by PJLawrence, December 10, 2008, 01:58:02 PM

Previous topic - Next topic

b4pjoe

Quote from: topmmc on April 28, 2009, 02:33:17 PM
I have been trying to get this to work (great app), I have put in my (what I think is my ID) in the "Enter Picasa Account ID" and I have the Picsa public gallery setup and my URL is correct, but I still don't get the gallery in SMF.  What am I doing wrong.

public gallery (just one photo now):  http://picasaweb.google.com/PSMVCC

Remove the /PSMVCC from the Picasa Server URL so it is just http://picasaweb.google.com

topmmc

ahh, that did the trick

Thanks, this is a great mod, love it.

top
Top
Marines M/C

Atheo

Hello,

Great mod!

How can I change the menu tab text to read only "Gallery" ?

Thank you.

PJLawrence

You need to edit your language file.
The name of this file depends on what language and character set you are using.
For example for English this file could be Modifications.english.php which is found in  /Themes/default/languages/
find the code

$txt['picasa_gallery'] = 'Picasa Gallery';

and change the text in quotes to whatever you want.
P.S.
Please backup your files before modifying.

Metorks

Hi PJ,

This looks like a great mod, and it's getting rave review here in the thread.  I'm wondering if there's any possibility of linking a demosite, though.  The images posted with the mod are not very large and I'd like a better idea of how it works and looks when integrated into SMF.

Thanks,
Met

Atheo

Straight to a non-demo

http://atheos23.net

Galler-E not iGallery

Sakae

Awesome mod, great job, thank you!!!

I would like to install more than just one Picasa Gallery, is that possible?

I mean, I have three galleries, and would like to show all them embedded in my website...
http://www.tigrelog.com.br
l: simple p: machines

Sakae

Quote from: softcore on May 19, 2009, 05:50:34 PM
I would like to install more than just one Picasa Gallery, is that possible?

Up (not down)
http://www.tigrelog.com.br
l: simple p: machines

PJLawrence

Sakae, sorry but the current version does not support multiple Picasa gallerys. This would require some re-work of the PHP code. This is possibly a project for someone else.  I have no objections to someone modifying my mod and posting their own version to the SMF form.

Metok,
It is possible to change the size of the thumb nail images. However, it requires a manual change to the php code. If you're interested I can post details.

Sakae

Quote from: PJLawrence on June 30, 2009, 04:56:27 AM
Sakae, sorry but the current version does not support multiple Picasa gallerys. This would require some re-work of the PHP code. This is possibly a project for someone else.  I have no objections to someone modifying my mod and posting their own version to the SMF form.

Oh, ok, Lawrence. I solved in a hard way, duplicating PicasaGalleryBrowser.php and PicasaGallery.template.php, modifying some data into it.

http://www.tigrelog.com.br/index.php?action=galeria

Kinda works, not very well, but it does.
http://www.tigrelog.com.br
l: simple p: machines

PJLawrence

Sakae. it looks very good. I think if you modify the code so that you use only one version of the php and template php code and add the extra options to the admin setup. You should be able to submit it to the SMF website as your own mod.

Sakae

Quote from: PJLawrence on July 01, 2009, 09:24:15 AM
Sakae. it looks very good. I think if you modify the code so that you use only one version of the php and template php code and add the extra options to the admin setup. You should be able to submit it to the SMF website as your own mod.

Ok, thanks for the green light, I'll think about it. If I did so, I'll contact you to submit as a update for Picasa Gallery Browser mod.

Best regards
http://www.tigrelog.com.br
l: simple p: machines

Herr_Inoddorell

Hi! Very nice mod, congratulations! :)

I've been having trouble installing this mod manually because I'm using a custom theme, so there are entries that are missing in my index.template.php. More specifically this one:

$current_action = 'admin';
if (in_array($context['current_action'], array(


I've tried different ways to install it, with no success. So, please, if someone could help me to modify my index.template.php in order to install this modification, I'll be very thankful :D.

I've attached my index.template.php.

Thanks in advance! :)

EDIT: Also and offtopic :p. I have two questions: how many pictures can I upload to a Picasa album? Is there a restricting size per account?

PJLawrence

Herr_Inoddorell, which version of SMF are you using 1.1 or 2?
I don't think there's an album limit, just a Picasa account  limit which is based on disk space usage.  Typically 1GB for the free account.

Herr_Inoddorell

Quote from: PJLawrence on August 01, 2009, 04:02:17 PM
Herr_Inoddorell, which version of SMF are you using 1.1 or 2?
I don't think there's an album limit, just a Picasa account  limit which is based on disk space usage.  Typically 1GB for the free account.

Ah, OK. Thank you so much for answer :D.

I'm using 1.1.10 :).


PJLawrence

Herr_Inoddorell, how good is your PHP?
I've taken a quick look at your theme template and there could be two locations where you may need to add a button,  template_main_above() and/or template_menu().
Normally you only need to update one section of code in template_menu.
basically you need to add a button(s) which references ?action=picasagallerybrowser
Some outline instructions can be found here ...
http://www.simplemachines.org/community/index.php?topic=279640.msg2023902#msg2023902

Herr_Inoddorell

I have nothing PHP, I make every changes by, lets say, method of trial and error :P. But well, I'm progressively understanding how these things work around, that's something good, I think ;D.

I've seen that post above. So you mean that only I have to add a button in my index.template.php? If it's that only, I could do it :).

Thanks for your reply! :D

PJLawrence

Herr_Inoddorell, It's probably better that you make the changes. Since you can do the changes and test that all things still work as they should.
Someone else could do it but if they don't have the theme install they can't check its functionality. Beside this way you learn some coding and will be better able to maintain your forum.
SMF 2 is a bit better since it allows mods to add buttons to any theme where SMF 1 mods can only add buttons easily to the default theme.

Herr_Inoddorell

Yes I know it ;D.

I thought that there was something else than adding a button, because of that missing entry in my index.template file that I posted above, so that's why I asked :). I'm going to do it.

Thank you very much for your help :)

Herr_Inoddorell

So, I installed it a few days ago, and fits my needs perfectly!! :D

Great mod, here's my little translation to Spanish that I made for it (more specifically, for the spanish_es package).

In $languagedir/Modifications.spanish_es.php:

Find:

?>

Add before:

// PJL : Start of Picasa Gallery Mod.
$txt['picasa_gallery'] = 'Galeria Picasa';
$txt['picasa_table_title'] = 'Navegador de la Galeria';
$txt['no_picasa_server'] = 'Por favor especifique un servidor de Picasa.';
$txt['no_picasa_account'] = 'Por favor especifique una cuenta de usuario de Picasa.';
$txt['no_picasa_photos'] = 'No se encontraron fotos.';
$txt['no_picasa_albums'] = 'No se encontraron albumes.';
$txt['no_picasa_default_album'] = 'Album por defecto especificado, pero no asignado por defecto.';
$txt['picasa_album'] = 'Album: ';
$txt['picasa_thumbnail']='Haz click para agrandar';
$txt['picasa_album_thumbnail']='Click aqui para ir al album';
$txt['picasa_account'] = 'Cuenta de Picasa: ';
$txt['gallery_picasa_server_url'] = 'Entra la url del servidor de Picasa';
$txt['gallery_picasa_account'] = 'Entra la ID de la cuenta de Picasa';
$txt['gallery_picasa_fixed_album'] = 'Unico album por defecto de Picasa';
$txt['gallery_picasa_default_album'] = 'Album por defecto de Picasa';
$txt['gallery_picasa_columns'] = 'Columnas de la Galeria Picasa';
$txt['gallery_picasa_view_album'] = 'Ver Album';
$txt['gallery_picasa_view_photo'] = 'Ver Foto';
$txt['gallery_picasa_filename'] = '<b>Nombre de Archivo:</b> ';
$txt['gallery_picasa_size'] = '<b>Tamaño:</b>';
$txt['gallery_picasa_dimension'] = '<b>Dimensiones:</b>';
$txt['gallery_picasa_uploaded'] = '<b>Subido:<b>';
$txt['gallery_picasa_taken'] = '<b>Tomada en:</b>';
// End Mod.


Cheers! ;)

Advertisement: