-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(customizations): Merge in community_customizations
There's no good reason for this plugin to live a separate life. It just adds overhead.
- Loading branch information
Showing
11 changed files
with
347 additions
and
74 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Features | ||
======== | ||
|
||
* Turns a message board widget into a send a private message widget. Spammers | ||
were leaving messages on their message boards and we would rather have | ||
public conversation occur in the forums | ||
* Forcing sizes on avatars since Twitter avatars do not fit our desired sizes | ||
* Delete private messages sent from deleted users | ||
* Add APC cache flush button to admin control panel widget | ||
* Filter out friending and new bookmarks from the river |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
/** | ||
* Flush the APC opcode cache | ||
*/ | ||
|
||
if (function_exists('apc_clear_cache')) { | ||
if (apc_clear_cache('opcode')) { | ||
system_message(elgg_echo('apc:flush:success')); | ||
forward(REFERER); | ||
} | ||
} | ||
|
||
register_error(elgg_echo('apc:flush:fail')); |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?php | ||
/** | ||
* List replies with optional add form | ||
* | ||
* @mod If not showing the form because they can't reply, show a message why. | ||
* | ||
* @uses $vars['entity'] ElggEntity | ||
* @uses $vars['show_add_form'] Display add form or not | ||
*/ | ||
|
||
$show_add_form = elgg_extract('show_add_form', $vars, true); | ||
$topic = elgg_extract('topic', $vars); | ||
|
||
echo '<div id="group-replies" class="mtl">'; | ||
|
||
$replies = elgg_list_entities(array( | ||
'type' => 'object', | ||
'subtype' => 'discussion_reply', | ||
'container_guid' => $topic->getGUID(), | ||
'reverse_order_by' => true, | ||
)); | ||
|
||
if ($replies) { | ||
echo '<h3>' . elgg_echo('group:replies') . '</h3>'; | ||
echo $replies; | ||
} | ||
|
||
if ($show_add_form) { | ||
$form_vars = array('class' => 'mtm'); | ||
echo elgg_view_form('discussion/reply/save', $form_vars, $vars); | ||
} elseif ($topic->status != 'closed') { | ||
$group = $topic->getContainerEntity(); | ||
|
||
// if not a member | ||
if (!elgg_is_logged_in()) { | ||
$log_in = elgg_view('output/url', array( | ||
'href' => '/login', | ||
'text' => 'log in' | ||
)); | ||
|
||
echo "<div class=\"elgg-box elgg-state-notice\">"; | ||
echo "You must $log_in to post replies."; | ||
echo "</div>"; | ||
} elseif (!$group->isMember()) { | ||
// @todo override action to redirect back to thread. | ||
$url = current_page_url(); | ||
$join_group = elgg_view('output/confirmlink', array( | ||
'href' => '/action/groups/join?group_guid=' . $group->getGUID(), | ||
'text' => 'join this group', | ||
'confirm' => 'Join this group?' | ||
)); | ||
echo "<div class=\"elgg-box elgg-state-notice\">"; | ||
echo "You must $join_group to post replies."; | ||
echo "</div>"; | ||
} | ||
} | ||
|
||
echo '</div>'; |
Oops, something went wrong.