Permalink
Browse files

Removed Deprecation Warnings

  • Loading branch information...
1 parent 37ff94f commit 16439a1e714df9f3d71ec32d5323645a432dbfb6 @anirupdutta committed Mar 23, 2012
View
@@ -1,2 +1,8 @@
/nbproject/private/
-/twitter_api/nbproject/private/
+/twitter_api/nbproject/private/
+/BinarySearch/nbproject/private/
+/BinarySearch/build/Debug/
+/BinarySearch/dist/Debug/
+/Hashing/nbproject/private/
+/Hashing/build/Debug/
+/Hashing/dist/Debug/
View
2 README
@@ -7,6 +7,6 @@ Most of the other options on the settings page are self explanatory.
The api endpoints exposed are for checkins,todos and venuehistory
-Demo at http://sync.heybuddy.in/
+Demo at http://foursquare.heybuddy.in/
Remember this works only for elgg 1.8.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -71,11 +71,19 @@ function foursquare_api_login($token) {
'access_key' => $details->response->user->id,
'access_secret' => $token->access_token,
),
- 'plugin_user_setting_name_value_pairs_operator' => 'OR',
+ plugin_user_setting_name_value_pairs_operator => 'OR',
'limit' => 0
);
$users = elgg_get_entities_from_plugin_user_settings($options);
+ //echo count($users);
+
+ /*$values = array(
+ 'plugin:settings:foursquare_api:access_key' => $details->response->user->id,
+ );*/
+
+ //$users = get_entities_from_private_setting_multi($values, 'user', '', 0, '', 0);
+
if ($users) {
if (count($users) == 1 && login($users[0])) {
@@ -1,114 +1,12 @@
<?php
-$images_dir = elgg_get_site_url() . 'mod/widgets-demo/images/';
+/**
+ * Elgg Google+ API CSS
+ */
?>
-.elgg-page-header h1 {
- width: 400px;
-}
-
-#demo-menu {
- position: absolute;
- left: 400px;
- top: 40px;
- z-index: 1000;
-}
-
-#demo-menu li {
- float: left;
- list-style: none;
- margin-right: 15px;
-}
-
-#demo-menu li a {
- color: white;
- font-size: 140%;
-}
-
-.elgg-sidebar .elgg-widgets-add-panel li {
- width: 150px;
-}
-
-#elgg-widget-col-0 {
- width: 100%;
-}
-
-#custom-settings-button {
- border-bottom: 1px solid #dedede;
-}
-
-#custom-settings-button span {
- border: 1px solid #dedede;
- border-bottom: none;
- padding: 5px;
- padding-bottom: 0;
- cursor: pointer;
-}
-
-#custom-settings-button span:hover {
- background-color: #dddddd;
-}
-
-#custom-settings {
- border: 1px solid #dedede;
- padding: 10px;
- display: none;
-}
-
-#custom-settings li {
- width: 200px;
- list-style: none;
- float: left;
- margin: 2px 10px 2px 0;
- background: #fafafa;
-}
-
-#custom-settings label {
- line-height: 20px;
-}
-
-#custom-settings p {
- clear: both;
- padding-top: 20px;
-}
-
-#custom-settings .elgg-submit-button {
- margin: 10px auto;
- display: block;
-}
-
-/*****************************************
-Clock http://css-tricks.com/css3-clock/
-******************************************/
-#clock {
- position: relative;
- width: 200px;
- height: 200px;
- margin: 20px auto 0 auto;
- background: url(<?php echo $images_dir; ?>clockface.jpg);
- list-style: none;
- margin: 0 auto;
- padding: 0;
-}
-
-#sec, #min, #hour {
- position: absolute;
- width: 10px;
- height: 200px;
- top: 0px;
- left: 90px;
-}
-
-#sec {
- background: url(<?php echo $images_dir; ?>sechand.png);
- z-index: 3;
-}
-
-#min {
- background: url(<?php echo $images_dir; ?>minhand.png);
- z-index: 2;
-}
-
-#hour {
- background: url(<?php echo $images_dir; ?>hourhand.png);
- z-index: 1;
+#foursquare_api_site_settings .text_input {
+ width: 350px;
}
+#login_with_foursquare {
+ padding: 10px 0 0 0;
+}
@@ -4,9 +4,9 @@
*/
$user_id = elgg_get_logged_in_user_guid();
-$foursquare_name = get_plugin_usersetting('foursquare_name', $user_id, 'foursquare_api');
-$foursquare_id = get_plugin_usersetting('access_key', $user_id, 'foursquare_api');
-$access_secret = get_plugin_usersetting('access_secret', $user_id, 'foursquare_api');
+$foursquare_name = elgg_get_plugin_user_setting('foursquare_name', $user_id, 'foursquare_api');
+$foursquare_id = elgg_get_plugin_user_setting('access_key', $user_id, 'foursquare_api');
+$access_secret = elgg_get_plugin_user_setting('access_secret', $user_id, 'foursquare_api');
$site_name = elgg_get_site_entity()->name;
echo '<div>' . elgg_echo('foursquare_api:usersettings:description', array($site_name)) . '</div>';

0 comments on commit 16439a1

Please sign in to comment.