All site blogs

    • enRaiser

      How to check a member is active or not

      By enRaiser
      $timeout = 300; // timeout in 5min,  $last_action = $user->last_action;   if (time() - $last_action < $timeout) { //DO THE STUFF  }
      • enRaiser

        elgg_extend_form

        By enRaiser
        We know it very well that we can append our view to any existing view by calling a function elgg_extend_view. But what happens if the view is a form. it works, but looks ugly because the save button is above your content. so in case you want to...
        • enRaiser

          How to present objects as Gallery or table using elgg_list_entity

          By enRaiser
          elgg_list_entiy presents the object as a collection of <li> tag under <ul> tag. thus particularly modifying  style will impact the whole site. so generally developers tries to  bypass this functions and write its own code. but...
          • enRaiser

            Detect First time login

            By enRaiser
            This code can help to detect first time login of user. elgg_register_event_handler(‘login’,’user’,’check_first_login’); function check_first_login($login_event, $user_type, $user) { if($user &&...
            • enRaiser

              General

              By enRaiser
              How you can list two different subtype in one listing. Here is the solution . $options = array( ‘type’ => ‘object’, ‘subtype’ =>...
              • enRaiser

                troubleshooting elgg setup

                By enRaiser
                The major issues coming while elgg setup is , mode-rewrite test fails. We think your server is running the Apache web server. The rewrite test failed and the most likely cause is that AllowOverride is not set to All for Elgg’s...
              elgg
              knowledge
              paypal
              wordpress
              Node.JS
              php