Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • TCB replied on the discussion topic input text field size
    Thanks.  Will give that a try. view reply
  • TCB added a new discussion topic input text field size in the group Beginning Developers
    Is there no easy way to change the size of an individual text field without overriding the input/text.php file in my plugin?  I'm using Elgg 2.3.14. echo elgg_view_field([         '#type' =>...
  • TCB replied on the discussion topic Restricting new profile field
    Sorry for not replying.. I had some family health distractions over the past couple of weeks.  So I tried using $user = elgg_get_logged_in_user_entity(); but still get the same behavior.. as in when I visit another user's profile page... view reply
  • TCB replied on the discussion topic Restricting new profile field
    Right.. that's what I did.. here is my function as it stands now.. It seem as though the $user is null? function my_custom_profile_fields_handler($hook, $type, $return_value, $params) {     // Types of fields: 'text',... view reply
  • TCB replied on the discussion topic Restricting new profile field
    So I added the code to my custom_profile_fields_handler function right before $return_value['authId'] = 'text'; It always ends up returning before reaching the authId field.  Seems as though if (!($user instanceof \ElggUser))... view reply
  • TCB replied on the discussion topic Restricting new profile field
    Thanks.. I will give that a try. view reply
  • TCB added a new discussion topic Restricting new profile field in the group Elgg Technical Support
    I'm using elgg 2.3.14 and need assistance hiding a new profile field from view.  In my plugin's start.php I have registered a custom profile fields handler in the init...
    • Ok.

      This must work:

      $user = elgg_get_logged_in_user_entity();

      instead of

      $user = $params['entity'];
    • Sorry for not replying.. I had some family health distractions over the past couple of weeks.  So I tried using

      $user = elgg_get_logged_in_user_entity();

      but still get the same behavior.. as in when I visit another user's profile page besides my own the authId value still appears. 

    • function my_custom_profile_fields_handler($hook, $type, $return_value, $params) {
          if (!elgg_is_logged_in()) {
              return;
          }
          $user1 = $params['entity'];
          $user2 = elgg_get_logged_in_user_entity();
          if (!($user1 instanceof \ElggUser)|| $user1->guid != $user2->guid) {
              system_message("either not ElggUser or don't have view access");
              return;
          }
          $return_value['authId'] = 'text';
          return $return_value;
      }
  • TCB replied on the discussion topic lightbox not displaying text.
    Thanks.. that allows me to see the text in the lightbox.  Appreciate the help.. now I need to figure out how to still get the form to submit. view reply