Darth Vader

Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • Darth Vader replied on the discussion topic Getting validation email to work in Elgg 4.1 ?
    Well, I managed to get sendmail to work. I probably had messed up some comment line. But out of curiosity, I tried every SMTP setting I could and didn't get it to work. 'plain' and 'login'; ssl and not ssl; different ports... view reply
  • Darth Vader added a new discussion topic Getting validation email to work in Elgg 4.1 ? in the group Elgg Technical Support
    I've got problems with Elgg sending any emails. Previously I've simply used something like this: https://elgg.org/plugins/2420835 which works right away when I feed it the SMTP-info but with Elgg's php-config file, sending email...
    • When using SMTP you would have to uncomment and change

      //$CONFIG->emailer_transport = 'sendmail';

      to

      $CONFIG->emailer_transport = 'smtp';

      I think it won't use SMTP otherwise at all regardless what you have set in the $CONFIG->emailer_smtp_settings array. As for the values in the array are you using the very same you have used with the plugin before on the older Elgg version? Connection class might be 'plain' instead of 'login'. And you might also have to define 'ssl' and 'port' (twice?) depending what the smtp mail server requires. I never tried SMTP myself so I can't give any other first hand advice.

      As for sendmail it shouldn't be necessary to make any settings at all as long as sendmail it correctly set up on your server. If the test works as explained in the docs but no email notifications are sent on site I wonder if you use an email address as site email that's not matching your domain. In this case sendmail might block it (as anti-spam measure). There's also the question if the receiver of the email notification has enabled emails as allowed notification method in his notification settings. In case of verification emails the question is if the email goes out but gets blocked somewhere on the way to the receiver or ends in the spam folder of the receiver.

    • Well, I managed to get sendmail to work. I probably had messed up some comment line.

      But out of curiosity, I tried every SMTP setting I could and didn't get it to work. 'plain' and 'login'; ssl and not ssl; different ports etc.

      also tried different combinations of uncommenting/changing the $CONFIG->emailer_transport = 'smtp';
      and $CONFIG->emailer_sendmail_settings = '';

      Anyways, sendmail is working now. Thank you!

  • Darth Vader commented on the plugin Custom css [3.x]
    Is this compatible with Elgg 4.0+?
  • Is there a simple way to get a notification on the site activity when an user updates or edits a page or sub-page using the pages plugin? I'm using Elgg 2.2.3
    • You have the following options:

      1. In your custom plugin, register an event handler as on example below

      elgg_register_event_handler('update', '<entity type>', '<my_event_listener>');
      
      function my_event_listener($event, $object_type, $object) {
          // add code for notification on river
      }

      2. Unregister the "pages/edit" action and register your own, so you can include any changes you wish.

      But I should suggest the 1st solution

       

  • Darth Vader commented on the plugin Landr
    @Cim I'm using Landr 1.1 for Elgg 2.3 (donloaded from here) and then the version from github with Elgg 2.3, which gave the error "error: This plugin is invalid: This plugin's directory must be renamed to "landr" to match the...
  • Darth Vader commented on the plugin Embed Extended
    Can't get v. 2.0.1 to work in Elgg 2.3. I get Bad request: Sorry. The request is invalid or incomplete. and the system gives an error message: "You cannot access AJAX views directly".
  • Darth Vader replied on the discussion topic Bootstrapping Font Awesome in Elgg 2.X
    Thanks. But now I'm getting tons of fatal errors. "Redirect could not be issued due to headers already being sent. Halting execution for security." Never mind. I'll just use the default Elgg icons. view reply
  • Darth Vader added a new discussion topic Bootstrapping Font Awesome in Elgg 2.X in the group Elgg Technical Support
    I had Font Awesome linked to Elgg in views/default/page/default.php in Elgg 1.9 <?php /** * Elgg pageshell * The standard HTML page shell that everything else fits into * * @package Elgg * @subpackage Core * * @uses...
    • Where, in the new 2.3 code

      In start.php of your plugin :)

      elgg_register_plugin_hook_handler('head', 'page', 'my_setup_head');
      
      function my_setup_head($hook, $type, $return, $params) {
      
          $return['links'] = false;
          
          $return['links'][] = array(
              'rel' => 'stylesheet',
              'type' => 'text/css',
              'href' => '//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css',
          );
      
          return $return;
      }
    • Thanks. But now I'm getting tons of fatal errors. "Redirect could not be issued due to headers already being sent. Halting execution for security."

      Never mind. I'll just use the default Elgg icons.

    • You probably introduced some whitespace at the end of your start.php

      Get rid of the php closing tags