Skip to content

Commit

Permalink
Foursquare plugin export posts to CSV
Browse files Browse the repository at this point in the history
  • Loading branch information
ginatrapani committed Sep 6, 2012
1 parent 56a7376 commit 2f461ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/_lib/controller/class.ExportController.php
Expand Up @@ -138,7 +138,7 @@ public static function outputCSV($data, $column_labels, $filename="export") {
}

// make sure the file name does not contain spaces.
$filename = str_replace(' ', '_', $filename);
$filename = str_replace(' ', '_', $filename).'.csv';

if ( ! headers_sent() ) { // this is so our test don't barf on us
header('Content-Type: text/csv');
Expand Down
4 changes: 4 additions & 0 deletions webapp/plugins/foursquare/view/checkins.tpl
Expand Up @@ -9,6 +9,10 @@ img.place-icon2 {position: relative;width: 32px;height: 32px;top: -146px;left: 5
{if $all_checkins|@count >0}
<div class="section">
<h2>Your Checkins</h2>
<div class="header">
{if $logged_in_user and $display eq 'posts'}<a href="{$site_root_path}post/export.php?u={$instance->network_username|urlencode}&n={$instance->network}">Export</a>{/if}
</div>
{foreach from=$all_checkins item=post name=foo}
{include file="_post.checkin.tpl"}
{/foreach}
Expand Down

0 comments on commit 2f461ae

Please sign in to comment.