Dave Bauer

Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Activity

  • Dave Bauer added a new discussion topic Notifications by Object Type (Subtype) in the group Plugin Development
    Hi,   I need a way to add send notifications based on the type of object regardless of the user who created it. Is there a plugin or a way to do this with a plugin hook?
  • Dave Bauer commented on the plugin Webinar
    Is there any way you can explain how this plugin is supposed to work for the end-user?   I can not see anywhere that the links to start a webinar are implemented anywhere in the code by grepping for 'start'. for example. Any sort of...
  • Dave Bauer replied on the discussion topic views/default/css/elements/buttons.php
    Aha.   I figured this out. The theme was overriding the view, then returning true at the top so the button css never loaded. Working it out with the theme.   view reply
  • Dave Bauer replied on the discussion topic views/default/css/elements/buttons.php
    Thanks. The question is how do I make sure the buttons.php css is loaded in the browser so when I use elgg-button classes, the buttons are styled appropriately.   view reply
  • Dave Bauer added a new discussion topic views/default/css/elements/buttons.php in the group Plugin Development
    Hi,   I am working on upgrading a site to Elgg 1.8.4.   I see that there is very useful reusable button css in views/default/css/elements/buttons.php.   So in my custom plugins I want to use  <a href="#"...
    • Thanks.

      The question is how do I make sure the buttons.php css is loaded in the browser so when I use elgg-button classes, the buttons are styled appropriately.

       

    • Aha.

       

      I figured this out. The theme was overriding the view, then returning true at the top so the button css never loaded. Working it out with the theme.

       

    • @ Dave Bauer , Do not change plugins css or core files... when upgrading, you will run into nightmares! What You need to do is write your own plugin and in your own plugin start.php file, extend the code below

      elgg_extend_view('css/elgg', 'anyname/elements/buttons');  // this is css to modify buttons buttons

      your buttons.php css file ubove will have something like

      <?php
      /**
       * CSS buttons
       * @subpackage UI
       */
      ?>
      /* <style>
      /* **************************
          BUTTONS
      ************************** */

      .my-button + .my-button {
          margin-left: 4px;
      }


      /* Base */
      .my-button {
          color: #333;
          font-weight: bold;
          text-decoration: none;
          width: auto;
          margin: 0;
          font-size: 11px;
          line-height: 16px;
         
          padding: 2px 6px;
          cursor: pointer;
          outline: none;
          text-align: center;
          white-space: nowrap;

          -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.10), inset 0 1px 0 #fff;
          -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.10), inset 0 1px 0 #fff;
          box-shadow: 0 1px 0 rgba(0, 0, 0, 0.10), inset 0 1px 0 #fff;

          border: 1px solid #999;
          border-bottom-color: #888;

          background: #eee;
          background: -webkit-gradient(linear, 0 0, 0 100%, from(#f5f6f6), to(#e4e4e3));
          background: -moz-linear-gradient(#f5f6f6, #e4e4e3);
          background: -o-linear-gradient(#f5f6f6, #e4e4e3);
          background: linear-gradient(#f5f6f6, #e4e4e3);
      }

      .my-button-delete {
          background: #444;
          border: 1px solid #333;
          color: #eee !important;
          -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.10), inset 0 1px 0 #999;
          -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.10), inset 0 1px 0 #999;
          box-shadow: 0 1px 0 rgba(0, 0, 0, 0.10), inset 0 1px 0 #999;
      }

       

      Then on the same start.php file change the "link_class" to your own class that you want to modify,

      elgg_register_menu_item('title', array(

                          'name' => 'remove_me_from_here', // the name of your menu item

                          'text' => elgg_view_icon('users') . elgg_echo('delete:menow'),

                          'href' => "/action/delete/remove?me=$owner->guid",

                          'is_action' => TRUE,
                         
                          'link_class' => 'my-button my-button-delete', // my button class controlled by your css

                          'contexts' => array('profile'), // the page where the css will be loaded
                         
                          'priority' => 1, // this will give your plugin first priority then followed by other buttons

                      ));

      And this will work once your flash your catches....

      Hope it helps some one having the same problem...

  • Dave Bauer commented on the plugin NoELab Media Embedly
    Here is the documentation from embed.ly on WHY you need a key and how to fix it.    http://blog.embed.ly/transition    
  • Dave Bauer commented on the plugin PHPMailer
    Can you explain the "nonstandard-mta" setting? If you use SMTP it only uses \n endings for the headers but for php mail() delivery it uses \r\n line endings.   This causes issues with Cisco Ironport security devices which confuse the \r\n for...
  • Dave Bauer commented on the plugin elgg-ajaxim
    The authenticate/elgg/index.js tries to perform an action but it is not signed. This can't possibly work in elgg 1.7.x.   I am checking out if i can modify this to work on 1.7.