Friday, June 22, 2012

Wordpress for Beginners

Wordpress for Beginners


How to Alter the WordPress RSS Widget’s Refresh Rate

Posted: 21 Jun 2012 07:14 PM PDT

As amazing as the built in WordPress RSS widget can be there are times that it just doesn’t update fast enough. Thanks to the fact that WordPress is so easy to customize we can easily change this. In this article, we will show you how to alter the WordPress RSS Widget’s refresh rate.

All you have to do is add the following code to your theme’s functions.php file or into a site-specific plugin:

  add_filter( 'wp_feed_cache_transient_lifetime',      create_function('$a', 'return 600;') );  

In this example it is set to refresh every 600 seconds, or 10 minutes. Simply change this number to whatever you want and your RSS widget will refresh accordingly.

Source

How to Alter the WordPress RSS Widget’s Refresh Rate is a post from: WPBeginner which is not allowed to be copied on other sites.

How to Embed SWF in Your WordPress Posts

Posted: 21 Jun 2012 03:08 AM PDT

If you have ever tried embedding a Shockwave Flash file into your WordPress blog then you know it can get messy. Besides, if you are hosting your blog on WordPress.com then you are not going to be able to upload flash for security reasons. If you do have your hosting account, however, then there are several ways you can go about uploading .swf files to your WordPress blog posts. The first way involves using a plugin. This way is preferred if you are not good with code. The other way requires you to know some basic html. In this article we are going to go over how to embed SWF in WordPress posts with a plugin and without a plugin.

Plugin Method

First, you need to download and install Easy Flash Embed for WordPress. This plugin is so simple that no settings are even added to your admin menu. All you have to do is used a shortcode when you are creating your posts like this:

  [swf src="http://www.example.com/my-flash-file.swf" width=300 height=100]  

Simply replace the src attribute with a link to your flash file and adjust height and width accordingly.

Download Easy Flash Embed plugin.

Code Method

For those of you who would like more control over your code we are now going to show you how to embed flash files directly into your WordPress posts, pages, or even themes. Although people have come up with numerous methods for doing this over the years the easiest and most standards compliant way is to use the <object> element.

The final code looks like this:

  <object id="flashcontent"           classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"           width="550px"           height="400px">    <param name="movie" value="mymovie.swf" />       <!--[if !IE]>-->    <object type="application/x-shockwave-flash"             data="mymovie.swf"             width="550px"             height="400px">    <!--<![endif]-->         <p>        Fallback or 'alternate' content goes here.        This content will only be visible if the SWF fails to load.      </p>       <!--[if !IE]>-->    </object>    <!--<![endif]-->     </object>  

Note that you are using 2 <object> elements. The outer element is targeting Internet Explorer while the inner element is for all the other browsers. You can change your fallback text if necessary. You can also add extra <param> options like wmode or allowScriptAccess.

P.S. you should always use wmode=transparent, so your embed doesn’t override existing content such as a floating bar. Check out our article on how to prevent Youtube oEmbed from overriding content.

How to Embed SWF in Your WordPress Posts is a post from: WPBeginner which is not allowed to be copied on other sites.

Thursday, June 21, 2012

HTML Entity Reference for Common Characters

HTML Entity Reference for Common Characters


HTML Entity Reference for Common Characters

Posted: 21 Jun 2012 07:22 AM PDT

HTML Entity Reference for Common StuffThere are lots of references online where you can quickly search and find the necessary HTML code for embedding all sorts of symbols and characters into your web pages.

I find that most of the references I’ve seen are far too exhaustive. So for my own personal use, I put together a chart of the character entity references that I’ve needed the most.

Obviously, what consitutes “common” would vary from developer to developer, but I hope this list covers most of the most commonly used symbols and characters.

Name Character Entity Numeric
Copyright © &copy; &#169;
Registered ® &reg; &#174;
Trademark &trade; &#153;
Curly Open Double Quote &ldquo; &#147;
Curly Closed Double Quote &rdquo; &#148;
Curly Open Single Quote &lsquo; &#145;
Curly Closed Single Quote &rsquo; &#146;
Big Bullet/Dot &bull; &#149;
Small Bullet/Dot · &middot; &#183;
Square Dot &sdot; &#8901;
En Dash &ndash; &#150;
Em Dash &mdash; &#151;
Cents ¢ &cent; &#162;
Pound (Currency) £ &pound; &#163;
Euro (Currency) &euro; &#8364;
Not Equal To &ne; &#8800;
Half (Fraction) ½ &frac12; &#189;
Quarter (Fraction) ¼ &frac14; &#188;
Three-Quarters (Fraction) ¾ &frac34; &#190;
Degrees ° &deg; &#176;
Left Arrow &larr; &#8592;
Right Arrow &rarr; &#8594;
Up Arrow &uarr; &#8593;
Down Arrow &darr; &#8595;
Lowercase “e”, Grave Accent è &egrave; &#232;
Lowercase “e”, Acute Accent é &eacute; &#233;
Lowercase “c”, Cedilla ç &ccedil; &#231;
Ellipse &hellip; &#8230;
Triangle Down (none) &#9660;
Triangle Up (none) &#9650;
Triangle Left (none) &#9664;
Triangle Right (none) &#9654;
Name Character Entity Numeric

Final Notes

In HTML5, as far as I understand, you could technically just copy and paste the character right into your document and it will validate just fine. This is different from XHTML validation, which requires that you use the named or numeric entity reference to validate. Of course, if you’re concerned about how these characters are handled when entered into a database or form, then you might want to check out this article on Smashing Magazine, along with the comments.

Also, for the most part, pretty much any symbol can be found with a quick Google search. But like I said, many of the references are often too comprehensive and contain a lot of extra stuff that I don’t need.

Finally, when deciding what is “common”, keep in mind that I didn’t include any symbol that has its own key on most keyboards (e.g. “%” or “@”). Comment if you feel I’ve left out anything that qualifies as “common”. I know there are some accented characters that I’ve left out, so I’m considering doing a separate post that will have a chart of common foreign language characters. Maybe I’ll do that post mañana.

Related posts:

  1. CSS/HTML Tools and Resources Worth Checking Out
  2. Linking to jQuery: Always Reference a Specific Version
  3. CSS Terms and Definitions


Photik - Blog & Portfolio WordPress Theme


Photik - Blog & Portfolio WordPress Theme



>> New WordPress Themes eCommerce 2012
>> Best Entertainment WordPress Themes
>> Best WordPress Themes for Mobile
>> Collection Nice Blog / Magazine themes.


Photik – current version 1.0.0 available for download!

Photik is uber cool theme made specially for creative folks with outstanding portfolios. If you are looking for a theme to showcase your work – look no further!
As a FREE Bonus you’ll get the award winning Visual Composer plugin integrated into the theme, which lets you to create complex layouts with simple drag-n-drop interface – $25 value.

Features

  • Translation ready with po/mo files
  • Responsive layout
  • Post Format Support: Standard, Image, Video, Gallery, Link, Aside, Quote
  • Stream video from any popular services (Youtube/Vimeo/...)
  • UNLIMITED color variations
  • Unbranded admin panel
  • Liquid image slider
  • Custom elements – Tabs, sliders, buttons, call to action blocks, twitter feed, posts grid and more
  • WordPress 3.4+ Ready
  • XML file with demo content included – import it into your site for quick setup.
  • Extensive documentation

What Visual Composer users are saying?

“I’m loving this plug-in. But more importantly the customer support has been Stellar!!!!” – Matt Harper
“WOW. Thanks for being born! I just downloaded the plugin without thinking twice.” – Chip
“Anyone not sure of purchasing this, needs to stop and just go buy it, this is truly one awesome product and makes creating a static homepage a breeze with some amazing results.” – RedDan

Visual Composer Demo*

Note: In the demo video another template is used for demonstration purposes, but it works same way with Architectos.

Stay updated!

Never miss a thing! Sign up for my newsletter list and I will keep you up-to-date with theme updates, new theme releases and sneak peaks of upcoming items.

Microsoft unveils Windows Phone 8 - CNN.com - Technology

Microsoft unveils Windows Phone 8 - CNN.com - Technology


Microsoft unveils Windows Phone 8

Posted: 20 Jun 2012 03:43 PM PDT

It's shaping up to be a huge week for Microsoft. On Monday, the company announced its Surface tablet platform at a hush-hush event in Los Angeles, and now Microsoft has unveiled Windows Phone 8 Apollo at its Windows Phone Summit in San Francisco.

Getting caught on Google maps

Posted: 20 Jun 2012 02:05 PM PDT

Google and Apple's race to develop new mapping techniques sparks new concerns over privacy issues.

Review: Samsung Galaxy S III

Posted: 20 Jun 2012 09:33 AM PDT

The world has high hopes for Samsung's Galaxy S III, but does the smartphone live up to the hype?

State: Sex offenders must list status on Facebook

Posted: 21 Jun 2012 05:02 AM PDT

A new Louisiana law requires sex offenders and child predators to state their criminal status on their Facebook or other social networking page, with the law's author saying the bill is the first of its kind in the nation.

Samsung Galaxy S III aims high, falls short

Posted: 20 Jun 2012 09:21 AM PDT

The world has high hopes for Samsung's Galaxy S III, but does the smartphone live up to the hype?

Search This Blog

Top WordPress Seller