All Public Plugin

By request, I have written another access plugin. This one eliminates the “private” and “logged in users” options leaving only “public.”

That’s all it does. Not much else to say but download here.

Related Posts

Tags: , , ,

  1. shnelson’s avatar

    Hey Steve,

    I’ve been following a lot of your work since I came across elgg, you truly are a pioneer!

    I’m assuming the option to limit the Membership Private/Public is done in somewhat of the same manner, i’m afraid I don’t speak PHP well enough to figure out how though. Any tips on that one?

    Reply

  2. Steve’s avatar

    Interesting question. I could see circumstances in education where one would not want to allow private groups.

    I don’t really speak php well either, but I can usually figure out a hack. Yes I believe it would be done similarly through the views override system.

    Getting ready for some conference presentations now, so I don’t have time right now, but I’ll see if I can put a plugin together.

    Reply

  3. Dahaniel’s avatar

    Hi there,
    I found your plugin and it really helped me. As you I am not too good in readin php but somehow pick things together and modify them as I need.

    I yoused your plugin and some hints I found in the mailinglist to do what shnelson want (disabling the “logged in” option) and additionally set the default selected choice to public.

    As I am using the invitations plugin with the walledgarden option I do not need to differentiate between “public” and “logged in” but rather use only public to see an activity stream on my modified frontpage.

    It is not a plugin for its own yet, I just modified yours but I could post it somewhere if someone needs it.

    Reply

  4. Steve’s avatar

    Sure it’s a plugin. You modified it and it changes the function. Name it and pack it up with a manifest!

    You could upload it to Google groups or the Elgg Community. There will be more options soon.

    I am not a php coder myself, but I have some references around. I don’t mind editing a bit of code, or coping and pasting snippets

    Steve

    Reply

  5. ?????? ???????’s avatar

    Hi!
    after installing the “allpublic” it seems to work great, but one problem
    i’m using elgg 1.2 and this is the problem, if you click the “Access:” button, even though there is nothing but public, it will suddently freeze and get stuck and close the browser…

    any idea?
    thanks!
    Eitan
    Israel.

    Reply

  6. messianic jews’s avatar

    ineed i’m using the 1.2 allpublic version but problem still exist, tryed to reinstall but its not helping…

    Reply

  7. Steve’s avatar

    I’ll give it another look later today. It is very possible that it conflicts with another plugin though.

    Reply

  8. Steve’s avatar

    I have tested this on my server, and it works fine.

    The code that is changed from the core is the following:

    if (isset($vars['class'])) $class = $vars['class'];
    if (!$class) $class = “input-access”;

    if ((!isset($vars['options'])) || (!is_array($vars['options'])))
    {
    $vars['options'] = array();
    $vars['options'] = get_write_access_array();
    unset($vars['options'][1]);
    unset($vars['options'][0]);

    }

    if (is_array($vars['options']) && sizeof($vars['options']) > 0) {

    The text in bold was added to the core access.php file in this override. I would give this a try on a clean install of Elgg without other plugins activated. You could activate the plugins one by one testing each time. You might also change the order in which the plugins load.

    You could also try it on the most recent checkout at the Elgg svn repository.

    I suppose it might be browser related, although I have not heard anyone else mention this. I have tried it with Mac Safari and Mac Firefox. I can test it with Linux when I get home. I don’t have a windows box, but I’ll see if I can get on one to try it out.

    Beyond that it is tough to work these things out remotely as each server is configured differently with a complex system of variables.

    Reply

  9. messianics’s avatar

    well i guess the problem have to be with me then…
    b.t.w do you have a clue if there is a plugin that is abling you to tag your friends on photos just like in facebook?
    thanks!

    Reply

    1. Steve’s avatar

      Tested on IE7 and Windows FF and it worked fine.

      There was a gallery plugin that allowed tagging. I think it was Artfolio. I don’t recall if tidypics does that or not.

      Reply

  10. Dan Knauss’s avatar

    Theoretically, wouldn’t it be better to write a custom ACL and just replace the default one? Or a plugin that gives admins control over default permissions for every possible kind of content or group?

    Question about this plugin: does it apply to everything? Groups, photos, pages, forum posts, comments, message board posts?

    I can see I am probably going to need to figure out how to make most things public by default, but not everything.

    Do admins have the ability to change permissions on other users’ content?

    Reply

    1. Steve’s avatar

      Maybe, but this is what I am able to do and it works for me. I wrote nopublic for school use and somebody asked me if I could make an all public variant and I did. I certainly don’t have the skill set to rewrite the core access. God knows, I tried. Somebody pointed to the views and I found a way to do what I needed to do.

      It apples to created content that has an access toggle: blog posts, bookmarks, pages, etc.

      It has no impact on group settings.

      No, admins do not have the ability to change permissions. I would like that that though.

      I’d certainly welcome a ACL rewrite.

      Reply

  11. Dan Knauss’s avatar

    Thanks Steve.

    It seems Elgg does not do IP logging and does not even have a way to ban or moderate users or their activity. That’s rough.

    Reply

    1. Steve’s avatar

      No, it doesn’t. These are tools that are pretty standard. I’ve had them for years on discussion forums, blogs, etc.

      Elgg will probably be fine for my simple uses: a very closed environment for a school setting. But in terms of a tool for a real social network in the real world. I think it still needs a lot.

      Reply

  12. John McLear’s avatar

    Hey steve, I’m using your plugin quite successfully after applying some tweeks to enforce public only. However (and this may not be relevant to allplugin) when I’m setting a page to public its not actually available until a user has logged in. Any idea on that?

    Reply

Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>