Where does the elgg saves the plugin order in database?

Hello guys,

 

I'm new to elgg and looking at the "Tool Administration".

There are top, up, down, bottom button to reorder the plugins.

So where does elgg keep the settings of plugin order?

 

Thanks in advance. 

  • It is stored with metadata for "site". i.e 

     

    $plugins = serialize($plugins);
    $site->pluginorder = $plugins;

     

  • i want to add a drag and drop function so you're not going to keep clicking to the up or down button.

    i hope it's just like making a simple drag and drop with jquery and saves the position/order in database using ajax.

    so i'm looking for their orderId? or something that was used as their position number and saved in the database.

     

    Thanks for the reply guys.

  • There's already the plugin manager plugin that might be do what you want to implement, i.e. drag and drop of plugins in the list. Even if you still want to code your own plugin you might be able to find out how it works by looking at the code.

  • As iionly said, check the plugin written by Evan Winslow.

  • I'm not sure if I installed the plugin correctly or downloaded the right plugin but the Plugin Manager is not working. It disables all link upon enabling the Plugin Manager. The elgg site is a fresh install.

     

    @Invisible, i saw it's stored in  metadata, and the code is in plugins.php

    But how do i read this string value stored in metadata?

    a:32:{
    	  i:10;s:4:"blog";
    	  i:20;s:9:"bookmarks";
    	  i:30;s:7:"captcha";
    	  i:40;s:10:"categories";
    	  i:50;s:11:"crontrigger";
    	  i:60;s:12:"custom_index";
    	  i:70;s:14:"defaultwidgets";
    	  i:80;s:11:"diagnostics";
    	  i:90;s:5:"embed";
    	  i:100;s:13:"externalpages";
    	  i:110;s:4:"file";
    	  i:120;s:7:"friends";
    	  i:130;s:16:"garbagecollector";
    	  i:140;s:6:"groups";
    	  i:150;s:8:"htmlawed";
    	  i:160;s:13:"invitefriends";
    	  i:170;s:10:"logbrowser";
    	  i:180;s:9:"logrotate";
    	  i:190;s:7:"members";
    	  i:200;s:12:"messageboard";
    	  i:210;s:8:"messages";
    	  i:220;s:13:"notifications";
    	  i:230;s:5:"pages";
    	  i:240;s:7:"profile";
    	  i:250;s:15:"reportedcontent";
    	  i:260;s:14:"riverdashboard";
    	  i:270;s:7:"thewire";
    	  i:280;s:7:"tinymce";
    	  i:290;s:6:"zaudio";
    	  i:300;s:7:"twitter";
    	  i:310;s:14:"twitterservice";
    	  i:320;s:21:"uservalidationbyemail";
    	 }
  • correction, it is saved in "metasstrings"