Hi,
First of all thanks for the plugin!
Here are some suggestions:
- allow html in the post limit reach message (e.g. for a "back to admin area" link)
- add option for displaying the "post limit reached" message on top of the admin area (similar to the "WP update available" message) not only after trying to add a new one
- add an option to not hide the add new post link (I removed the code manually) as it could be confusing that it's only removed from the all post overview page but displayed when the user is on other pages (e.g. dashboard).
Cheers,
Thomas
http://wordpress.org/extend/plugins/bainternet-posts-creation-limits/
Hi,
you can add html if you want, either directly or using one of the hooks provided.
displaying "post limit reached" message on every page would take make the plugin run his check every page and that will make it much less lightweight (maybe could be done with cacheing to database) I'll look into it.
ass for the last option I'll think about it. thanks.
as of last update you can remove the filter which causes the hiding of the links like this:
add_action('admin_footer','dont_hide',9);
function dont_hide(){
global $bapl;
remove_action('admin_footer',array($bapl,'hide_links'));
}
simply paste this in your theme's functions.php file.
Hi,
Thanks for the reply and the snippet - really appreciate it!
Cheers,
Thomas
Well, this is what I looking for too... this is really helpful.
However, I like to know can I add a html tag in the Limit Message? Because besides of displaying the limit message, I want to add link inside the message where user can click on and go to other page. (eg. member upgrade page, dashboard and etc...)
@wp_Dimmy when creating a new rule you can enter html in the message field.
oh really...got it..thanks
@Bainternet, I tried to add the html into the field, but when I save the changes, the changes is not saved and html seem filtered. Is that have to do with the length of the message text?
I just saw what you mean and i fixed the HTML issue in this quick updated version 2.3
so now you can set HTML message, And i also added a filter hook named:
bapl_limited_message_Filter which accepts the saved message and you can use that to return what ever you want.