<?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>Ru Servers Reference Blog &#187; Miscellaneous</title>
	<atom:link href="http://blog.server.ruservers.com/category/miscellaneous/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.server.ruservers.com</link>
	<description>Server Maintenance Guide</description>
	<lastBuildDate>Tue, 27 Jul 2010 12:14:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Trace Route [tracert] Command</title>
		<link>http://blog.server.ruservers.com/2009/02/trace-route-tracert-command/</link>
		<comments>http://blog.server.ruservers.com/2009/02/trace-route-tracert-command/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 14:33:03 +0000</pubDate>
		<dc:creator>Ru Servers</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://blog.server.ruservers.com/2009/02/trace-route-tracert-command/</guid>
		<description><![CDATA[&#160; Source: http://www.comentum.com/tech-support/tracert.html &#160; Trace Route [tracert] Command tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] target_name -d&#160; Do not resolve addresses to hostnames. -h maximum_hops Maximum number of hops to search for target. -j host-list&#160;&#160; Loose source route along host-list. -w timeout&#160;&#160; Wait timeout milliseconds for each reply]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>Source: <a title="http://www.comentum.com/tech-support/tracert.html" href="http://www.comentum.com/tech-support/tracert.html" target="_blank">http://www.comentum.com/tech-support/tracert.html</a></p>
<p>&#160;</p>
<p>Trace Route [tracert] Command</p>
<p>tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] target_name</p>
<p>-d&#160; <br />Do not resolve addresses to hostnames. </p>
<p>-h maximum_hops   <br />Maximum number of hops to search for target. </p>
<p>-j host-list&#160;&#160; <br />Loose source route along host-list. </p>
<p>-w timeout&#160;&#160; <br />Wait timeout milliseconds for each reply </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.server.ruservers.com/2009/02/trace-route-tracert-command/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Customizing the Read More in WordPress</title>
		<link>http://blog.server.ruservers.com/2009/01/customizing-the-read-more/</link>
		<comments>http://blog.server.ruservers.com/2009/01/customizing-the-read-more/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 19:36:28 +0000</pubDate>
		<dc:creator>Ru Servers</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://blog.server.ruservers.com/2009/01/customizing-the-read-more/</guid>
		<description><![CDATA[&#160; Source: http://codex.wordpress.org/Customizing_the_Read_More &#160; If you have set your WordPress site to display post excerpts on the front or home page, you will want visitors to click on the title or a link to encourage them to continue reading your post or article, right? WordPress makes this technique easy, and customizable. Contents [hide] 1 The [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>Source: <a title="http://codex.wordpress.org/Customizing_the_Read_More" href="http://codex.wordpress.org/Customizing_the_Read_More" target="_blank">http://codex.wordpress.org/Customizing_the_Read_More</a></p>
<p>&#160;</p>
<p>If you have set your WordPress site to display post excerpts on the front or home page, you will want visitors to click on the title or a link to encourage them to continue reading your post or article, right? WordPress makes this technique easy, and customizable. </p>
<h4>Contents</h4>
<p> [<a href="http://codex.wordpress.org/">hide</a>]
<ul>
<li><a href="http://codex.wordpress.org/Customizing_the_Read_More#The_Excerpt_Basics">1 The Excerpt Basics</a></li>
<li><a href="http://codex.wordpress.org/Customizing_the_Read_More#Read_More_Techniques">2 Read More Techniques</a>
<ul>
<li><a href="http://codex.wordpress.org/Customizing_the_Read_More#Link_Jumps_to_More_or_Top_of_Page">2.1 Link Jumps to More or Top of Page</a></li>
</ul>
</li>
<li><a href="http://codex.wordpress.org/Customizing_the_Read_More#Designing_the_More_Tag">3 Designing the More Tag</a>
<ul>
<li><a href="http://codex.wordpress.org/Customizing_the_Read_More#Having_a_custom_text_for_each_post">3.1 Having a custom text for each post</a></li>
<li><a href="http://codex.wordpress.org/Customizing_the_Read_More#Adding_An_Image">3.2 Adding An Image</a></li>
<li><a href="http://codex.wordpress.org/Customizing_the_Read_More#Read_More_is_ignored_on_front_.28home.29_page">3.3 Read More is ignored on front (home) page</a></li>
</ul>
</li>
</ul>
<p><a name="The_Excerpt_Basics"></a></p>
<h4>The Excerpt Basics</h4>
<p>Excerpts show up on WordPress through two methods. One, by replacing the template tag <tt><a href="http://codex.wordpress.org/Template_Tags/the_content">the_content()</a></tt> with <tt><a href="http://codex.wordpress.org/Template_Tags/the_excerpt">the_excerpt()</a></tt>. Then the explicit <a href="http://codex.wordpress.org/Administration_Panels#Write_Post">excerpt</a> you have entered in the <a href="http://codex.wordpress.org/Administration_Panels">Administration</a> &gt; <a href="http://codex.wordpress.org/Administration_Panels#Write_-_Make_some_content">Write</a> &gt; <a href="http://codex.wordpress.org/Administration_Panels#Posts">Post</a> SubPanel will appear, or the first 55 words of the post&#8217;s content. Users can then click on the title to continue reading more as you have enticed them with your summary introduction. </p>
<p>The most commonly used method is to keep <tt>the_content()</tt> template tag and insert a quicktag called <b>more</b> into your post at your desired &quot;cut-off&quot; point. </p>
<p>The <a href="http://codex.wordpress.org/Write_Post_SubPanel#Quicktags">quicktags</a> are the little buttons found above the editing window in your <a href="http://codex.wordpress.org/Administration_Panels">Administration</a> &gt; <a href="http://codex.wordpress.org/Administration_Panels#Write_-_Make_some_content">Write</a> &gt; <a href="http://codex.wordpress.org/Administration_Panels#Posts">Post</a> SubPanel. They include <b>bold</b>, <i>italic</i>, links, and others, and the famous <b>more</b>. Put your cursor where you want to end the excerpted content of your post and click the <b>more</b> quicktag button. It will insert a code at that point that looks like this: </p>
<pre>and I told him that he should get moving or I'd be
on him like a limpet.  He looked at me with shock on
his face and said

&lt;!--more--&gt;</pre>
<p>The rest of the post continues, but when viewed on the non-single/non-permalink web page such as archives, categories, front page, and searches, the post is shown as an excerpt to the <b>more</b> point. </p>
<p><a name="Read_More_Techniques"></a></p>
<h4>Read More Techniques</h4>
<p>The parameters within the template tag <a href="http://codex.wordpress.org/Template_Tags/the_content">the_content()</a> are as follows: </p>
<pre>&lt;?php the_content('more_link_text', strip_teaser, 'more_file'); ?&gt; </pre>
<p>The <b>more_link_text</b> sets the link text like &quot;Read More&quot;. The second one, <b>strip_teaser</b>, sets whether or not the &quot;more&quot; link should be hidden (TRUE) or displayed (FALSE). The default is FALSE, which shows the link text. The last one, <b>more_file</b>, sets the link to the file that the &quot;Read More&quot; should link to, if you want it to be different. By default, it links to the current post file. </p>
<p>To remove the teaser: </p>
<ul>
<li>Change <tt>the_content();</tt> in your <tt>index.php</tt> to (i.e., the second parameter controls this): </li>
</ul>
<pre>the_content('',FALSE,'');&gt;</pre>
<ul>
<li>Include <tt>&lt;!--noteaser--&gt;</tt> in the post text, immediately after the <tt>&lt;!--more--&gt;.</tt></li>
</ul>
<p><a name="Link_Jumps_to_More_or_Top_of_Page"></a></p>
<h5>Link Jumps to More or Top of Page</h5>
<p>By default, when you click on the <b>Read More</b> link, the web page loads and then &quot;jumps&quot; to the spot where the <tt>&lt;--more--&gt;</tt> tag is set in the post. If you do not want that &quot;jump&quot;, you can change the default function of how this works by editing the following line in <tt>wp-includes/template-functions-post.php</tt></p>
<p>(<b>NOTE:</b> In WP 2.1 and later, the code is found in <tt>wp-includes/post-template.php</tt> ). </p>
<p>(<b>NOTE:</b> When you upgrade WordPress, this file will be replaced so make a note of the change so you can change it again after upgrading.): </p>
<pre>$output .= ' &lt;a href=&quot;'. get_permalink()
. &quot;#more-$id\&quot;&gt;$more_link_text&lt;/a&gt;&quot;;</pre>
<p>to </p>
<pre>$output .= ' &lt;a href=&quot;'. get_permalink()
.&quot;\&quot;&gt;$more_link_text&lt;/a&gt;&quot;;</pre>
<p>or </p>
<pre>$output .= ' &lt;a href=&quot;'. get_permalink()
.'&quot;&gt;$more_link_text&lt;/a&gt;';</pre>
<p><a name="Designing_the_More_Tag"></a></p>
<h4>Designing the More Tag</h4>
<p>Seeing that you know how it works, now look at how we can make this little invitation to continue reading your post be more inviting. </p>
<p>By design, <tt><a href="http://codex.wordpress.org/Template_Tags/the_content">the_content()</a></tt> tag includes a parameter for formatting the <tt>&lt;!--more--&gt;</tt> content and look, which creates a link to &quot;continue reading&quot; the full post. </p>
<p>By default, it looks like this: </p>
<p>and I told him that he should get moving or I&#8217;d be on him like a limpet. He looked at me with shock on his face and said <a href="http://codex.wordpress.org/Customizing_the_Read_More#Designing_the_More_Tag">more&#8230;</a></p>
<p>If you want to change the words from <i>more&#8230;.</i> to something else, just type in the new words into the tag: </p>
<pre>&lt;?php the_content('Read on...'); ?&gt;</pre>
<p>Or get more sophisticated and make it fun: </p>
<pre>&lt;?php the_content('...on the edge of your seat? Click
here to solve the mystery.'); ?&gt;</pre>
<p>You can style the text in the tag, too. </p>
<pre>&lt;?php the_content('&lt;span class=&quot;moretext&quot;&gt;...on the edge of
your seat? Click here to solve the mystery.&lt;/span&gt;'); ?&gt;</pre>
<p>Then set the <tt>moretext</tt> class in your <tt>style.css</tt> style sheet to whatever you want. Here is an example of the style which features bold, italic text that is slightly smaller than the default text and uses the <tt>font-variant: small-caps</tt> to force the text into small capital letters. : </p>
<p>and I told him that he should get moving or I&#8217;d be on him like a limpet. He looked at me with shock on his face and said <a href="http://codex.wordpress.org/Customizing_the_Read_More#Designing_the_More_Tag">&#8230;On the Edge of Your Seat? Click Here to Solve the Mystery.</a></p>
<p>Some people do not want the text and prefer to use an extended character or <a href="http://codex.wordpress.org/Fun_Character_Entities">HTML character entity</a> to move the reader on to the full post. </p>
<pre>&lt;?php the_content('&amp;raquo; &amp;raquo; &amp;raquo; &amp;raquo;'); ?&gt;</pre>
<p>Would look like this: </p>
<p>and I told him that he should get moving or I&#8217;d be on him like a limpet. He looked at me with shock on his face and said <a href="http://codex.wordpress.org/Customizing_the_Read_More#Designing_the_More_Tag">» » » »</a></p>
<p>There is another parameter in <tt>the_content()</tt> template tag which will include the title of the post in the <b>more</b> text. Through the use of <tt><a href="http://codex.wordpress.org/Template_Tags/the_title">the_title()</a></tt> tag, the title of the article is included: </p>
<pre>&lt;?php the_content(&quot;...continue reading the story
called &quot; . get_the_title('', '', false)); ?&gt;</pre>
<p>and I told him that he should get moving or I&#8217;d be on him like a limpet. He looked at me with shock on his face and said <a href="http://codex.wordpress.org/Customizing_the_Read_More#Designing_the_More_Tag">&#8230;continue reading the story called A Tale That Must Be Told</a></p>
<p><a name="Having_a_custom_text_for_each_post"></a></p>
<h5>Having a custom text for each post</h5>
<p>Although <tt>the_content()</tt> is usually called from the template with a standard text as described above, it is possible to have an individual text for certain posts. In the visual editor, simply write <tt>&lt;!--more Your custom text --&gt;</tt>. </p>
<p>So, you may have something like this: </p>
<p><tt>&lt;!--more But wait, there's more! --&gt;</tt></p>
<p><a name="Adding_An_Image"></a></p>
<h5>Adding An Image</h5>
<p>The design possibilities with CSS are practically unlimited, and WordPress allows you to use images in many of their <a href="http://codex.wordpress.org/Template_Tags">Template Tags</a>, including the <tt>more</tt> tag. To add an image, there are two ways to do it. Begin with the most simple &#8212; listing it in <tt>the_content()</tt> template tag. </p>
<p>This examples features the image of a leaf after the &quot;Read More&quot; text. </p>
<pre>&lt;?php the_content('Read more...&lt;img src=&quot;/images/leaf.gif&quot;
alt=&quot;read more&quot; title=&quot;Read more...&quot; /&gt;'); ?&gt;</pre>
<p>Notice that the code uses an <tt>ALT</tt> and <tt>TITLE</tt> in the image tag. This is in compliance with accessibility and web standards, since the image is both an image and a link. Here is what it might look like. </p>
<p>and I told him that he should get moving or I&#8217;d be on him like a limpet. He looked at me with shock on his face and said <u>Read More&#8230;</u> <a href="http://blog.server.ruservers.com/wp-content/uploads/2009/01/leaf.gif" target="_blank" rel="lightbox[110]"><img title="leaf" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="46" alt="leaf" src="http://blog.server.ruservers.com/wp-content/uploads/2009/01/leaf-thumb.gif" width="37" border="0" /></a> </p>
<p>You could even add a style to the image and <tt>more</tt> tag, as mentioned above, to style it even more. To use the image without the &quot;Read More&quot; text, just delete the text. </p>
<p>The second example uses the CSS background image. We have described how to use style classes in the above examples. This is a little tricker. The container&#8217;s style must be set to allow the background image to show out from behind the text. If you were to use the above example as a background image, the <tt>style.css</tt> style sheet for this might look like this: </p>
<pre>.moretext {
   width: 100px;
   height: 45px;
   background:url(/images/leaf.gif) no-repeat right middle;
   padding: 10px 50px 15px 5px}</pre>
<p>The 50px padding against the right margin should make sure the text is pushed over away from the image as to not overlap it. The height ensures that the container will expand wide enough so the image is visible within the container, since a background image isn&#8217;t &quot;really there&quot; and can not push against the container&#8217;s borders. You may have to experiment with this to fit the size and shape of your own image. </p>
<p>You have gotten the basics. From here, it is up to your imagination. </p>
<p><a name="Read_More_is_ignored_on_front_.28home.29_page"></a></p>
<h5>Read More is ignored on front (home) page</h5>
<p>Please remember that on the home page (<code> is_home() == TRUE </code>), the <code>&lt;!--More--&gt; </code>tag is ignored unless you turn on it again using the following code: </p>
<pre>global $more;
$more = 0;</pre>
<p>See <a href="http://wordpress.org/support/topic/168032">More tag ignored on home page</a> forum topic. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.server.ruservers.com/2009/01/customizing-the-read-more/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
