Announcement

#1 2012-05-10 08:05:04

alexpreyer
Member
Hammelburg (Ger)
2009-11-27
179

Problems with Psli-BingMaps

I tried the Psli-BingMaps plugin, but all I got on the gallerypage was a black (empty) box.
I inserted the bing key and selected a category. For the long-/and latitude I tried also a value from a picture.
Any idea?

Offline

 

#2 2012-05-10 11:24:58

psli
Member
2012-04-27
18

Re: Problems with Psli-BingMaps

Hi,

Here is a lot of questions to help resolve your problem :

- Do you have javascript error on your page ?
- Which browser did you use ? (With IE9, be aware of compatibility mode ... It seems to dislike Bing v7 maps ... )
- Could you gave me the exact value you use for lat and long ?

And the last ...

- Could you gave me an URL to try it on your site ?

I'm working right now, but I will try to debug it today ...
Anyway, thanks to try it.

Psli

Offline

 

#3 2012-05-10 11:33:06

alexpreyer
Member
Hammelburg (Ger)
2009-11-27
179

Re: Problems with Psli-BingMaps

Hi,
first of all. Don't worry. It's not an important issue.

- there are no errors on the page
- I tried with the newest firefox version, afterwards with opera - every time the same
- A picture with the settings is attached
- and here is the link to the album: http://www.preyer.net/galerie/index/cat … stimmungen

Thanks for your effort.

Last edited by alexpreyer (2012-05-10 11:34:30)

Offline

 

#4 2012-05-10 12:35:10

psli
Member
2012-04-27
18

Re: Problems with Psli-BingMaps

Ok, I know what the matter is ...

I use relative path to acces JS in the plugins but it seems your website isn't organize like mine ...
(My lack of experience with piwigo must explain that ...)

I will change this to use relative path with a new plugin version (I expect it to be upgraded tonight).
(New version will help "set-up" by showing bing map on admin page with point and click lat and long setting).

Thanks for pointing this to me.

PS :
In the meantime, if you want to move forward with this plugin you could change line
"<script charset="UTF-8" type="text/javascript" src="./plugins/Psli-BingMaps/JS/Psli-BingMaps.js"></script>"
by
"<script charset="UTF-8" type="text/javascript" src="'.PSLI_BINGMAPS_DIRECTORY.'JS/Psli-BingMaps.js"></script>"
in file "include/guest.inc.php"

psli

[edit] correction in filename (guset -> guest).

Last edited by psli (2012-05-10 12:53:57)

Offline

 

#5 2012-05-10 12:46:02

alexpreyer
Member
Hammelburg (Ger)
2009-11-27
179

Re: Problems with Psli-BingMaps

I looked around, but I cannot find the file where your mentioned path is in?
In which file I have to change this line?

Thanks for your very fast response. I appreciate this.

Offline

 

#6 2012-05-10 12:53:06

psli
Member
2012-04-27
18

Re: Problems with Psli-BingMaps

I've made it more simple  ...
You can update plugin. I've upgraded it in piwigo server.

There's no more functionality in the new version, it's just bug free.

psli

Offline

 

#7 2012-05-10 12:55:30

alexpreyer
Member
Hammelburg (Ger)
2009-11-27
179

Re: Problems with Psli-BingMaps

Whoops, when I try (after the update) to go in the admin-part of your plugin I get:

Warning: Smarty error: unable to read resource: "./plugins/Psli-BingMaps/template/admin.tpl" in /www/htdocs/w005f3d5/preyer2012/galerie/include/smarty/libs/Smarty.class.php on line 1093

Offline

 

#8 2012-05-10 13:03:06

psli
Member
2012-04-27
18

Re: Problems with Psli-BingMaps

Could you retry downloading... ?
I got an error on the first attempt to upload plugin ... So i do it twice ...
I think you try just between the two attempt ... :)

Sorry for the inconvenience.

Psli

Offline

 

#9 2012-05-10 13:08:35

alexpreyer
Member
Hammelburg (Ger)
2009-11-27
179

Re: Problems with Psli-BingMaps

Ok, now the error is gone, but the admin panel looks like before. Also in the gallery the box keeps empty. Sorry for the bad news.

Offline

 

#10 2012-05-10 13:20:15

psli
Member
2012-04-27
18

Re: Problems with Psli-BingMaps

You don't have to ...
I'm sorry that don't work for you :(

In fact, do you use a specific function with piwigo that could mislead path in the script ?
I've seen there is another file from the facebook plugin with the same error on your page. I think there is something that you use on your site and that I don 't know (i'm really knew with piwigo ...).

I think it's because of your path "http://www.preyer.net/galerie/index/category/lichtstimmungen".

How do you create a path like that ? Is this because it's a physical category (I had never used them so I don't know, I only use virtual category ...)

In this case, does you're admin page is accessed by "http://www.preyer.net/admin.php" ? or with a more longer path ?
This will help me to guess you're real path to define access to JS.

Again, I'm sorry for the time you pass on this. Thank you for your help.

psli

Offline

 

#11 2012-05-10 13:34:48

alexpreyer
Member
Hammelburg (Ger)
2009-11-27
179

Re: Problems with Psli-BingMaps

Don't worry. You had a lot of work to create this plugin, so it's no problem for me to help to get it running.

First of all, the path to the admin site:
http://www.preyer.net/galerie/admin.php

I also deactivated the facebook plugin and also made a test with a virtual album - without a change. Also tested with another template.

How the path is created?  Good question.
I set these options in the plugin "local files editor":

// question_mark_in_urls : the generated urls contain a ? sign. This can be
// changed to false only if the server translates PATH_INFO variable
// (depends on the server AcceptPathInfo directive configuration)
$conf['question_mark_in_urls'] = false;

// php_extension_in_urls : if true, the urls generated for picture and
// category will not contain the .php extension. This will work only if
// .htaccess defines Options +MultiViews parameter or url rewriting rules
// are active.
$conf['php_extension_in_urls'] = false;

// category_url_style : one of 'id' (default) or 'id-name'. 'id-name'
// means that an simplified ascii represntation of the category name will
// appear in the url
$conf['category_url_style'] = 'name';

// picture_url_style : one of 'id' (default), 'id-file' or 'file'. 'id-file'
// or 'file' mean that the file name (without extension will appear in the
// url). Note that one aditionnal sql query will occur if 'file' is choosen.
// Note that you might experience navigation issues if you choose 'file'
// and your file names are not unique
$conf['picture_url_style'] = 'file';

// tag_url_style : one of 'id-tag' (default), 'id' or 'tag'.
// Note that if you choose 'tag' and the url (ascii) representation of your
// tags is not unique, all tags with the same url representation will be shown
$conf['tag_url_style'] = 'id-tag';

Offline

 

#12 2012-05-10 13:56:10

psli
Member
2012-04-27
18

Re: Problems with Psli-BingMaps

OK, I have a meeting starting at 2pm, i must go.

But.

I think i found how to access JS file with your configuration. Obvsiouly when i try with my site, that don't work :)

I must understand how your path is created before making an upgarde that work with everyone.

I could send you by email a new version of the plugin just to try if you want.

psli

Offline

 

#13 2012-05-10 23:09:42

psli
Member
2012-04-27
18

Re: Problems with Psli-BingMaps

I just upgraded to v1.2 (with helper in Admin page).

This version 1.2 uses some advices that i got from the forum for the problem you have.
I don't have any configuration to try so if you can and do it, let me know the result ...

Thank you

Ps: You're pictures are great ! Are they all from germany ?

psli

Offline

 

#14 2012-05-11 07:40:28

alexpreyer
Member
Hammelburg (Ger)
2009-11-27
179

Re: Problems with Psli-BingMaps

Sorry, yesterday I had no more time to test further.

Ok, I installed the update and on adminpage all is looking perfect. I also see the map there.
But on the gallerypage the issue is the same. Yesterday I deactivated some plugins to see if there's a problem, but nothing.
If you want I can give you access to the adminpage of my piwigo installation. Maybe this can help you.

P.S. Thanks for your compliment. Yes this pictueres are 90-95% from germany. Most of them taken around the town I live.

Offline

 

#15 2012-05-11 09:47:54

psli
Member
2012-04-27
18

Re: Problems with Psli-BingMaps

Hi,

Thank you for your answer.
If you can give me an administrator access, that will help me to understand your configuration.
Obvisouly, I won't touch anything.

It's really weird as i have asked for this matter on the engine forum and piwigo members showed me how to pass thru this ...

psli

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact