Maps in articles problem

Phoca Maps - displaying maps in Joomla! CMS
Alexhor
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 03 May 2012, 10:49

Maps in articles problem

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Maps in articles problem

Post by Jan »

Hi, yes, you should try to find the problem, because most of all plugins uses this sign --> |

Jan
If you find Phoca extensions useful, please support the project
Post Reply