<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The How to site &#187; Wordpress</title>
	<atom:link href="http://www.bloggpro.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bloggpro.com</link>
	<description>Office tips, CSS, PHP, MySQL scripting and web publishing</description>
	<lastBuildDate>Wed, 28 Apr 2010 00:34:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Simple weather widget plugin for Wordpress</title>
		<link>http://www.bloggpro.com/simple-weather-widget-plugin-for-wordpress/</link>
		<comments>http://www.bloggpro.com/simple-weather-widget-plugin-for-wordpress/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 08:53:28 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[Blogging etc]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.bloggpro.com/?p=339</guid>
		<description><![CDATA[The Simple Weather widget is a small and simple (duh!) widget for wordpress which enables the display of weather forecast with icons for any location as specified by the post custom field.  The widget adapts to the look and feel of the blog theme. A typical Simple Weather widget can look like this (example from [...]]]></description>
			<content:encoded><![CDATA[<p>The <strong>Simple Weather widget</strong> is a small and simple (duh!) widget for <strong>wordpress</strong> which enables the display of weather forecast with icons for any location as specified by the post custom field.  The widget adapts to the look and feel of the blog theme. A typical Simple <strong>Weather widget</strong> can look like this (example from this site):</p>
<p><a rel="attachment  wp-att-340" href="http://www.bloggpro.com/simple-weather-widget-plugin-for-wordpress/weather/"><img class="alignnone size-full wp-image-340" title="Weather widget plugin" src="http://www.bloggpro.com/wp-content/uploads/2010/04/weather.PNG" alt="weather" width="284" height="136" /></a></p>
<h2>Installation</h2>
<p><span id="more-339"></span></p>
<ol>
<li>Download the zip via the download button below.</li>
<li>Extract and upload to your wordpress installation plugin folder.</li>
<li>Activate the widget plugin via the admin panel of your blog.</li>
<li>In the admin panel widgets section, drag the Simple Weather widget to the desired position in the sidebar.</li>
<li>Select temperature unit, Celcius or Farenheit.</li>
<li>Done!</li>
</ol>
<h2>Usage</h2>
<p>To use the widget, in the desired posts simply add a <code>cityName</code> and possibly <code>weatherBase</code> custom fields with the name of the city for which you wish to display the weather. The <code>weatherBase</code> is only needed if Google weather API does not recognize the city in <code>cityName</code>.</p>
<p>If neither <code>cityNamenor</code> <code>weatherBase</code> is entered, the widget will not display.</p>
<h2>Download</h2>
<input onclick="startGateway('NjMxNTU%3D');" name="download" type="submit" value="Download plugin" />
]]></content:encoded>
			<wfw:commentRss>http://www.bloggpro.com/simple-weather-widget-plugin-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Simple Google Maps plugin for wordpress</title>
		<link>http://www.bloggpro.com/simple-google-maps-plugin-for-wordpress/</link>
		<comments>http://www.bloggpro.com/simple-google-maps-plugin-for-wordpress/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 01:53:22 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.bloggpro.com/simple-google-maps-plugin-for-wordpress/</guid>
		<description><![CDATA[What is it?
This is a demo post for a little plugin I wrote that uses custom fields in Wordpress together with Google&#8217;s HTTP geo coding API and Google Maps to produce a map with a marker in the post. The current version (0.5) of the plugin takes the following custom keys and use them to [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What is it?</strong><br />
This is a demo post for a little plugin I wrote that uses custom fields in Wordpress together with Google&#8217;s HTTP geo coding API and Google Maps to produce a map with a marker in the post. The current version (0.5) of the plugin takes the following custom keys and use them to geocode the location (Zip, City, Address, Country) and also display them in the info window popup in the map. Keys marked with a * are required for the plugin to output the map.</p>
<ul class="inpost">
<li>Zip</li>
<li>City*</li>
<li>Address</li>
<li>Country*</li>
<li>Phone</li>
<li>Misc</li>
</ul>
<p><strong>Installation and useage<br />
</strong><span id="more-264"></span></p>
<ul class="inpost">
<li><a href="http://www.bloggpro.com/downloads/GMaps%20plugin">Download</a> the plugin file and upload it to your plugin directory.</li>
<li>Activate the plugin.</li>
<li>Go to <a href="http://code.google.com/apis/maps/signup.html">Google Maps API</a> and sign up for an API key.</li>
<li>Go to the <em>GMaps plugin configuration page</em> (in <em>Options</em>) and enter your API key (and select default Zoom level).</li>
<li>In your header.php template file, change <code>&lt;body&gt;</code> to <code>&lt;body onload="load()" onunload="GUnload()"&gt;</code>.</li>
<li>Make a new post.</li>
<li>Add at least the <em>City</em> and <em>Country</em> custom keys, and add the tag  <code>[ GMaps ]</code> (without extra spaces) where you want the map to render.</li>
<li>Done!</li>
</ul>
<p><strong>Download</strong></p>
<p><a href="http://www.bloggpro.com/downloads/GMaps%20plugin">GMaps plugin v0.5</a> (downloaded 379 times)</p>
<h2>Plugin output</h2>
<div id="map" style="width:400px;height:300px"></div>
]]></content:encoded>
			<wfw:commentRss>http://www.bloggpro.com/simple-google-maps-plugin-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Integrating a forum with your Wordpress installation</title>
		<link>http://www.bloggpro.com/integrating-a-forum-with-your-wordpress-installation/</link>
		<comments>http://www.bloggpro.com/integrating-a-forum-with-your-wordpress-installation/#comments</comments>
		<pubDate>Tue, 01 Apr 2008 13:59:30 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[Blogging etc]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.bloggpro.com/integrating-a-forum-with-your-wordpress-installation/</guid>
		<description><![CDATA[Traditionally it has been quite hassle to integrate a forum to a wordpress powered site, using a number of such bridge hacks to integrate phpBB and SMF I know how much work and trouble it can be; if you even get it to work. One option has been to use bbPress, a Wordpress forum plugin [...]]]></description>
			<content:encoded><![CDATA[<p>Traditionally it has been quite hassle to integrate a forum to a wordpress powered site, using a number of such bridge hacks to integrate phpBB and SMF I know how much work and trouble it can be; if you even get it to work. One option has been to use <a href="http://bbpress.org/">bbPress</a>, a Wordpress forum plugin which works nicely out of the box, but leaves a lot to be desired in terms of design and functions.</p>
<p>Therefore I was quite excited to find a plugin called <a href="http://www.stuff.yellowswordfish.com/simplepress-forum/">Simple:Press forum</a>, which is a forum with features and functions that is much closer to what you expect to find i a modern forum:</p>
<ul>
<li><strong>‘Pretty/SEO’ Friendly Permalinks</strong>. And the good news &#8211; should also be able to display links with the old url structure.</li>
<li><strong>Private Messaging</strong> &#8211; the second most regular request.</li>
<li><strong>Powerful User Group and Permission</strong> structure. Fine control over who can see and do what.</li>
<li><strong>New ‘QuickLinks’</strong> dropdown on the Search Bar displaying recent and unread posts</li>
<li><strong>Bulk Moderate Posts</strong> needing approval and read new posts in one place</li>
<li><strong>Login Form</strong> bought into current page view</li>
<li><strong>Mass Deletion</strong> tool for the removal of old topics</li>
<li><strong>Many ‘Custom’</strong> options: Up to three custom icons in login bar; set custom icons for all Groups and Forums; Use a graphic in place of page title; Create a special ‘editor’ message</li>
<li><strong>Redirect RSS Feeds</strong> to external services (i.e., FeedBurner)</li>
<li><strong>‘Pluggable’ </strong>page rendering code allowing replacement functions and custom code routines</li>
<li><strong>TinyMCE V3</strong> with much improved text handling and formatting</li>
<li><strong>Optional Image File Uploading</strong> (only using TinyMCE editor)</li>
<li><strong>Improved Notification</strong>, Messaging and form validations</li>
<li><strong>EMail Overrides</strong> and create text of New User Email</li>
<li><strong>Democracy Polls</strong> plugin support</li>
<li><strong>Images as Thumbnails</strong> that expand</li>
</ul>
<p><span id="more-232"></span></p>
<p>I must say I was very very impressed both with the product and the support. I had an fully integrated forum up and running in under four hours and the result is very pleasing. I&#8217;d recommend anyone interested in adding a forum function to their Wordpress installation to <a href="http://www.stuff.yellowswordfish.com/simplepress-forum/">check it out</a>, and don&#8217;t forget to support the developer!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloggpro.com/integrating-a-forum-with-your-wordpress-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress latest user login hack</title>
		<link>http://www.bloggpro.com/wordpress-latest-user-login-hack/</link>
		<comments>http://www.bloggpro.com/wordpress-latest-user-login-hack/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 14:10:11 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[Blogging etc]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.bloggpro.com/wordpress-latest-user-login-hack/</guid>
		<description><![CDATA[I needed a way to log the date and time the last time a user logged in I looked around for a plugin to do this for me, but found none, so I decided to try and write a function myself.
This one I struggled with and in the end it came out like something of [...]]]></description>
			<content:encoded><![CDATA[<p>I needed a way to log the date and time the last time a user logged in I looked around for a plugin to do this for me, but found none, so I decided to try and write a function myself.</p>
<p>This one I struggled with and in the end it came out like something of a abomination of a function, but at least it gets the job done. It uses the WP_AUTHENTICATE hook to call the function where a simple login check is done, and if successful, the timestamp is writted to the wp_users table.</p>
<p>You can either insert a new field called <code>user_lastlogin </code> (or what you prefer)  in wp_users like I did, or you can make a new table to store the login log.</p>
<p>The code follows below. Happy logging!</p>
<p><span id="more-230"></span></p>
<p><code><br />
function update_last_login($user_login='', $user_pass='', $cookie=false)<br />
{<br />
if ($_POST) {<br />
global $wpdb;<br />
$success=0;<br />
// check login $_POST variables against database<br />
$query = "SELECT ID FROM wp_users WHERE user_login='$user_login[0]' AND user_pass='".md5($user_login[1])."'";<br />
$uid = $wpdb-&gt;get_var($query);<br />
if ($uid!='') {$success=1;}<br />
$login_time = date("Y-m-d H:i:s", time()+28800);<br />
// if login is successful, update user last login<br />
if ($success==1) {<br />
$query = "UPDATE wp_users SET user_lastlogin='$login_time' WHERE user_login='$user_login[0]'";<br />
$wpdb-&gt;query($query);<br />
}<br />
}<br />
}<br />
// Hook action -- this is needed to call the function when someone logs in<br />
add_action('wp_authenticate','bm_update_last_login',10,2);</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloggpro.com/wordpress-latest-user-login-hack/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
