<?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>Pro Web Marketing &#187; Web Content</title>
	<atom:link href="http://www.prowebmarketing.com/blog/category/web-content/feed" rel="self" type="application/rss+xml" />
	<link>http://www.prowebmarketing.com/blog</link>
	<description>Web Development &#38; SEO Experts</description>
	<lastBuildDate>Tue, 10 Jan 2012 15:39:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Web Fonts: Revisiting an old problem</title>
		<link>http://www.prowebmarketing.com/blog/web-content/web-fonts-revisiting-an-old-problem</link>
		<comments>http://www.prowebmarketing.com/blog/web-content/web-fonts-revisiting-an-old-problem#comments</comments>
		<pubDate>Mon, 10 May 2010 20:12:28 +0000</pubDate>
		<dc:creator>Pro Web</dc:creator>
				<category><![CDATA[Graphic Design]]></category>
		<category><![CDATA[Web Content]]></category>
		<category><![CDATA[Web Standards]]></category>
		<category><![CDATA[Website Tools]]></category>

		<guid isPermaLink="false">http://www.prowebmarketing.com/blog/?p=454</guid>
		<description><![CDATA[In a previous article about fonts and web standards, we discussed the problems designers face with fonts on the web and some various solutions.  Today&#8217;s article brings an update to the field in the form of a few new contenders on the web-font battlefield. Font Squirrel&#8217;s @Font-Face Generator @font-face was CSS&#8217;s original answer to the [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://www.prowebmarketing.com/blog/web-site-tools/using-non-standard-fonts-solutions-and-issues">a previous article about fonts and web standards</a>, we discussed the problems designers face with fonts on the web and some various solutions.  Today&#8217;s article brings an update to the field in the form of a few new contenders on the web-font battlefield.</p>
<p><span id="more-454"></span></p>
<h2><a href="http://www.fontsquirrel.com/fontface/generator" target="_blank">Font Squirrel&#8217;s @Font-Face Generator</a></h2>
<p>@font-face was CSS&#8217;s original answer to the web-font question, but due to poor browser support and confusing implementation methods, it hasn&#8217;t yet taken off.  Font Squirrel&#8217;s generator, on the other hand, combines the @font-face declaration and uses a combination of javascript and CSS hacks to make it work in old, incompatible, and obscure browsers.</p>
<p><a href="http://www.fontsquirrel.com/fontface/generator" target="_blank">http://www.fontsquirrel.com/fontface/generator</a></p>
<h2><a href="http://typekit.com/" target="_blank">Typekit &#8211; A commercial approach</a></h2>
<p>Typekit takes a new approach to web-fonts.  One of the forgotten (yet increasingly important) aspects of the web-font issue is the licensing.  With most solutions, designers use fonts online without thinking about licensing.  Typekit does all of that for you &#8211; at a cost.</p>
<p>Typekit is the first commercial model which hosts web fonts as a service.  Integration into your pages is supposed to be very easy and seamless.</p>
<p><a href="http://typekit.com/" target="_blank">http://typekit.com/</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.prowebmarketing.com%2Fblog%2Fweb-content%2Fweb-fonts-revisiting-an-old-problem&amp;title=Web%20Fonts%3A%20Revisiting%20an%20old%20problem" id="wpa2a_2"><img src="http://www.prowebmarketing.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.prowebmarketing.com/blog/web-content/web-fonts-revisiting-an-old-problem/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Photos for the Web</title>
		<link>http://www.prowebmarketing.com/blog/web-content/photos-for-the-web</link>
		<comments>http://www.prowebmarketing.com/blog/web-content/photos-for-the-web#comments</comments>
		<pubDate>Mon, 26 Apr 2010 19:27:12 +0000</pubDate>
		<dc:creator>Pro Web</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[Web Content]]></category>
		<category><![CDATA[Web Standards]]></category>

		<guid isPermaLink="false">http://www.prowebmarketing.com/blog/?p=447</guid>
		<description><![CDATA[At Pro Web, we receive a ton of photos every week &#8211; many of them to be integrated into client websites.  Sometimes we  have to throw out a lot of potentially good photographs because they are not &#8220;fit&#8221; for the website.  What usually causes this is incorrect layout &#8211; an easily avoidable mistake. There are [...]]]></description>
			<content:encoded><![CDATA[<p>At Pro Web, we receive a ton of photos every week &#8211; many of them to be integrated into client websites.  Sometimes we  have to throw out a lot of potentially good photographs because they are not &#8220;fit&#8221; for the website.  What usually causes this is incorrect layout &#8211; an easily avoidable mistake.</p>
<p><strong>There are a few easy steps you can take to make sure your photos are appropriate for the web.<span id="more-447"></span><br />
</strong></p>
<h2>Consider where your photos are going</h2>
<p>Most photos on the web are places in a gallery of some sort.  Galleries, particularly on the web, tend to be in a &#8220;wide&#8221; format.  This means that they are designed to hold &#8220;landscape&#8221; style photographs, rather than tall, &#8220;portrait&#8221; style photos.  By taking your pictures with this in mind, you can improve the look of the gallery by making your images consistent.</p>
<p>If your photos are for a certain area of your website, keep the shape of that area in mind!</p>
<h2>Watch the background!</h2>
<p>When taking photos to display publicly on the internet, be sure to remove all unrelated items or clutter from the background of the shot.  This will not only improve your photo aesthetically, but it will appear more professional and more thought out.</p>
<h2>Do not scale or edit photos beforehand</h2>
<p>Unless you are a professional photographer or have other interests in mind, leave that part to your web company.</p>
<h2>Always turn off time stamps!</h2>
<p>&#8220;Time stamps&#8221; are small text overlays on your photo that display the date and time that the photo was taken.  While these can be useful, they can potentially destroy a photo, as it cannot be removed once the photo has been taken!  Be sure to make sure your camera does not have time-stamping enabled.</p>
<h2>Check out more tips</h2>
<p>We have several more tips on photography that you can use in tandem with the advice in this article.  <a title="Photography Tips" href="http://www.prowebmarketing.com/blog/category/photography">Check out more photography tips  from Pro Web Marketing!</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.prowebmarketing.com%2Fblog%2Fweb-content%2Fphotos-for-the-web&amp;title=Photos%20for%20the%20Web" id="wpa2a_4"><img src="http://www.prowebmarketing.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.prowebmarketing.com/blog/web-content/photos-for-the-web/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Save time with PHP!  Create photo galleries automatically.</title>
		<link>http://www.prowebmarketing.com/blog/web-site-design/save-time-with-php-create-photo-galleries-automatically</link>
		<comments>http://www.prowebmarketing.com/blog/web-site-design/save-time-with-php-create-photo-galleries-automatically#comments</comments>
		<pubDate>Wed, 03 Mar 2010 17:06:04 +0000</pubDate>
		<dc:creator>Pro Web</dc:creator>
				<category><![CDATA[Web Content]]></category>
		<category><![CDATA[Website Design]]></category>
		<category><![CDATA[Website Tools]]></category>

		<guid isPermaLink="false">http://www.prowebmarketing.com/blog/?p=417</guid>
		<description><![CDATA[Large photo galleries can be a pain to set up and manage. When you are dealing with 100 or more images, you are in for some serious HTML data entry – tons of lines of code with only a few differences in each line. In this article, I’ll provide a sample script that I have [...]]]></description>
			<content:encoded><![CDATA[<p>Large photo galleries can be a pain to set up and manage.  When you are dealing with 100 or more images, you are in for some serious HTML data entry – tons of lines of code with only a few differences in each line.</p>
<p>In this article, I’ll provide a sample script that I have used and adapted for several galleries and other similar tasks.  This article is meant for developers, but I will do my best to take as much of the “lingo” out of it as I can, and explain and document it well.  Even if you don’t know programming or PHP <em>at all</em>, this should be a useful tool for you.   I developed this with only a basic knowledge of PHP syntax and a bit of guess and check.  <a href="http://www.prowebmarketing.com/examples/phpgallery/">Check out the example!</a><span id="more-417"></span></p>
<h2>Robot work</h2>
<p>If you are a web developer, you’ve probably been in this situation before, and this code snippet might look familiar:</p>
<pre name="code" class="php">&lt;li&gt;&lt;a href=”images/gallery/01/01.jpg” title=”Caption” rel=”lightbox”&gt;&lt;img src=”images/gallery/01/thumbs/01.jpg” alt=”Click for Full Size” /&gt;&lt;/a&gt;&lt;/li&gt;</pre>
<p>For every image in your gallery, that line needs to be repeated, with the image source, link href, and caption changed.  Sounds like a wrist-cramp in the making – definitely what I’d call “Robot work”.</p>
<h2>A Scripted Solution</h2>
<p>This situation just begs to be automated.  Being a php enthusiast, I decided to embark on a small adventure – write a script that will produce this HTML automatically.  Here it is, in all its simplistic glory (Pardon any coding faux pas – I am not the most experienced PHP developer in the world).  This script is used with a lightbox gallery called “<a title="Sexy Light Box" href="http://www.coders.me/lang/en/web-html-js-css/javascript/sexy-lightbox-2" target="_blank">Sexy Light Box</a>”.  A grid of thumbnails which can be clicked on for larger view is our goal here.</p>
<pre name="code" class="php">
&lt;?php
$folder = 'images/gallery/';
$extension = '.jpg';
$group = '[group1]';
$caption = 'Caption';
$alt = '';
$title = '';
$iterations = 28;

$wrap1 = '&lt;li&gt;&lt;a href="';
$wrap2 = '" rel="sexylightbox';
$wrap3 = '" title="';
$wrap4 = '"&gt;&lt;img src="';
$wrap5 = '" alt="';
$wrap6 = '" /&gt;&lt;/a&gt;&lt;/li&gt;';
$i = 1;

while ($i &lt;= $iterations) {
if ($i &gt;= 10) {
$string = $wrap1 . $folder . "/" . $i . $extension . $wrap2 . $group . $wrap3 . $caption . $wrap4 . $folder . "/thumbs/" . $i . $extension . $wrap5 . $alt . $wrap6 . $title . $wrap7 . "\n";
} else {
$string = $wrap1 . $folder . "/" . "0" . $i . $extension . $wrap2 . $group . $wrap3 . $caption . $wrap4 . $folder . "/thumbs/" . "0" . $i . $extension . $wrap5 . $alt . $wrap6 . "\n";
}
echo ("$string");
$i++;
}
?&gt;</pre>
<h2>The Breakdown</h2>
<p>This script allows the developer to simply define the gallery directory, number of images, and an (optional &#8211; not included in this version) array of captions.  Below I will explain the code line by line.</p>
<pre name="code" class="php">$folder = 'media/gallery';</pre>
<p>Defines the folder in which the images are.</p>
<pre name="code" class="php">$extension = '.jpg';</pre>
<p>Image extension.  Currently the script requires that all images have the same filetype</p>
<pre name="code" class="php">$group = '[group1]';</pre>
<p>Most lightbox scripts support “groups” or galleries – matching “rel” tags define your gallery</p>
<pre name="code" class="php">$caption = 'Caption';</pre>
<p>Title tag of the linked full-size image.  Most lightbox scripts use this as a caption.</p>
<pre name="code" class="php">$alt = '';</pre>
<p>Alt tags for the images.  This could be converted to an array if you are concerned about unique alt tags for your gallery thumbnails</p>
<pre name="code" class="php">$iterations = 28;</pre>
<p>The number of images in the gallery.</p>
<pre name="code" class="php">$wrap1 - $wrap6</pre>
<p>these are just the chopped parts of the HTML that is being created and wrapped around the variables.</p>
<pre name="code" class="php">while ($i &lt;= $iterations) {</pre>
<p>$i is a placeholder variable known as an “index”.  It is increased by each time the while loop is completed.  Once $i is greater to or equal than $iterations, the loops condition becomes false and it is no longer repeated</p>
<pre name="code" class="php">if ($i &gt;= 10) {</pre>
<p>This line is deals with the naming scheme of the images.  I name my images 01.jpg, 02.jpg … instead of 1.jpg, 2.jpg etc.  Because of this, I had to include a line that would add a “0” to the code IF the image number is less than 10.</p>
<pre name="code" class="php">$string = $wrap1 . $folder . "/" . $i . $extension . $wrap2 . $group . $wrap3 . $caption . $wrap4 . $folder . "/thumbs/" . $i . $extension . $wrap5 . $alt . $wrap6 . $title . $wrap7 . "\n"; }</pre>
<p>This is the line where all of the HTML wraps and the variables you set earlier are combined.  This version of the command includes the “0” I mentioned earlier.  The final HTML that is about to be “echoed” is saved to the variable $string</p>
<pre name="code" class="php">else {</pre>
<p>If the image number is 10 or above…</p>
<pre name="code" class="php">$string = $wrap1 . $folder . "/" . "0" . $i . $extension . $wrap2 . $group . $wrap3 . $caption . $wrap4 . $folder . "/thumbs/" . "0" . $i . $extension . $wrap5 . $alt . $wrap6 . "\n";</pre>
<p>This familiar line of code has the same function as the previous “combiner” line.  The only difference is that this one leaves out the 0, to avoid getting “010.jpg”.</p>
<pre name="code" class="php">
echo ("$string");</pre>
<p>This prints the first line of the gallery!  Yay!  The echo command takes our “$string” variable and prints it to our webpage.</p>
<pre name="code" class="php">$i++; }</pre>
<p>The index variable $i is incremented, or increased by 1.  This keeps our script from looping infinitely and lets it know when we’re out of images.  Once the script hits this line, it goes back to the top of the “while” loop.  If the initiating condition (“$i &lt;= $iterations”) is true, the loop will run again, creating a new line for our gallery.</p>
<h2>Simple enough?</h2>
<p>This is a pretty basic script, and I’m sure it could be improved upon, but for now it definitely saves time, and is easily adapted to many purposes.</p>
<h2>Pros and Cons</h2>
<p><strong>Pros:</strong> Adaptable, time saving, and simple.  The script is re-usable several times on the same page if more than one gallery is on the page.</p>
<p><strong>Cons: </strong>Slight server overhead which is probably negligible.  Each time the page loads, the server has to generate that HTML.  In my opinion, this hardly matters for such a small-scale site.</p>
<h2>Wrapping Up</h2>
<p>Thanks for checking out this script.  I hope you&#8217;ve learned something from it!</p>
<p>You can download the example code <a title="PHP Gallery Download" href="http://www.prowebmarketing.com/examples/downloads/phpgallery.zip" target="_blank">HERE</a>.</p>
<p>To learn more about the javascript used to make the gallery fancy, <a title="Sexy Light Box" href="http://www.coders.me/lang/en/web-html-js-css/javascript/sexy-lightbox-2">check out Sexy Light Box</a> &#8211; compatible with jQuery AND mootools.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.prowebmarketing.com%2Fblog%2Fweb-site-design%2Fsave-time-with-php-create-photo-galleries-automatically&amp;title=Save%20time%20with%20PHP%21%20%20Create%20photo%20galleries%20automatically." id="wpa2a_6"><img src="http://www.prowebmarketing.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.prowebmarketing.com/blog/web-site-design/save-time-with-php-create-photo-galleries-automatically/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quality Web Content and Why it&#8217;s Important!</title>
		<link>http://www.prowebmarketing.com/blog/web-content/quality-web-content-and-why-its-important</link>
		<comments>http://www.prowebmarketing.com/blog/web-content/quality-web-content-and-why-its-important#comments</comments>
		<pubDate>Tue, 27 Oct 2009 15:53:35 +0000</pubDate>
		<dc:creator>Pro Web</dc:creator>
				<category><![CDATA[Web Content]]></category>
		<category><![CDATA[business]]></category>
		<category><![CDATA[content]]></category>
		<category><![CDATA[online]]></category>
		<category><![CDATA[quality]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.prowebmarketing.com/blog/?p=135</guid>
		<description><![CDATA[Many people believe that content on the web is just text that has been added to a site to tell about the company. It information is actually much much more than this. A Web sites content is the backbone of what a Web site is there to do. All of this important content needs to [...]]]></description>
			<content:encoded><![CDATA[<p>Many people believe that content on the web is just text that has been added to a site to tell about the company. It information is actually much much more than this. A Web sites content is the backbone of what a Web site is there to do. All of this important content needs to be relevant to the business and quickly and directly tell the target market what it is this business does before losing there interest in a sea of letters and paragraphs.<span id="more-135"></span>Good content is comprised of a combination of text, professional photographs, well thought out graphics and also the overall layout of the Web site. A good combination of these factors will result in a &#8220;sticky&#8221; page. What does being sticky have to do with a Web site? This basically just means that you want people to stay for a while and take a look around. They want to see what your site has to offer them. Brains process information quicker with images, so this is where these come in handy. Having to much text with lose the interest of your visitors. They didn&#8217;t come to your site to read a novel and frankly they really just don&#8217; t care to put in the extra effort. So make content straight forward, short and to the point using keywords that are relative to the type of business.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.prowebmarketing.com%2Fblog%2Fweb-content%2Fquality-web-content-and-why-its-important&amp;title=Quality%20Web%20Content%20and%20Why%20it%26%238217%3Bs%20Important%21" id="wpa2a_8"><img src="http://www.prowebmarketing.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.prowebmarketing.com/blog/web-content/quality-web-content-and-why-its-important/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

