Fair Trade Manitoba
Posted: 17 October 2008 01:46 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  192
Joined  10-05-2007

Hey all - I just today launched the new website for Fair Trade Manitoba, which raises awareness about fair trade products and practices amongst the residents of Manitoba.  Have a poke around if you like:

Fair Trade Manitoba

Derek

 Signature 

Amphibian Design | EE Pro Network member
Making things for people on the internet since, oh geez, must be years now.

Profile
 
 
Posted: 17 October 2008 01:58 PM   [ Ignore ]   [ # 1 ]  
Summer Student
Avatar
Total Posts:  10
Joined  10-17-2008

Very Nice Derek smile

 Signature 

Experimenting with Expression Engine

Profile
 
 
Posted: 20 October 2008 09:28 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Avatar
Rank
Total Posts:  86
Joined  10-16-2008

Nice design!  I’m curious how you accomplished the “Find Fair Trade Products” search, is this done inside EE or does it come from a separate database via a PHP enabled template?

 Signature 

Beauty through Code.  Code through Knowledge. Knowledge through The Tubes.

Profile
 
 
Posted: 20 October 2008 11:18 AM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  286
Joined  07-09-2008

Awesome job, great work!

 Signature 

Brandon Livengood - @blivengood
unleashedideas.com

Profile
 
 
Posted: 20 October 2008 11:38 AM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  192
Joined  10-05-2007

Thanks for the kind words all.

@Tim - The product search you’re referring to uses some simple PHP to pull the category IDs from the GET request sent by the form.  I then check to see if these are numeric (as a simple form of security), and concatenate them together with an ampersand as the “glue”.  This then gets passed to the weblog:entries tag (the PHP parsing is set to “Input” for that template.)

The one downfall of this method is that it doesn’t support pagination.

(I should also note that this could have also been achieved using the “dynamic parameters” feature for the weblog:entries tag, but I wanted the URLs used to filter by multiple categories to be bookmark-able, which you can’t do with a POST request.)

In case anyone wants to use the same:

<?php
    
if ( isset($_GET['product'])
    &&
is_numeric($_GET['product'])
    && isset(
$_GET['city'])
    &&
is_numeric($_GET['city']) ) {
        
        $cats
= array();
        
$city = $_GET['city'];
        
$product = $_GET['product'];
        
$cats[] = $city;
        
$cats[] = $product;

        
$showcats = implode('&', $cats);
        
$showcats = ' category="' . $showcats . '"';
    
    
} else {
    
        $showcats
= '';
    
    
}
?>

Then I echo this into the weblog:entries tag:

{exp:weblog:entries weblog="guide"<?php echo $showcats; ?> limit="500" orderby="title"
sort="asc" disable="category_fields|member_data|pagination|trackbacks"}
 Signature 

Amphibian Design | EE Pro Network member
Making things for people on the internet since, oh geez, must be years now.

Profile
 
 
Posted: 20 October 2008 05:21 PM   [ Ignore ]   [ # 5 ]  
Grad Student
Avatar
Rank
Total Posts:  86
Joined  10-16-2008

Wow!  I wouldn’t have thought to use EE like that, you’ve got every member as an entry, so it’s easy to add more, you can tag them with multiple categories, it’s impressive!  I’ve definitely got a lot more to learn about EE grin

 Signature 

Beauty through Code.  Code through Knowledge. Knowledge through The Tubes.

Profile
 
 
Posted: 20 October 2008 06:37 PM   [ Ignore ]   [ # 6 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  2307
Joined  05-13-2004

Very nice - BTW I’m originally from Winnipeg, living abroad now, but will probably be returning soon.

 Signature 

CreateSean Web Design | EE Forums 4 You ExpressionEngine forum customization
on twitter @createsean I am the poster formally known as The Linguist.

Profile
 
 
Posted: 02 July 2009 06:01 PM   [ Ignore ]   [ # 7 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1910
Joined  01-05-2007

Hi Derek,

I just found this while looking for a solution. Great site!

What method did you use to generate the Google Map for each listing?

 Signature 

 
Steven Hambleton | Follow me on Twitter!


ExpressionEngine Outsourcing for Marketing, Graphic & Web Agencies
Partner with a professional ExpressionEngine development team to turn your designs into functioning sites.

Profile
 
 
Posted: 02 July 2009 10:23 PM   [ Ignore ]   [ # 8 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  192
Joined  10-05-2007

Hey Steven - I use the Google Maps API geo-location method to find the coordinates using each listing’s address, then place the marker, all at runtime.  Sometimes it can’t find the correct address (depending on the language used when entered), but most of the time it works great.

 Signature 

Amphibian Design | EE Pro Network member
Making things for people on the internet since, oh geez, must be years now.

Profile
 
 
Posted: 03 July 2009 02:37 AM   [ Ignore ]   [ # 9 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1701
Joined  02-28-2008

Nice looking and functioning site, I like the dynamic header images and overall color choices, very nice use of categories - and thanks for sharing the code snip. “Go to the top page” link is a nice touch smile
One thing I noticed (maybe it is just me) is a tricky submenues…can’t seem to stay on long enough or as if there is some delay. eg.http://fairtrademanitoba.ca/news/.

Congratulations!

Profile
 
 
Posted: 06 July 2009 11:22 AM   [ Ignore ]   [ # 10 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  115
Joined  08-18-2006

Fantastic job D-Rock. Beautifully done.

 Signature 

“The Road to Success is Always Under Construction”

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 02:47 PM
Total Registered Members: 119234 Total Logged-in Users: 96
Total Topics: 125532 Total Anonymous Users: 64
Total Replies: 660795 Total Guests: 444
Total Posts: 786327    
Members ( View Memberlist )