This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT elgg_metadata.id, elgg_metadata.owner_guid, elgg_metadata.access_id, name.*, value.*, entity_guid | |
FROM elgg_metadata, elgg_metastrings name, elgg_metastrings value | |
WHERE name_id = name.id | |
AND value_id = value.id | |
AND entity_guid = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* View an avatar | |
*/ | |
$user = elgg_get_page_owner_entity(); | |
// Get the size | |
$size = strtolower(get_input('size')); | |
if (!in_array($size, array('master', 'large', 'medium', 'small', 'tiny', 'topbar'))) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'engine/start.php'; | |
global $CONFIG; | |
var_dump($CONFIG->actions); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Serializes inputs in a table to json preserving rows and cols | |
* | |
* Example: | |
* Doesn't work for multiple tables right now! | |
* var json = $('#table').toTabularJSON(); | |
* | |
* If using inputs, think of each cell as an instance with limited scope. Use the same | |
* input names for consistency: | |
* <table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/www/mod/answers/views/default/answers/css.php b/www/mod/answers/views/default/answers/css.php | |
index ccda03b..c3092ca 100644 | |
--- a/www/mod/answers/views/default/answers/css.php | |
+++ b/www/mod/answers/views/default/answers/css.php | |
@@ -16,27 +16,19 @@ | |
margin: 0; | |
} | |
-.answer_rate span:after { | |
+.answer_rate .arrow { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rewrite action\/([A-Za-z0-9\_\-\/]+)$ engine/handlers/action_handler.php?action=$1 last; | |
rewrite pg\/([A-Za-z0-9\_\-]+)\/(.*)$ engine/handlers/page_handler.php?handler=$1&page=$2 last; | |
rewrite pg\/([A-Za-z0-9\_\-]+)$ engine/handlers/page_handler.php?handler=$1 last; | |
rewrite cache\/(.*)$ engine/handlers/cache_handler.php?request=$1 last; | |
rewrite services\/api\/([A-Za-z0-9\_\-]+)\/(.*)$ engine/handlers/service_handler.php?handler=$1&request=$2 last; | |
rewrite export\/([A-Za-z]+)\/([0-9]+)\/?$ engine/handlers/export_handler.php?view=$1&guid=$2 last; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Elgg file search | |
* | |
* @package ElggFile | |
*/ | |
// Load Elgg engine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Hook into the login, user event and increment the login count metadata. | |
* | |
* @param string $event | |
* @param string $type | |
* @param ElggUser $user | |
*/ | |
function login_count($event, $type, $user) { | |
$login_count = $user->login_count; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
elgg_register_event_handler('init', 'system', 'remove_item_init'); | |
function remove_item_init() { | |
elgg_register_plugin_hook_handler('register', 'menu:topbar', 'remove_friends'); | |
} | |
function remove_friends($hook, $type, $menu_items, $option) { | |
foreach($menu_items as $i => $item) { | |
if ($item->getName() == 'friends') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once(dirname(__FILE__) . "/engine/start.php"); | |
$content = <<<JS | |
<script type="text/javascript"> | |
// normalizes the url to the current <site_url>/activity | |
elgg.get('/activity', { | |
success: function(resultText, success, xhr) { | |
console.log(resultText); | |
} |
OlderNewer