Posted by Simon Goodchild at April 2nd, 2012
Those of your who have used WP Symposium for at least a couple of months will have been used to weekly updates, in fact it’s one of the goals of WPS to upgrade little and often, fixing bugs quickly and adding new features.
So why has there been a gap of several weeks? Let me explain.
First, sorry. It’s unusual and not my preferred way of working, but needs must. The reason being is a big change to the back-end of WP Symposium, integrating better with WordPress itself.
Second, sorry again – you may not even notice any difference, but trust me, this was a big change and a lot of hard work has gone into coding and testing. Particular, and massive thanks, to AlphaGolf – a dedicated supporter of WP Symposium without whom this change would not have happened.
Release Schedule
- The new code is currently running on the WP Symposium website, for testing purposes. As soon as it’s stable, the code will be made available as a release candidate. The version number of the release will be 12.04.21 RC1. And the name – yes, releases will have names now in true WordPress tradition – will be “AlphaGolf” in honour of this WPS user’s dedication to the cause! The plan is to make this release candidate available on 7th April, coinciding with a week away for me. I’ll be trying to avoid breaking any bones on a snowy mountain again whilst letting folk try out the release candidate.
- Although every site admin should backup their plugins and database before upgrading them, I appreciate that this doesn’t happen. I strongly and with lots of gentle persuasive hugs urge you to backup your plugins folder and database this time. (Use FTP to take a copy of your plugins, and a tool like phpMyAdmin that you’ll probably have to take a backup of your database, check with your hosting company if you’re not sure).
- On my return on 14th April (realistically a day or so after once I’ve caught up), if no serious problems that can’t be fixed have been reported, it will officially be released on 21st April.
When upgraded, WP Symposium will migrate users details from a dedicated table, to the WordPress user metadata table (see below). This must be allowed to finish. The time it takes is dependent on the number of users, typically 100 users are migrated per minute.
Please let the process finish, you should see a progress bar steadily move across your screen (rapidly if you have a small number of users):

So, what are the key changes? In addition to a number of bug fixes, and small enhancements (like A-Z on member directory), the two significant changes are to the use of the database.
WPS configuration table
Configuration options used to be in the wp_symposium_config table (wp_ prefix may differ on your installation of WordPress). This upgrade copies those configuration settings into the wp_options table – the core WordPress options table. Why has this been done? To reduce the number of WPS tables, and make the plugin more “WordPress standard”. It’s where site admin’s will expect to find configuration options.
If you want to see the WPS configuration options in the database after the upgrade, via a tool like phpMyAdmin, run the following:
SELECT * FROM wp_options WHERE option_name LIKE 'symposium%'
Note that wp_options may have a different prefix on your installation.
WPS user meta table
User meta data (information about the user, profile settings, etc) were stored in a table called wp_symposium_usermeta (again wp_ prefix may differ on your installation). As part of the upgrade, this information is moved to the wp_usermeta table – it’s the core WordPress table for storing user meta information.
You can see them, for a particular user, by running the following in phpMyAdmin:
SELECT * FROM wp_usermeta where user_id = 1 AND meta_key LIKE 'symposium%'
You’ll need to change the user_id to the ID of a user you know, and wp_usermeta may have a different prefix on your installation.
So really, why again?
Well admin’s will have more power to use WP Symposium user meta information. First off, you can now query any of the WP Symposium user data using WordPress standard get_user_meta function from anywhere in a theme page template or any other plugin.
You know those extended fields? Well any of the information your user’s save via the WPS profile page, using those extended fields, can be accessed on your templates and plugins. You’ll notice a “slug” on the extended field information (on the WPS profile admin page), and using that slug you can get this information use the above function. For example, if you add an extended field with the slug of gender, you can retrieve this information with the follow WordPress function:
echo get_user_meta(1, 'symposium_extended_gender', true);
I’ve put 1 in as an example user ID, you can use any.
And the other WPS profile user meta can be retrieved using the following (note, the plugin required is shown – non-core plugins are part of the Bronze package):
| meta_key | Usage | Plugin required |
| symposium_dob_day | Date of birth (day) | Core |
| symposium_dob_month | Date of birth (month) | Core |
| symposium_dob_year | Date of birth (year) | Core |
| symposium_extended_city | City | Core |
| symposium_extended_country | Country | Core |
| symposium_facebook_id | User Facebook ID | |
| symposium_forum_all | Notify of all forum new posts? | Core |
| symposium_forum_digest | Receive Digest? | Core |
| symposium_forum_favs | Forum favourites | Core |
| symposium_last_activity | When last active | Core |
| symposium_last_login | Last login | Core |
| symposium_notify_new_messages | Email on new mail? | Core |
| symposium_notify_new_wall | Email on new profile activity posts? | Core |
| symposium_plus_lat | Geocoded Latitude | Profile Plus |
| symposium_plus_long | Geocoded Longitude | Profile Plus |
| symposium_previous_login | Previous login (before last login) | Core |
| symposium_profile_photo | Filename of profile avatar | Core |
| symposium_rss_share | Share via RSS? | RSS Feed |
| symposium_share | Privacy level of personal information | Core |
| symposium_signature | Forum signature | Core |
| symposium_status | Activity status | Core |
| symposium_trusted | Trusted member | Core |
So for example, to display a user’s last login (with user ID 1 in the example below), you would use:
echo get_user_meta(1, 'symposium_last_login', true);
To show the currently logged in user’s last login, you would use:
global $current_user; echo get_user_meta($current_user->ID, 'symposium_last_login', true);
And hopefully there’s more
The goal is to provide further functionality such that the WordPress profile fields can be integrated with WP Symposium (the author’s bio description for example) – thanks AlphaGolf! Depending on the success of the release candidate(s), you’ll be able to link WPS extended fields with the WordPress profile fields so that both can be updated from either the WP Symposium profile page, or the WordPress edit profile page. Watch this space….

Post Tagged with 


Saving...
Very Cool- I am excited to get my hands on the new version :)
Working hard man!! Good… take care!
“you’ll be able to link WPS extended fields with the WordPress profile fields so that both can be updated from either the WP Symposium profile page, or the WordPress edit profile page. Watch this space….”
Excellent idea. Kudos to you and AlphaGolf. :-)
Here is a couple of small features that would make this (or any) release dynamite:
-The ability to comment on photos and albums (galleries)
-The ability to assign extended feilds to a NEW button. As opposed to trying to cram unrelated information next to someone’s location or privacy settings. With the ability to create a button and assign your own fields to that button, then ppl would be creating their own product instead of forcing specific designs into a generic layout.
…just throwing out random thoughts in the spirit of a better symposium for all. Not intentionally being a pain in the arse (though i am most of the time)
Thx for the suggestions – could you expand a bit more on your second point? What you mean by button, etc? Thanks!
A bit of teasing in my Gallery here, album “Symposium and WP metadata” ;-)
First screenshot shows the Profile settings page with the new table of Extended Fields: some of them are linked to WP user metadata (from another plugin or WP default), others aren’t.
Second and third screenshots show WP Symposium profile page, My Profile and Profile Details.
Last two screenshots show WP profile page, where WP Symposium’s Profile Details and Community Settings have been added. Note that Extended Fields linked to a WP user metadata aren’t displayed in the Profile Details section, but as WordPress metadata (such as bio description or phone number).
Enjoy the Release Candidate ;-)
http://www.wpsymposium.com/profile/?uid=152&view=gallery
Hi,
small mistake in your writeup. You say
To show the currently logged in user’s last login, you would use:
global $current_user;
echo get_user_meta($current_user->ID, ‘symposium_last_login’);
it should actually be:
global $current_user;
echo get_user_meta($current_user->ID, ‘symposium_last_login’, true);
Thanks °-)
a.
Thanks – you’re quite right, will amend.