DISQUS

evansims.com: Brightkite Location • Evan Sims

  • Devin Reams · 1 year ago
    Cool plugin! Interestingly enough I'm getting this:
    Fatal error: Cannot instantiate non-existent class: simplexmlelement in /.../wp-content/plugins/brightkite-location/brightkite.php on line 42

    I'm on Dreamhost so not sure why the element wouldn't work...
  • Evan Sims · 1 year ago
    Devin, give Beta 2 a try and see if that resolves the problem for you.
  • Devin Reams · 1 year ago
    Nice! That did the trick. :)

    My only problem now is that the location name is not showing beneath. I've looked at the plugin a little bit and not sure why. I had privacy turned on in brightkite but everything is now 'public. Thoughts?
  • Evan Sims · 1 year ago
    Hey Devin,

    Give Beta 3 a try. You and Colin both have the same issue, and I was able to track down the cause to privacy settings. Should be fixed now. Thanks!
  • Devin Reams · 1 year ago
    Hmm, it may be due to delay (I waited about 20+ minutes) but the location is still not appearing in Beta 3. I re-installed, re-activated, cleared cache, and checked-in to a new location. :-\
  • Evan Sims · 1 year ago
    Yeah, I tracked the issue down. You've got a similar issue to what Edwin encountered. Beta 3a should fix it. Sorry about that.
  • Devin Reams · 1 year ago
    Perfect, thanks, Evan. :)
  • Colin Devroe · 1 year ago
    "The file 920111060.cache is not writable. Please ensure that your Brighkite Location plugin folder is writable, or create the file manually and apply appropriate write permissions."

    Even though I have the directory set as 777.
  • Evan Sims · 1 year ago
    Yup, in some situations you have to create the file manually. Sorry about that.
  • Colin Devroe · 1 year ago
    I created the file manually and that worked. But now I'm getting a PHP error on line 61.

    Open source this, put it on SVN, and I'll help fix bugs!
  • Evan Sims · 1 year ago
    Hey Colin,

    I tracked down the issue to users who have certain privacy settings applied; Brightkite only delivers a portion of the address, and my plugin was expecting the whole thing during it's parsing. Grab Beta 3 and it should work for you.

    Also, this will definitely be up on the Wordpress SVN when it's finished, but it's bugs like this I want to get ironed out before I release it a wider (and less technically apt) audience. :) I definitely appreciate any help, though!
  • Devin Reams · 1 year ago
    If you're going for less technically apt then you need to make an options page or something to create the cache file. I don't want to speak on his behalf but Alex King has mentioned the majority of support requests are for the simplest things (putting files in the right folder, creating files, setting permissions). :)
  • Evan Sims · 1 year ago
    Well, the inability to create the cache file is due to server permissions; I don't have any control over that, and an options interface wouldn't change that. The script does attempt to create the file automatically, but only errors out when it's impossible for it. This usually happens due to either the plugins/brightkite-location directory being non-writeable, or the PHP instance on the server running under safe-mode (which is being phased out in PHP6, thank god.)

    I could cache the data in the database rather than a file, but Wordpress is already so damn heavy on DB calls I really hate to add yet another one on top of it all.

    After I get all the bugs worked out of the base functionality, I'll definitely add an options UI and offer a Widgetized version of the plugin. :)
  • Devin Reams · 1 year ago
    Oh okay, I obviously didn't look close enough to see if the file was being created.

    Good stuff. :)
  • edwinv · 1 year ago
    I love the addition of the dynamic map but now the location description is not showing up at all underneath the map. Any ideas why? My Brightkite account is set to public.
  • Evan Sims · 1 year ago
    Gah! I see the problem. Man, I really wish Brightkite was a little more consistent with their RSS feeds, haha. I need to run, but I'll get a fix for you later today. Sorry about that.
  • Evan Sims · 1 year ago
    Hey Ed, give the new version I just pushed a try, Beta 3a. Should fix the problem for you.
  • edwinv · 1 year ago
    Yup, that did the trick. Thanks! One other thing I found, when using "dynamic" map, the color and size of the beacon does not change even if its specified. Other than that, its looking good. Great job!
  • imaginal · 1 year ago
    How can I add the php tag into a widget within wordpress to work with the dynamic sidebar?
  • Evan Sims · 1 year ago
    This plugin does not currently have widget support. I'll be adding that feature before the 1.0 release, though. Stay tuned.
  • imaginal · 1 year ago
    A handy work-around to this is to install the Samsarin php plugin, which allows you to add the php tag to a widget window. This is working for me. http://www.samsarin.com/blog/2007/03/10/samsari...
  • Evan Sims · 1 year ago
    Great find!
  • Adam · 1 year ago
    This is perfect!
    I'm undertaking a cycle ride from one end of the UK to the other, this is perfect for keeping a site updated with my progress.
    www.longcycledown.com
  • Evan Sims · 1 year ago
    Hi Adam,

    That's awesome! Thanks so much for choosing my plugin to help broadcast your journey, and best of luck! I'll certainly be following your progress!
  • Todd Wickersty · 1 year ago
    Thanks for the plugin, Evan. You can check it out here: http://wick.me/
  • Evan Sims · 1 year ago
    Great site, Todd! Thanks for using the plugin, and please let me know if you have any suggestions or encounter any bugs. I'll have a new beta coming next week.
  • Todd Wickersty · 1 year ago
    What about publishing the amount of time since your last check-in?
  • Christophe · 1 year ago
    Thank you for the plugin, good stuff !
  • DrLagos · 1 year ago
    Awesome job. . . love the plugin. One thing - How do I get the notes/posts to show like yours?
  • Evan Sims · 1 year ago
    Howdy, and thanks! The plugin only displays the latest action you've taken. So, if you check in somewhere but don't post a note or photo, all you'll get is that location data. Try posting a note after you've checked in and it should appear along with your map.
  • Mike Dent · 1 year ago
    Many thanks for this. I've got it running on my blog now, http://www.g6phf.co.uk/
  • Derek · 1 year ago
    Just activated the plugin on my site. Good stuff. Well executed and a more attractive alternative than what is already out there. Just a little note concerning the included stylesheet. You have some leftover code towards the end of the file: r: #444141; }. Looks like it might have been a little bit overlooked with a copy 'n paste.
  • Derek · 1 year ago
    Hey, there seems to be a bug? With the plugin enabled, Safari users outside of the US were unable to access my site. See screenshot of someone viewing my site in Canada. http://idisk.mac.com/isdereks/Public/Pictures/S...
  • Evan Sims · 1 year ago
    Sounds like an incompatibility between the plugin and something else running on your Wordpress installation. Can you tell me what other plugins you're running, what WP version, PHP version, etc. so I can track down the cause?
  • Derek · 1 year ago
    Currently running WP 2.6.3 and PHP 5 - see screenshot for enabled plugins and versions: http://idisk.mac.com/isdereks/Public/Pictures/S...
  • Evan Sims · 1 year ago
    Awesome, thanks! My first guess would be a gzip conflict between two plugins based on what it was spewing out in your first screenshot. Let me do some investigating and get back with you asap.
  • Evan Sims · 1 year ago
    OK, Derek: I suspect the problem you're encountering may be due to a combination of WP Super Cache enforcing gzip and the plugin being unable to determine the path to it's stylesheet file. Just a guess right now, as I haven't been able to actually reproduce the problem myself.

    I went ahead and built a debugger function into the plugin; when you get a moment, try downloading the debug version, replacing the existing copy you have installed and using the new function bkDebug() in your template. Pop me the data it data it outputs from there. If you can't load the page after activating, open up the php file and remove line #224, "add_action('wp_head', 'bkWordpressHeaders');". That should let you see the output.

    Debug version: http://dl.getdropbox.com/u/23890/brightkite_b4.zip
  • Derek · 1 year ago
    Nice. I'll give it a try this weekend.
  • Jan · 9 months ago
    Hi, great plugin!

    I found a small bug... I use a different page URL and blog url, such as domain.com and domain.com/blog. When activated the plugin only works on the homepage, but after creating a "fake plugin folder behind domain.com/blog/wp-content/plugins/brightkite-location/ and uploading the *.cache file and the xml library to this folder it all seemed to work smoothlessy.

    Cheers!
  • Evan Sims · 9 months ago
    Hi Jan; Good find, thank you! I'll look into a solution for this for the next build.