We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

NEW Plugin - Limited Voice…

Development and Programming

Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Okay a quick one this one and really just a sort of update to a plugin I already created over here.

This plugin now allows you to limit the amount of comments per entry using a limit parameter.

Usage V1.0.0
{exp:limited_voice mode="url_title" limit="2"} or {exp:limited_voice mode="entry_id" limit="2"}

{if already_spoken}
Sorry you have already posted a comment and so are not allowed to post another!
{if:else}
{exp:comment:form preview="{my_template_group}/comment_preview"}
Standard comment form code goes in here
{/exp:comment:form}
{/if}

{/exp:limited_voice}
Required Parameters mode=“url_title” mode=“entry_id” limit=”2” set to whatever limit you wish to place on the tag url_title or entry_id must (at the moment) be the last segment of the URL for this to work properly.

Hope that helps someone somewhere.

Best wishes,

Mark

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
16 years ago
Sean C. Smith's avatar Sean C. Smith

This is brilliant.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen
This is brilliant.

Why, thank-you kind sir 😉

Hope it’s of use.

Best wishes,

Mark

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.