Avatar of admin

by admin

Featured

Development

March 7, 2013 in Development

PlaceInfo Page with place details, map: more info button
Gen single place XML
Share place button, taking to this page
Local weather?
Nearby places; Open nearby places centered on place
POST id to map page?
Links on infoWindow, top place widget, activity
Photo gallery: with jQuery? slide to view more
Favourite button

Only show ‘you are here’ and icon when using geolocation??

Save lat lng zoom level to cookies on new center?? Multi value cookie ??

Custom infoWindow

Store last viewed location; save coordinates to a cookie, onload check if cookie exists else… (local storage too?)

MyLocation button;
if no geolocation use user profile location (new field)
use map.setCenter()??

New user profile field ‘Locaton’ use to center map if no geolocation or cookie (instead of default lat/lng)
http://buddypress.org/support/topic/how-do-i-create-custom-profile-fields/
http://pippinsplugins.com/use-wp_localize_script-it-is-awesome/

date added to database for latest widgets

Validation:
Add/Update place: name, address in infowindow (client-side)
Script hardening on crud php files
Upload picture: file type etc

Widgets:
Top Rated Places: favourites
New Places
New Photos?

Database: relations: delete cascades
calculate favourites??

Search: search includes places
http://codex.wordpress.org/Custom_Queries

Search map for place

Zoom levels: myplaces.php

Filter markers on map

Pictures in infowindows clicked an made bigger: lightbox style Pictures on user places profile page

User remove pictures/places/favourites (if userid = displayed_user_id SHOW remove buttons)
Update/Remove Buttons on profile places page

Remove what’s new box: css

New place activity: bp_activity_add
New photo activity

New profile page with favourites

Ratings
Comments
Favourite Place: new table ‘favouriteplaces’, ‘id’ + ‘userid’
Descriptions; new table, add description button on place info, display if present
Tags; tag places, tag cloud

Mobile design: buddypress responsive, css
Design
activity
footer
Wp-login

Firefox: check for geolocation enabled

Support pages; adding, updating, deleting, uploading, removing, favourites, friends, share place

Directions:
http://gmaps-samples-v3.googlecode.com/svn/trunk/draggable-directions/draggable-directions.html

Group Icons:
http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclusterer/1.0/examples/advanced_example.html
http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.0.9/docs/examples.html

Geocoding: (for single place?)
http://gmaps-samples-v3.googlecode.com/svn/trunk/geocoder/v3-geocoder-tool.html
https://google-developers.appspot.com/maps/documentation/javascript/examples/geocoding-simple

Avatar of admin

by admin

406 error

April 9, 2013 in Development

Started to get a 406 error when trying to login. Not sure what was causing this. Searching wordpress support pages found a solution that was used to stop mod_security. Within the wp_admin folder addded a new .htaccess file with the following code:

SecFilterEngine Off
SecFilterScanPOST Off

This seems to have fixed the error

Avatar of admin

by admin

Google Maps Places Library

April 9, 2013 in Development

using google maps places library and autocomplete functions to suggest addresses in search field

https://developers.google.com/maps/documentation/javascript/places

Avatar of admin

by admin

PHP error reporting

April 9, 2013 in Development

Add to display all php errors

ini_set('display_errors',1);
error_reporting(E_ALL);

Avatar of admin

by admin

Remove activity

April 7, 2013 in Development

Remove new place and new photo activity when place or photos deleted

Avatar of admin

by admin

Delete images on cascade?

April 7, 2013 in Development

Images are not being deleted on cascade

Webhost, fatcow, does not support innodb, can’t use cascade?

http://stackoverflow.com/questions/9315025/unlink-to-delete-images-from-server-along-with-sql-delete

Delete photos when marker deleted

Avatar of admin

by admin

Lightbox and gmaps

April 7, 2013 in Development

Lightbox and new infobox doesn’t wok because Dom is not ready so function must be run by onclick event using slim box plugin

Avatar of admin

by admin

New widgets

April 7, 2013 in Development

Using php and SQL to create new dynamic widgets

Avatar of admin

by admin

Using json and jquery.form

April 7, 2013 in Development

Using jquery.form for uploading images

Json for deleting places

Avatar of admin

by admin

Save last viewed location/location profile field

March 30, 2013 in Development

Using a cookie to save the lat and lng of the last position searched on the map. When page is first loaded javascript checks is a cookie has previously been set. If cookie is found the values from the cookie are used as to center the map. If no cookie has been previously set then the getgeolocation function is called which tries to use geolocation to find the users location. If a user chooses not to share their location or their browser does not support this feature then the getprofilelocation function is called which uses the users location as set in profile and the geocoding service to get the coordinates. Users location is retrieved from database using php and then added to the javascript function.

Makes use of buddypress ability to add profile fields to user profiles. Creating a new field called location allows the user to set a default location which can be used if geolocation services are not available.

Cookie is also updated when user uses the go to location (geocoding) search box or click the gotomylocation button.

Could also see whether it is possible to save the last location the map zoomed into. Done using map.getCenter function. Save zoom to a cookie using the map.getZoom function. Using the gotomylocation button resets zoom to default (13).

http://www.w3schools.com/js/js_cookies.asp

Add to save cookie function to all other functions using location, add, update, delete etc

Avatar of admin

by admin

jQuery popout filter menu

March 29, 2013 in Design

Created pop-out menu for filter using css and jquery

http://tympanus.net/codrops/2009/11/30/beautiful-slide-out-navigation-a-css-and-jquery-tutorial/