Posts tagged php
January 18, 2012
Updated: 5/13/2012
I’ve helped our clients set up a lot of membership sites; one common request is that members are able to submit articles within WordPress.
Out-of-the-box WordPress can get you pretty far but commonly I run into two roadblocks with the default roles:
- The Contributor role doesn’t let Contributors see the Media Library
- The Author role lets Authors see everyone’s Media & Posts
While more often than not a plugin is the way to go for a full-on membership site, there’s a really quick fix that will let you assign users to the Author role and be able to hide other’s Media & Posts from them.
(more…)
July 27, 2011
I recently needed to output a list of comments and bumped into a little trouble trying to output the comment excerpt. Usually I would use the built-in comment_excerpt() function but I only needed 10 words instead of the 20 that is hard-coded. I put together a little function that I found helpful and thought I would share.
(more…)
June 20, 2011
Often web apps need to send SMS messages to their users (for example: balance alerts, reminders, notifications). To send these text messages from within your app, you basically have 2 options:
1) Pay Twilio and Tropo for the use of their APIs, for roughly a penny per message.
2) Send an email directly to their carrier’s mail-to-SMS gateway – a free service most carriers provide, which will translate your email into an SMS sent to their subscribers’ phone
Twilio and Tropo are about as easy as it gets to integrate (REST-like APIs that return JSON/POX), but you pay for every single message and that can add up quickly. So #2 (mail-to-SMS gateways) starts to look pretty good.
But there’s some problems with mail-to-SMS gateways: (more…)
June 14, 2011
On June 3rd, Facebook updated the Graph API to require an access token to pull wall post data from public Facebook pages. This change can cause scripts to stop working, so here is a quick solution to pull wall post data from public Facebook pages with an access token. (more…)