News:

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

Main Menu

Flickr Gallery Browser - Blank page - modificationsfrench.php

Started by Blackbirdadvice, January 08, 2009, 08:16:43 AM

Previous topic - Next topic

Blackbirdadvice

Hi everybody,

I've à little problem with this mod.

I'm working on the v1.1.7 with custom theme ( Kelo ), so I add by myself the Flickr's buttons in the menu.


But, I've got a blank page when I clik on the button "Gallerie Flickr"
Test [nofollow]

I've give my API key and my user account in the Option, but I don't know what I must write in Default Set, and why I've got a blank page instead of nice pictures ^^.


// the [flickrgallerybrowser] button
echo ($current_action == 'flickrgallerybrowser' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<li class="' , $current_action == 'flickrgallerybrowser' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=flickrgallerybrowser">' , $txt['flickr_gallery']  , '</a>
</li>' , $current_action == 'flickrgallerybrowser' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// End Flickr


Have you any idea?

My Forum [nofollow]

ps: this is the translation in french of modifications.french.php :
Quote
<?php
// Version: 1.1; Modificationsfrench

// PJL : Start of Flickr Gallery Mod.

$txt['flickr_gallery'] = 'Gallerie Flickr';
$txt['flickr_table_title'] = 'Exploreur Gallerie Flickr ';
// Error
$txt['no_flickr_APIKey'] = 'Merci de sp&eacute;cifier votre API key Flickr.';
$txt['no_flickr_account'] = 'Merci de pr&eacute;ciser votre compte Flickr.';
$txt['no_flickr_photos'] = 'Aucune photo.';
$txt['no_flickr_sets'] = 'Param&egrave;tres non sp&eacute;cifi&eacute;s.';
$txt['no_flickr_default_set'] = 'Album par d&eacute;faut spé&eacute;cifi&eacute;, cependant les param&egrave;tres ne sont pas pré&eacute;cis&eacute;s.';
$txt['flickr_db_cache_failed']='Attention : Erreur sur le cache de la base de donn&eacute;es.';
$txt['flickr_fs_cache_failed']='Attention : Erreur sur le syst&eagrave;me de fichier.';
//Action
$txt['flickr_set'] = 'Param&eagrave;tres : ';
$txt['flickr_thumbnail']='Cliquer pour &eacutelargir';
$txt['flickr_set_thumbnail']='Cliquer ici pour modifier les param&egrave;tres';
$txt['flickr_account'] = 'Compte Flickr: ';
// Option
$txt['gallery_flickr_API_Key'] = 'Merci de sp&eacute;cifier un API key de Flickr';
$txt['gallery_flickr_account'] = 'Merci de pr&eacute;ciser votre compte Flickr';
$txt['gallery_flickr_fixed_set'] = 'Activer les param&egrave;tres par d&eacute;fauts.';
$txt['gallery_flickr_default_set'] = 'Param&egrave;tres par d&eacute;fauts.';
$txt['gallery_flickr_columns'] = 'Nombre de colonnes';
$txt['gallery_flickr_enable_db_catch'] = 'Activer le cache de la base de donn&eacute;es.';
$txt['gallery_flickr_enable_file_catch'] = 'Activer le cache du syst&egrave;me de fichiers.';
$txt['gallery_flickr_cache_folder'] = 'R&eacute;pertoire cache<br /><span class="smalltext" style="font-weight: bold;">(Si vous utilisez un cache pour les fichiers, sp&eacute;cifiez un chemin correct.)</span>';
$txt['gallery_flickr_view_set'] = 'Visualiser les param&eagrave;tres';
$txt['gallery_flickr_view_photo'] = 'Visualiser la photo';
$txt['gallery_flickr_filename'] = 'Nom du fichier:';
$txt['gallery_flickr_size'] = 'Taille:';
$txt['gallery_flickr_dimension'] = 'Dimension:';
$txt['gallery_flickr_uploaded'] = 'Upload:';
$txt['gallery_flickr_taken'] = 'Taken:';

// End Mod.
?>
LaVoIP.info [nofollow]
Forum francophone sur la VoIP

PJLawrence

Support questions for this mod should be asked via its thread..
http://www.simplemachines.org/community/index.php?topic=283313.0
What other mods do you have installed?

Blackbirdadvice

Seo4SMF,TextSizer, Auto Embed Video Clips, Dogvatars

I'm trying to install AEVA, Flickr and Force Topic Read On Login Mod
LaVoIP.info [nofollow]
Forum francophone sur la VoIP

PJLawrence

These mods should not effect the flickr browser mod.
The default set field is optional. If this field is left blank then the flickr browser mod will list the flickr account's public sets.

I noticed that your url's are not the normal search friendly url used by SMF.
For example your search url is
http://www.lavoip.info/search.html
normally this would be..
http://www.lavoip.info/action,search.html or
http://www.lavoip.info/index?action=search

are you using some kind of special server url redirecting?

PJLawrence

The Seo4SMF mod could be the problem, try flickr without this mod installed.
The url to the flickr gallery should be something like this
http://www.lavoip.info/index.php?action=flickrgallerybrowser

Blackbirdadvice

I'll try it tomorow, thanks for those advice, I hope it will be fine..
LaVoIP.info [nofollow]
Forum francophone sur la VoIP

Blackbirdadvice

I've just made a modification in flikrgallerybrowser.php, the path for require_once l.12 wasn't good.

The mod Seo4SMF isn't a problem.
LaVoIP.info [nofollow]
Forum francophone sur la VoIP

PJLawrence

The reason why there is a problem with the require_once is due to the mod Seo4SMF modifying the link path using server url rewrite rules. This is a common problem associated the Seo4SMF mod see Seo4SMF support thread.

Blackbirdadvice

The original path for require_once was something like usr/share......, do you have it without Seo4MF?
LaVoIP.info [nofollow]
Forum francophone sur la VoIP

PJLawrence

The only require once in flickrgallerybrowser.php is
require_once("phpFlickr/phpFlickr.php") not usr/share which php file are you referring to?

The include path is assigned in Settings.php, which is set by the user when installing the forum.

Again the Seo4MF mod can create problems here since php files paths have been modified by server url rewrite rules, see Seo4SMF support thread.

Blackbirdadvice

Oups.. It's must be a mistak with another mod. I change few things this last days...

Anyway, by this modification on require_once, it's fine now.
LaVoIP.info [nofollow]
Forum francophone sur la VoIP

PJLawrence

No this is not a mistake with another mod. Just a computability issue between the Seo4MF mod and the flickr mod. Please see support thread for Seo4SMF  mod.
Also note that Seo4SMF has been discontinued, you can't download it from SMF mod site, it has been superseded by the pretty URL mod.

see http://www.simplemachines.org/community/index.php?topic=245106.msg1853117#msg1853117

Blackbirdadvice

Thanks for the news.

You know what? Another problem.  :P. I can see the album, but not the pictures in.. ^^.
LaVoIP.info [nofollow]
Forum francophone sur la VoIP

PJLawrence

That's interesting. Your test page worked this morning. What have you changed since then?

Blackbirdadvice

Interesting..If you want...  :D.

This morning there was only one picture in the album, now they're 4/5.

I've changed a lot of thinks but not in this mod.
LaVoIP.info [nofollow]
Forum francophone sur la VoIP

PJLawrence

The standard links work..
i.e...
http://www.lavoip.info/index.php?action=flickrgallerybrowser
http://www.lavoip.info/index.php?action=flickrgallerybrowser&setid=72157612306327549

However the links which uses the server modified urls don't work i.e.
http://www.lavoip.info/flickrgallerybrowser.html?setid=72157612306327549
Hence for some reason when using the server modified urls  the $_GET['setid'] is blocked.

What happens when you assign the default set as La VoIP.

Referring to my previous question, which file php contained the usr/share path?


PJLawrence

I hate to say this but this could be related to the SEO2smf mod.
It's probably the rewrite rule not passing the parameters on.
you need to add %{QUERY_STRING} in the correct place in your .htaccess file.

see Passing GET parameters through Apache mod_rewrite

Blackbirdadvice

#17
If I put La VoIP as default set the redirection still working.

I prefer don't uninstall Seo4SMF, urls are more simple like this, when I post a reference in a forum or something like that it's useful.

Anyway I need only one album, so with this set it's ok.

Quote
Referring to my previous question, which file php contained the usr/share path?
This was the mistake wich I was talking about.. It was'nt maybe in this mod, I'm trying to install few mods in the same time and I've some troubles, so when I'm fed up about one of us, I'm working in an other one.

I don't remember wich one it was.. Sorry

Thank you very much for your help.
LaVoIP.info [nofollow]
Forum francophone sur la VoIP

PJLawrence

Can we now say this problem is now solved?
You may not need to un-install the SEO2smf just modify the rewrite rules in the .htacces file. Anyway good luck with your site.

Blackbirdadvice

I hope so yes. ^^.

All right, thank you and good continuation!
LaVoIP.info [nofollow]
Forum francophone sur la VoIP

Advertisement: