AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Solved] WpForo compatibility with map plugin based on Leaflet.js

5 Posts
2 Users
1 Reactions
1,352 Views
Posts: 29
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@moderworks)
Eminent Member
Joined: 7 years ago
[#19174]

Hello,

Please help me solve the problem with adding maps to the forum topic. Conducted experiments with several plugins, wpforo cuts json. Example, wordpress.org/plugins/waymark plugin

The map is added using a shortcode.

Code in the database generated by the plugin:

{"type":"FeatureCollection","features":[{"geometry":{"type":"Point","coordinates":[-68.74923,51.38436]},"type":"Feature","properties":{"type":"photo"}}]}

This is how the code is displayed on WordPress pages:

waymark_viewer_32b6d7.load_json({"type":"FeatureCollection","features":[{"geometry":{"type":"Point","coordinates":[-68.74923,51.38436]},"type":"Feature","properties":{"type":"photo"}}]});

Deserialized wpforo:

waymark_viewer_32b6d7.load_json({"type"[-68.74923,51.38436]},"type""photo"}}]});

Is it possible to solve this problem without compromising the security of the forum, any recommendations?


4 Replies
Posts: 29
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@moderworks)
Eminent Member
Joined: 7 years ago

Screenshot

 Screenshot 1

Posts: 29
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@moderworks)
Eminent Member
Joined: 7 years ago

Screenshot

 Screenshot 2

Posts: 29
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@moderworks)
Eminent Member
Joined: 7 years ago

The question was solved with the help of:

if( WPF()->current_object['topicid'] == ) {
echo do_shortcode( '[]' );
};

wpforo is good)


1 Reply
Chris
(@chris)
Joined: 5 years ago

Famed Member
Posts: 3609
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

Hi @moderworks,

Thank you for sharing with us your results, I'm glad to know that everything worked for you


Share: