RvR,
I don't think so. At arvixe this has worked in the past.
Also I am getting out to twitter fine and returning to elgg fine. And I am returning to the link specified on my twitter app setup. It's just that elgg is not finding the target of the link and therefore unable to apply the returned keys.
Thanks,
Hairy Larry
I tried everything in the threads listed to no avail. So I finally went to my twitter development account, deleted the app, and recreated it. Now everything works great. I can authenticate fine and my wire posts show up on twitter.
I guess the reason I tried this was because I tried everything else and it was the only thing I could think of. Now I don't know a lot about twitter but my guess is the new app is working under the new protocol and the old app wasn't. So when the code got updated it broke the old app. Fortunately it's quite easy to create the new app and I recommend that anyone having trouble with this feature try this.
Thanks for reporting back your solution and I'm glad it worked.
@hairylarry
My own solution for ALWAYS DELETING newest and online members
Index
<?php
/**
* Members index
*
*/
//$num_members = get_number_users();
$title = elgg_echo('members:label:popular');
$options = array('type' => 'user', 'full_view' => false, 'limit' =>200,);
switch ($vars['page']) {
default:
$options['relationship'] = 'friend';
$options['inverse_relationship'] = false;
$content = elgg_list_entities_from_relationship_count($options);
break;
//case 'online':
//$content = get_online_users();
// break;
// case 'newest':
// default:
// $content = elgg_list_entities($options);
//break;
}
$params = array(
'content' => $content,
'sidebar' => elgg_view('members/sidebar'),
'title' => $title,
'filter_override' => elgg_view('members/nav', array('selected' => 'popular')),
);
$body = elgg_view_layout('content', $params);
echo elgg_view_page($title, $body);
Navigation:
<?php
/**
* Members navigation
*/
$tabs = array(
//'newest' => array(
// 'title' => elgg_echo('members:label:newest'),
// 'url' => "members/newest",
// 'selected' => $vars['selected'] == 'newest',
//),
'popular' => array(
'title' => elgg_echo('members:label:popular'),
'url' => "members/popular",
'selected' => $vars['selected'] == 'popular',
),
// 'online' => array(
// 'title' => elgg_echo('members:label:online'),
// 'url' => "members/online",
// 'selected' => $vars['selected'] == 'online',
//),
);
echo elgg_view($tabs);
If you are on 1.8, the way of doing it is unregister the members_page_handler() function. Register your own page handler for members page. and copy the pages/index.php to your plugin's pages/index.php \. Change the switch as folllows
switch ($vars['page']) {
case 'popular':
default:
$options['relationship'] = 'friend';
$options['inverse_relationship'] = false;
$content = elgg_list_entities_from_relationship_count($options);
break;
case 'online':
$content = get_online_users();
break;
case 'newest':
$content = elgg_list_entities($options);
break;
}
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.