Current Version: Pownce for WordPress 1.3
Pownce for WordPress displays your public Pownce messages for all to read. See it in action on my social page.
Installation
Drop pownce.php into /wp-content/plugins/ and activate the plugin.
Usage
If you use WordPress widgets, just drag the widget into your sidebar and configure. If widgets aren’t your thing, use the following code to display your public Pownce messages:
< ?php pownce_messages('username'); ?>
Pownce for WordPress also has several configurable options. Here’s what you can configure:
< ?php pownce_messages('username', num_of_msgs, output_in_list, display_timestamp, display_replies); ?>
So, if I wanted to display 3 messages, not in a list, with no replies, I would use the following:
< ?php pownce_messages('cavemonkey50', 3, false, true, false); ?>
Download Pownce for WordPress
Current Version: 1.3
Released: 2008-03-08
WordPress 2.6 Compatible
Download Pownce for WordPress 1.3
Version History
1.3 - Minor Update
- Updates the widget user interface to look better under WordPress 2.5.
1.24 - Bug Fix
- Removes the trailing slash in the feed URL that caused some usernames to not work.
1.23 - Bug Fix
- Fixes username validation check so that an error message will display when no username is entered.
1.22 - Bug Fix
- Fixes error message that appears when there are no public Pownce messages.
1.21 - Bug Fix
- Prevents gmmktime error from appearing.
1.2 - Minor Update
- Moved replies before the timestamp in the output.
- Added the follow CSS classes to be styled: ul.pownce, li.pownce-message, p.pownce-message, span.pownce-link, span.pownce-event, span.pownce-replies, span.pownce-timestamp
1.1 - Major Update
- Added support for links and events.
- Fixed grammar error when hovering over reply link.
1.01 - Bug Fix
- Fixes timestamp display on PHP4 systems.
- One message, no list now outputs without any <p> tags.
1.0 - Initial Release
80 Comments
Well it works good so far. Thanks very much for the plugin. Nice work.
Glad to see something like this is already up. Thanks very much!
Nice work!
I’m with Jesse on this one. I was thinking to myself this morning “I wonder how long it will be before someone creates a wordpress plugin for this.
You, sir, are a guru among cavemonkeys.
Hmm… I seem to have an issue updating. the plugin hasn’t updated since yesterday after I installed it (9:30) and I’ve put a few more pownces since.
Unfortunately it looks Pownce stopped updated the RSS feed. I’m noticing the same is true for other users, so it appears to be a site wide problem. Hopefully the issue will resolve itself shortly. Here’s your feed URL so you can monitor when it comes back.
For future reference, Pownce messages should update once every hour. I unfortunately can’t speed up that update time in WordPress at the moment. 2.3 is looking to have that functionality, though.
Actually, I just looked at your Pownce profile. You haven’t posted a public message since last night. You’ve just been sending messages to your friends, therefore they’re not public.
So you’re telling me I’ve got to be even more of an attention whore. Excellent! Now I’ve got an excuse!
I just setup the plugin on my wp site and I’m getting this warning;
Warning: gmmktime() expects parameter 6 to be long, string given in wp-content/plugins/pownce.php on line 66
Any ideas whats wrong?
I’m investigating the issue now. Just curious, what version of PHP are you using?
Try the latest version. It should resolve your problem.
Sorry for my bad english but i’m french
I try to install this great plugin (version 1.21 on WP 2.2.1) but i have a error :
Warning: Invalid argument supplied for foreach() in …/www/wordpress/wp-content/plugins/pownce.php on line 31
An idea whats wrong?
Downloading the latest version now. I am using php 5.2 right now. I have access to php4 as well but normally use php5 for WordPress.
It works perfect. Thanks for this great plugin. Pownce is easily replacing Twitter for me.
Culbar, I know what’s wrong and I’m working on a patch now. However, I’m just wondering, do you currently have no public Pownce messages or one public Pownce message?
Hello
I have somme public message on Pownce (3-4 I believe)
I just wanted to report a minor bug I noticed….
On line 19, it reads:
if ($username = '') {It should be:
if ($username == '') {I noticed it because I was trying to add a link back to my Pownce page so it looked a little more uniform with my twitter section, and obviously, any point after line 19, $username was empty because it’d been reassigned as such. Not a huge deal, doesn’t impede the functionality of the plugin, just makes that section of error checking not working.
Thanks for catching my typo. I’ll have a fixed version out shortly.
Forgive me for being a bit daft, but I’m having a problem configuring this to work. I’m getting a “Username Not Configured” error.
I’ve tried writing my username in the plugin-editor on line 13, but that doesn’t seem to do the trick. Where should I be going to configure my username?
I’m not sure why you’re getting a username not configured error message when inserting your username there. That technically should work, however is not the recommended method of entry.
You would be better off inserting your username wherever you call the pownce_messages function. So if your username is DJO, you would call the function like this:
<?php pownce_messages('DJO'); ?>i must be a total tool. I can’t find that call function. I assume I’m supposed to find it in my theme editor. I’ve scoured the “sidebar” and “left sidebar” and “function.php” and no luck.
It’s totally showing up in my left sidebar with its “Username Not Configured” error. I’m totally baffled. I even did a ctrl-f search for “Pownce” to see if I’d just not noticed it in my left-sidebar in the theme editor. No luck.
Am I just looking in the wrong place??
Unless you manually added the function call, it’s not going to be anywhere in your theme. Are you using WordPress widgets? If so, that would explain why entering your username on line 13 does nothing. You have to configure your username and settings using the widget control panel.
To do so, open up your WordPress admin. Click on Presentation, then Widgets. In the sidebar section they’ll be a box called Pownce. Click the button on the right side of the box. You’ll be presented with a dialog box for configuring Pownce options. Enter your username there as well as any other options you’d like to configure. When you’re done click Save Changes and you should be set.
Ha!
I knew I was a tool.
Just today I switched to a theme that supports widgets. I hadn’t used them before, and my newbness shows.
Thanks for your help Ronald. Works perfectly now!
hey, just wanna say thanks for this useful plugin of yours.
WoW , i wonder how do people come up with plugins like this so fast i will give it a try
Hi again. I wonder if there’s an option to limit the length of the Pownce message being displayed? For example: “Blah blah blah blah blaaaaaah [...]” and then have the “[...]” part be linked to the messages URL?
Just a thought.
Thanks,
Jessie
I’ll consider adding it in the next release.
Cool, looking forward to the next release. Thanks!
Great plugin, works just as I need it to.
Excellent plugin! One suggestion for the next release: It would be great if the title of the Widget could link to your public Pownce page. Usability-wise, I think people would naturally be inclined to click around there for access to a full feed.
While I agree most people would like the link, not every theme is styled to handle links in the title. If you would like to add a link to your title, just change the title name to include a link to your public profile. The link should work without issue.
Sweet, works like a charm.
Hi!
I was looking for a plugin to integrate twitter in wordpress, and I liked very much your plugin and your approach (the code is very clean!)
Do you mind if I publish a twitter for wordpress based in your work? with the deserved mentions, honors and links, for sure…
Thanks in advance.
Hi Rick. I sent a response to your email last week saying I have no problem with you releasing a Twitter version. I guess my message went in your spam box or something. Anyway, good luck with the Twitter plugin.
Hi Ronald!
Your guess was rigth!
Thanks again!
Take a look and tell me c&s
http://rick.jinlabs.com/code/twitter/
is it possible to change the formatting? i really love the output though, i would want the timestamp on top bold (not italicized) with a space between it and the pownce message. is this something i can change?
Sure, you can rearrange the output on lines 41-50. Just make sure you copy the whole line, and you can pretty much put them in any order.
If you could clone Twitter Tools, but turn it into Pownce Tools I would be eternally grateful. Twitter Tools is really the only reason I can’t move exclusively to Pownce. This is a great start though, thank you.
Sorry, it would help if I clarified what in particular I like. The feature that I love about Twitter Tools is the option to create a daily digest that contains all of my Tweets. If you could do this with Pownce that would be amazing.
I’ll have to look into it. Creating a daily digest would probably be possible, but doing some of the other things Twitter Tools does is out of the question because Pownce lacks an API.
nice plugin Ronald !!
Greetings from Spain
http://cavemonkey50.com/social/ 404 not found.
Thanks for the heads up. Link fixed.
Any plans for including profile picture? I am playing around with scraping my pownce page and pulled pic link from public page rather than rss.
I currently have no plans to include the profile images. However, the RSS does provide this, so you probably only need about one line of code to access it.
Excellent plugin.. hate english :S
saluds!!
Thanks for the great plugin. Been using it for a couple of days with no issues. A few hours ago it began only giving the No Public Pownce message, but I would assume that is a Pownce issue and not something caused by your plug-in as other people’s blogs I’ve visited are not experiencing the same issue.
Thanks again.
I am using the widget but the list is disordered. i.e. there is no “new line” between one pownce entry and the next one.
It the “output_in_list” options for this? It is not configurable in the widget config gui, so I suppose the only way is to write the code… but, ehm… where am I suppose to put that code to have it in one of my two sidebar?
Thanks!
I’m not sure I completely understand your problem. First off, how are you using Pownce for WordPress on WordPress.com? Second, if you are using it, widgets can only be outputted in lists. If the list looks incorrect, the problem is the styling in your theme.
Wordpress. No ok it is a list but if I post a link, it is pretty good. If I post just a chat, there is no “new line” between messages.
Anyway, you know what should be useful? The ability to paint odd messages with one color and even ones with another.
You never answered my question. I don’t think you’re using the Pownce for WordPress plugin. It looks as if you’re using an RSS Widget with the Pownce feed. If that’s the case, I can’t help you at all. I have no control over the RSS widget. You’ll have to take that up in the WordPress Support Forums.
In principal that’s a good idea, however, it would be impossible to ensure the alternating colors look good on every theme. The best I could do is provide CSS classes and let users tweak the alternating messages themselves.
I assure you i am talking about wordpress pownce widget. I am using it in a wordpress blog i am trying on my machine, not the one linked on wordpress.com
Anyway, it looks better now if I put code on the theme sidebar instead of using widget.
BTW, the standard RSS widget you can see on my blog is awful… not your faulf for sure
Yes, this should be a fair solution. I think that for some themes this could definitely work good.
Thanks for your attention and for nice plugin, bye.
Thanks for clearing that up. Sorry if I sounded insistent; I’m just used to people confused about plugins on WordPress.com.
Sounds good then. As soon as I get a free moment to work on some of my plugins, I’ll add this functionality.
Nice work thanks!
I would like this to link to my pownce page.
I tried making my title, from the widget sidebar arangement area, into a link (like an earlier comment here).
I put this in the title field Pownce but it eliminates the link and only shows the text.
Am I missing something?
Or is there an easy modification to the pownce.php I can make?
No, you’re not missing anything. WordPress removes links from widget titles.
Thankfully, there is an easy way to add a link. Add the following code on line 105:
Hi! I have been using your great plugin for a couple of days and it worked perfectly. But now, no Pownces are displayed and the plugin just says: No public pownce messages. But, for sure, there are some.
I got Pownces with otherone’s usernames but not with mine (flix).
So help me please!
Has the problem resolved itself? I just looked at your Pownce feed and looked fine. I also ran it through my end and it displayed your messages. If you’re still having trouble, let me know and I’ll investigate further.
Thanks for the fast answer!
As you can see in my sidebar I have reactivated my Pownce widget and it still shows “no public pownce messages”. I doublechecked it with the standalone PHP function, with caching enabled/disabled: same results.
Other user ids are displayed correctly.
So, what can we do?
How many Pownce messages are you trying to pull? I see one of your messages has an umlaut and I’m wonder if that’s messing up the parsing of your feed. Try setting it to 1 message and make sure that message doesn’t have any foreign characters. If foreign characters are messing it up, I’ll look into fixing it.
Hey! I tried to fetch 3 objects, same problem with reducing to 1 pownce.
I have a more or less hacking solution:
I burn the public feed with feedburner and insert it in the pownce.php, et voila, i have public pownce messages.
That means, the original pownce feed is the root of all evil
Nevertheless, your plugin in powncing again!
Huge thanks for your fast support!
Glad to hear everything is working again.
Turns out the fix for this is simpler than anyone would think. After playing around with the pownce.php script, all you need to do is remove the trailing slash (”/”) from the $message variable, that way it’ll read as such:
$messages = fetch_rss(”http://pownce.com/feeds/public/$username”);
Just do this anytime the RSS feed is referenced. Tada!!!
Indeed.
Nice fix
Thanks a lot!
Travis, I just added your fix. Thanks for figuring that out.
Okay a couple things, I was also getting the no public messages, then I ADDED the slash - fixed by changing line 15 in pownce.php.
pownce.php, From:
To:
Then I was pissed I couldn’t put my most recent updates on my site, I would update Pownce, and it wouldn’t show up for about an hour. I fixed this by changing line 722 in /includes/rss.php.
rss.php, From:
To:
If the age of the new file is NEWER (and it always is when you update Pownce) than the Max age of an hour ago, Update!
This will also update the other widgets on load basically, I haven’t seen the side-effects of this yet though.
Aubrey
Aubrey, it appears the trailing slash causes problems for some users, and other users (like yourself) need that trailing slash. Since it’s much easier to add a slash to your username field then removing one, if anyone has issues like this, try adding a slash to your username in the widget settings.
Oh, and I commented out…
and the minutes ago went back to normal… I think
If I’ve well understood the plugin it can only display on my WP lines of a pownce user.
Is it possible to post via WP on Pownce (like e.g. the twitter wp plugin makes)?
Pownce did just launch their API a few weeks ago, and that is possible through a plugin, but I have no interest in adding posting support. You’ll have to look for another plugin to do your posting.
> I have no interest in adding posting support
hi there .thanks for plugin:
Does anybody know if tis script is compatible with Wordpress 2.5.1 ?
Thanks in advance for any help on this!
regards
Why is it no matter how many times I post to Pownce, when I load my site my timestamp is showing up as “11/30/07″?
Yes, it works under WordPress 2.5.1.
I checked your Pownce feed and it has the correct dates, so it should not be showing 11/30/07. My local install was also correct for your username. Did you modify the plugin at all? What time zone is your Pownce username configured to?
I checked your Pownce feed and it has the correct dates, so it should not be showing 11/30/07. My local install was also correct for your username. Did you modify the plugin at all? What time zone is your Pownce username configured to?
Ok, so by removing the delimiters in the script, it messed up the date formatting. But is there anyway to get the date to display correctly without the seemingly random delimiters in front of it?
Nevermind. I was able to fix the problem by doing the same thing someone else did a few months back, by commenting out the $offset on line 62.
I wanted to note that on my previous posts, in new Wordpress 2.5.1, I only had to strip the slash from the line I mentioned before.
Thanks for sharing your edits, Aubrey. They saved me a lot of headache and fixed the plugin for me
Thanks to Aubrey in reply #65 for the quick fix. I was getting annoyed that my updates weren’t showing up and it did before. Now, it’s there! Thanks
Any plans for including profile picture? I am playing around with scraping my pownce page and pulled pic link from public page rather than rss