<?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>Peeled Carrots &#187; Seagull</title>
	<atom:link href="http://www.peeledcarrots.com/tag/seagull/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.peeledcarrots.com</link>
	<description>....cause life&#039;s too short to peel carrots. Enough said!!</description>
	<lastBuildDate>Tue, 31 Jan 2012 13:17:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Reviewing a CMS solution developed on Mediatemple with the Seagull PHP Framework, including Paypal integration</title>
		<link>http://www.peeledcarrots.com/reviewing-a-cms-solution-developed-on-mediatemple-with-the-seagull-php-framework-including-paypal-integration/</link>
		<comments>http://www.peeledcarrots.com/reviewing-a-cms-solution-developed-on-mediatemple-with-the-seagull-php-framework-including-paypal-integration/#comments</comments>
		<pubDate>Wed, 25 Jul 2007 11:29:02 +0000</pubDate>
		<dc:creator>Stephen Blake</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Seagull]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.technovated.com/2007/07/25/reviewing-a-cms-solution-developed-on-mediatemple-with-the-seagull-php-framework-including-paypal-integration/</guid>
		<description><![CDATA[On Friday 20th July I finally deployed a site which we as a team have been working on for a number of months. Working on the project has been a huge learning curve and has taken way longer than ever expected. The site which I am talking about is http://bd4d.com, which stands for By Designers [...]]]></description>
			<content:encoded><![CDATA[<p>On Friday 20th July I finally deployed a site which we as a team have been working on for a number of months. Working on the project has been a huge learning curve and has taken way longer than ever expected.</p>
<p><a href="http://www.bd4d.com"><img src="http://www.technovated.com/wp-content/bd4d-home.jpg" width="550"  alt="BD4D"/></a></p>
<p>The site which I am talking about is <a href="http://www.bd4d.com">http://bd4d.com</a>, which stands for By Designers 4 Designers is built using the <a href="http://seagull.phpkitchen.com/">seagull php framework</a> with the new <a href="http://trac.seagullproject.org/wiki/Modules/Cms">cms</a> module</p>
<h3>General comments</h3>
<p>
<h4>Media Temple Installation</h4>
<p>During the live installation I encountered a few problems, most of which related to permissions of files on the server:</p>
<p>The main one however were the permissions of the /var/lib/php/session/ folder – it has to be writable</p>
<p>
<h4>Plugins that I found really useful during development</h4>
<p>There were two firefox plug-ins that I found very useful during development of the site:</p>
<p><a href="http://www.iosart.com/firefox/colorzilla/">Colorzilla</a> – gives you # codes for colours on any webpage<br />
<a href="https://addons.mozilla.org/en-US/firefox/addon/1419">IE tab </a>– allows you to open up ie7 tabs within firefox, which is great for cross browser compliant xhtml/css</p>
<p>Thanks to the developers of these two add-ons <img src='http://www.peeledcarrots.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>
<h4>Paypal</h4>
<p>The site has a payment gateway for listing jobs and events which has transaction processing done by <a href="https://www.paypal.com/">Paypal</a>.</p>
<p>In terms of project mistakes, this was one of the biggest we made. The support that <a href="http://www.floydtech.co.uk">James</a> received from  <a href="https://www.paypal.com/">Paypal</a> was extremely poor and the general documentation which they supply is often out of date and incorrect. I am amazed that they have become such a successful company, when it is so difficult to integrate their transaction processing into one’s site.</p>
<p>However after a lot of waiting for accounts to go live, numerous queries, emails, phone calls and a lot of frustration, we did eventually get the transactions working. It is working fine now, but it was definitely not worth all of that hassle.</p>
<p>I would be interested to here about other experiences from developers using  <a href="https://www.paypal.com/">Paypal</a> – hopefully you had a better one than we did.</p>
<h3>Site Features</h3>
<p>
<h4>Showcase</h4>
<p>The section of the site that I am most proud of is the <a href="http://www.bd4d.com/index.php/default/showcase/action/list/">Showcase</a> section, which has flash and movies of some really cool clips which the <a href="http://www.bd4d.com">bd4d</a> guys have done. The section allows comments to be made on each of the movies and I think it looks pretty slick – even if I say so myself <img src='http://www.peeledcarrots.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>To get the section functioning, I used the following:</p>
<p>A comment manager which Dmitri initially developed and then  I adapted that code to be used for the site.</p>
<p>To prevent spam on the site I used <a href="http://pear.php.net/package/Text_CAPTCHA">captcha package</a> from the <a href="http://pear.php.net/">php pear library</a></p>
<p>And I used the following code in the template to hold the movies/flash files:</p>
<p><code>< object width="550" height="400" ><br />
< param name="movie" value="{webRoot}/themes/bd4d/showcasemovies/<br />
{oItem.media}" ><br />
< param name="quality" value="high" ><br />
< embed src="{webRoot}/themes/bd4d/showcasemovies/<br />
{oItem.media}" quality="high" width="{oItem.width}" height="{oItem.height}" autostart="true">< / embed ><br />
< / object >	</code></p>
<p>
<h4>Events</h4>
<p>The <a href="http://www.bd4d.com/index.php/event/calendar/action/viewMonth/y/2007/m/07/regionId/0/">Events calendar</a> uses the default seagull events module as a basis, but there where a few enhancements made to fit the requirements of the site. The majority of the development of this section was done by James and I think that he did a pretty good job of it.</p>
<p>The calendar looks pretty slick and works really well, also the backend of the seagull events module provides a lot of flexibility for administrators wanting to manage events.</p>
<p>
<h4>Job board</h4>
<p>The <a href="http://www.bd4d.com/index.php/default/jobboard/action/list/">Job board</a> uses custom managers in the default module and as I have mentioned in my section about paypal, it allows members of the site to post jobs for a fee. The transaction processing handles straight paypal payments as well as credit card payments which are verified by paypal.</p>
<p>
<h3>Conclusion</h3>
<p>As I mentioned in the introduction this site took way longer than expected and there were a number of hard lessons which the whole team learnt. But at the end of the day, the site looks pretty good and works as expected, so in some way it can be seen as a success.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.peeledcarrots.com/reviewing-a-cms-solution-developed-on-mediatemple-with-the-seagull-php-framework-including-paypal-integration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Developing a CMS solution on Mediatemple with the Seagull PHP Framework, including Google Maps</title>
		<link>http://www.peeledcarrots.com/developing-a-cms-solution-on-mediatemple-with-the-seagull-php-framework-including-google-maps/</link>
		<comments>http://www.peeledcarrots.com/developing-a-cms-solution-on-mediatemple-with-the-seagull-php-framework-including-google-maps/#comments</comments>
		<pubDate>Fri, 20 Apr 2007 09:03:53 +0000</pubDate>
		<dc:creator>Stephen Blake</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Seagull]]></category>

		<guid isPermaLink="false">http://www.technovated.com/2007/04/20/developing-a-cms-solution-on-mediatemple-with-the-seagull-php-framework-including-google-maps/</guid>
		<description><![CDATA[Having just completed the Atalink site, I would like to highlight some of my experiences, frustrations and lessons which I have learnt over the past few months. Background I developed the site using the Seagull php framework, using the publisher module (which has recently been superseded by the CMS module). The publisher module requires a [...]]]></description>
			<content:encoded><![CDATA[<p>Having just completed the Atalink site, I would like to highlight some of my experiences, frustrations and lessons which I have learnt over the past few months. </p>
<p><strong>Background</strong></p>
<p>I developed the site using the Seagull php framework, using the <a href="http://trac.seagullproject.org/wiki/Modules/Publisher">publisher module </a>(which has recently been superseded by the <a href="http://trac.seagullproject.org/wiki/Modules/Cms">CMS module</a>). </p>
<p>The <a href="http://trac.seagullproject.org/wiki/Modules/Publisher">publisher module</a> requires a bit of hacking to make it run effectively, especially if the site requires content pages which have different layouts. But, overall the site works well and looks pretty good, even if I say so myself <img src='http://www.peeledcarrots.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . </p>
<p>I have still had a number of difficulties, so for those of you who are planning on building a similar site, here are some of the things which I have learnt:</p>
<p>This is especially relevant if you are going to be using some of the following:</p>
<ul>
<li><a href="http://seagullproject.org/">Seagull php Framework</a></li>
<li>Installing a site on a <a href="http://mediatemple.net/">Media Temple</a> Server</li>
<li>Including a dynamic <a href="http://www.google.com/apis/maps/">Google Map</a> in a page using the api</li>
</ul>
<p><strong>Lessons learned</strong></p>
<p>Tips for using the <a href="http://seagullproject.org/">Seagull</a> publisher module:</p>
<p>If you have various site sections which need to have different layouts, the best way of handling this is to create different content types for each different layout which is required.</p>
<p>Then create a different publisher template for that content type and specify the styling which you want for that particular section.</p>
<p>If you have any exceptions, then use a handler like this:</p>
<p><code>    {if:isEqual(29,articleID)}<br />
            <flexy:include src="about_flow.html" /><br />
   {end:}<br />
    {if:isEqual(30,articleID)}<br />
              <flexy:include src="about_approach.html" /><br />
    {end:}<br />
    {if:isEqual(34,articleID)}<br />
           <flexy:include src="products.html" /><br />
    {end:}</code></p>
<p>I will endeavour to write a more in depth tutorial for this and put it on the Seagull wiki. Once I have done so, I will update this post.</p>
<p><strong>Server Issues</strong></p>
<p>The first issue which I encountered was trying to do an installation on a staging sub-domain on a <a href="http://mediatemple.net/webhosting/dv/"> Media Temple Dedicated Virtual Server</a>, where php safe mode was turned on. I have written a <a href="http://www.technovated.com/2007/04/03/successfully-turning-off-php-safe-mode-removing-open_basedir-restrictions/">post </a>which is a guide on how to successfully remove these restrictions.</p>
<p><strong>Browser Issues</strong></p>
<p>As always, I encountered problems with cross browser compatibility. I discovered huge differences between IE6, IE7 and Firefox. The site looks best in Firefox, Safari and in IE6, but there are a few small differences on IE7.</p>
<p>I used this basic conditional block to include an IE hacks file for when a user views the site using IE.</p>
<p><code>< !--[if IE] >< style type="text/css" >@import "http://www.atalink.com/ themes/atalink/css/hacks/ie.css";< /style >< ![endif]-- ></code> (Remove spaces)</p>
<p><strong>Google Maps</strong></p>
<p>Although this is not that difficult to implement, I found quite a useful site called:</p>
<p><a href="http://www.gorissen.info/Pierre/maps/googleMapLocationv3.php">Google Maps latitude, longitude Popup </a>, which gives you the latitudes and longitude values for a specific location, which you use in the <a href="http://www.google.co.uk">Google </a>supplied javascript</p>
<p><strong>Design</strong></p>
<p>Although a designer may do a really good job and a client signs off a design, one has to be flexible enough to deal with client requests for changing of the layouts. Often the changes requested are quite valid and one should consider each request before just disagreeing.</p>
<p><strong>Content</strong></p>
<p>Again, I have been reminded about how important it is to have content ready and signed off, before beginning with development. It is amazing how much time can be wasted when you are waiting for pieces of content. Details about content should be agreed upon during initial agreements and no matter how difficult it may be, these agreements should be adhered to.</p>
<p><strong>Conclusion</strong></p>
<p>I have enjoyed working on this site and I have learnt a lot, in terms of development and in terms of communicating with clients.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.peeledcarrots.com/developing-a-cms-solution-on-mediatemple-with-the-seagull-php-framework-including-google-maps/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

