Topic-icon Comments and hwdVideoShare

Active Subscriptions:

None
14 years 5 months ago #17593 by tomŠt
Hi, me again :)

I have one more question. I want to put JFBCComments in hwdVideoshare template but i get this error:

Fatal error: Smarty error: [in video_player.tpl line 96]: syntax error: unrecognized tag 'JFBCComments' (Smarty_Compiler.class.php, line 590) in /..../administrator/components/com_hwdvideoshare/libraries/smarty/Smarty.class.php on line 1093

I have done this:

{JFBCComments href=http://slorapfan.info width=550 num_posts=10 colorscheme=dark}

{if $print_comments}


{$smarty.const._HWDVIDS_TITLE_VIDCOMMS}

{$videoplayer->comments}

{/if}


Just put the JFB comments tag in my *.tpl file. What was i doing wrong?
The topic has been locked.
Support Specialist
14 years 5 months ago #17596 by alzander
Replied by alzander on topic Comments and hwdVideoShare
Tomaž,
I'm honestly not sure. We've never used smarty templates before. There must be some way to escape the squiggly characters {} so that they aren't interpreted as a command by the Smarty template system, but I don't know how. Basically, you need the Smarty template to ignore the {} marks and simply show them on the page. Once that's done, the JFBCSystem plugin will detect our tags and properly translate them.

Hope that helps, but if you still can't get it, let us know, and we can try to do some research.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #17603 by tomŠt
Replied by tomŠt on topic Comments and hwdVideoShare
Have done some searching for Smarty templates to ignore brackets and javascript and the result is:

If you put the javascript or JFBCComments between brackets, you must put it inside this and it works:

{literal}
{JFBCComments}
{/literal}

:)

Thanks for the heads up!
The topic has been locked.
Support Specialist
14 years 5 months ago #17610 by alzander
Replied by alzander on topic Comments and hwdVideoShare
Awesome! We've heard of this issue with the Smarty template system that some extensions use, but had never investigated further.. most users, after we post the above suggestion, are never heard from again. I've added your findings to our common support questions area so that we (and others) can find that info in the future as well:
www.sourcecoast.com/jfbconnect/docs/comm...ort-questions#smarty

Thanks again for the feedback,
Alex
The topic has been locked.