Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • Alex replied on the discussion topic Blog with attachments
    Thank you very much for your help. I have activated it, but it does currently not work. But i am looking forward to find the error. thank you view reply
  • Alex replied on the discussion topic Blog with attachments
    Hello RvR Please can you specify what you mean? I use the blog plugin, there is no oportunity to add a file while creating an article. I also use the hypeatttechment plugin, to add a file to an existing article. So please, what do... view reply
  • Alex added a new discussion topic Blog with attachments in the group Beginning Developers
    I use the blog tool and the hypeattechments tool in elgg. The problem is, that i want to create a blog entry and there i want an opportunity to insert a file. With the hypeatttechment tool i only can add a file after i created the...
    • Hello RvR

      Please can you specify what you mean? I use the blog plugin, there is no oportunity to add a file while creating an article. I also use the hypeatttechment plugin, to add a file to an existing article.

      So please, what do you mean with "Embed plugin" ?

      Thanks in advance

      • Go to Dashboard -> Plugins
      • You will see 'Embed' plugin
      • Activate it
      • Now when creating a blog post you'll see the menu 'Embed content' on the top of visual editor next to 'Edit HTML'
      • Using this you can upload and embed any file into your posts
    • Thank you very much for your help.

      I have activated it, but it does currently not work. But i am looking forward to find the error.

      thank you

  • Alex added a new discussion topic profile pictures in the group Beginning Developers
    Hello everybody My question is, how can i change the maximum upload size of a picture for my profile? I am not sure, but i think there is a border of 3 MB. If i want to upload a bigger picture, it does not work. Please can you help...
  • Alex replied on the discussion topic Save plugin settings
    Thanks for your answers. Now it works. The problem was, that I wrote the wrong paths in my elgg_register_action. Thanks for helping. view reply
  • Alex added a new discussion topic Save plugin settings in the group Beginning Developers
    I have written my own plugin. Now i want to save some plugin settings. The form with the settings is ready and does work. But now I want to write my own save action. In the standard save.php of elgg there is this code: .... // allow a...
    • 1. You can set your options on the plugin's settings page and call them in your views:

      mod/my_plugin/views/default/plugins/my_plugin/settings.php

      $entity = elgg_extract('entity', $vars);
      
      echo elgg_view_input('text', [
          'name' => 'params[my_option]',
          'label' => elgg_echo('my_option:name'),
          'value' => $entity->my_option,
      ]);

      some file:

      $plugin_option = elgg_get_plugin_setting('my_option', 'my_plugin');
      
      //Use echo if ...

      2. Or learn how to register action

    • I think it's not the location of the action but the name of the action that is important here. You need to register the action in the init function of start.php with the action name "my_plugin/settings/save", e.g.

      $base_dir = elgg_get_plugins_path() . 'my_plugin/actions';
      
      elgg_register_action("my_plugin/settings/save", $base_dir . "settings.php", 'admin');

      and then you can place the save action file where you want it (i.e. somewhere in the actions folder of your plugin) as long as the second parameter of elgg_register_action() gives the correct path to the action file.

    • Thanks for your answers. Now it works.

      The problem was, that I wrote the wrong paths in my elgg_register_action.

      Thanks for helping.

  • Alex replied on the discussion topic Blog with file attachment
    thanks for your answer. I'm sorry, I'm new on elgg,how can i do this with this plugin? view reply
  • Alex added a new discussion topic Blog with file attachment in the group Beginning Developers
    When i write a blog, i want the opportunity to attach a file to the blog. I created the form, but i can't see the attached file in the river. I did it like it was described in the developer guides "file System". I modified the form...