MMXII Posted January 14, 2015 Share Posted January 14, 2015 I like the fact that we can place blocks wherever we want in the frontend. However, I wonder if permissions for these blocks do exist somewhere? Let's say, for example, I put the "Latest Topics" block in the sidebar, but I want it to be visible to logged in users only, how would I achieve that? Clicking on the Edit button doesn't do the trick. There I can only choose a number for the amount of latest topics, that should be displayed. Link to comment Share on other sites More sharing options...
NoGi Posted January 14, 2015 Share Posted January 14, 2015 How are you getting to the block editor? I can't find it anymore to add blocks Link to comment Share on other sites More sharing options...
Adriano Faria Posted January 14, 2015 Share Posted January 14, 2015 I like the fact that we can place blocks wherever we want in the frontend. However, I wonder if permissions for these blocks do exist somewhere? Let's say, for example, I put the "Latest Topics" block in the sidebar, but I want it to be visible to logged in users only, how would I achieve that? Clicking on the Edit button doesn't do the trick. There I can only choose a number for the amount of latest topics, that should be displayed. You have to edit the widget PHP file to add the select with user groups. I made it on widgets for my app. Link to comment Share on other sites More sharing options...
craigf136 Posted January 14, 2015 Share Posted January 14, 2015 Rather than an edit, should probably be default, slight oversight? Link to comment Share on other sites More sharing options...
Adriano Faria Posted January 14, 2015 Share Posted January 14, 2015 Rather than an edit, should probably be default, slight oversight?That's the only way, today. Or via hook; although I don't know if it's possible to extend a widget. Link to comment Share on other sites More sharing options...
MMXII Posted January 14, 2015 Author Share Posted January 14, 2015 You have to edit the widget PHP file to add the select with user groups. I made it on widgets for my app. Thanks for your reply! So there is no permissions option that I have missed. There should be one for stupid people like me. Rather than an edit, should probably be default, slight oversight? I totally agree. Setting up visibility for certain usergroups only should be possible without editing IPS4 or installing an addon or using hooks or whatever. Link to comment Share on other sites More sharing options...
Chris Bell Posted August 24, 2015 Share Posted August 24, 2015 You have to edit the widget PHP file to add the select with user groups.can you please post the code you added,im looking to add this to all the statistic widgets; these imo should only be visible to members, Link to comment Share on other sites More sharing options...
Adriano Faria Posted August 24, 2015 Share Posted August 24, 2015 im looking to add this to all the statistic widgets; these imo should only be visible to members,You mean exclude guests ? Link to comment Share on other sites More sharing options...
Chris Bell Posted August 24, 2015 Share Posted August 24, 2015 thats what im going for yes, Link to comment Share on other sites More sharing options...
Max Posted August 25, 2015 Share Posted August 25, 2015 Oh I like this. Would love to add the sidebar to all the pages for guests. Link to comment Share on other sites More sharing options...
Chris Bell Posted August 29, 2015 Share Posted August 29, 2015 bump... for help with block permission Link to comment Share on other sites More sharing options...
Kjell Iver Johansen Posted August 29, 2015 Share Posted August 29, 2015 bump... for help with block permission I might misunderstand the question - but can't you give permissions in ACP ? Link to comment Share on other sites More sharing options...
Chris Bell Posted August 29, 2015 Share Posted August 29, 2015 nop, im referring to the blocks in pages, not custom blocks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.