Forums / Developer / Comment without pages intermediary

Comment without pages intermediary

Author Message

Romain Bremaud

Monday 25 October 2010 8:10:44 am

Hello everybody.

I have a little problem. On my web site I have a section current events. I would like to authorize people to post comments. I found a solution but I'm not satisfied.

I use the following code on my current_event.tpl:

{if fetch( 'content', 'access', hash( 'access', 'create',  

 'contentobject', $node,  

'contentclass_id', 'comment' ) )}  

<form method="post" action={"content/action"|ezurl}>  

<input type="hidden" value="comment" />  

<input type="hidden" value="{$node.object.main_node.node_id}" />  

<input type="hidden" value="{ezini( 'RegionalSettings', 'ContentObjectLocale', 'site.ini')}" />  

<input class="button new_comment" name="NewButton" value="{'New comment'|i18n( 'design/ezwebin/full/article' )}" />  

  </form>  

{/if}

I would like to post my new comment directly on the current events page without pass by a intermediate page.

Somebody have an idea?

Thanks

Romain Bremaud
Les clefs du net

Ivo Lukac

Monday 25 October 2010 8:39:47 am

Did you try ezcomments extensions?

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Heath

Monday 25 October 2010 9:09:33 am

You may also do this simply with the ezjscore extension and some custom javascript to submit comments via javascript instead.

Cheers,

Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org