Bookmarks

Bookmarks

Attendees/User can bookmark events and organizer can bookmark attendees/user using Bookmarks Plugin. Only logged in users can bookmarks. User can give an note while bookmark and this note is optional.

 

Installation

You can install this plugin same way as installing the WP Event Manager so please refer installation guide of the WP Event Manager or refer to this Installing Plugins Guide.

During the plugin activation process, plugin will create one new database table called “event_manager_bookmarks”. if use has set prefix $wpdb->prefix, then it will use in table name as prefix. This table will store user bookmark data.

 

The Shortcode Setup

Once the plugin installed and activated, there are no need to do extra settings. Create a new page, name it something along the lines of “My Bookmarks” or “My Event Bookmarks” and then inside the content area add the shortcode:

It is best to insert the shortcode into the ‘text’ view of the visual editor to ensure it gets formatted correctly.

The Shortcode Setup

 

The [event_manager_my_bookmarks] shortcode generate listing a users bookmarked (events and attendees). Each bookmark links to the event/attendee in table. User can also edit/update and delete the bookmark details.

 

Bookmark Form

If user is logged in, visiting a event page or attendee profile (if you have the sell ticket plugin installed) will show a bookmark box at the top of the listing. This will look something like:

Bookmark Form

 

Clicking on this button, it will open the add bookmark form. User can optionally add a note for the bookmark and save it:

Bookmark Form

 

After bookmarking, this event page or attendee page will displayed “This Event is bookmarked!” or “This Attendee is bookmarked!”.:

Bookmark Form

 

Bookmark Form

 

Bookmark Form

 

Advanced: Controlling/Adjusting bookmark button and bookmark form place

The bookmark form is hooked into the event page after the event meta place as shown below:

To remove and move to different place, you can do like this:

In General, You can use your choice of custom hook to append the form to a different place.

 

Advanced: Overriding/Customizing the templates

For overriding or customization template files can be found in the wp-event-manager-bookmarks/templates/ directory. To override a template file, first you need to create directory “wp-event-manager-bookmarks” under your theme folder and copy the template file to “/wp-content/yourtheme/wp-event-manager-bookmarks/” directory. Your theme will use all the template files from the “/wp-content/yourtheme/wp-event-manager-bookmarks/” directory instead of the plugin’s template file (/wp-content/plugins/wp-event-manager-bookmarks/).

  • my-bookmarks.php template file lists the user’s bookmarks.
  • bookmark-form.php template file which controls the bookmark form display on events and attendee page.

Remember: if you have overrided template file and plugin frequently updating then you need to sync template file with new updates from the plugin’s template file for better functionality and new features.