vb.net qr code library Figure 16-11. The RSS feed appears as a list of links in the sidebar. in Visual Basic .NET

Generator Data Matrix ECC200 in Visual Basic .NET Figure 16-11. The RSS feed appears as a list of links in the sidebar.

Figure 16-11. The RSS feed appears as a list of links in the sidebar.
Paint ECC200 In Visual Basic .NET
Using Barcode printer for Visual Studio .NET Control to generate, create DataMatrix image in .NET applications.
www.OnBarcode.com
DataMatrix Reader In VB.NET
Using Barcode decoder for .NET framework Control to read, scan read, scan image in Visual Studio .NET applications.
www.OnBarcode.com
CHAPTER 16 CHANGING THE LOOK OF YOUR BLOG
PDF 417 Maker In Visual Basic .NET
Using Barcode creator for .NET framework Control to generate, create PDF417 image in .NET framework applications.
www.OnBarcode.com
European Article Number 13 Generator In Visual Basic .NET
Using Barcode creation for .NET Control to generate, create EAN-13 Supplement 5 image in Visual Studio .NET applications.
www.OnBarcode.com
Adjusting the Links
Print Barcode In Visual Basic .NET
Using Barcode creator for .NET Control to generate, create Barcode image in .NET applications.
www.OnBarcode.com
UPCA Creation In VB.NET
Using Barcode maker for .NET Control to generate, create UPC-A Supplement 5 image in .NET applications.
www.OnBarcode.com
The links appear in the sidebar, but they are not quite as pretty as you might like. Let s add some style rules for the header and the list to the end of the style.css style sheet, as shown in Listing 16-5. Listing 16-5. CSS Rules for the List of Links Added to style.css #right h2 { margin-top: 1.2em; } ul.rsslinks { list-style-type: none; margin:0; padding-left: 10px; } ul.rsslinks li { margin-top: 4px; margin-left: 1em; text-indent: -1em; } Also notice that some of the links have a description after them. If the RSS feed includes a description, the plug-in will display it by default. You can turn that off quite easily. Another default the plug-in provides is the number of links, which is 15. I think 10 is a more suitable number. The resultant code in the index.php template file looks like Listing 16-6. Listing 16-6. Additional Parameters to Restrict the Link List Output in index.php <ul class="rsslinks"> < php _rssLinkList(array("rss_feed_url"=> "http://del.icio.us/rss/tag/wordpress+tools", "show_description"=>FALSE, "num_items"=>10)); > </ul> If you check your blog page now, it should look like Figure 16-12. You will see the list looks much neater and blends in with the rest of the content. You have now added an external resource as part of the blog. Here, I chose one that is pertinent to the readers. You could also have added a feed of related news items from another web site or a list of the latest topics from a companion forum. The possibilities are quite extensive. As long as there is a resource available in RSS format, you can add it this way.
Denso QR Bar Code Encoder In Visual Basic .NET
Using Barcode generator for VS .NET Control to generate, create QR Code image in Visual Studio .NET applications.
www.OnBarcode.com
Code 2 Of 5 Encoder In Visual Basic .NET
Using Barcode encoder for .NET Control to generate, create 2/5 Industrial image in VS .NET applications.
www.OnBarcode.com
CHAPTER 16 CHANGING THE LOOK OF YOUR BLOG
Data Matrix Drawer In Java
Using Barcode creator for Java Control to generate, create Data Matrix image in Java applications.
www.OnBarcode.com
Read Data Matrix ECC200 In Java
Using Barcode reader for Java Control to read, scan read, scan image in Java applications.
www.OnBarcode.com
Figure 16-12. The improved list of links
Code 128 Code Set A Creator In Visual C#.NET
Using Barcode generation for Visual Studio .NET Control to generate, create Code 128 Code Set A image in Visual Studio .NET applications.
www.OnBarcode.com
QR Code 2d Barcode Encoder In None
Using Barcode drawer for Word Control to generate, create QR Code image in Microsoft Word applications.
www.OnBarcode.com
Adding Registration and Login Links
Make UPCA In Java
Using Barcode generation for BIRT reports Control to generate, create UPC Code image in Eclipse BIRT applications.
www.OnBarcode.com
Print GTIN - 12 In Java
Using Barcode drawer for Java Control to generate, create UPC-A Supplement 2 image in Java applications.
www.OnBarcode.com
Something missing from this template are the links to register and log in to the blog. Most WordPress blogs, being one-person blogs, don t need these links. Many themes don t even bother to include them. For a community blog, you will want to add them to your theme. To the index.php template file, add the code highlighted in bold in Listing 16-7. Listing 16-7. WordPress Template Tags for Registration and Login Links Added to index.php "show_description"=>FALSE, "num_items"=>10)); > </ul> <h2>< php _e('Contribute'); ></h2> <ul id="contribute"> < php wp_register(); > <li>< php wp_loginout(); ></li> </ul> </div><!-- /side --> The additions in Listing 16-7 are standard WordPress template tags. The call to wp_register() produces a link to the registration page, but it does so only if registration is enabled. If you are logged in, however, it produces a link to the administration pages.
UPCA Encoder In Objective-C
Using Barcode creation for iPhone Control to generate, create UPC Symbol image in iPhone applications.
www.OnBarcode.com
EAN13 Generator In Objective-C
Using Barcode printer for iPad Control to generate, create European Article Number 13 image in iPad applications.
www.OnBarcode.com
CHAPTER 16 CHANGING THE LOOK OF YOUR BLOG
GS1 DataBar Printer In Java
Using Barcode creation for Java Control to generate, create GS1 DataBar Truncated image in Java applications.
www.OnBarcode.com
Painting Code-39 In Java
Using Barcode drawer for Java Control to generate, create Code-39 image in Java applications.
www.OnBarcode.com
The call to wp_loginout produces a link to the login page if the current visitor is not already logged in, and a logout link if the visitor is logged in. Next, add the CSS rules from Listing 16-8 to the end of the style sheet. This will ensure the display of the links matches that of the other parts of the sidebar. Listing 16-8. CSS Rules for Login and Register Links Added to style.css ul#contribute { list-style-type: none; margin:0; padding-left: 10px; } ul#contribute li { margin-top: 4px; margin-left: 1em; text-indent: -1em; } Figure 16-13 shows how your register and login links should appear, and Figure 16-14 shows the site admin and logout links.
Generate Code 128B In .NET Framework
Using Barcode creator for ASP.NET Control to generate, create Code128 image in ASP.NET applications.
www.OnBarcode.com
Make Code39 In .NET Framework
Using Barcode generator for .NET framework Control to generate, create Code 39 Full ASCII image in VS .NET applications.
www.OnBarcode.com
Figure 16-13. The register and login links
Figure 16-14. The site admin and logout links
CHAPTER 16 CHANGING THE LOOK OF YOUR BLOG
Adding a Recent Comments Plug-In
Now you will install another plug-in, which will list a number of the most recent comments to the blog in the sidebar. This is great mechanism to keep your readers interested. It allows them to see which topics are still being discussed, and thus is an added incentive to keep reading those topics and to continue to get involved. Real conversation about a shared interest between your readers is the lifeblood of an active online community. The plug-in is the Customizable Comment Listings plug-in by Scott Reilly. You can download this plug-in via Scott s site at http://www.coffee2code.com/archives/2005/03/30/ plugin-customizable-comment-listings/. Download, install, and activate the plug-in using the procedure covered in 15. Read through the comprehensive documentation on Scott s site. Next, add the code shown in Listing 16-9 (from one of the examples in the plug-in s documentation) to the index.php template file, just before the contribute section. The single parameter 5 tells the plug-in to list only the five most recent comments. Listing 16-9. Code to Insert into index.php Immediately Before the Contribute Links <h2>< php _e('Recent Comments'); ></h2> <ul class="recentcomments"> < php c2c_get_recent_comments(5); > </ul> <h2>< php _e('Contribute'); ></h2> <ul id="contribute"> Now add some more CSS rules to style the list of comments the same as the other lists on that page, as shown in Listing 16-10. Listing 16-10. Additional CSS Rules for the End of style.css ul.recentcomments { list-style-type: none; margin:0; padding-left: 10px; } ul.recentcomments li { margin-top: 4px; margin-left: 1em; text-indent: -1em; } Figure 16-15 shows what the default output of this plug-in looks like. Below the del.icio.us links, you have a list of the five most recent comments with the name of the comment author and the first few words of the comment. Those few words are a link to the individual comment itself. If a reader clicks the link, she will be taken to the blog post commented on with the page scrolled to the individual comment.
Copyright © OnBarcode.com . All rights reserved.