WordPress plugin: Attending Users

Description: As web site owner, Attending Users will help you in adding an attending list to the bottom of your posts. Registered users can click on the Submit button of the list in order to have their names added or removed. User names act as author page links, no matter how you have set your Permalinks.

Install:

1. Download the latest version attending-users.zip (59kb) (v. 1.0)
2. Extract it in the /wp-content/plugins/ directory
3. Activate the plugin through the ‘Plugins’ menu in WordPress
4. Go to Settings > Att Users Settings and create your first title

Usage: After you install the plugin, you can go to the settings page and change them to your like. In the Settings page you can add support for different content types (supports custom content types), add new titles to chose from when creating attending lists, change the labels of buttons (ex. Submit, unsubscribe…). When done with settings, you can go on to create a new post or edit existing one. A new meta-box will be present (meta-box, for example adding tags, categories) called Attending List. From that meta-box you can chose a title for your list. When the post is saved/published the list will be added at the bottom of the page. To remove already created list – select the empty option for title.

That’s the meta-box where you add a list to a post

Views:

– Not registered user will see the list and message asking them to login or register if they want to add their name as well. The message can be customized from Settings page

– Registered user who is not added to the list will see a button saying Submit. After clicking the button the user name will be added.

– Registered user who is added to the list will see a button saying unsubscribe. The name of that button can be changed from the Settings page.

What should you know more?

If a user has both First and Last name added to his profile, than both of them will be presented on a list. If one of those names is not filled in, than the login name is used. The idea is to keep all names on the list unique.

The plugin cleans any traces it can leave in your database when deleted.

The plugin will work if you have set a custom database prefix.

The plugin has a Class with unique name. By doing so, I have reduced the chance of conflict with functions from other plugins.

Every function starts with a comment explaining what it is supposed to do.

There is plugin version defined in the code, which will make it easier for further updates.

Incompatibility: Attending Users doesn’t work as expected if Like plugin is active. The result of incompatibility is in adding twice the user name to a list. I’ve tried my best to find a solution, but without success. For those of you who use Like plugin and would like to use Attending Users – please, try Simple Social Button. Please report if you find any other plugins causing problems.

That’s how the list looks like when created

 List of posts where user has clicked Attend on author’s template

At the end of the plugin, I’ve shared few lines of code (commented out) that can improve your author’s template. That code will unlock the feature of listing all posts where a user has clicked Attend. Copy the code and paste it right before the loop of your author.php file. I couldn’t find a proper hook to make this code as default part of the plugin.

Feedback: This is my first plugin, don’t expect it to be perfect, but please help me make it better. If you see any problems caused by the code, if you want more freedom, more options – let me know.

Attending users was created in order to meet certain requirements in building Open Positive Media (http://openom.eu/). I was inspired by Simple Event Attendance (SEATT), which has similar functionality, you might want to check it out.

Settings page, where you can define titles, add supp

Current status: The plugin was completed and approved for submission at WordPress.org in January 2012. Since then, I haven’t been testing and updating it. It hasn’t been tested with Multisite. Yet, if there is enough interest, I’m ready to get back on it’s development.

Download: attending-users.zip (59kb)

See on WordPress.org

3 Comments

  1. menian

    Go to Settings – > Att Users Settings and then write the name of your custom post type in Add Post Type Support. Under that field you can see what post types are supported at the moment. Post and page are added by default.

  2. Fernando

    Hi Menian

    Cool and simple plugin you developed here 🙂 Unfortunately i’m facing problems with the attendance list: for some reason sometimes an attending user appears several times on the same list of one event (after clicking only once). Do you have any idea why this could happen? It looks really weird. (btw: i tested it myself, http://sturz.zhdk.ch/events/event/zak-3-treffen/)

    Kind regards and thanks for a reply

    Fer

Leave a Reply

Your email address will not be published. Required fields are marked *