elgg public pages are not availabe

I’m struggling with public pages actually being publicly available on elgg, I’m using the elgg allpublic plugin and I still get asked to log in to view pages.

Files and Photos etc. work fine, just seems to be a pages issue. I will update this thread if I find a fix.
I have recently discovered the fix for this, all of my pages were access_id 2 so that was fine. The problem was…
With the rate plugin which required a user to be logged in to rate a page.. Disabled the plugin. This is now fixed.. Huraa

Elgg – All entities must be public – Remove friends and everyone else as options during inupt

Wow possibly the worst topic ever for one of my posts 😛

This is relevant if
a) You use Elgg
b) You want all users to only be able to post as public
c) You have the allpublic elgg plugin
If not you won’t be interested..
Basically, the array that holds the values takes 0,1,2 then you drop out 0,1 (this is default behavior in the allpublic plugin).
For some weird reason this leaves behind “Friends” as an option, this is not desirable behavior and the fix is to remove -2 ( I know wth were they thinking) from the array. Use this line of code in the allplugin access.php:
Put that with the rest of the unset’s in the plugin.
Full file path will be mod/allpublic/views/default/input
As another note, if -2 isn’t right for you just echo out the $key value from the array like..
{$option . $key} then you will get the name of the option and the key/id.