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 - Maximum Posts Reached plugin…

Development and Programming

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

Hiya,

Yep I will be adding to the plugin when I can figure out how to do it and also get the time so keep your eyes peeled! 😊

Is everything working well for you now though?

Best wishes,

Mark

       
sajwal's avatar
sajwal
52 posts
17 years ago
sajwal's avatar sajwal

Yes buddy,,, just figuring out how to write the tag , so that

when max post is reached it automatically shows the edit form instead of directing to the error page

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

Hi everyone,

Thanks to help from Mr Wilson and Andy (ExpressionEngineer) the plugin has now been updated. Instead of embedding a template you can now use a conditional variable to show information for both when the user is allowed to post and when they aren’t.

New updated version available from first post in this thread and have updated the instructions there to reflect this.

Best wishes,

Mark

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

Hi Victor,

Thank you! I wouldn’t say that much skill really as they are only quite simple plugins but they are providing solutions to real life problems for users here so that does make me feel quite good about myself. I do need to learn more about PHP and the EE code-base as the plugins could have probably been written with a little less code but they really are quite simple anyway so shouldn’t really cause any problems.

No problems with the suggestion integration. It was a very good suggestion / reminder. I meant to do that actually but got so stuck into getting the plugin to work properly that I forgot to add in those parameters.

Speak to you again soon.

Best wishes,

Mark

       
sajwal's avatar
sajwal
52 posts
17 years ago
sajwal's avatar sajwal

You must get a real treat buddy, thanks for the update …. I am sure to try the plugin tonight and will be back for more appreciations i hope….

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

Hiya sajwal,

Hmm I wonder what that treat will be. Is Father Christmas going to bring it at the end of this year or am I looking at something sooner? 😊

Just glad to have been able to give something back to this fantastic community, that is all I ever want to do.

Best wishes,

Mark

       
Jermaine M's avatar
Jermaine M
20 posts
17 years ago
Jermaine M's avatar Jermaine M

How does this plugin handle expired posts? If a person has 1 post and it is expired can they still post if maximum_posts_reached is set to 1?

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

There’s always one who spots the fatal flaw in my designs!! 😉

Well not really a flaw.

The plugin is really just meant as a way to limit the amount of posts a person can submit. I created this for use on a site where the person would only ever have a certain amount of posts available and no more. It was then up to them whether or not they showed all of these allowed posts or just certain ones.

I can definitely see where you are coming from on this though and I may look at making a different version of the plugin which can handle this if I get the time. Mine was just made though as the users can re-utilise existing entries if they wanted to get rid of an old one thus in effect expiring it.

If I do get the time though I will think of more functionality that can be added to this and expand on it a bit.

Best wishes,

Mark

       
Jermaine M's avatar
Jermaine M
20 posts
17 years ago
Jermaine M's avatar Jermaine M

Thanks for the update. I can work around the issue by requiring individuals to delete expired posts if their limit has been reached. An updated plugin would be nice though if you can find the time 😉

       
OutofControl's avatar
OutofControl
164 posts
17 years ago
OutofControl's avatar OutofControl

Mark,

Being fairly new to EE (less than 12 months with it) I searched for a plugin like yours a few months again with no luck and then again today. I was about to start learning how to make plugins for EE. Being a programmer it doesn’t look to hard to do. Anyhow, I just wanted to say your plugin is greatly appreciated over here. We are setting up a small directory where each member can only post one item for themselves and then update it whenever they want. Thank you for your time and for sharing.

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

Hiya,

Thanks for the kind words. Glad this is of some use to you. It was originally made for a site I was creating but I thought that I would release it so that anyone can use it. Do you have a link to the site you mention? If you can’t release it then never-mind but it’s just nice sometimes to see what gets created with plugins and extensions that you create 😉

Glad you have working what you need though. I would mention however that depending on what you are doing you may need to look into the EE license terms because if you are creating any kind of social network site then you may be breaking the terms. Don’t know what you are doing with it though so just thought I would mention it just in case.

Best wishes,

Mark

       
OutofControl's avatar
OutofControl
164 posts
17 years ago
OutofControl's avatar OutofControl

We are not doing a Social Network site as such, but I will revisit this and confirm with EE. Thank you for pointing that out. I can’t give a link yet as I haven’t implemented it entirely. As long as I am within my rights with EE and once I implement it I would be happy to share the link.

PS: The only restriction I see in the license (we own commercial licenses for our commercial sites and non-profit for our non-profit sites), is that we are restricted from “Us[ing] the Software as the basis of a hosted weblogging service, or to provide hosting services to others.” Which in our case is not what we are intending or implying to offer. I emailed sales to confirm all the same, and will post the response here as I think it is on topic for your plugin. Thanks again for pointing this out.

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

Hiya. That would be great thanks! Always nice to see what people come up with using something I have written 😉

Best wishes with all the coding 😊

Best wishes,

Mark

       
DevServe's avatar
DevServe
65 posts
16 years ago
DevServe's avatar DevServe
{exp:maximum_posts_reached entries="2"}

It would be nice to add another parameter to set the range.

For example,

{exp:maximum_posts_reached entries="1" range="s:120"}

Can only post 1 time in 2 minutes.

{exp:maximum_posts_reached entries="3" range="m:30"}

Can only post 3 times in 30 minutes

{exp:maximum_posts_reached entries="1" range="d:365"}

Can only post 1 time a year

Or maybe a way to limit the posts within a range of dates too. That would be cool.

😊

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

Hiya,

Sorry not to have posted to this sooner but have been very busy lately with one thing or another.

That does seem like a really nice idea but I’m not too sure how easy it would be to implement or more over easy for me to implement!! 😉

If anyone wants to have a go at adding this into the plugin for themselves then please do feel free to do so and just upload whatever you do to this thread here so that everyone else can see it. Myself personally I don’t mind if anyone takes the plugins I have created and adds / modifies them in any way they wish to do so. All I ask is for some attribution somewhere in whatever derivatives you might create and also let me know what you did and how you did it so that I can perhaps use them myself too 😉

Best wishes,

Mark

       
1 2 3 4

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.