Skip to content

Commit

Permalink
Eventbrite will now pick up more events (added "startups" keyword and…
Browse files Browse the repository at this point in the history
… expanded date range)
  • Loading branch information
Alex authored and Alex committed Sep 6, 2013
1 parent 93b108f commit fc7b9dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion represent-map/events_get.php
Expand Up @@ -16,7 +16,7 @@
function getEventbriteEvents($eb_keywords, $eb_city, $eb_proximity) {
global $eb_app_key;

$xml_url = "https://www.eventbrite.com/xml/event_search?...&within=50&within_unit=M&keywords=".$eb_keywords."&city=".$eb_city."&date=This+month&app_key=".$eb_app_key;
$xml_url = "https://www.eventbrite.com/xml/event_search?...&within=50&within_unit=M&keywords=".$eb_keywords."&city=".$eb_city."&date=Future&app_key=".$eb_app_key;
echo $xml_url."<br />";
$xml = simplexml_load_file($xml_url);
$count = 0;
Expand Down
4 changes: 2 additions & 2 deletions represent-map/include/db_example.php
Expand Up @@ -73,11 +73,11 @@
// search eventbrite for these keywords
// add %20OR%20 between keywords for an "OR" search
// example: startup%20OR%20demo+day
$eb_keywords = "startup";
$eb_keywords = "startup%20OR%20startups";

// specify city to search in and around
// example: Santa+Monica
$eb_city = "";
$eb_city = "Santa+Monica";

// specify search radius (in miles)
$eb_within_radius = 50;
Expand Down
2 changes: 1 addition & 1 deletion represent-map/index.php
Expand Up @@ -194,7 +194,7 @@ function initialize() {
}
if($show_events == true) {
$place[type] = "event";
$events = mysql_query("SELECT * FROM events WHERE start_date > ".time()." AND start_date < ".(time()+4838400)." ORDER BY id DESC");
$events = mysql_query("SELECT * FROM events WHERE start_date > ".time()." AND start_date < ".(time()+9676800)." ORDER BY id DESC");
$events_total = mysql_num_rows($events);
while($event = mysql_fetch_assoc($events)) {
$event[title] = htmlspecialchars_decode(addslashes(htmlspecialchars($event[title])));
Expand Down

0 comments on commit fc7b9dd

Please sign in to comment.