Page 1 of 1

Cms 2.1.2 embed tag

Posted: Fri Mar 11, 2016 9:02 am
by NsptDevil
Hi!

New install - busy moving html site . . .
One page have a external page display.
According to http://docs.cmsmadesimple.org/tags/cmsms-tags/embed:

Error: at line 1 in file /home/vdwesthu/public_html/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:
Message:
Syntax error in template "content:content_en" on line 1 "
{embed url=http://www.domain.org}
" unknown tag "embed"


-I tried various suggestions - don't seem to get help on the embed tag specifically to CMSMS 2.
-I do not have a function.embed.php in my public_html/admin/plugins as mentioned somewhere else?
-Apprentice knowledge applicable . . . ???

Please explain or refer, how to get a external page within a CMSMS page.


System Information:
----------------------------------------------

Cms Version: 2.1.2

Installed Modules:

AdminSearch: 1.0
CMSContentManager: 1.1
DesignManager: 1.1.1
FileManager: 1.5.2
Gallery: 2.1
ModuleManager: 2.0.2
Navigator: 1.0.2
News: 2.50.4
Search: 1.50.2
TinyMCE: 3.1.2


Config Information:

php_memory_limit:
max_upload_size: 2000000
url_rewriting: none
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: America/New_York
permissive_smarty: false


Php Information:

phpversion: 5.6.18
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 32767
E_STRICT: 2048
E_DEPRECATED: 8192
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: 30
register_globals: Off (False)
output_buffering: 4096
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: /tmp (0700)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On


Performance Information:

allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
smarty_cache_udt: Off (False)
auto_clear_cache_age: On (True)

Server Information:

Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 2.6.32-604.16.2.lve1.3.54.el6.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.45
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable


Permission Information:

tmp: /home/vdwesthu/public_html/tmp (0755)
tmp_cache: /home/vdwesthu/public_html/tmp/cache (0755)
templates_c: /home/vdwesthu/public_html/tmp/templates_c (0755)
modules: /home/vdwesthu/public_html/modules (0755)
uploads: /home/vdwesthu/public_html/uploads (0755)
File Creation Mask (umask): /home/vdwesthu/public_html/tmp/cache (0755)
config_file: 0444

----------------------------------------------

Re: Cms 2.1.2 embed tag

Posted: Sun Mar 13, 2016 9:05 pm
by Dr.CSS
Did you do the embed header part..?

Re: Cms 2.1.2 embed tag

Posted: Mon Mar 14, 2016 5:28 am
by NsptDevil
I added {embed header=true} into the metadata section in the options tab of a content page.

Re: Cms 2.1.2 embed tag

Posted: Mon Mar 14, 2016 9:17 am
by velden
Well, if the tag isn't in the install (and it is not in my test setup) you can't use it.

This might not be helpful but trying different parameters and such on a non-existent tag is kind of waste.

Re: Cms 2.1.2 embed tag

Posted: Mon Mar 14, 2016 11:06 am
by NsptDevil
velden wrote:Well, if the tag isn't in the install (and it is not in my test setup) you can't use it.

This might not be helpful but trying different parameters and such on a non-existent tag is kind of waste.

YES!!
That is what I thought and mentioned:
"-I do not have a function.embed.php in my public_html/admin/plugins as mentioned somewhere else?"
I tried a CMSMS ver.1.x function.embed.php in the plugin dir but no luck.
Any solution please?
Either a ver2 function.embed.php download/install or another way?

Re: Cms 2.1.2 embed tag

Posted: Mon Mar 14, 2016 12:04 pm
by chrisbt
I'm not sure what you are trying to embed but maybe something as simple as a UDT called: embed

Code: Select all

// embed UDT
if (isset($params['url']))
    {
        $url = trim($params['url']);

        return '<__iframe src="$url" width:99%;></__iframe>';
    }
style the iframe using CSS, ref: http://www.w3schools.com/tags/tag_iframe.asp
(Note: remove the __ from the iframe tags!)

Hope it helps

Re: Cms 2.1.2 embed tag

Posted: Mon Mar 14, 2016 2:46 pm
by Jeff
NsptDevil wrote:I do not have a function.embed.php in my public_html/admin/plugins/
It should probably go in public_html/plugins/ do that it would be available to be placed in FE pages.

Re: Cms 2.1.2 embed tag

Posted: Tue Mar 15, 2016 5:36 am
by NsptDevil
Thanks for your help!
Unfortunately I made a decision - CMSMS is not doing it for me.