Can't embed forum. testing on bare site, still nothing.
Tried on Vanilla 2.1.5 and 2.1.6
I have used the Embed Forum feature (not plugin) before with no problem, works flawless.... now I can't get it to work at all.
To make sure nothing else is interfering I have a fresh install of Vanilla (tried both 2.1.5 and 2.1.6 ) on my hosting account.
1. First thing I did after instal is changed theme to embed friendly.
2. Next I enabled embedding and copied the universal code to a blank html page. (NOT using the embed plugin).
3. I test that page out and nothing, only Vanilla logo loads.
Here is the Vanilla forum: fordevpurp.comule.com/vanilla/
Here is the embed page. fordevpurp.comule.com/test.html
What could possibly be going on?
I tried everything for hours including searches to see if someone else encountered this. I'm stuck.
Comments
Your forum returns 403 forbidden, you are not embedding fordevpurp.comule.com/vanilla/, but this:
http://preserveearth.net/vanilla/index.php?p=/&remote=http://fordevpurp.comule.com/test.html&locale=
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Thanks for pointing it out. Help out but still leaves me searching.
Looking at my html file - I copied and pasted straight from the Dashboard/EmbedForum/UniversalCode screen, the only other code is inserted by hosting company "Hosting24 Analytics Code":
<script type="text/javascript" src="http://preserveearth.net/vanilla/js/embed.js"></script> <noscript>Please enable JavaScript to view the <a href="http://vanillaforums.com/?ref_noscript">discussions powered by Vanilla.</a></noscript> <div class="vanilla-credit"><a class="vanilla-anchor" href="http://vanillaforums.com">Discussions by <span class="vanilla-logo">Vanilla</span></a></div> <!-- Hosting24 Analytics Code --> <script type="text/javascript" src="http://stats.hosting24.com/count.php"></script> <!-- End Of Analytics Code -->
I'll look into it some more
Here is the Vanilla forum: fordevpurp.comule.com/vanilla/
Here is the RIGHT embed page:
fordevpurp.comule.com/test2.html
< This instead of 2nd link in original post.
The code is copied from Dashboard:
<script type="text/javascript" src="http://fordevpurp.comule.com/vanilla/index.php?p=/js/embed.js"></script> <noscript>Please enable JavaScript to view the <a href="http://vanillaforums.com/?ref_noscript">discussions powered by Vanilla.</a></noscript> <div class="vanilla-credit"><a class="vanilla-anchor" href="http://vanillaforums.com">Discussions by <span class="vanilla-logo">Vanilla</span></a></div>
This is wrong, http://fordevpurp.comule.com/vanilla/index.php?p=/js/embed.js doesn't exist.
Change it to:
<script type="text/javascript" src="http://fordevpurp.comule.com/vanilla/js/embed.js"></script> <noscript>Please enable JavaScript to view the <a href="http://vanillaforums.com/?ref_noscript">discussions powered by Vanilla.</a></noscript> <div class="vanilla-credit"><a class="vanilla-anchor" href="http://vanillaforums.com">Discussions by <span class="vanilla-logo">Vanilla</span></a></div>
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
I swear I copy and pasted. Took a look back into Dashboard and sure enough it displays the faulty code. Tried yours and it worked perfectly. I will watch out for that next time. Thanks @Bleistivt
Looks like you may have found a bug.
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Maybe. Still looking into it, it's not persistent.
I can confirm that this bug still exists, on the latest version i downloaded yesterday. When i changed the script link to the format that R08 suggested, i started working perfectly. Thanks!
@kneidels The fix was applied to the master branch and hasn't been backported to 2.1. You can either correct your embed code manually (using this discussion as a guide, or you can apply the patch as outlined here: https://github.com/vanilla/vanilla/pull/2348/files
This fix is in 2.2.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.