qropit: sharing at singapore php user group

21
QROPIT SOCIAL QR CODE READER Sharing At Singapore PHP User Group

Upload: uzyn

Post on 27-Jul-2015

383 views

Category:

Technology


0 download

TRANSCRIPT

1. QROPIT SOCIAL QR CODE READER 2. QROPIT SOCIAL QR CODE READER 3. QROPIT SOCIAL QR CODE READER 4. QROPIT SOCIAL QR CODE READER 5. QROPIT SOCIAL QR CODE READER 6. EditableAdaptiveClient-awareLocation-awareDemographics-awareBelike Time-awareGender-awarewater,myAnalyticsfriend.Ease of useBackward compatibleSocial QROPIT SOCIAL QR CODE READER 7. VideoImages slideshow Facebook page LocationMobile app HyperlinkCouponContact QROPIT SOCIAL QR CODE READER 8. QROPIT SOCIAL QR CODE READER 9. QROPIT SOCIAL QR CODE READER 10. QROPIT SOCIAL QR CODE READER 11. 3 methods (at the moment)i. QropIt ID aka username/passwordii. Facebookiii. Twitter2 actions:i. Sign upii. Association with the logged in accountQROPIT SOCIAL QR CODE READER 12. 1.A: Sign up with FB-1B: Sign up with Twitter-1A: Associate with Twitter-12a.A: Sign up with QI-1A: Associate with FB-1B: Sign up with QI-2B: Associate with FB-12b.x: Log in with FB-1Should the user end up with Account A or B? QROPIT SOCIAL QR CODE READER 13. 1.A: Sign up with FB-1Be likeB: Sign up with Twitter-1 Foursquare,myA: Associate with Twitter-1Error: Another user is linked to thisfriend.Twitter account.2a.A: Sign up with QI-1A: Associate with FB-1B: Sign up with QI-2B: Associate with FB-1Error: Another user is linked to thisFacebook account.2b.x: Log in with FB-1No problem!Should the user end up with Account A or B?QROPIT SOCIAL QR CODE READER 14. QROPIT SOCIAL QR CODE READER 15. The built-in method does not differentiate URLs, it merely updates session var (Config.language)Bad for search engines: they get confusedMake different URLs for each locale:- /en/controller- /controller/en- /controller?lang=enNot that easy now on CakePHP as it makes: - routes.php complicated - $html->link needs to be appending the appropriatelanguage tag - intercept CakePHP URL translation (forward and backward) QROPIT SOCIAL QR CODE READER 16. http://qropit.com/widgetQROPIT SOCIAL QR CODE READER 17. Avoid AJAX (very tempting, but resist it)Avoid document.write()Why?

Is fine, but can we do better?Inject widget-container into or Some tips from Alex Marandons blog http://alexmarandon.com/articles/web_widget_jquery/QROPIT SOCIAL QR CODE READER 18. Code isolationNoones going to name their variable Beezow-Doo-Doo-Zopittybop-Bop-Bop right?Always var your variablesUse anonymous functions to contain your functions.(function(){ MakeMeASandwich(); SudoMakeMeASandwich();})();Sure. jQuery is omnipowerful and omniconvenient, but very likely youre not the only one thinking so, try to reuse jQuery library if it is already loaded on a page.Some tips from Alex Marandons bloghttp://alexmarandon.com/articles/web_widget_jquery/ QROPIT SOCIAL QR CODE READER 19. QROPIT SOCIAL QR CODE READER 20. http://qropit.com/dev RESTful JSON/XML GET/POST agnosticQROPIT SOCIAL QR CODE READER 21. QROPIT SOCIAL QR CODE READER