Page 1 of 1

Maps in articles problem

Posted: 03 May 2012, 11:04
by Alexhor
Hi all,
my problem was that I was unable to use plugin code inside my articles. Whenever I entered the code, article couldn't be saved in admin area and I got unpopular "Method not implemented" error.
I checked few posts here, and found that pipe character ('|') was culprit for some reason (as someone suggested).
However, what I did based on this:
I edited phocamaps.php in plugin folder and changed the line

$parts = explode("|", $phocaMaps_parts[2]);

to

$parts = explode(",", $phocaMaps_parts[2]);

This line obviously strips out the parameters given in plugin code. I replaced "|" with ",". You can use other character if you want but be carefull. Some characters gives the same "Method not..." error, and some common characters may propably cause other problems. Comma works for me.

After that I don't use plugin code as

{phocamaps view=map|id=6}

but rather as

{phocamaps view=map,id=6}

as the comma is now parameters delimiter.

Note that I cant say what caused the error with the original plugin in the first place (it is probably not plugin itself but rather some conflict with my other plugins), but this was far simplest solution I figured out. Maybe this can help someone.
Cheers

Re: Maps in articles problem

Posted: 09 May 2012, 12:00
by Jan
Hi, yes, you should try to find the problem, because most of all plugins uses this sign --> |

Jan