<?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>Effutio &#187; Hints and Tips</title>
	<atom:link href="http://www.effutio.com/category/wordpress/hints-and-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.effutio.com</link>
	<description>One must avoid that wicked temptress, Laziness.</description>
	<lastBuildDate>Wed, 30 Jun 2010 20:37:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Advanced Nested Comments on Wordpress Pages Issue Fix</title>
		<link>http://www.effutio.com/wordpress/advanced-nested-comments-on-wordpress-pages-issue-fix/332/</link>
		<comments>http://www.effutio.com/wordpress/advanced-nested-comments-on-wordpress-pages-issue-fix/332/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 02:11:57 +0000</pubDate>
		<dc:creator>Neil</dc:creator>
				<category><![CDATA[Hints and Tips]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Hints and Tips]]></category>

		<guid isPermaLink="false">http://www.effutio.com/?p=332</guid>
		<description><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fadvanced-nested-comments-on-wordpress-pages-issue-fix%2F332%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fadvanced-nested-comments-on-wordpress-pages-issue-fix%2F332%2F&#38;source=The1Path&#38;style=normal&#38;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>OK so I used a technique I found here: http://www.problogdesign.com/wordpress/advanced-wordpress-comment-styles-and-tricks/ to setup advanced, nested comments for effutio.</p>
<p>It all works fantastically untill I used the same technique on another site which used more Pages than Posts. There are two parts to the problem that happened on this site.</p>
<p>Firstly the &#8220;Reply&#8221; link (allowing you to reply to a specific user&#8230;</p>

<ul><li><a href='http://www.effutio.com/wordpress/login-directly-from-a-page-in-wordpress-using-a-sidebar-login-form/34/' rel='bookmark' title='Permanent Link: Login directly from a page in Wordpress using a sidebar login form'>Login directly from a page in Wordpress using a sidebar login form</a></li>
<li><a href='http://www.effutio.com/wordpress/display-your-wordpress-posts-on-other-pages/54/' rel='bookmark' title='Permanent Link: Display your Wordpress posts on other pages'>Display your Wordpress posts on other pages</a></li>
<li><a href='http://www.effutio.com/wordpress/more-advanced-menu-only-logged-in-users-or-certain-users-can-see/88/' rel='bookmark' title='Permanent Link: More Advanced Menu only logged in users or certain users can see'>More Advanced Menu only logged in users or certain users can see</a></li>
<li><a href='http://www.effutio.com/wordpress/using-google-adsense-for-search-in-wordpress/167/' rel='bookmark' title='Permanent Link: Using Google Adsense for Search in Wordpress'>Using Google Adsense for Search in Wordpress</a></li>
<li><a href='http://www.effutio.com/wordpress/hide-wordpress-update-nag-without-a-plugin/278/' rel='bookmark' title='Permanent Link: Hide Wordpress Update Nag Without a Plugin'>Hide Wordpress Update Nag Without a Plugin</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fadvanced-nested-comments-on-wordpress-pages-issue-fix%2F332%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fadvanced-nested-comments-on-wordpress-pages-issue-fix%2F332%2F&amp;source=The1Path&amp;style=normal&amp;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>OK so I used a technique I found here: http://www.problogdesign.com/wordpress/advanced-wordpress-comment-styles-and-tricks/ to setup advanced, nested comments for effutio.</p>
<p>It all works fantastically untill I used the same technique on another site which used more Pages than Posts. There are two parts to the problem that happened on this site.</p>
<p>Firstly the &#8220;Reply&#8221; link (allowing you to reply to a specific user comment) didnt work and once the first comment was made on the page the comment form would disappear!</p>
<p>The fix to these bugs are as foloows:</p>
<p>1. In your comments.php theme file replace:</p>
<pre class="brush:php">
<?php ( comments_open() ) : ?>
</pre>
<p>with this</p>
<pre class="brush:php">
<?php ( comments_open() OR is_page() ) : ?>
</pre>
<p>2. In wp-includes/comment-template.php at line 1012 change:</p>
<pre class="brush:php">
$comment = get_comment($comment);
$post = get_post($post);
</pre>
<p>to:</p>
<pre class="brush:php">
$comment = get_comment($comment);
$post = get_post($comment->comment_post_ID);
</pre>
<p>Upload the updated files and hey presto the comment form shows on pages with a comment and you can now use the &#8220;Reply&#8221; link to respond to specific comments. Ahhhhhh the world has been put right once again. Incase you are wondering no1 above fixes the comment form disappearance and no2 fixes the Reply link bug!! Enjoy!</p>
<span class="sfforumlink"><a href="http://www.effutio.com/forum/wordpress-bugs-issues-and-fixes/advanced-nested-comments-on-wordpress-pages-issue-fix/"><p><img src="http://www.effutio.com/wp-content/plugins/simple-forum/styles/icons/ash/bloglink.png" alt="" /> Join the forum discussion on this post</p>
</a></span>

<ul><li><a href='http://www.effutio.com/wordpress/login-directly-from-a-page-in-wordpress-using-a-sidebar-login-form/34/' rel='bookmark' title='Permanent Link: Login directly from a page in Wordpress using a sidebar login form'>Login directly from a page in Wordpress using a sidebar login form</a></li>
<li><a href='http://www.effutio.com/wordpress/display-your-wordpress-posts-on-other-pages/54/' rel='bookmark' title='Permanent Link: Display your Wordpress posts on other pages'>Display your Wordpress posts on other pages</a></li>
<li><a href='http://www.effutio.com/wordpress/more-advanced-menu-only-logged-in-users-or-certain-users-can-see/88/' rel='bookmark' title='Permanent Link: More Advanced Menu only logged in users or certain users can see'>More Advanced Menu only logged in users or certain users can see</a></li>
<li><a href='http://www.effutio.com/wordpress/using-google-adsense-for-search-in-wordpress/167/' rel='bookmark' title='Permanent Link: Using Google Adsense for Search in Wordpress'>Using Google Adsense for Search in Wordpress</a></li>
<li><a href='http://www.effutio.com/wordpress/hide-wordpress-update-nag-without-a-plugin/278/' rel='bookmark' title='Permanent Link: Hide Wordpress Update Nag Without a Plugin'>Hide Wordpress Update Nag Without a Plugin</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.effutio.com/wordpress/advanced-nested-comments-on-wordpress-pages-issue-fix/332/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom Wordpress Loop Breaks Pagination</title>
		<link>http://www.effutio.com/wordpress/custom-wordpress-loop-breaks-pagination/322/</link>
		<comments>http://www.effutio.com/wordpress/custom-wordpress-loop-breaks-pagination/322/#comments</comments>
		<pubDate>Fri, 21 May 2010 00:28:36 +0000</pubDate>
		<dc:creator>Neil</dc:creator>
				<category><![CDATA[Hints and Tips]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Hints and Tips]]></category>
		<category><![CDATA[Wordpress Pagination]]></category>
		<category><![CDATA[Wordpress Tutorials]]></category>

		<guid isPermaLink="false">http://www.effutio.com/?p=322</guid>
		<description><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fcustom-wordpress-loop-breaks-pagination%2F322%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fcustom-wordpress-loop-breaks-pagination%2F322%2F&#38;source=The1Path&#38;style=normal&#38;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>Holy smokes, well this took me around 2 hours to sort out so Im writing it all down so I can save people some time and remember it myself!!</p>
<p>Right OK if you are diving into WP you will undoubtably want to try some wonderful things with the loop, if like me to display posts from a certain category on&#8230;</p>

<ul><li><a href='http://www.effutio.com/wordpress/login-directly-from-a-page-in-wordpress-using-a-sidebar-login-form/34/' rel='bookmark' title='Permanent Link: Login directly from a page in Wordpress using a sidebar login form'>Login directly from a page in Wordpress using a sidebar login form</a></li>
<li><a href='http://www.effutio.com/wordpress/display-your-wordpress-posts-on-other-pages/54/' rel='bookmark' title='Permanent Link: Display your Wordpress posts on other pages'>Display your Wordpress posts on other pages</a></li>
<li><a href='http://www.effutio.com/wordpress/using-google-adsense-for-search-in-wordpress/167/' rel='bookmark' title='Permanent Link: Using Google Adsense for Search in Wordpress'>Using Google Adsense for Search in Wordpress</a></li>
<li><a href='http://www.effutio.com/web-design/page-templates-in-wordpress/191/' rel='bookmark' title='Permanent Link: Page Templates in Wordpress'>Page Templates in Wordpress</a></li>
<li><a href='http://www.effutio.com/web-design/using-multipledifferent-headers-sidebars-footers-and-comment-templates-in-wordpress/193/' rel='bookmark' title='Permanent Link: Using multiple/different headers, sidebars, footers and comment templates in Wordpress'>Using multiple/different headers, sidebars, footers and comment templates in Wordpress</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fcustom-wordpress-loop-breaks-pagination%2F322%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fcustom-wordpress-loop-breaks-pagination%2F322%2F&amp;source=The1Path&amp;style=normal&amp;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>Holy smokes, well this took me around 2 hours to sort out so Im writing it all down so I can save people some time and remember it myself!!</p>
<p>Right OK if you are diving into WP you will undoubtably want to try some wonderful things with the loop, if like me to display posts from a certain category on a page. Well its pretty easy to do but doing so breaks any pagination you may have i.e. WP-Pagenavi or posts_nav_link(). Whatever you are using it will not work if using a custom loop containing a query_posts() or $wp_query() function.</p>
<p>A lot of people will tell you it cant be done and just to use showposts to display all your posts or there is a few blogs out there sporting fixes which dont work&#8230;.I dont know if they ever have or if its using a different version or if I had missed something (as others said it worked for them but I tried lots of variations on the theme). Anyhoo I finally picked up on a couple of comments, I combined two ideas and hey presto it worked&#8230;.I couldnt believe it.</p>
<p>So here it is, this is what your loop should look like:</p>
<pre class="brush:php">
<?php wp_reset_query(); ?>
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $wp_query->query('cat=20&#038;paged='.$paged); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
....loop content
<?php endwhile; ?>
<?php else : ?>
....alternative content
<?php endif; ?>
<?php wp_reset_query(); ?>
</pre>
<p>This line is key and a few other fixes out there use it with query posts like this:<br />
$paged = (get_query_var(&#8216;paged&#8217;)) ? get_query_var(&#8216;paged&#8217;) : 1; query_posts(&#8216;cat=3&#038;showposts=12&#038;paged=&#8217;.$paged);</p>
<p>That didnt work for me and I picked up on a comment suggesting that wp_reset_query() wouldnt work with query_posts(), then I found another comment posting a different solution utlising wp_query->query(). Well it was 1am and I thought &#8216;ah well nothing to lose&#8217; and it worked. Well Im very relieved to have found a solution that works for me and I hope it save you time and works for you too.</p>
<p>Oh yeh and remember if you have adapted loops on other pages, always include wp_reset_query(); at the end of the loop on each page.</p>
<p>Share and Enjoy!</p>
<span class="sfforumlink"><a href="http://www.effutio.com/forum/wordpress-tutorials/custom-wordpress-loop-breaks-pagination/"><p><img src="http://www.effutio.com/wp-content/plugins/simple-forum/styles/icons/ash/bloglink.png" alt="" /> Join the forum discussion on this post</p>
</a></span>

<ul><li><a href='http://www.effutio.com/wordpress/login-directly-from-a-page-in-wordpress-using-a-sidebar-login-form/34/' rel='bookmark' title='Permanent Link: Login directly from a page in Wordpress using a sidebar login form'>Login directly from a page in Wordpress using a sidebar login form</a></li>
<li><a href='http://www.effutio.com/wordpress/display-your-wordpress-posts-on-other-pages/54/' rel='bookmark' title='Permanent Link: Display your Wordpress posts on other pages'>Display your Wordpress posts on other pages</a></li>
<li><a href='http://www.effutio.com/wordpress/using-google-adsense-for-search-in-wordpress/167/' rel='bookmark' title='Permanent Link: Using Google Adsense for Search in Wordpress'>Using Google Adsense for Search in Wordpress</a></li>
<li><a href='http://www.effutio.com/web-design/page-templates-in-wordpress/191/' rel='bookmark' title='Permanent Link: Page Templates in Wordpress'>Page Templates in Wordpress</a></li>
<li><a href='http://www.effutio.com/web-design/using-multipledifferent-headers-sidebars-footers-and-comment-templates-in-wordpress/193/' rel='bookmark' title='Permanent Link: Using multiple/different headers, sidebars, footers and comment templates in Wordpress'>Using multiple/different headers, sidebars, footers and comment templates in Wordpress</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.effutio.com/wordpress/custom-wordpress-loop-breaks-pagination/322/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Wordpress RSS Error &#8211; Blank Line Fix</title>
		<link>http://www.effutio.com/wordpress/wordpress-rss-error-blank-line-fix/299/</link>
		<comments>http://www.effutio.com/wordpress/wordpress-rss-error-blank-line-fix/299/#comments</comments>
		<pubDate>Wed, 05 May 2010 13:50:10 +0000</pubDate>
		<dc:creator>Neil</dc:creator>
				<category><![CDATA[Hints and Tips]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Hints and Tips]]></category>

		<guid isPermaLink="false">http://www.effutio.com/?p=299</guid>
		<description><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fwordpress-rss-error-blank-line-fix%2F299%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fwordpress-rss-error-blank-line-fix%2F299%2F&#38;source=The1Path&#38;style=normal&#38;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>Well for some reason or other sometimes your Wordpress feed will break, which I recently discovered here at effutio. This is normally down to a blank line (error will be on line 1 column 1 or some such) being inserted at the top of the xml file (feedburner especially doesnt like these blank lines)? This extra line could be caused&#8230;</p>

<ul><li><a href='http://www.effutio.com/wordpress/hide-wordpress-update-nag-without-a-plugin/278/' rel='bookmark' title='Permanent Link: Hide Wordpress Update Nag Without a Plugin'>Hide Wordpress Update Nag Without a Plugin</a></li>
<li><a href='http://www.effutio.com/wordpress/pre-installation-wordpress-checklist-top-5/3/' rel='bookmark' title='Permanent Link: Pre-installation Wordpress checklist'>Pre-installation Wordpress checklist</a></li>
<li><a href='http://www.effutio.com/wordpress/display-your-wordpress-posts-on-other-pages/54/' rel='bookmark' title='Permanent Link: Display your Wordpress posts on other pages'>Display your Wordpress posts on other pages</a></li>
<li><a href='http://www.effutio.com/web-design/page-templates-in-wordpress/191/' rel='bookmark' title='Permanent Link: Page Templates in Wordpress'>Page Templates in Wordpress</a></li>
<li><a href='http://www.effutio.com/web-design/using-multipledifferent-headers-sidebars-footers-and-comment-templates-in-wordpress/193/' rel='bookmark' title='Permanent Link: Using multiple/different headers, sidebars, footers and comment templates in Wordpress'>Using multiple/different headers, sidebars, footers and comment templates in Wordpress</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fwordpress-rss-error-blank-line-fix%2F299%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fwordpress-rss-error-blank-line-fix%2F299%2F&amp;source=The1Path&amp;style=normal&amp;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>Well for some reason or other sometimes your Wordpress feed will break, which I recently discovered here at effutio. This is normally down to a blank line (error will be on line 1 column 1 or some such) being inserted at the top of the xml file (feedburner especially doesnt like these blank lines)? This extra line could be caused by a plugin or something else, who knows and whos got the time to bloody look through everything to try and fix it. Not I.</p>
<p>Luckily there is a simple and effective fix (provided by www.Wejn.org) and here it is:</p>
<p>Download <a href="http://wejn.org/stuff/wejnswpwhitespacefix.php">this file</a></p>
<p>Put it in your Wordpress ROOT folder so the one with wp-config.php and wp-settings.php (DO NOT put it in your theme root folder!). Upload file to your server.</p>
<p>Then add this line to the index.php in Wordpress ROOT folder so it looks like this:</p>
<pre class="brush:php"><?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
include("wejnswpwhitespacefix.php");
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
?></pre>
<p>Upload the updated index.php file and you now have a working RSS&#8230;..Awesome!</p>
<span class="sfforumlink"><a href="http://www.effutio.com/forum/wordpress-bugs-issues-and-fixes/wordpress-rss-error-blank-line-fix/"><p><img src="http://www.effutio.com/wp-content/plugins/simple-forum/styles/icons/ash/bloglink.png" alt="" /> Join the forum discussion on this post</p>
</a></span>

<ul><li><a href='http://www.effutio.com/wordpress/hide-wordpress-update-nag-without-a-plugin/278/' rel='bookmark' title='Permanent Link: Hide Wordpress Update Nag Without a Plugin'>Hide Wordpress Update Nag Without a Plugin</a></li>
<li><a href='http://www.effutio.com/wordpress/pre-installation-wordpress-checklist-top-5/3/' rel='bookmark' title='Permanent Link: Pre-installation Wordpress checklist'>Pre-installation Wordpress checklist</a></li>
<li><a href='http://www.effutio.com/wordpress/display-your-wordpress-posts-on-other-pages/54/' rel='bookmark' title='Permanent Link: Display your Wordpress posts on other pages'>Display your Wordpress posts on other pages</a></li>
<li><a href='http://www.effutio.com/web-design/page-templates-in-wordpress/191/' rel='bookmark' title='Permanent Link: Page Templates in Wordpress'>Page Templates in Wordpress</a></li>
<li><a href='http://www.effutio.com/web-design/using-multipledifferent-headers-sidebars-footers-and-comment-templates-in-wordpress/193/' rel='bookmark' title='Permanent Link: Using multiple/different headers, sidebars, footers and comment templates in Wordpress'>Using multiple/different headers, sidebars, footers and comment templates in Wordpress</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.effutio.com/wordpress/wordpress-rss-error-blank-line-fix/299/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple:Press Forum Review &#8211; Is it the best forum for WP?</title>
		<link>http://www.effutio.com/wordpress/simplepress-forum-review-is-it-the-best-forum-for-wp/285/</link>
		<comments>http://www.effutio.com/wordpress/simplepress-forum-review-is-it-the-best-forum-for-wp/285/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 09:58:30 +0000</pubDate>
		<dc:creator>Neil</dc:creator>
				<category><![CDATA[Hints and Tips]]></category>
		<category><![CDATA[Product]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[SimplePress Forum]]></category>
		<category><![CDATA[Wordpress Hints and Tips]]></category>

		<guid isPermaLink="false">http://www.effutio.com/?p=285</guid>
		<description><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fsimplepress-forum-review-is-it-the-best-forum-for-wp%2F285%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fsimplepress-forum-review-is-it-the-best-forum-for-wp%2F285%2F&#38;source=The1Path&#38;style=normal&#38;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://simple-press.com"><img src="http://www.effutio.com/wp-content/uploads/spflogo.png" alt="Simple Press Forum" title="spflogo" width="350" height="68" class="alignleft size-full wp-image-289" /></a></p>
<div style="clear:left">A lot of Wordpress website owners either need or want a forum. After all they can add another social interaction tool, its another place to put your content and place ads. So we are agreed that a forum is cool and adds extra dimensions to your WP site but there are a few options out there but one</div><p>&#8230;</p>

<ul><li><a href='http://www.effutio.com/wordpress/login-directly-from-a-page-in-wordpress-using-a-sidebar-login-form/34/' rel='bookmark' title='Permanent Link: Login directly from a page in Wordpress using a sidebar login form'>Login directly from a page in Wordpress using a sidebar login form</a></li>
<li><a href='http://www.effutio.com/wordpress/menu-only-logged-in-users-or-certain-users-can-see/50/' rel='bookmark' title='Permanent Link: Menu only logged in users or certain users can see'>Menu only logged in users or certain users can see</a></li>
<li><a href='http://www.effutio.com/wordpress/display-your-wordpress-posts-on-other-pages/54/' rel='bookmark' title='Permanent Link: Display your Wordpress posts on other pages'>Display your Wordpress posts on other pages</a></li>
<li><a href='http://www.effutio.com/wordpress/more-advanced-menu-only-logged-in-users-or-certain-users-can-see/88/' rel='bookmark' title='Permanent Link: More Advanced Menu only logged in users or certain users can see'>More Advanced Menu only logged in users or certain users can see</a></li>
<li><a href='http://www.effutio.com/web-design/page-templates-in-wordpress/191/' rel='bookmark' title='Permanent Link: Page Templates in Wordpress'>Page Templates in Wordpress</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fsimplepress-forum-review-is-it-the-best-forum-for-wp%2F285%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fsimplepress-forum-review-is-it-the-best-forum-for-wp%2F285%2F&amp;source=The1Path&amp;style=normal&amp;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://simple-press.com"><img src="http://www.effutio.com/wp-content/uploads/spflogo.png" alt="Simple Press Forum" title="spflogo" width="350" height="68" class="alignleft size-full wp-image-289" /></a></p>
<div style="clear:left">A lot of Wordpress website owners either need or want a forum. After all they can add another social interaction tool, its another place to put your content and place ads. So we are agreed that a forum is cool and adds extra dimensions to your WP site but there are a few options out there but one for me stands out head and shoulders above the rest: SimplePress Forum (SPF).</p>
<p>SPF was born in 2006 after creator Andy Staines found existing forum plugins to be sub-standard and set about creating a simple yet effective forum plugin for his website. People started asking about it and for it and it was released as a plugin, from then on its gone from strength to strength with more features being added by request of SPF users.</p>
<p>I personally have been using SPF since 2008 and for me it is the most complete and feature rich forum plugin available today and Andy and Steve should be congratulated for all their hard work and unrivalled support (remember and donate too)!</p>
<p>SPF seemlessly integrates with Wordpress, meaning users need only log in once to the website. You can also write posts in the usual way in WP admin and create Forum topics using said post. Even the comments on the WP Post and SPF Topic can be integrated. Users can build a comprehensive profile with an Avatar (although for a small minority of people this could become an issue&#8230;Ive explained more below) and expect all the features that the dedicated Forum scripts deliver like phpBB and vBulletin.</p>
<p>Well all in all SPF for me is THE best forum plugin for WP and has unrivalled functionality and support; Andy, Steve and helpers really do a fantastic job. However as mentioned above Avatars could cause a slow down issue for a minority of SPF users. I discovered this when I changed servers for one of my sites running SPF. I asked in the SPF Support forum and both Andy and Steve have been extremely helpful in trying to solve this problem (the full support thread is <a href="http://simple-press.com/support-forum/simplepress-version-4-2/slow-topic-loading-yes-its-me-again/">here</a>). I also asked my server support guys and they said that the site is making loopback requests that are being blocked by the firewall???? Doi?</p>
<p>Andy eventually got me to try switching of the forums Avatar display. This resulted in my 10+ post topics to load in 4-5secs compared with the 35secs they were taking!! Of course I was thrilled to have a quick forum again but I had lost functionality which I like and users like; its a personal identifier which can portray a little about you or simply puts a face to a name.</p>
<p>So I kept annoying Steve and Andy over on the SPF support forum and they have been very patient and keen to solve the issue even if it is for a small minority of users!! So we tested varying sequences of Avatar calls and for me the tests revealed that the SPF Default Avatars and ther Uploaded Avatars seemed to be causing the slow down for some reason (which is still a mystery).</p>
<p>Andy then directed me to here: /library/sf-common-display/php and the function is sf_render_avatar() which is where the Avatar code is. I noticed the two case statements which seemed to be causing my slow down shared this variable: SFAVATARURL. After a number of bumbling tests I actually found something that worked!! It now displays the offending Avatars and does it quickly&#8230;.so here it is; in Case 2 I changed line 257 from this:</p>
<pre class="brush:php">$url = SFAVATARURL.$avfile;</pre>
<p>to this:</p>
<pre class="brush:php">$url = "www.mywebsite.com/wp-content/forum-avatars/".$avfile;</pre>
<p>And in Case 3 I changed line 284 from this:</p>
<pre class="brush:php">$url = SFAVATARURL.$image;</pre>
<p>to this:</p>
<pre class="brush:php">$url = "www.mywebsite.com/wp-content/forum-avatars/".$image;</pre>
<p>Im still trying to work out exactly why this works for me and so are Andy and Steve, if we can determine why this is working then Im sure they will release a bug fix with this included. However I would be really interested in knowing if this fix works for others suffering a topic load slow down!! Then Steve, Andy and I will know its not just me and my server being weird!!</p>
<p>So I hope this helps the few SPF users which may be experiencing slow topic loading and hopefully a bug fix can be intergrated into the next release of SPF. Please if this does help you report back here and let me know as it will be a big help!!</p>
<p>Below are my forum avatar settings just incase you need these too:<br />
<div id="attachment_295" class="wp-caption aligncenter" style="width: 510px"><img src="http://www.effutio.com/wp-content/uploads/avsettings.jpg" alt="Avatar Settings" title="Avatar Settings" width="500" height="221" class="size-full wp-image-295" /><p class="wp-caption-text">My forums avatar settings found in Forum->Profiles->Avatars</p></div></div>
<span class="sfforumlink"><a href="http://www.effutio.com/forum/wordpress-bugs-issues-and-fixes/simplepress-forum-review-is-it-the-best-forum-for-wp/"><p><img src="http://www.effutio.com/wp-content/plugins/simple-forum/styles/icons/ash/bloglink.png" alt="" /> Join the forum discussion on this post</p>
</a></span>

<ul><li><a href='http://www.effutio.com/wordpress/login-directly-from-a-page-in-wordpress-using-a-sidebar-login-form/34/' rel='bookmark' title='Permanent Link: Login directly from a page in Wordpress using a sidebar login form'>Login directly from a page in Wordpress using a sidebar login form</a></li>
<li><a href='http://www.effutio.com/wordpress/menu-only-logged-in-users-or-certain-users-can-see/50/' rel='bookmark' title='Permanent Link: Menu only logged in users or certain users can see'>Menu only logged in users or certain users can see</a></li>
<li><a href='http://www.effutio.com/wordpress/display-your-wordpress-posts-on-other-pages/54/' rel='bookmark' title='Permanent Link: Display your Wordpress posts on other pages'>Display your Wordpress posts on other pages</a></li>
<li><a href='http://www.effutio.com/wordpress/more-advanced-menu-only-logged-in-users-or-certain-users-can-see/88/' rel='bookmark' title='Permanent Link: More Advanced Menu only logged in users or certain users can see'>More Advanced Menu only logged in users or certain users can see</a></li>
<li><a href='http://www.effutio.com/web-design/page-templates-in-wordpress/191/' rel='bookmark' title='Permanent Link: Page Templates in Wordpress'>Page Templates in Wordpress</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.effutio.com/wordpress/simplepress-forum-review-is-it-the-best-forum-for-wp/285/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hide Wordpress Update Nag Without a Plugin</title>
		<link>http://www.effutio.com/wordpress/hide-wordpress-update-nag-without-a-plugin/278/</link>
		<comments>http://www.effutio.com/wordpress/hide-wordpress-update-nag-without-a-plugin/278/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 17:48:07 +0000</pubDate>
		<dc:creator>Neil</dc:creator>
				<category><![CDATA[Hints and Tips]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Hints and Tips]]></category>
		<category><![CDATA[Wordpress Nag]]></category>
		<category><![CDATA[Wordpress Tutorials]]></category>

		<guid isPermaLink="false">http://www.effutio.com/?p=278</guid>
		<description><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fhide-wordpress-update-nag-without-a-plugin%2F278%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fhide-wordpress-update-nag-without-a-plugin%2F278%2F&#38;source=The1Path&#38;style=normal&#38;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>Yes the annoying update/upgrade notice that appears at the top of the admin screen can be a bit annoying. It can also be quite dangerous. DANGEROUS you say&#8230;how so?</p>
<p>Well if you have designed a CMS for a client using wordpress and added extra things even its its simple things like changing the admin images or the memory usage. All&#8230;</p>

<ul><li><a href='http://www.effutio.com/wordpress/pre-installation-wordpress-checklist-top-5/3/' rel='bookmark' title='Permanent Link: Pre-installation Wordpress checklist'>Pre-installation Wordpress checklist</a></li>
<li><a href='http://www.effutio.com/wordpress/login-directly-from-a-page-in-wordpress-using-a-sidebar-login-form/34/' rel='bookmark' title='Permanent Link: Login directly from a page in Wordpress using a sidebar login form'>Login directly from a page in Wordpress using a sidebar login form</a></li>
<li><a href='http://www.effutio.com/web-design/page-templates-in-wordpress/191/' rel='bookmark' title='Permanent Link: Page Templates in Wordpress'>Page Templates in Wordpress</a></li>
<li><a href='http://www.effutio.com/web-design/using-multipledifferent-headers-sidebars-footers-and-comment-templates-in-wordpress/193/' rel='bookmark' title='Permanent Link: Using multiple/different headers, sidebars, footers and comment templates in Wordpress'>Using multiple/different headers, sidebars, footers and comment templates in Wordpress</a></li>
<li><a href='http://www.effutio.com/wordpress/wordpress-rss-error-blank-line-fix/299/' rel='bookmark' title='Permanent Link: Wordpress RSS Error &#8211; Blank Line Fix'>Wordpress RSS Error &#8211; Blank Line Fix</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fhide-wordpress-update-nag-without-a-plugin%2F278%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fhide-wordpress-update-nag-without-a-plugin%2F278%2F&amp;source=The1Path&amp;style=normal&amp;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>Yes the annoying update/upgrade notice that appears at the top of the admin screen can be a bit annoying. It can also be quite dangerous. DANGEROUS you say&#8230;how so?</p>
<p>Well if you have designed a CMS for a client using wordpress and added extra things even its its simple things like changing the admin images or the memory usage. All will be wiped when the client upgrades and their precious site suddenly looks different or doesnt work at all.</p>
<p>Taking the top update nag isnt the only way to update via the admin panel of course buts its the most obvious one.</p>
<p>So lets get rid of it:</p>
<p>First open: wp-admin/includes/update.php</p>
<p>Scroll to line 135 (if file is in original condition)</p>
<p>Find this line:</p>
<pre class="brush:php">add_action( 'admin_notices', 'update_nag', 3 );</pre>
<p>And simply comment it out like thus:</p>
<pre class="brush:php">/* add_action( 'admin_notices', 'update_nag', 3 ); */</pre>
<p> or
<pre class="brush:php">// add_action( 'admin_notices', 'update_nag', 3 );</pre>
<p>Both will work, once uploaded hey presto no more top update nag. Nag nag nag&#8230;your not my Mum Wordpress!!</p>


<ul><li><a href='http://www.effutio.com/wordpress/pre-installation-wordpress-checklist-top-5/3/' rel='bookmark' title='Permanent Link: Pre-installation Wordpress checklist'>Pre-installation Wordpress checklist</a></li>
<li><a href='http://www.effutio.com/wordpress/login-directly-from-a-page-in-wordpress-using-a-sidebar-login-form/34/' rel='bookmark' title='Permanent Link: Login directly from a page in Wordpress using a sidebar login form'>Login directly from a page in Wordpress using a sidebar login form</a></li>
<li><a href='http://www.effutio.com/web-design/page-templates-in-wordpress/191/' rel='bookmark' title='Permanent Link: Page Templates in Wordpress'>Page Templates in Wordpress</a></li>
<li><a href='http://www.effutio.com/web-design/using-multipledifferent-headers-sidebars-footers-and-comment-templates-in-wordpress/193/' rel='bookmark' title='Permanent Link: Using multiple/different headers, sidebars, footers and comment templates in Wordpress'>Using multiple/different headers, sidebars, footers and comment templates in Wordpress</a></li>
<li><a href='http://www.effutio.com/wordpress/wordpress-rss-error-blank-line-fix/299/' rel='bookmark' title='Permanent Link: Wordpress RSS Error &#8211; Blank Line Fix'>Wordpress RSS Error &#8211; Blank Line Fix</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.effutio.com/wordpress/hide-wordpress-update-nag-without-a-plugin/278/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using multiple/different headers, sidebars, footers and comment templates in Wordpress</title>
		<link>http://www.effutio.com/web-design/using-multipledifferent-headers-sidebars-footers-and-comment-templates-in-wordpress/193/</link>
		<comments>http://www.effutio.com/web-design/using-multipledifferent-headers-sidebars-footers-and-comment-templates-in-wordpress/193/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 08:32:37 +0000</pubDate>
		<dc:creator>Neil</dc:creator>
				<category><![CDATA[Hints and Tips]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Hints and Tips]]></category>
		<category><![CDATA[Wordpress Tutorials]]></category>

		<guid isPermaLink="false">http://www.effutio.com/?p=193</guid>
		<description><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.effutio.com%2Fweb-design%2Fusing-multipledifferent-headers-sidebars-footers-and-comment-templates-in-wordpress%2F193%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.effutio.com%2Fweb-design%2Fusing-multipledifferent-headers-sidebars-footers-and-comment-templates-in-wordpress%2F193%2F&#38;source=The1Path&#38;style=normal&#38;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>Once you start messing about with Wordpress and looking to expand it to fit your websites requirements you will undoubtably want to use different headers, sidebars, footers and even comment templates.</p>
<p>Its actually really easy to do in Wordpress and because you will be utilising files that should already exist in your template, it doesnt take long at all.</p>
<p>I&#8230;</p>

<ul><li><a href='http://www.effutio.com/wordpress/pre-installation-wordpress-checklist-top-5/3/' rel='bookmark' title='Permanent Link: Pre-installation Wordpress checklist'>Pre-installation Wordpress checklist</a></li>
<li><a href='http://www.effutio.com/wordpress/display-your-wordpress-posts-on-other-pages/54/' rel='bookmark' title='Permanent Link: Display your Wordpress posts on other pages'>Display your Wordpress posts on other pages</a></li>
<li><a href='http://www.effutio.com/wordpress/using-google-adsense-for-search-in-wordpress/167/' rel='bookmark' title='Permanent Link: Using Google Adsense for Search in Wordpress'>Using Google Adsense for Search in Wordpress</a></li>
<li><a href='http://www.effutio.com/web-design/page-templates-in-wordpress/191/' rel='bookmark' title='Permanent Link: Page Templates in Wordpress'>Page Templates in Wordpress</a></li>
<li><a href='http://www.effutio.com/wordpress/hide-wordpress-update-nag-without-a-plugin/278/' rel='bookmark' title='Permanent Link: Hide Wordpress Update Nag Without a Plugin'>Hide Wordpress Update Nag Without a Plugin</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.effutio.com%2Fweb-design%2Fusing-multipledifferent-headers-sidebars-footers-and-comment-templates-in-wordpress%2F193%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.effutio.com%2Fweb-design%2Fusing-multipledifferent-headers-sidebars-footers-and-comment-templates-in-wordpress%2F193%2F&amp;source=The1Path&amp;style=normal&amp;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>Once you start messing about with Wordpress and looking to expand it to fit your websites requirements you will undoubtably want to use different headers, sidebars, footers and even comment templates.</p>
<p>Its actually really easy to do in Wordpress and because you will be utilising files that should already exist in your template, it doesnt take long at all.</p>
<p>I guess most people will want to change the sidebar first, implementing new menus i.e. floating it left or right to create different page styles etc, so I will focus on sidebars but applying the principles will work for every template file mentioned above.</p>
<p>OK lets get started.</p>
<p>First create a new template file called called &#8217;sidebar2.php&#8217; or similar and open &#8216;the original &#8217;sidebar.php&#8217;. Copy the code from sidebar.php and paste it into sidebar2.php. Now you have a new sidebar! Obviously you will want to make changes to the structure using CSS etc but I will leave that up to you.</p>
<p>Now that we have the new sidebar2.php file how to we get Wordpress to display it? Just replace this line:
<pre class="brush:php"><?php get_sidebar(); ?></pre>
<p> with this one:
<pre class="brush:php"><?php include ("sidebar2.php"); ?></pre>
<p>You would use this line to include all your new files i.e.
<pre class="brush:php"><?php include ("header2.php"); ?></pre>
<p> or
<pre class="brush:php"><?php include ("footer2.php"); ?></pre>
<p>However getting the new comment template to display is slightly different. You must replace this line:
<pre class="brush:php"><?php comments_template(); ?></pre>
<p> with this one:
<pre class="brush:php"><?php comments_template(DIRECTORY_SEPARATOR.'comments2.php'); ?></pre>
<p>Well there you have it, you can now create as many different template files as you want and implement them on your Wordpress site. Sweet!</p>
<span class="sfforumlink"><a href="http://www.effutio.com/forum/wordpress-tutorials/using-multipledifferent-headers-sidebars-footers-and-comment-templates-in-wordpress/"><p><img src="http://www.effutio.com/wp-content/plugins/simple-forum/styles/icons/ash/bloglink.png" alt="" /> Join the forum discussion on this post</p>
</a></span>

<ul><li><a href='http://www.effutio.com/wordpress/pre-installation-wordpress-checklist-top-5/3/' rel='bookmark' title='Permanent Link: Pre-installation Wordpress checklist'>Pre-installation Wordpress checklist</a></li>
<li><a href='http://www.effutio.com/wordpress/display-your-wordpress-posts-on-other-pages/54/' rel='bookmark' title='Permanent Link: Display your Wordpress posts on other pages'>Display your Wordpress posts on other pages</a></li>
<li><a href='http://www.effutio.com/wordpress/using-google-adsense-for-search-in-wordpress/167/' rel='bookmark' title='Permanent Link: Using Google Adsense for Search in Wordpress'>Using Google Adsense for Search in Wordpress</a></li>
<li><a href='http://www.effutio.com/web-design/page-templates-in-wordpress/191/' rel='bookmark' title='Permanent Link: Page Templates in Wordpress'>Page Templates in Wordpress</a></li>
<li><a href='http://www.effutio.com/wordpress/hide-wordpress-update-nag-without-a-plugin/278/' rel='bookmark' title='Permanent Link: Hide Wordpress Update Nag Without a Plugin'>Hide Wordpress Update Nag Without a Plugin</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.effutio.com/web-design/using-multipledifferent-headers-sidebars-footers-and-comment-templates-in-wordpress/193/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Page Templates in Wordpress</title>
		<link>http://www.effutio.com/web-design/page-templates-in-wordpress/191/</link>
		<comments>http://www.effutio.com/web-design/page-templates-in-wordpress/191/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 08:00:09 +0000</pubDate>
		<dc:creator>Neil</dc:creator>
				<category><![CDATA[Hints and Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Web Design Hints and Tips]]></category>
		<category><![CDATA[Wordpress Hints and Tips]]></category>
		<category><![CDATA[Wordpress Tutorials]]></category>

		<guid isPermaLink="false">http://www.effutio.com/?p=191</guid>
		<description><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.effutio.com%2Fweb-design%2Fpage-templates-in-wordpress%2F191%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.effutio.com%2Fweb-design%2Fpage-templates-in-wordpress%2F191%2F&#38;source=The1Path&#38;style=normal&#38;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>I realise this is a very simple thing to achieve in Wordpress and has probably been written about a thousand times, however I thought about what a great tool it is in Wordpress&#8217;s arsenal and surprisingly not used on too many sites Ive seen.</p>
<p>Aside from being able to use page templates to create different page designs they are very&#8230;</p>

<ul><li><a href='http://www.effutio.com/wordpress/login-directly-from-a-page-in-wordpress-using-a-sidebar-login-form/34/' rel='bookmark' title='Permanent Link: Login directly from a page in Wordpress using a sidebar login form'>Login directly from a page in Wordpress using a sidebar login form</a></li>
<li><a href='http://www.effutio.com/wordpress/menu-only-logged-in-users-or-certain-users-can-see/50/' rel='bookmark' title='Permanent Link: Menu only logged in users or certain users can see'>Menu only logged in users or certain users can see</a></li>
<li><a href='http://www.effutio.com/wordpress/display-your-wordpress-posts-on-other-pages/54/' rel='bookmark' title='Permanent Link: Display your Wordpress posts on other pages'>Display your Wordpress posts on other pages</a></li>
<li><a href='http://www.effutio.com/wordpress/more-advanced-menu-only-logged-in-users-or-certain-users-can-see/88/' rel='bookmark' title='Permanent Link: More Advanced Menu only logged in users or certain users can see'>More Advanced Menu only logged in users or certain users can see</a></li>
<li><a href='http://www.effutio.com/wordpress/using-google-adsense-for-search-in-wordpress/167/' rel='bookmark' title='Permanent Link: Using Google Adsense for Search in Wordpress'>Using Google Adsense for Search in Wordpress</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.effutio.com%2Fweb-design%2Fpage-templates-in-wordpress%2F191%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.effutio.com%2Fweb-design%2Fpage-templates-in-wordpress%2F191%2F&amp;source=The1Path&amp;style=normal&amp;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>I realise this is a very simple thing to achieve in Wordpress and has probably been written about a thousand times, however I thought about what a great tool it is in Wordpress&#8217;s arsenal and surprisingly not used on too many sites Ive seen.</p>
<p>Aside from being able to use page templates to create different page designs they are very useful when using Wordpress plugins such as NextGen Gallery and SimplePress Forum.</p>
<p>These two plugins benefit greatly from using a full width page template i.e. no sidebar. So I will not go into the full intricacies of page templates and their many uses and implementations. Instead I will just show a simple example of how to create a full width page template with no sidebar. Ideally used for galleries and forums.</p>
<p>First of all open the directory containing all your Wordpress template files, normally found here: your-root/wp-content/themes/your-theme-name/</p>
<p>Look for the file entitled &#8216;page.php&#8217; open it in your favourite code editor. Next create a new file called &#8216;page_fullwidth.php&#8217; or similar in the same folder as page.php.</p>
<p>Next copy all the code from page.php and paste it into page_fullwidth.php, you can now close page.php as you no longer need it.</p>
<p>You must tell Wordpress that this file is a page template, to do this we must add the following code right at the top of the code:</p>
<pre class="brush:php"><?php
/*
Template Name: Page Full Width
*/
?></pre>
<p>You can call the template whatever you want, instead of &#8216;Page Full Width&#8217; you could use &#8216;Forum&#8217; or &#8216;Gallery&#8217;. This is the name that will be displayed (and can be set) in the &#8216;Attributes&#8217; section on the right hand side under &#8216;Template&#8217; in the add/edit page screen.</p>
<p>OK, now you are ready to make the changes to the structure of the page. In this case we want to remove the sidebar. so look for the following line and remove it:</p>
<pre class="brush:php"><?php get_sidebar(); ?></pre>
<p>Now you have to add some CSS. Namely adding divs that are the correct width for the new page. SO your CSS will probably have a container for the content called &#8216;container&#8217; or &#8216;contentwrapper&#8217; etc and will probably look something like this:</p>
<pre class="brush:css">#contentwrapper {
	float:left;
	width: 620px;
	margin: 0 0 15px 10px;
	padding: 0;
	text-align: left;
  }</pre>
<p>Obviously the width is to small to allow content to flow right across your new page template so me must change it to match the width of the containg div (if your theme is full screen and all widths are in percentages dont worry about doing this, most are fixed width these days though). Anyway create a new contentwrapper just for this page template. It should look something like this:</p>
<pre class="brush:css">#contentwrapper2 {
	float:left;
	width: 910px;
	margin: 0 10px 15px 10px;
	padding:0;
	text-align: left;
  }</pre>
<p>Remember and change the div declaration name in your page_fullwidth.php:
<div id="contentwrapper2"> so the page template uses the new CSS.</p>
<p>There you have it, a full width page template with no sidebar.</p>
<p>Check out my <a href="http://www.effutio.com/web-design/using-multipledifferent-headers-sidebars-footers-and-comment-templates-in-wordpress/">next tutorial</a> and learn how to setup and implement multiple/different sidebars, footers, headers and comment templates.</p>
<span class="sfforumlink"><a href="http://www.effutio.com/forum/wordpress-tutorials/page-templates-in-wordpress/"><p><img src="http://www.effutio.com/wp-content/plugins/simple-forum/styles/icons/ash/bloglink.png" alt="" /> Join the forum discussion on this post</p>
</a></span>

<ul><li><a href='http://www.effutio.com/wordpress/login-directly-from-a-page-in-wordpress-using-a-sidebar-login-form/34/' rel='bookmark' title='Permanent Link: Login directly from a page in Wordpress using a sidebar login form'>Login directly from a page in Wordpress using a sidebar login form</a></li>
<li><a href='http://www.effutio.com/wordpress/menu-only-logged-in-users-or-certain-users-can-see/50/' rel='bookmark' title='Permanent Link: Menu only logged in users or certain users can see'>Menu only logged in users or certain users can see</a></li>
<li><a href='http://www.effutio.com/wordpress/display-your-wordpress-posts-on-other-pages/54/' rel='bookmark' title='Permanent Link: Display your Wordpress posts on other pages'>Display your Wordpress posts on other pages</a></li>
<li><a href='http://www.effutio.com/wordpress/more-advanced-menu-only-logged-in-users-or-certain-users-can-see/88/' rel='bookmark' title='Permanent Link: More Advanced Menu only logged in users or certain users can see'>More Advanced Menu only logged in users or certain users can see</a></li>
<li><a href='http://www.effutio.com/wordpress/using-google-adsense-for-search-in-wordpress/167/' rel='bookmark' title='Permanent Link: Using Google Adsense for Search in Wordpress'>Using Google Adsense for Search in Wordpress</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.effutio.com/web-design/page-templates-in-wordpress/191/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Google Adsense for Search in Wordpress</title>
		<link>http://www.effutio.com/wordpress/using-google-adsense-for-search-in-wordpress/167/</link>
		<comments>http://www.effutio.com/wordpress/using-google-adsense-for-search-in-wordpress/167/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 13:38:57 +0000</pubDate>
		<dc:creator>Neil</dc:creator>
				<category><![CDATA[Hints and Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Google Search]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Wordpress Hints and Tips]]></category>
		<category><![CDATA[Wordpress Tutorials]]></category>

		<guid isPermaLink="false">http://www.effutio.com/?p=167</guid>
		<description><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fusing-google-adsense-for-search-in-wordpress%2F167%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fusing-google-adsense-for-search-in-wordpress%2F167%2F&#38;source=The1Path&#38;style=normal&#38;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>Implementing a Google Custom Search into your Wordpress theme is actually pretty easy but requires a little bit of theme jiggery pokery!</p>
<p>OK so first things first:</p>
<p>Create a page called &#8217;search&#8217; or &#8217;search results&#8217; in the admin section of your Wordpress site. Take a note of the page id, this can normally be found if you hover the mouse&#8230;</p>

<ul><li><a href='http://www.effutio.com/wordpress/login-directly-from-a-page-in-wordpress-using-a-sidebar-login-form/34/' rel='bookmark' title='Permanent Link: Login directly from a page in Wordpress using a sidebar login form'>Login directly from a page in Wordpress using a sidebar login form</a></li>
<li><a href='http://www.effutio.com/wordpress/menu-only-logged-in-users-or-certain-users-can-see/50/' rel='bookmark' title='Permanent Link: Menu only logged in users or certain users can see'>Menu only logged in users or certain users can see</a></li>
<li><a href='http://www.effutio.com/wordpress/display-your-wordpress-posts-on-other-pages/54/' rel='bookmark' title='Permanent Link: Display your Wordpress posts on other pages'>Display your Wordpress posts on other pages</a></li>
<li><a href='http://www.effutio.com/wordpress/more-advanced-menu-only-logged-in-users-or-certain-users-can-see/88/' rel='bookmark' title='Permanent Link: More Advanced Menu only logged in users or certain users can see'>More Advanced Menu only logged in users or certain users can see</a></li>
<li><a href='http://www.effutio.com/web-design/page-templates-in-wordpress/191/' rel='bookmark' title='Permanent Link: Page Templates in Wordpress'>Page Templates in Wordpress</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fusing-google-adsense-for-search-in-wordpress%2F167%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fusing-google-adsense-for-search-in-wordpress%2F167%2F&amp;source=The1Path&amp;style=normal&amp;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p><div id="attachment_170" class="wp-caption alignright" style="width: 260px"><img src="http://www.effutio.com/wp-content/uploads/google.jpg" alt="Google Custom Search" title="Google Search Options" width="250" height="143" class="size-full wp-image-170" /><p class="wp-caption-text">Google Custom Search</p></div>Implementing a Google Custom Search into your Wordpress theme is actually pretty easy but requires a little bit of theme jiggery pokery!</p>
<p>OK so first things first:</p>
<p>Create a page called &#8217;search&#8217; or &#8217;search results&#8217; in the admin section of your Wordpress site. Take a note of the page id, this can normally be found if you hover the mouse pointer over the &#8216;View Page&#8217; link or go to &#8216;Edit&#8217; in the Pages menu and hover over the search page (its the number at the end you need). I would also select the full page template for the search page (what do you mean your theme doesnt have a sidebar-less full page? Spose I could write a tut on that too). Good now we have the search page published and the id of said page.</p>
<p>Next create your Google Custom Search in your adsense account. I&#8217;ll not go through all the steps but remember and get the search page url right and set the width correctly for the page! OK you should now have your search code blocks. Highlight the second block of code, go to your Wordpress admin and edit the search page and insert the code into the main text window (use html view and publish).</p>
<p>Then highlight the first/top Google code block and put that in your theme wherever you want the search to appear. </p>
<p>That should be the search fully operational test it in some different browsers to check. &#8220;WAIT&#8221; I here you cry. I dont want a stupid page called Search Results in my page menu! Quite right, remember the page id I told you to take note of, well here is where you use it.</p>
<p>In your sidebar code you will no doubt have a line like this:</p>
<pre class="brush:php"><?php wp_list_pages('depth=1&#038;title_li=0&#038;sort_column=menu_order'); ?></pre>
<p>We need to add an exclude function to this line which will look something like this:</p>
<pre class="brush:php"><?php wp_list_pages('exclude=86&#038;depth=1&#038;title_li=0&#038;sort_column=menu_order'); ?></pre>
<p>Change the &#8216;86&#8242; to what ever your page id is and hey presto the jiggery pokery is complete!</p>
<span class="sfforumlink"><a href="http://www.effutio.com/forum/wordpress-tutorials/using-google-adsense-for-search-in-wordpress/"><p><img src="http://www.effutio.com/wp-content/plugins/simple-forum/styles/icons/ash/bloglink.png" alt="" /> Join the forum discussion on this post</p>
</a></span>

<ul><li><a href='http://www.effutio.com/wordpress/login-directly-from-a-page-in-wordpress-using-a-sidebar-login-form/34/' rel='bookmark' title='Permanent Link: Login directly from a page in Wordpress using a sidebar login form'>Login directly from a page in Wordpress using a sidebar login form</a></li>
<li><a href='http://www.effutio.com/wordpress/menu-only-logged-in-users-or-certain-users-can-see/50/' rel='bookmark' title='Permanent Link: Menu only logged in users or certain users can see'>Menu only logged in users or certain users can see</a></li>
<li><a href='http://www.effutio.com/wordpress/display-your-wordpress-posts-on-other-pages/54/' rel='bookmark' title='Permanent Link: Display your Wordpress posts on other pages'>Display your Wordpress posts on other pages</a></li>
<li><a href='http://www.effutio.com/wordpress/more-advanced-menu-only-logged-in-users-or-certain-users-can-see/88/' rel='bookmark' title='Permanent Link: More Advanced Menu only logged in users or certain users can see'>More Advanced Menu only logged in users or certain users can see</a></li>
<li><a href='http://www.effutio.com/web-design/page-templates-in-wordpress/191/' rel='bookmark' title='Permanent Link: Page Templates in Wordpress'>Page Templates in Wordpress</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.effutio.com/wordpress/using-google-adsense-for-search-in-wordpress/167/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Password box different size from text box in IE</title>
		<link>http://www.effutio.com/web-design/password-box-different-size-from-text-box-in-ie/90/</link>
		<comments>http://www.effutio.com/web-design/password-box-different-size-from-text-box-in-ie/90/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 22:53:43 +0000</pubDate>
		<dc:creator>Neil</dc:creator>
				<category><![CDATA[Hints and Tips]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[IE text boxes]]></category>
		<category><![CDATA[Web Design Hints and Tips]]></category>
		<category><![CDATA[Wordpress Hints and Tips]]></category>

		<guid isPermaLink="false">http://www.effutio.com/?p=90</guid>
		<description><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.effutio.com%2Fweb-design%2Fpassword-box-different-size-from-text-box-in-ie%2F90%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.effutio.com%2Fweb-design%2Fpassword-box-different-size-from-text-box-in-ie%2F90%2F&#38;source=The1Path&#38;style=normal&#38;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>Just a little web design hint for your enjoyment.</p>
<p>If you have forms on your website you know how annoying it is that IE renders password boxes smaller than normal text boxes. Well there is a quick and easy CSS fix:</p>
<pre class="brush:css">input{

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size:12px;

}</pre>
<p>Obviously you can change the family and size to suit&#8230;</p>

<ul><li><a href='http://www.effutio.com/wordpress/pre-installation-wordpress-checklist-top-5/3/' rel='bookmark' title='Permanent Link: Pre-installation Wordpress checklist'>Pre-installation Wordpress checklist</a></li>
<li><a href='http://www.effutio.com/wordpress/login-directly-from-a-page-in-wordpress-using-a-sidebar-login-form/34/' rel='bookmark' title='Permanent Link: Login directly from a page in Wordpress using a sidebar login form'>Login directly from a page in Wordpress using a sidebar login form</a></li>
<li><a href='http://www.effutio.com/wordpress/using-google-adsense-for-search-in-wordpress/167/' rel='bookmark' title='Permanent Link: Using Google Adsense for Search in Wordpress'>Using Google Adsense for Search in Wordpress</a></li>
<li><a href='http://www.effutio.com/web-design/page-templates-in-wordpress/191/' rel='bookmark' title='Permanent Link: Page Templates in Wordpress'>Page Templates in Wordpress</a></li>
<li><a href='http://www.effutio.com/web-design/using-multipledifferent-headers-sidebars-footers-and-comment-templates-in-wordpress/193/' rel='bookmark' title='Permanent Link: Using multiple/different headers, sidebars, footers and comment templates in Wordpress'>Using multiple/different headers, sidebars, footers and comment templates in Wordpress</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.effutio.com%2Fweb-design%2Fpassword-box-different-size-from-text-box-in-ie%2F90%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.effutio.com%2Fweb-design%2Fpassword-box-different-size-from-text-box-in-ie%2F90%2F&amp;source=The1Path&amp;style=normal&amp;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>Just a little web design hint for your enjoyment.</p>
<p>If you have forms on your website you know how annoying it is that IE renders password boxes smaller than normal text boxes. Well there is a quick and easy CSS fix:</p>
<pre class="brush:css">input{

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size:12px;

}</pre>
<p>Obviously you can change the family and size to suit your site.</p>


<ul><li><a href='http://www.effutio.com/wordpress/pre-installation-wordpress-checklist-top-5/3/' rel='bookmark' title='Permanent Link: Pre-installation Wordpress checklist'>Pre-installation Wordpress checklist</a></li>
<li><a href='http://www.effutio.com/wordpress/login-directly-from-a-page-in-wordpress-using-a-sidebar-login-form/34/' rel='bookmark' title='Permanent Link: Login directly from a page in Wordpress using a sidebar login form'>Login directly from a page in Wordpress using a sidebar login form</a></li>
<li><a href='http://www.effutio.com/wordpress/using-google-adsense-for-search-in-wordpress/167/' rel='bookmark' title='Permanent Link: Using Google Adsense for Search in Wordpress'>Using Google Adsense for Search in Wordpress</a></li>
<li><a href='http://www.effutio.com/web-design/page-templates-in-wordpress/191/' rel='bookmark' title='Permanent Link: Page Templates in Wordpress'>Page Templates in Wordpress</a></li>
<li><a href='http://www.effutio.com/web-design/using-multipledifferent-headers-sidebars-footers-and-comment-templates-in-wordpress/193/' rel='bookmark' title='Permanent Link: Using multiple/different headers, sidebars, footers and comment templates in Wordpress'>Using multiple/different headers, sidebars, footers and comment templates in Wordpress</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.effutio.com/web-design/password-box-different-size-from-text-box-in-ie/90/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More Advanced Menu only logged in users or certain users can see</title>
		<link>http://www.effutio.com/wordpress/more-advanced-menu-only-logged-in-users-or-certain-users-can-see/88/</link>
		<comments>http://www.effutio.com/wordpress/more-advanced-menu-only-logged-in-users-or-certain-users-can-see/88/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 22:03:18 +0000</pubDate>
		<dc:creator>Neil</dc:creator>
				<category><![CDATA[Hints and Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Hints and Tips]]></category>
		<category><![CDATA[Wordpress Tutorials]]></category>

		<guid isPermaLink="false">http://www.effutio.com/?p=88</guid>
		<description><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fmore-advanced-menu-only-logged-in-users-or-certain-users-can-see%2F88%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fmore-advanced-menu-only-logged-in-users-or-certain-users-can-see%2F88%2F&#38;source=The1Path&#38;style=normal&#38;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>This is a follow on tutorial from the previous one: Menu only logged in users or certain users can see</p>
<p>In this one Ive added a few extra features. I suddenly thought about the previous tutorial example and saw that any logged in user can see the control panel menu in the sidebar and all the options within it. What&#8230;</p>

<ul><li><a href='http://www.effutio.com/wordpress/login-directly-from-a-page-in-wordpress-using-a-sidebar-login-form/34/' rel='bookmark' title='Permanent Link: Login directly from a page in Wordpress using a sidebar login form'>Login directly from a page in Wordpress using a sidebar login form</a></li>
<li><a href='http://www.effutio.com/wordpress/menu-only-logged-in-users-or-certain-users-can-see/50/' rel='bookmark' title='Permanent Link: Menu only logged in users or certain users can see'>Menu only logged in users or certain users can see</a></li>
<li><a href='http://www.effutio.com/wordpress/display-your-wordpress-posts-on-other-pages/54/' rel='bookmark' title='Permanent Link: Display your Wordpress posts on other pages'>Display your Wordpress posts on other pages</a></li>
<li><a href='http://www.effutio.com/wordpress/using-google-adsense-for-search-in-wordpress/167/' rel='bookmark' title='Permanent Link: Using Google Adsense for Search in Wordpress'>Using Google Adsense for Search in Wordpress</a></li>
<li><a href='http://www.effutio.com/web-design/page-templates-in-wordpress/191/' rel='bookmark' title='Permanent Link: Page Templates in Wordpress'>Page Templates in Wordpress</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fmore-advanced-menu-only-logged-in-users-or-certain-users-can-see%2F88%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.effutio.com%2Fwordpress%2Fmore-advanced-menu-only-logged-in-users-or-certain-users-can-see%2F88%2F&amp;source=The1Path&amp;style=normal&amp;service=TinyURL.com" height="61" width="50" /><br />
			</a>
		</div>
<p>This is a follow on tutorial from the previous one: Menu only logged in users or certain users can see</p>
<p>In this one Ive added a few extra features. I suddenly thought about the previous tutorial example and saw that any logged in user can see the control panel menu in the sidebar and all the options within it. What if you only want users of a certain level to see the &#8216;Write New Post&#8217; and &#8216;Write New Page&#8217; options.</p>
<p>OK Im just gonna list the whole block of code for the sidebar login that I have implemented on this site then talk a bit about the new bits:</p>
<pre class="brush:xml">
<li>
<div class="sidebarbox">
<?php if ( ! is_user_logged_in() ){ ?>
<h2>Login</h2>
<ul>
<div style="float:left; width:100%;">
<form action="<?php echo get_option('home'); ?>/wp-login.php" method="post">


<input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="20" /><label for="log"> Username</label>


<input type="password" name="pwd" id="pwd" size="20" /><label for="pwd"> Password</label>
<input type="submit" name="submit" value="Send" class="button" />

<label for="rememberme">
<input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> Remember me</label>
<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" />
</form>
</div>
<div class="cleared"></div>
<li><a href="<?php echo get_option('home'); ?>/wp-register.php">Register</a></li>
<li><a href="<?php echo get_option('home'); ?>/wp-login.php?action=lostpassword">Recover password</a></li>
</ul>

<?php } else { ?>
<?php if (current_user_can('level_2')){ ?>
<h2>Control Panel</h2>
<ul>
<li><a href="<?php echo get_option('home'); ?>/wp-admin/">Dashboard</a></li>
<li><a href="<?php echo get_option('home'); ?>/wp-admin/post-new.php">Write new Post</a></li>
<li><a href="<?php echo get_option('home'); ?>/wp-admin/page-new.php">Write new Page</a></li>
<li><a href="<?php echo wp_logout_url( get_bloginfo('url') ); ?>" title="Logout">Logout</a></li>
</ul>

<?php } else { ?>
<h2>Control Panel</h2>
<ul>
<li><a href="<?php echo get_option('home'); ?>/wp-admin/">Dashboard</a></li>
<li><a href="<?php echo wp_logout_url( get_bloginfo('url') ); ?>" title="Logout">Logout</a></li>
</ul>

<?php }?>
<?php }?>
</div>
</li>
</pre>
<p>OK so if you have read my earlier tutorials on this topic you will recognise a lot of this code and Im not going over it here. So lets take a look at the new bits so we know what changes have been made.</p>
<p>First new line is <?php if (current_user_can('level_2')){ ?> after the else statement. This basically sets the user level that can access the following menu code. I have set this to level 2, as users granted level 2 status on effutio can write posts etc, but you can set this to whatever level you like (see my previous login tutorial for Wordpress pre set levels).</p>
<p>Then you will notice I have added a second else statement which allows any other users which are lower than level 2 to see a different menu again. Because any user lower than a level 2 cant write posts etc they can only see the &#8216;Dashboard&#8217; and &#8216;Logout&#8217; links.</p>
<p>Well I really love this login/menu code for the sidebar, I hope you do too.</p>
<span class="sfforumlink"><a href="http://www.effutio.com/forum/wordpress-tutorials/more-advanced-menu-only-logged-in-users-or-certain-users-can-see/"><p><img src="http://www.effutio.com/wp-content/plugins/simple-forum/styles/icons/ash/bloglink.png" alt="" /> Join the forum discussion on this post</p>
</a></span>

<ul><li><a href='http://www.effutio.com/wordpress/login-directly-from-a-page-in-wordpress-using-a-sidebar-login-form/34/' rel='bookmark' title='Permanent Link: Login directly from a page in Wordpress using a sidebar login form'>Login directly from a page in Wordpress using a sidebar login form</a></li>
<li><a href='http://www.effutio.com/wordpress/menu-only-logged-in-users-or-certain-users-can-see/50/' rel='bookmark' title='Permanent Link: Menu only logged in users or certain users can see'>Menu only logged in users or certain users can see</a></li>
<li><a href='http://www.effutio.com/wordpress/display-your-wordpress-posts-on-other-pages/54/' rel='bookmark' title='Permanent Link: Display your Wordpress posts on other pages'>Display your Wordpress posts on other pages</a></li>
<li><a href='http://www.effutio.com/wordpress/using-google-adsense-for-search-in-wordpress/167/' rel='bookmark' title='Permanent Link: Using Google Adsense for Search in Wordpress'>Using Google Adsense for Search in Wordpress</a></li>
<li><a href='http://www.effutio.com/web-design/page-templates-in-wordpress/191/' rel='bookmark' title='Permanent Link: Page Templates in Wordpress'>Page Templates in Wordpress</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.effutio.com/wordpress/more-advanced-menu-only-logged-in-users-or-certain-users-can-see/88/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->