Recent Updates Toggle Comment Threads | Keyboard Shortcuts

  • aldolat 6:58 pm on June 8, 2013 Permalink | Reply
    Tags: ,   

    New features in Posts in Sidebar 

    This is a Saturday of updates! After having released v.2.2 of Private Content plugin, now I’m proud to introduce you the just-cooked 1.8 version of Posts in Sidebar. Just last week I released the v1.7 with important new features like the possibility to show not only posts but also pages and custom post types. This week you’ll get the last missing features and this is the changelog for the new v1.8 of Posts in Sidebar:

    • New: added post format as option to get posts.
    • New: added option for link to custom post type archive.
    • New: added option for link to post format archive.
    • Other minor changes.

    Only one function is now missing: grab posts using custom taxonomies. Hope to finish this work soon.

    Enjoy! :)

     
  • aldolat 4:44 pm on June 8, 2013 Permalink | Reply
    Tags: ,   

    Private content reaches v2.2 

    One of the frequently asked questions the users of my plugin Private Content do is the following:

    Is there a way to display an alternate text to readers that haven’t the rights to read the hidden text

    I’ve always answered that this plugin was designed to show only a simple note to the subscribers/collaborators, leaving other members/visitors out of any type of message. But often a developer can’t imagine all the possible usages a piece of software can encounter. This plugin, clearly, is used not only to display private notes/messages to some people, but also to display an alternative text if these readers haven’t the rights to read that note/message.

    I’ve been always opposed to add this feature, but today I added it to Private Content. So, if you asked for it, update the plugin to version 2.2.

    Usage

    As usual write the to-be-hidden sentence wrapped into the shortcode, but add option “alt”, for example:

    In this way Authors (and higher members, like Editors and Amministrators) will read this, while lower members will read only “Sorry, but you have not rights to read this.”.

    Enjoy!

     
  • aldolat 10:49 pm on June 6, 2013 Permalink | Reply
    Tags: ,   

    Almost finished editing v1.8 of Posts in Sidebar plugin. Hope to release it on this weekend. :)

     
  • aldolat 4:58 pm on June 1, 2013 Permalink | Reply
    Tags: ,   

    Posts in Sidebar 1.7 

    The Posts in Sidebar plugin has just been updated to version 1.7 and now it sports a series of changes. From day to day I receive requests both in the forum and via email from users who launch their idea. I think this is a very good thing for developers. The plugin is constantly evolving, also thanks to these suggestions.

    The new version has this changelog:

    1) The plugin now can display not only posts, but also pages and custom post types.
    2) Now the author of the post can be displayed next to the date and comments.
    3) The content of the posts can now be displayed as “Full content”, meaning that the post is displayed as in a single post page (useful for a video-only posts, for example).
    4) The link at the end of the excerpt can now be displayed as “Read more…” (or whatever the user wants).
    5) Added French translation, thanks to Thérèse Lachance.

    Many other changes have been done. What remains to do is:

    1) retrieve posts via posts format;
    2) retrieve posts via custom taxonomies.

    I hope to have the time to do that. :)

     
  • aldolat 7:43 pm on February 20, 2013 Permalink | Reply
    Tags: ,   

    Private content 2.1 

    A new version of my Private content plugin has just been released! The new 2.1 version lets you show a note only to visitors and hide it to other users. So the shortcode now accepts this “role”:

    As you probably know, there isn’t a role for Visitors. So, to accomplish this, the plugin makes a check if the user is logged in: if not, the note will be displayed and hidden to other logged-in users (Subscribers, Authors, and so on). Here the new code:

    As usual, the p element has an its own class, so you can stylize it as you like via CSS.

    This new feature has been added thanks to Jacki, a reader of my Italian blog, who left a comment with this new idea.

     
    • Jacki 11:45 pm on February 20, 2013 Permalink | Reply

      Private content 2.1 works perfectly ! Merci beaucoup, aldolat.

  • aldolat 7:41 am on February 16, 2013 Permalink | Reply
    Tags: Delicious Readings,   

    Delicious Readings plugin goes 2.0 

    Yesterday I pushed to the WordPress repository a new version of my plugin Delicious Readings. If you don’t know this plugin, Delicious Readings lets you publish on your blog a collection of Delicious bookmarks stored with a particular tagged of your choice. So, for example, you can publish your bookmarks stored under “readings” or “pets” or “sushi” and so on.

    The new version 2.0 adds the shortcode, in order to publish this list on a page or on a post. The idea comes from a user on the WordPress forums, who asked if there were the possibility to publish this list on a page rather than on a widget in the sidebar (already full of stuff). I was replying that he could call the plugin’s main function directly in the PHP code, but I thought it were better to add a shortcode for use in the writing panel.

    Usage as shortcode

    The shortcode accepts the full range of options of the core function. The only mandatory option is the address of the feed. So, for example, if your username is joe and the tag is books the shortcode will be:

    The plugin will show the last 5 bookmarks by default. If you want to show 10 bookmarks, change the shortcode as follows:

    The tags aren’t displayed by default. If you want to show them, change the line in this way:

    This is the full set of options you can use (the value shown here is the default one):

     Usage as PHP function

    As I already said, you can use the plugin calling the main function directly in your PHP files:

    Make sure to check if the opening <?php and closing ?> PHP tags are needed in your code. This is the full range of options — you can obviously use only those who need change.

    The plugin is available on the WordPress repository and on GitHub.

     
  • aldolat 7:17 pm on February 10, 2013 Permalink | Reply
    Tags: ,   

    Private content 2.0 

    My plugin Private Content has been updated to 2.0 and now you have a new feature: the possibility to exclude an higher role’s user from reading a lower role’s content. In other words, when in version below 2.0 we created a note for Subscribers, the higher roles could read this notes — and also in version 2.0 it works in the same way. But now it’s possible to hide a note to an Administrator, for example, and only the targeted group of users can read it, e.g. the Authors group.

    How did I accomplish that?

    The plugin creates a new capability for each role, obviously excluding the Administrator role:

    The new capabilites are created on plugin activation and with this we are all done. But what in case of upgrading from versions below 2.0?

    In case of upgrading, the plugin performs another check:

    It looks for the presence of the capability read_ubn_editor_notes and, if it’s not in the database, the plugin will run the function for adding the new capabilities.

    As usual, I’ve added the uninstall.php file to delete the new capabilities from the database: we all like to have and keep it clean. Something that every plugin develper should do.

    This plugin is hosted in the WordPress repository, but you can find the development version on GitHub. Forks are welcome! :)

     
  • aldolat 8:17 pm on February 9, 2013 Permalink | Reply  

    Hello, World! 

    Hello World! This is my dev site, a corner where I’ll write about my development updates. I’m not a hardcore code worker, but I love to write some lines when I have the time.

    WordPress catched all my interest and I wrote a few plugins released in the WP repository: you can find all in the sidebar under “Projects”.

    Hope you can find something useful and enjoy using them.

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
shift + esc
cancel
%d bloggers like this: