hairylarry

About me: musician and developer
Email: hairylarry@deltaboogie.com

Send private message

You must be logged in to send a private message.

Group membership

Activity

  • hairylarry uploaded a new plugin: AddThis-profile
  • hairylarry replied on the discussion topic twitter_api not authorizing
    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... view reply
  • hairylarry replied on the discussion topic twitter_api not authorizing
    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... view reply
  • hairylarry replied on the discussion topic twitter_api not authorizing
    RvR, I read through the other thread and tried the suggestions but I am still getting the "Sorry. We could not find the page you requested" error. I tried it with www. and without. I checked the code and it looks like 1.8.11 has incorporated all... view reply
  • hairylarry added a new discussion topic twitter_api not authorizing in the group Feedback and Planning
    Hi, I activated oauth and twitter_api on a new softaculous install of elgg 1.8.11 hosted at arvixe. I entered my twitter keys and I get directed to twitter when I try to authorize from tools. But I get returned...
    • 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 added a new discussion topic How to Change default Members view to Popular in the group Feedback and Planning
    Hi, I don't really think this is the right way to do this. What is really needed is a plugin that adds tabs like Alpha and Most Active and allows you to order the tabs and choose the default view. But all I wanted was for Popular to be the default...
    • @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;
      }