is there a code or plugin that enables me to automatically set all contents, users, files, etc's access levels to public? doing this by hand is a very monotony task
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.
You can set it in the Site settings, just set the default access to public :)
Thanks...
oops i'm sorry i meant, contents that were generated already before i set the site's access level to public. i want to make the sites already created to public
entity=max
⅀ ( entity->access_id ) = 2;
entity=min
entity->save();
;
dhrup, thank you for your input but idk where or how to begin with that piece of code lol. can you please elaborate? or which file i should edit
lolz that was supposed 2 b funny pulling yr leg ;)
process will be messy !
look into yr db thru phpmyadmin and you'll see cols such as
* access_id (for entities)
metadata, etc
-- to do what u want might mean writing code to go thru each table and setting that field access_id to 2 (public)
a simple sql for each table might do ;)
update.. set access_id = "2"
or something like that..
oh ok, sounds good haha. someone should really write a plugin for this... *cough* dhrup *cough*
yew got a cold coming up ?
the sql should really be not too much trouble ;-P
Try this -->
goto PhpMyAdmin
table _metadata
read the access_id to see that not all are == "2"
then
hit sql ->
" UPDATE elggjed173metadata
SET `access_id`=2 ; "
and *all access_id will be changed to "2" ;-)
( this code has just been tested and works for real here on my xampp )
( as in - i doan mess about with code ;- )
When happy.. can do the same for all tables that have that field access_id ;)
easy as cherry pie amigo ;-P
btw - doing this in raw sql is really easier and quicker than any funky "plugin" code
shouldn't it be like this?
UPDATE * SET `access_id`=2
shouldn't you read the part that says ->
this code has just been tested and works for real here on my xampp
???
- Previous
- 1
- 2
- 3
- Next
You must log in to post replies.