I've been asked for creating a plugin which users let adds custom HTML code.
Well, this very simple plugin let users add custom (html)text to a widget (set in widget settings).
Please don't expect to much! I just spent a short time to create this :-)
Maybe useful for a profile widget in some cases
Tested on elgg 1.2 and 1.5 but only with simple html-tags.
Greetz,
HiTo81
View HiTo81's plugins
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
hi, ive tested that.
i am coping code from http://www.yourminis.com widgets and everything is working
do you have any websites for widgets which do not have powered by links?
So simple means, all that nasty HTML you could possibly write is secured and not parsed?
Anyways to get this widget to show up under groups?
i like this, cool widgets here you can use, http://www.myflashfetish.com
Hi Folks,
@elggboy sorry, no ideas at the moment
@iBotPeaches yes, simple means there are no operations for parsing or filtering code by the plugin. What you post is what you get and what you really get depends of security of the elgg engine. PHP code seemst to be ignored, which is fine.
@zanzoon maybe you are looking for something what panos wrote (http://www.yourminis.com)
so hito, if a user decides to use the <script> tag, this widget allows it to be parsed?
well, this following sample tag works:
<script type="text/javascript"> confirm("Do you want to have some fun?"); </script>
the values are stored in the table <prefix>privat_settings an how they appear on the site depends on the elgg machine. There is no intelligence by the plugin. Feel free to customize the plugin.
I used it to have a youtube like music player on my site, works sweet, no file uploading, pretty handy plugin
Wonderful :) I will check it tonight
This is great news!
Note: That this does interfere with the miniprofile v2 on the specific file start.php when both of these plugins use myhtml init. I simply changed the miniprofile's initiaite name to myhtmls and it seems to work now.
Just to clarify I think its my mod interfering with this one not the other way around, I'm learning still and did reference some code from this mod to get me started,I thought I had changed it, I will be posting new code to remove the problem later today, It was the MyHtml mod that gave me the real kick start on developing mods for elgg.
If you use this mod keep doing so, I will post new code for miniprofileV2 later.
@HiTo81 Thanks for the great mod btw
I've posted updated code to remove conflict now, if you are using both mods please update the code.
Hi trademark,
I am glad that I've gave you the kick to develope your plugin! Good work, keep it up!
Greetz,
HiTo
yo hito, i'm gonna modify this plugin and have an array of malicious tags to be removed. i'll be releasing it soon and give you the proper credit.
@Cim: sounds good! Thank you for keeping it up!