Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
I went through the tutorial and tried to find something on here to help me but no luck.

I built a blog at http://www.hightidecreative.com/journal/


They ar trying to add
Code: Select all
<iframe src="https://www.haikudeck.com/e/xEruvwQ3VG/?isUrlHashEnabled=false&isPreviewEnabled=false&isHeaderVisible=false" width="640" height="541" frameborder="0" marginheight="0" marginwidth="0"></iframe>


It only displays the code.

I created a short code:

Code: Select all
// IFrame shortcode
   // Usage: [iframe src="http://www.somesite.com/" width="100" height="100" scrolling="yes" frameborder="1" marginheight="2"]
   $FUNCS->register_shortcode( 'iframe', 'iframe_handler' );
   function iframe_handler( $params, $content=null ){
      global $FUNCS;

      extract( $FUNCS->get_named_vars(array(
         'src' => '',
         'width' => '100%',
         'height' => '500',         
         'scrolling' => 'no',
         'frameborder' => '0',
         'marginheight' => '0'
      ), $params) );

      $html =<<<EOS
      <iframe src="$src" title="" width="$width" height="$height" scrolling="$scrolling" frameborder="$frameborder" marginheight="$marginheight">
         <a href="$src" target="_blank">$src</a>
      </iframe>
EOS;
       return $html;
   }


and added the file kfunctions.php to the couch folder.

No luck still... it just displays the short code. Help please :)

Thanks
Hi,

You sure you are using cms:do_shortcodes tag to wrap the original region's output on the frontend?
<cms:do_shortcodes><cms:show my_content /></cms:do_shortcodes>
2 posts Page 1 of 1