WordPress.org

Ready to get started?Download WordPress

Forums

WP Quadratum
[resolved] Adding Check-in Venue Icon + Address to Check-in (10 posts)

  1. robertdiaz
    Member
    Posted 1 year ago #

    Hello, I was curious if there was a way to modify the filter handler code (in functions.php) to include the venue icon and possibly the street address of the location.

    The reason I ask is that I'd like to replace my current custom integration with your stable plug-in.

    Thanks for your time and help!

    Best,

    Robert

    http://wordpress.org/extend/plugins/wp-quadratum/

  2. vicchi
    Member
    Plugin Author

    Posted 1 year ago #

    Hi ... currently there's no way of doing this, but there could be very easily.

    Is it just the icon and address you're after, or more meta-data?

    It should be relatively trivial to add a new filter and push out a new version (famous last words!).

    -Gary

  3. robertdiaz
    Member
    Posted 1 year ago #

    Hi, it's really just the icon and street address, mostly to match what I am currently using. I can forward you the custom setup that I'm using now if you want to have a look.

    Thanks again,

    Robert

  4. vicchi
    Member
    Plugin Author

    Posted 1 year ago #

    I can forward you the custom setup that I'm using now if you want to have a look.

    That would be great ... forward away!

    -Gary

  5. robertdiaz
    Member
    Posted 1 year ago #

    I zipped up the 2 files and uploaded it to a folder on my server. Here's the shortened link: http://goo.gl/fFvw1

    As you'll see, it's based on this:
    http://code.google.com/p/foursquare-php

    For your reference, the developer created a write-up on his blog here:
    http://elie.im/blog/web/display-your-latest-foursquare-checkins-on-your-blog-using-foursquare-api-v2-and-php/

  6. vicchi
    Member
    Plugin Author

    Posted 1 year ago #

    Got the zip file. You can take it down from your server. I'll take a look later this evening.

    -Gary

  7. vicchi
    Member
    Plugin Author

    Posted 1 year ago #

    OK. I'm taking a look at this now. From my reading of what you've been asking, I think you want one of the following ...

    1. A new plugin filter, which passes the venue icon URL, the venue name, the venue type and the venue address to a function you hook into the filter.

    2. The ability to show the venue type and the venue address in the plugin's widget (I'm assuming that as the plugin's map already uses the venue's icon and shows the venue name that this is already OK for you; please let me know if this is an incorrect assumption).

    3. Both of the above.

    4. None of the above; I'm on totally the wrong track.

    ... but which one? Please let me know and I can get this into the next version of the plugin.

    -Gary

  8. robertdiaz
    Member
    Posted 1 year ago #

    The first option you mentioned is closest to what I had in mind. I suppose adding a plug-in filter of just the street address would suffice. Having the venue type icon next to the venue name might be a little redundant, given that it already appears on the map.

    Thanks!

  9. vicchi
    Member
    Plugin Author

    Posted 1 year ago #

    I know it's been 5 months but I'm now pretty close to getting the next version out of the door. There's been other, more major, problems to be solved around the underlying maps APIs (see http://wordpress.org/support/topic/disappearing-map?replies=7) which has taken all of this time, when I've been able to work on this.

    So the next question that springs to mind is what information from the checkin metadata do you want to be able to use in a filter hook and how?

    The reason I ask is that the plugin already has a filter, wp_quadratum_strapline that is passed the content of the strapline that appears under the map in the widget. The filter hook function currently is passed the checkin's venue URL and name and the checkin's timestamp.

    Based on our earlier discussions I can add the entire geolocation metadata from the checkin as well as the URL to the venue's icon to this filter, which should give you all you asked for, but is this the right filter for what you envisage using this data for? Or is there a need, in your mind, for another filter that passes this information and if so, what content do you want to the filter to pass to the hook function and act on?

    -Gary

  10. vicchi
    Member
    Plugin Author

    Posted 12 months ago #

    The latest version of WP Quadratum (v1.3.0 and not v1.2.1 as previously mentioned; there were sufficient changes to warrant upping the minor version number) has been pushed to the WordPress plugin subversion repository this morning and should now be available for upgrading from v1.2.0.

    Amongst other bug fixes and changes, this now adds a new filter, wp_quadratum_checkin that gives you access to the entire checkin object that the Foursquare API returns. This new filter is called prior to wp_quadratum_strapline so you can store the information you need (venue icon and address) prior to the strapline filter being invoked.

    -Gary

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.