unknown tag «embed»

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
redigo
Forum Members
Forum Members
Posts: 80
Joined: Mon Nov 23, 2009 3:33 pm

unknown tag «embed»

Post by redigo »

Hallo
I try to use the «embed»-Tag, according to your instructions. (CMSMS 2.5.2)
Calling the site with {embed header=true} in the page template and
{embed url="https://xxxx"} in the content area of the page I get the following error report:

Code: Select all

Syntax error in template "tpl_head:tpl_head:30"  on line 43 "{embed header=true}" unknown tag "embed"
Any help warmely welcome!
redigo
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Location: Maidenhead, UK
Contact:

Re: unknown tag «embed»

Post by paulbaker »

Hmmm, I get the same:
ERROR: at line 2 in file /home/cthuk/public_html/uglw/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:
Message:

Syntax error in template "content:content:content_en" on line 2 "
{embed url="http://www.cmsmadesimple.org"}

" unknown tag "embed"
I followed the instructions at
https://docs.cmsmadesimple.org/tags/cmsms-tags/embed

CMSMS 2.2.5.

Anyone else get the same?
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
redigo
Forum Members
Forum Members
Posts: 80
Joined: Mon Nov 23, 2009 3:33 pm

Re: unknown tag «embed»

Post by redigo »

Anyone else get the same?
Anyone here who knows how to fix this bug? ;-)
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: unknown tag «embed»

Post by calguy1000 »

The {embed} tag was removed from CMSMS 2+ years ago.
We removed that erroneous documentation page yesterday.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
redigo
Forum Members
Forum Members
Posts: 80
Joined: Mon Nov 23, 2009 3:33 pm

Re: unknown tag «embed»

Post by redigo »

Aha! What does that mean? No embedding with CMSMS 2+ anymore? Or has {embed} been replaced by something better?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: unknown tag «embed»

Post by calguy1000 »

All the {embed} tag did was create an iframe. and it only handled the simplest of conditions, with some really bad javascript. and really didn't save much effort. It was deemed superfluous and we decided that it did not need to be in the core.

iframes are considered evil these days anyways with their security concerns etc, etc.

I mean: It's not that hard to add <__iframe src="some_url"></__iframe> into a template vs. the {embed} tag.

But if you really want the embed tag, copy it from an older version into your assets/plugins directory, and you can maintain it/enhance it yourself.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: unknown tag «embed»

Post by calguy1000 »

follow up: In most cases iframes are not needed... You could use the {fetch} tag just as well... or ajax to load html from another source.

Code: Select all

<div id="something"></div>
<__script__>
$(function(){
    $('#something').load( 'https://www.somewebsite.com/path' );
});
</__script>
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
redigo
Forum Members
Forum Members
Posts: 80
Joined: Mon Nov 23, 2009 3:33 pm

Re: unknown tag «embed»

Post by redigo »

Thanks a lot, Callguy, this is realy good support. I'll try and find the best solution.
Best regards
redigo
User avatar
master3395
Forum Members
Forum Members
Posts: 94
Joined: Mon Mar 30, 2015 7:13 am
Location: Norway

Re: unknown tag «embed»

Post by master3395 »

I use the fetch on a test page, works perfectly

Code: Select all

{fetch file='https://www.cmsmadesimple.org'}
Dave59
Forum Members
Forum Members
Posts: 61
Joined: Sun Dec 27, 2009 5:18 pm

Re: unknown tag «embed»

Post by Dave59 »

Hi
Bad or not I have an Iframe calling up some forms. The Iframe no longer works.
I tried the fetch as suggested above but got
URI 'https://www.cmsmadesimple.org' not allowed by security setting.
How do I get may remote forms to work again please?
If I give the url into a browser they work with no problem. They just no longer show up on my contact pages.
Would be great full for some help please.
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1629
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: unknown tag «embed»

Post by DIGI3 »

For {fetch} to work you need to allow Permissive Smarty in your config.php: https://docs.cmsmadesimple.org/configur ... ive_smarty
If a simple html iframe isn't working, the only thing I could think of would be that you're using a wysiwyg editor to include the tag. If that's the case, try disabling wysiwyg for that page. If that's not the issue, then it's probably not related to cmsms, but perhaps your site's security settings.
Not getting the answer you need? CMSMS support options
Dave59
Forum Members
Forum Members
Posts: 61
Joined: Sun Dec 27, 2009 5:18 pm

Re: unknown tag «embed»

Post by Dave59 »

Hi
WYSIWYG is turned off for this page.
Do you mean my CMSMS site settings or my form handling site?
I managed to get CMSMS site to appear in an Iframe after I changed the php config as you suggested, so this indicates my server. I installed a copy of my form software on the same server and under the same domain as the CMSMS installation this has https. just used a sub folder forms.
Checked it in the browser and it worked fine.
Still ignored by the system. no Iframe shows on the page and the div is empty when I look in Inspect (Chrome).
I am lost my other installations that I admit need updating work OK. This is 2.2.5. It was working ok until recently and we changed nothing??
Iframe is included as <__iframe src="https:/plasma-treating.com/forms/plasma-technology/ptform.html" width="360" height="650" frameborder="0">
</__iframe>
Thanks for your reply
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1629
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: unknown tag «embed»

Post by DIGI3 »

Can you show us the publicly facing page with the iframe tag? This isn't making any sense to me, CMSMS doesn't parse your html (when there's no wysiwyg) so something else is going on.
Not getting the answer you need? CMSMS support options
Dave59
Forum Members
Forum Members
Posts: 61
Joined: Sun Dec 27, 2009 5:18 pm

Re: unknown tag «embed»

Post by Dave59 »

Yes it under https://www.plasmatechnology.de/kontakt.html.
We are in the process of completely redoing this site.
Thanks for your help.
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm
Location: Nimbin, Australia

Re: unknown tag «embed»

Post by rotezecke »

I get a
SEC_ERROR_REVOKED_CERTIFICATE
. you need to fix that certificate. alternatively, you can load the iframe over http, but only if your page itself is called via http.
Post Reply

Return to “Modules/Add-Ons”