FriendsOfFlarum Pages
datitisev hmmm so I am trying this out now and want to embed a mapbox map:
If you go to my page here: https://www.seekadventure.net/p/1-adventure-map
My map does not show up, but if I click the title "Adventure Map" On that page then the map pops up!
Not sure why the map isn't there on the first load...
I have a hunch that its because this code for embedding the map is supposed to go in the page head:
<script src='https://api.mapbox.com/mapbox-gl-js/v0.52.0/mapbox-gl.js'></script>
<link href='https://api.mapbox.com/mapbox-gl-js/v0.52.0/mapbox-gl.css' rel='stylesheet' />
But I just put it in the body. If this is the case can you add an option to allow us to edit the head tags on the pages html?
neogeo Please use FoF's main discussion or a new discussion in Features > Feedback to request extensions. Thanks.
jordanjay29 Was that comment meant for me? I don't see neogeo in this discussion?
MikeJones It was addressed to the person who was tagged. You're just fine.
Hi Developer,
I just installed your extension, but unfortunately when I create Page, nothing is created. That means, I give titles, the slug is created automatically and some content. But there is no page appearing in the options of this extension under Pages.
What am I doing wrong? Thank you.
AlexL777 Do you get an error? I haven't had any issues with it.
MikeJones Yeah, the javascript on the page is loaded after the page's content loads, so the only way to solve that would be to have an external page that just has the map. There's no way to check if a JS file has loaded or not, so having a field for JavaScript wouldn't solve your issue.
wow nice, thank you
Installing this app breaks my flarum. Don't know why. I'm on beta8 now. can someone help?
- Edited
This extension works on 8.1 ? because when I activated this ext. appears a red error notification.
Also I can't remove this extension (via admin or composer/terminal)
Fantastic Gents.
One question - how do you make a link appear to access the page from the front end? I'd like to add an instructions page but I'm not php equipped to add this directly onto the web page. Something like the Home | Donate | Guidelines at the top of this site would be perfect.
MikeJones In the Admin > Appearance page. Again, I do not recommend this because it will increase page load times... but I don't see any other alternative. Also, if you need further help, please create a separate discussion as it's filling this one with just support for your map embed.
thomasarnold81 Like Sijad's Links extension? FriendsOfFlarum will publish it for beta 8 soon.
- Edited
luceos This is what i See on flarum.log. I try to activate the app on my dashboard but it wont activate and says "something wrong..."
[2019-01-06 12:59:08] production.INFO: pagination {"sort":"-downloads","filter":{"is":["-flarum"]},"page":{"number":1}}
update: This issue is resolved now. Had to drop the existing Sijad tables form my db and uninstalled the old extension before reinstalling. Thanks