David Bisset: Web Designer, Coder, Wordpress Guru

Web 2.0, Php, MySQL, HTML, CSS, Wordpress, Javascript, iTouch iPod, iPhone, Adobe…

buy cheap doxycycline online cheapest synthroid prices xanax without prescription cheap prozac tablets cheap tramadol acomplia zithromax pharmacy tramadol without a prescription phentermine pills buy generic accutane where to buy cialis cheap zoloft online doxycycline prices cheap generic phentermine nexium online cheap cheap synthroid tablets acomplia online nexium pills buy cheap propecia buy plavix buy diazepam without prescription accutane online stores accutane cheap cheap generic viagra clomid without prescription cheap plavix buy bactrim without prescription tramadol online phentermine without prescription buy synthroid diazepam online stores discount diazepam nexium online stores bactrim online stores order diazepam purchase lasix online purchase lorazepam bactrim prescription buy cheap tramadol zithromax online cheap acomplia generic phentermine plavix for sale cheap plavix tablets cheap tramadol tablets pharmacy lasix lasix sale pharmacy diazepam buy doxycycline accutane prices buy cheap phentermine lasix prices buy cheap nexium synthroid for sale plavix discount buy doxycycline cheap lowest price alprazolam cheap lorazepam online nexium cheap cheap generic cialis discount propecia pharmacy prozac soma discount soma online buy generic flagyl discount nexium cheapest tramadol prices discount viagra levitra generic buy accutane cheap synthroid pharmacy where to buy phentermine acomplia pills viagra sale bactrim pharmacy buy accutane without prescription lowest price acomplia buy lorazepam cheap buy phentermine without prescription diazepam for sale cheapest clomid valium prices buy prozac online tramadol sale clomid online synthroid cheap cheap alprazolam online order soma online buy zithromax phentermine no prescription where to buy lorazepam accutane online where to buy bactrim propecia cheap cheapest valium prices pharmacy lorazepam bactrim for sale price of soma buy cialis order bactrim online lorazepam without prescription zoloft without prescription lowest price diazepam pharmacy clomid cheap propecia buy levitra cheap purchase soma online purchase prozac order zithromax valium no prescription valium prozac prices nexium generic zoloft cheap cheap generic prozac order doxycycline online diazepam pills levitra accutane no prescription buy lorazepam tramadol prices online doxycycline where to buy synthroid buy alprazolam online alprazolam prescription zoloft buy cheap flagyl online zithromax pills online valium acomplia cheap plavix pills cheap zithromax online levitra online stores lorazepam pills order flagyl online doxycycline prescription cheap lorazepam buy acomplia discount acomplia cheapest prozac prices alprazolam without a prescription online synthroid cheap phentermine tablets alprazolam order clomid online cheapest diazepam prices zoloft for sale viagra pharmacy buy cheap lorazepam online clomid online cheap pharmacy tramadol buy cheap soma purchase clomid online cheap doxycycline purchase prozac online purchase cialis flagyl prescription diazepam prices viagra online stores accutane prozac pharmacy bactrim generic buy zoloft without prescription lowest price flagyl clomid pills buy clomid online cialis pharmacy pharmacy phentermine price of clomid buy acomplia online price of prozac phentermine online tramadol buy lasix online levitra without prescription buy cheap xanax online cheapest propecia prices cheapest acomplia prices buy lorazepam online cheap generic xanax accutane without a prescription synthroid without prescription order plavix flagyl without a prescription buy generic clomid lowest price lorazepam order soma order zoloft online propecia sale synthroid discount pharmacy cialis price of lasix prozac pills tramadol without prescription valium pharmacy purchase zoloft online buy cheap lorazepam accutane for sale lowest price clomid levitra no prescription synthroid sale nexium prices lowest price nexium generic lorazepam purchase synthroid xanax online cheap purchase bactrim cheapest alprazolam synthroid generic cheap xanax cheap generic acomplia buy cheap lasix online accutane pharmacy alprazolam pills cheap valium online lowest price cialis plavix generic buy levitra online tramadol online stores buy cheap nexium online zithromax lorazepam online stores acomplia no prescription lorazepam cheap bactrim no prescription buy plavix online lasix generic purchase clomid buy cheap zoloft online buy generic xanax doxycycline online cheap lorazepam online cheap cialis online cheap zithromax for sale generic lasix cheapest synthroid generic nexium purchase phentermine online prozac generic order prozac online clomid prices where to buy tramadol price of phentermine phentermine prescription lowest price propecia cialis online stores discount plavix cheap diazepam soma generic cheapest viagra prices cheapest bactrim prices buy cheap flagyl lorazepam pharmacy buy diazepam online propecia discount buy valium buy zithromax without prescription buy generic tramadol order levitra valium discount nexium online discount doxycycline bactrim cheap propecia prices plavix prices online nexium clomid generic synthroid buy cheap prozac online lasix online stores buy cheap valium online cheap xanax tablets xanax without a prescription buy soma online cheap phentermine online where to buy prozac where to buy alprazolam buy cheap plavix online order phentermine generic clomid buy tramadol cheap prozac cheap propecia tablets generic xanax purchase zithromax levitra online purchase viagra propecia generic generic synthroid buy cheap alprazolam online where to buy propecia acomplia without prescription cheapest diazepam order lorazepam xanax discount where to buy zithromax cheap diazepam tablets price of cialis cheap generic lasix order flagyl buy clomid without prescription diazepam online cheap order accutane zithromax without prescription doxycycline cheap lasix online cheap cheapest plavix alprazolam online buy cheap clomid online buy generic zithromax levitra for sale buy cheap acomplia doxycycline online stores purchase flagyl online nexium generic plavix pharmacy nexium price of alprazolam purchase nexium online buy generic cialis cheap flagyl tablets buy cheap bactrim online buy alprazolam cheap soma sale buy generic synthroid phentermine sale plavix pharmacy buy viagra online xanax purchase cialis online pharmacy flagyl alprazolam no prescription cheapest bactrim buy cialis online clomid sale flagyl online stores tramadol pills propecia online cheap lowest price tramadol cheap valium tablets price of viagra clomid no prescription synthroid pills order doxycycline nexium sale order cialis price of zithromax buy nexium cheap alprazolam for sale discount valium buy generic acomplia generic tramadol plavix without a prescription online clomid cheapest lorazepam prices lasix without a prescription order levitra online cheap cialis online online soma cialis no prescription buy propecia zoloft discount lowest price lasix cheap prozac phentermine generic cheapest levitra levitra pharmacy clomid pharmacy bactrim prices acomplia online cheap where to buy diazepam cheap generic levitra accutane sale tramadol discount cheapest doxycycline purchase acomplia online accutane online cheap cheap generic tramadol price of bactrim order lorazepam online order xanax online purchase levitra flagyl online valium for sale cialis plavix sale cheap levitra tablets price of zoloft purchase viagra online cheap generic zoloft flagyl discount prozac prescription soma pharmacy propecia order propecia online price of flagyl online levitra price of doxycycline bactrim propecia without a prescription acomplia prescription order synthroid zoloft online cheap flagyl sale buy synthroid cheap buy lasix without prescription zoloft without a prescription alprazolam sale buy tramadol without prescription prozac without a prescription flagyl generic buy propecia online cialis prices purchase lasix cheapest nexium purchase diazepam buy lorazepam without prescription buy cialis cheap lorazepam no prescription where to buy accutane xanax online zithromax discount prozac discount synthroid prescription lowest price bactrim discount zithromax accutane generic buy generic bactrim order valium online buy generic lorazepam cheap generic flagyl where to buy zoloft purchase accutane online discount phentermine plavix cheap zithromax cheap cheap generic lorazepam viagra cheap xanax online purchase bactrim online generic valium propecia online stores flagyl pharmacy lowest price valium buy synthroid without prescription cheap viagra online buy cheap lasix cheap doxycycline tablets levitra cheap online alprazolam diazepam pharmacy cheapest nexium prices purchase acomplia xanax pharmacy propecia pharmacy cheap accutane online valium without prescription cheap alprazolam purchase propecia purchase diazepam online cheapest phentermine prices generic zoloft order tramadol clomid online stores plavix no prescription price of synthroid cheap generic propecia cheapest tramadol order alprazolam online buy alprazolam without prescription buy cheap cialis discount levitra where to buy valium cheap prozac online cheap generic soma lorazepam generic buy flagyl cheap price of propecia lowest price soma order acomplia online lowest price viagra buy doxycycline without prescription cheap zithromax tablets flagyl no prescription diazepam without a prescription cheap levitra online prozac online cheap levitra without a prescription buy generic doxycycline buy prozac cheap phentermine for sale buy bactrim cheap pharmacy zithromax cheapest flagyl where to buy flagyl acomplia online stores buy lasix cheap buy cheap propecia online cheap soma cheapest accutane prices pharmacy alprazolam lasix pharmacy cheap zithromax viagra prescription zithromax without a prescription online accutane cheap lasix online acomplia generic cheap flagyl cheap clomid tablets order lasix online cheapest alprazolam prices buy nexium buy cheap clomid synthroid without a prescription accutane pills buy clomid diazepam sale bactrim sale lorazepam cheap doxycycline online valium pills buy soma cheap buy lasix phentermine online stores buy synthroid online online lorazepam lasix no prescription buy generic propecia xanax for sale cheapest zoloft prices buy phentermine cheap plavix online cheap bactrim cheap viagra tablets viagra without prescription cheap generic diazepam buy zoloft cheap order accutane online cheapest soma prices clomid cheap viagra prices phentermine cheap nexium pharmacy discount synthroid lorazepam prices buy xanax flagyl cheap cheap generic doxycycline buy cheap levitra prozac no prescription buy zithromax cheap discount lasix discount tramadol prozac without prescription discount cialis cheap lasix soma prices online phentermine buy propecia without prescription cheap diazepam online online diazepam plavix online cheap order bactrim where to buy soma cheapest xanax prices buy cheap xanax xanax prices cheap clomid online prozac online lowest price zithromax online bactrim cheapest cialis valium online stores synthroid online stores zoloft prices generic acomplia xanax cheap diazepam discount viagra online purchase tramadol online valium without a prescription order zithromax online doxycycline no prescription tramadol clomid for sale pharmacy soma viagra discount synthroid online cheap purchase propecia online viagra online cheap cheap valium cialis without a prescription discount prozac lasix online levitra online cheap cheap soma online buy levitra without prescription buy flagyl online buy cheap zithromax online acomplia discount where to buy plavix cheapest soma soma online cheap nexium without a prescription purchase alprazolam zoloft online tramadol no prescription cheap phentermine online cialis zoloft online stores phentermine online lasix pills valium sale cheap bactrim online clomid prescription generic viagra levitra pills purchase xanax online buy bactrim pharmacy plavix buy cheap diazepam accutane prescription buy cheap diazepam online buy nexium online cheap lorazepam tablets cheap alprazolam tablets price of valium buy cheap synthroid online discount bactrim lasix without prescription generic alprazolam flagyl without prescription online xanax viagra no prescription generic zithromax levitra prices generic cialis buy cheap phentermine online buy clomid cheap buy xanax cheap cialis online buy generic viagra doxycycline discount order clomid online propecia cheap plavix online purchase valium online cheap zoloft generic propecia lorazepam discount buy cheap soma online buy cheap prozac phentermine prices xanax pills online prozac prozac online stores acomplia pharmacy acomplia prices buy viagra lowest price doxycycline cheap acomplia online cheapest levitra prices buy cheap doxycycline buy cheap tramadol online propecia prescription zithromax generic buy tramadol price of plavix lowest price phentermine prozac sale buy alprazolam cheap generic clomid cheapest accutane discount soma purchase synthroid online buy generic plavix doxycycline generic purchase plavix xanax prescription valium generic bactrim online cheap purchase lorazepam online buy xanax online alprazolam online stores price of acomplia zoloft prescription soma pills generic levitra cheap synthroid discount zoloft alprazolam pharmacy viagra cheap cheap accutane cheap generic bactrim buy phentermine online buy flagyl buy levitra cheapest acomplia buy generic phentermine price of tramadol buy cheap zithromax cheap lasix tablets buy plavix cheap nexium discount tramadol pharmacy purchase accutane phentermine online cheap buy cheap acomplia online cialis cheap lasix for sale cheap flagyl online nexium no prescription cheapest lasix prices pharmacy xanax buy tramadol online alprazolam without prescription buy zithromax online order nexium viagra generic buy generic valium where to buy acomplia acomplia without a prescription buy cheap viagra pharmacy levitra order phentermine online buy flagyl without prescription buy accutane buy cheap alprazolam purchase zithromax online lowest price prozac lowest price accutane doxycycline sale bactrim without a prescription alprazolam online cheap cheap generic zithromax pharmacy bactrim levitra discount cheapest plavix prices buy cheap synthroid purchase doxycycline online buy cialis without prescription generic bactrim buy zoloft online synthroid prices propecia online cheap acomplia tablets buy cheap zoloft doxycycline pharmacy cheapest prozac cheap viagra cheap nexium online price of diazepam cheap generic plavix cialis prescription xanax online stores soma prescription plavix without prescription soma for sale lowest price zoloft cheapest zithromax prices cheapest zithromax buy generic alprazolam lorazepam for sale alprazolam generic cialis for sale cheap tramadol online cheapest cialis prices synthroid online order tramadol online buy viagra without prescription order viagra online zithromax no prescription order plavix online flagyl pills cheap cialis tablets cheap clomid diazepam generic buy generic nexium purchase alprazolam online flagyl propecia pills viagra without a prescription propecia for sale cheap cialis flagyl for sale prozac cheap diazepam without prescription zoloft sale order viagra accutane discount doxycycline for sale valium prescription lorazepam online bactrim discount cheapest valium order zoloft alprazolam cheap zoloft generic buy prozac without prescription purchase phentermine online lasix online flagyl cheapest propecia lorazepam sale order synthroid online valium online cheap purchase doxycycline cialis discount lowest price plavix purchase xanax zithromax prices pharmacy propecia buy prozac doxycycline cheap generic synthroid purchase tramadol pharmacy viagra cheapest xanax soma cheap generic accutane soma no prescription order lasix price of nexium buy valium without prescription buy cheap accutane xanax generic doxycycline without a prescription buy cheap levitra online synthroid no prescription cheapest phentermine valium online buy generic levitra cheapest doxycycline prices prozac for sale plavix online stores purchase levitra online lorazepam without a prescription zithromax online stores lasix prescription buy cheap cialis online buy valium online pharmacy zoloft pharmacy doxycycline price of accutane cheapest clomid prices clomid without a prescription valium cheap acomplia sale bactrim without prescription zoloft pharmacy levitra prescription tramadol cheap buy viagra cheap cheapest zoloft buy soma cheap propecia online flagyl online cheap cheap generic alprazolam cheapest lorazepam buy diazepam purchase soma soma without a prescription buy generic diazepam buy cheap viagra online cheap levitra cheap generic valium purchase zoloft order prozac plavix zoloft no prescription discount xanax pharmacy valium clomid discount cheap accutane tablets accutane without prescription soma without prescription soma cheap propecia no prescription propecia without prescription zithromax prescription pharmacy accutane cheapest viagra buy bactrim online diazepam cheap order acomplia buy generic zoloft order valium cheap soma tablets xanax sale buy generic soma viagra for sale cheap zoloft tablets lorazepam prescription diazepam prescription price of xanax nexium without prescription order diazepam online discount flagyl where to buy lasix pharmacy synthroid cheap nexium tablets buy cheap valium generic prozac buy xanax without prescription zithromax sale cheapest lasix bactrim pills lasix where to buy xanax diazepam online order xanax doxycycline pills purchase nexium phentermine pharmacy cialis pills buy doxycycline online buy soma without prescription lowest price levitra clomid alprazolam discount buy phentermine buy generic lasix buy acomplia without prescription cheap bactrim tablets discount lorazepam zithromax online cheap buy diazepam cheap generic soma order propecia generic diazepam order nexium online tramadol online cheap purchase plavix online lasix discount online viagra alprazolam prices phentermine discount where to buy levitra acomplia for sale soma online stores buy cheap bactrim bactrim online price of levitra generic accutane buy cheap accutane online order cialis online nexium for sale where to buy nexium price of lorazepam buy propecia cheap doxycycline online levitra sale cheap nexium cheapest flagyl prices cialis without prescription buy nexium without prescription discount accutane where to buy viagra zoloft pills where to buy doxycycline tramadol for sale buy zoloft tramadol generic cialis sale where to buy clomid online zoloft cheap synthroid online buy accutane online nexium prescription purchase flagyl flagyl prices buy generic prozac discount alprazolam diazepam no prescription buy cheap plavix viagra pills phentermine without a prescription buy valium cheap generic flagyl cialis generic online zithromax cheap generic nexium doxycycline without prescription lasix cheap online plavix buy plavix without prescription generic doxycycline plavix prescription buy acomplia cheap diazepam xanax no prescription discount clomid purchase valium online acomplia lowest price xanax tramadol prescription pharmacy acomplia lowest price synthroid order alprazolam

Update: Andy has suggested to make these modifications a separate file to drop into the mu-plugins folder. This works like a charm, and perfect because you do NOT have touch ANY core files. I have attached the file called bp-social here. So drop this into the mu-plugins folder and you should see a new submenu appear in settings on a profile (just like my dropdown). Read the comments below this post.

I have been playing with the BuddyPress beta recently, and planning on focusing on it’s impact to Social Networking in 2009 on my socialnetworking.com blog.

In the meantime, i’m more focused on my personal blog on expanding on the code. First, you must have played already with BuddyPress to understand this. And if you want to try this, you must already have a good foundation in PHP. This is not a “drop a plugin and it works” deal.

Settings Screen in BuddyPress

From what i’ve discovered, you need to modify one file for basic settings but unfort. it’s a core file. bp-core-settings.php. I have made my own modified version here: bp-core-settings.php (You may download, but use it at your own risk… this should work if you replace the core file, but do this with care and backing up any files. Remember this is for learning only).

Notice that adding a submenu within settings is simple enough at the top of the file itself.

bp_core_add_subnav_item( 'settings', 'social', __('Social', 'buddypress'), $bp['loggedin_domain'] . 'settings/', 'bp_core_screen_social_settings', false, bp_is_home() );

If this is new to you, then you will probably have to take some time learning what the parameters mean and where BuddyPress is grabbing them. The important thing to note here is the displayed name (”Social”) and the php function it goes along with (”bp_core_screen_social_settings”).

Next, later in the same file, I simply duplicated the general settings, renamed the php functions (I kept the same naming convention but replaced “general settings” with “social” since I was attempting to create a social settings panel). Make sure the first function below matches the function you stated in the bp_core_add_subnav_item that we just talked about it, or it isn’t going to work. (Mine is “bp_core_screen_social_settings”). Here is my code:

 
/**** SOCIAL NETWORKING SETTINGS ****/

function bp_core_screen_social_settings() {
	global $current_user, $bp_settings_updated, $pass_error;

	$bp_settings_updated = false;
	$pass_error = false;

	if ( isset($_POST['submit']) && check_admin_referer('bp_settings_social') ) {

		// Form has been submitted and nonce checks out, lets do it.

		if ( $_POST['twitterusername'] != '' ) {
			update_usermeta( (int)$current_user->id, 'twitterusername', $_POST['twitterusername'] );
			$bp_settings_updated = true;
			//$current_user->user_twitterusername = wp_specialchars( trim( $_POST['twitterusername'] ));
		}

		if ( $_POST['twitterpassword'] != '' && !strpos( " " . $_POST['twitterpassword'], "\\\" ) ) {
			update_usermeta( (int)$current_user->id, 'twitterpassword', $_POST['twitterpassword'] );
			$bp_settings_updated = true;
//			$current_user->user_twitterpassword = $_POST['twitterpassword'];
		}

	}

	add_action( 'bp_template_title', 'bp_core_screen_social_settings_title' );
	add_action( 'bp_template_content', 'bp_core_screen_social_settings_content' );

	bp_catch_uri('plugin-template');
}

function bp_core_screen_social_settings_title() {
	_e( 'Social Networking Settings', 'buddypress' );
}

function bp_core_screen_social_settings_content() {
	global $bp, $current_user, $bp_settings_updated, $pass_error; ?>

	<?php if ( $bp_settings_updated && !$pass_error ) { ?>
		<div id="message" class="updated fade">
			<p><?php _e( 'Changes Saved.', 'buddypress' ) ?></p>
		</div>
	<?php } ?>

	<?php if ( $pass_error && !$bp_settings_updated ) { ?>
		<div id="message" class="error fade">
			<p><?php _e( 'Your passwords did not match', 'buddypress' ) ?></p>
		</div>
	<?php } ?>

	<form action="<?php echo $bp['loggedin_domain'] . 'settings/social' ?>" method="post" id="settings-form">
		<label for="email">Twitter Username</label>
		<input type="text" name="twitterusername" id="twitterusername" value="<?php echo $current_user->twitterusername ?>" class="settings-input small" />

		<label for="pass1">Twitter Password (leave blank for no change)</label>
		<input type="password" name="twitterpassword" id="twitterpassword" size="16" value="" class="settings-input small" /> 

		<p><input type="submit" name="submit" value="Save Changes" id="submit" class="auto"/></p>
		<?php wp_nonce_field('bp_settings_social') ?>
	</form>
<?php
} 

What is neat about this is that you can create basically any field for any settings you want to store with the update_usermeta() function. If the setting isn’t stored in the wp_usermeta table already, it gets created. If it’s already there, it gets overwritten.

This is not a complete tutorial, and it’s more or less my own personal notes in how i made this happen. But it does show that it is possible to expand BuddyPress to hold custom “settings” values for use elsewhere on the site. For example, I am trying to create a settings panel to hold social networking username/passwords (like for Twitter) and be able to use these elswhere on the user’s profile section. Perhaps the beginning of a custom BuddyPress livestream or social networking plugin.

Please make sure you know about the BuddyPress forums.

  • 23 Comments
  • Filed under: Wordpress
  • Cheat Sheets for Front-end Web Developers

  • 0 Comments
  • Filed under: Coding, Sideblog
  • How To Make An IP-To-Country Tool With PHP and MySQL - Very handy tutorial for those who need to display (or not display) certain information depending on where the user is located.

  • 0 Comments
  • Filed under: Coding
  • More Fields Wordpress Plugin

    More Fields Wordpress Plugin - Works with Wordpress 2.5+

  • 0 Comments
  • Filed under: Wordpress
  • Really nice collection of usable plugins here - wp-pools, wp-ban, wp-email, etc. If you do moderate work in Wordpress, bookmark this. Seriously.

  • 0 Comments
  • Filed under: Wordpress
  • This is a good technique that the big blogs do, and it’s helpful to see how you can apply this for your projects. Display a particular post and try to show related (by topic or author) posts or information to keep the user on the site.

  • 0 Comments
  • Filed under: Coding, Wordpress
  • CodeIgniter, Digg API, and PHP

    If are trying to get somewhere with the Digg API, I highly recommend this tutorial on accessing the Digg API with PHP. Remember to save the php files as a CodeIgniter library so that you can call it like this:

    $this->load->library('diggclass');
  • 0 Comments
  • Filed under: Coding
  • PHP Widget For Mac OS X

    Andrew Hegdes created a PHP Function reference widget that provides fast lookup of information about the PHP web programming language. Just turned version one, and he’s looking for a little feedback. Haven’t seen anything like this yet, so bookmarking when i switch full time to Mac.

  • 0 Comments
  • Filed under: Apple, Coding
  • PHP error_reporting() Cheat Sheet

    PHP error_reporting() Cheat Sheet

  • 0 Comments
  • Filed under: Coding, Sideblog
  • Mediatyping Your Site With PHP

    Dave over at mezzoblue tells us his method of giving users a choice if they are viewing a site on a mobile device or tv (Wii, Playstation, etc.). This is a useful tip, even for those with iPhones and iPod Touchs (iTouch).

  • 0 Comments
  • Filed under: Coding
  • Yahoo Answers Clones (PHP)

    Before considering building my own, I’m looking for php/mysql implentations of Yahoo Answers. So far, the best examples is Askeet built by the symfony Web PHP Framework. I’m going to give it a try, but always looking for alternatives.

  • 0 Comments
  • Filed under: Coding
  • PHP Smart Image Resizer

    Smart Image Resizer - Done in PHP. I’m usually not a fan of activating a script through an image tag:

    <img src="/image.php/coffee-bean.jpg?width=200&amp;height=200&amp;image=/wp-content/uploads/2008/03/coffee-bean.jpg" alt="Coffee Bean" />

    But the author claims “Built-in caching keeps image variations for optimal performance” and there is cropping, so I think this might be useful. Worth a look. [ via David W ]

  • 1 Comment
  • Filed under: Coding
  • Force A Secure Page Using PHP

    Probably a no-brainer, but still I just saw this on a client site another night and thought how to Force A Secure Page Using PHP was a good tip.

    if($_SERVER['SERVER_PORT'] != '443') { header('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); exit(); }  
    
  • 0 Comments
  • Filed under: Coding
  • Execute a HTTP POST Using PHP CURL

    Here’s how you execute a POST using the PHP CURL library.

  • 0 Comments
  • Filed under: Coding
  • PHP Client Library for our Address Book API. Seems practical for social networking applications.

    The Address Book API allows for a user to import their email contact list (from Gmail, Yahoo!, AOL, and Hotmail) into any site. Our API is used on dozens of sites and applications, and is a way for users to invite friends to a site, share content with people in their address book, and import their social relationships.

  • 0 Comments
  • Filed under: Coding, Web 2.0
  • Speeding Up Apache

    Jaisen Mathai shows how he improved speed with PHP and .htaccess. There are endless schools of thought and execution on this, but worthy of a look.

  • 0 Comments
  • Filed under: Coding
  • Custom Page Slug: Wordpress Plugin

    This custom page slug plugin allows you to create a custom page slug then fill that page with any content (html, php, whatever) with “full access to the Wordpress and Plugin architecture”. This is nice for niche requests, although it’s minor coding without the plugin. Congrats to Leon.

  • 2 Comments
  • Filed under: Wordpress
  • Spellify is “an automatic text field spell checker” that’s available for download, with the following requirements:

    - PHP 4+ with CURL library installed (developed using PHP 4.4.6)
    - script.aculo.us 1.8.0 (only effects.js and scriptaculous.js required)
    - Prototype JavaScript Framework 1.6.0

  • 0 Comments
  • Filed under: Coding
  • PHP/MySQL, KML, and Google Maps

    While i’m on the topic of Google Maps, I decided to bookmark Pamela’s other article which is more like an introduction on how to use Google Maps with a MySql database. Related article - Using PHP and MySQL to create KML.

  • 0 Comments
  • Filed under: Coding
  • PHP Google Grabber

    Google Grabber: “Using a short amount of PHP code, you can query Google to retrieve the number of pages your domain has listed in Google.”

  • 0 Comments
  • Filed under: Coding
  • This topic comes up frquently enough to warrant a bookmark to Pamela Fox’s how-to on a Store Locator with PHP, MySQL & Google Maps. Being on the Google Geo APIs Team, i can’t wait to dive into this.

  • 2 Comments
  • Filed under: Coding
  • MySQL Backup From a PHP script

    I’ve bumped into PHP scripts like this before, but haven’t bookmarked them until now.

  • 0 Comments
  • Filed under: Coding
  • Random Weighted Elements in PHP

    I’m horrible in math. So I hope I never have to figure out how to select a random, weighted element from an array in PHP. But if I do, I now have something to refer to! Thanks Jesse!

  • 0 Comments
  • Filed under: Coding
  • Chyrp appears to be a light weight blogging engine, done in PHP/mySQL (some Ajax) and is “loosely based on the MVC design pattern.”. It’s been recently upgraded. I don’t like the fact you need to give an email for a live demo, but at least you can download the code.

    Chyrp is a blogging engine designed to be very lightweight while retaining functionality. It is driven by PHP and MySQL (with some AJAX thrown in), and has a pimpin’ theme and module engine, so you can personalize it however you want.

    John Gruber picked up on this (and so did i) that Cameron Hunt switched from Tumblr to Chyrp, an interesting endorsement.

    Storing an IP Address in MySQL

    You may think with “125.125.1.1″, you would want a VarChar type of field. That would be my first instinct until this tip made me think. If you are storing an IP Address in MySql (or any database for that matter) it’s better to store it as an Integer. MySQL has two built-in functions: INET_ATON() and INET_NTOA() to convert the IP. This allows for better storage and possible indexing.

  • 0 Comments
  • Filed under: Coding
  • I’m bookmarking this sample Facebook application with CodeIgniter mainly for the CodeIgniter aspect since i’m not really an active Facebook user. Still interesting, and worth a look.

  • 1 Comment
  • Filed under: Coding
  • Although it looks like there are plugins that accomplish this, it’s nice to know how to highlight author or admin comments in a Wordpress blog using the oldschool approach of php and css.

  • 1 Comment
  • Filed under: Wordpress
  • CodeIgniter 1.6 - Yeah Baby!

    The fact that CodeIgniter 1.6 has hit the streets has got me excited about this php framework again. One or two new client projects will be built with this version in the coming weeks. I especially like how you can extend the helpers, but the biggest thing of all is that a CodeIgniter 2.0 might be in our future since development is accelerating.

    PHP4 is still supported, and I would agree with that thinking since PHP5 is not yet everywhere in the shared hosting universe.

  • 0 Comments
  • Filed under: Coding
  • This is a bugger to figure out - basically I was using php to read a varchar value in a SQL database. Problem was, my returning value was cut off at around 255 or 256 characters. Even changing the mssql.textlimit and mssql.textsize values in the php.ini file didn’t help. The answer, it seems, is to preform a little conversation in your SQL SELECT statement:

    select *, convert(text,bio) as bio from writers

    So if “bio” is the field that is in the SQL database than contains more than 256 characters, the above should give you ALL those characters back.

  • 0 Comments
  • Filed under: Coding
  • FancyUpload looks very cool. Basically a great graphical way to upload multiple files (there’s even a php script for the actual uploading and validation). Not sure if this is currently being maintained, but if you are looking for a decent uploader this might be the answer. Platform and server independent, just needs Flash 8+. Plus you can limit uploads by file count and/or file size.

    Stumbled on these, and I wanted to get them in my bookmarks for my fellow coders. Parsing ITunes Library.xml with ActionScript 3.0 and plist parsing in PHP.

  • 0 Comments
  • Filed under: Coding
  • Leon Chevalier claims to have created a PHP class that can “Improve website load time by 500%”. Although someone in the comments is correcting that figure to 80%. Regardless, it takes 3 lines of code to include and use. Bookmarking to later try.

  • 0 Comments
  • Filed under: Coding
  • PhpDelicious

    PhpDelicious is a library for accessing the del.icio.us API. Recently upgraded so it’s now PHP 5 only, has an improved (more robust) HTTP request method, etc.

  • 0 Comments
  • Filed under: Coding
  • CodeIgniter 1.6.0 Beta

    According to Derek Allard, CodeIgniter 1.6.0 “beta” is available and he’s giving a hint for additional (and bigger) updates in the near future. I’m glad to hear this, since CodeIgniter is my favorite PHP framework. Can’t wait to take a crack at it.

  • 0 Comments
  • Filed under: Coding
  • phpMyID

    phpMyID is a “single user (though, if you were so inclined, you could easily turn it into a multi-user setup) IdP, or Identity Provider for the OpenID framework.” Just been updated to version 0.7. [ via full-speed ]

  • 0 Comments
  • Filed under: Coding
  • Twitter Updates