This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

denying access to specific modules

Hi,

I would like to deny access to anonymous user to certain modules ( book module for example). I tried the taxonomy module and simple access modules.

In simple access module I have to set the access settings in every page. But is there a simple way around this. ?

Karthik

Best way to personalize modules?

What's the best way to personalize a module? I'd say not personalize it at all. ;-) But given I have to adjust a module, let's say the book module.

If I use the OG module, I can't use other node access modules. However, I could either modify the access routine in OG.module or I could modify the book.module. Both options, however, have a drawback. As soon as I update the system, I have to update the book.module myself.

OG: Access methods

I need help of someone who knows the Organic Groups module (og.module). Though it does a lot of great things, it unfortunately renders all node access modules useless, at least this is what its descriptions says.

I need the following access methods. Probably I could emulate them by writing action scripts that create groups on themselves, add the users to it that are allowed to perform an action, set the permission rights and remove them again - if I combine it with the workflow module, it could be possible. However, I don't know the OG module good enough to decide how much work it would be. I'd like to know from an insider how doable the following access methods would be:

- Some users in a group only can "view" posts, others can edit all posts. This is important for certain types of announcement postings that need updating from a group of dedicated helpers without giving everyone in a group the possibility to mess with posts from anyone.

- A book page can be set on status "consider for inclusion" with the workflow module. Once it is set on this status, a group discussion via mailing list ensues. As long as the node is set on this status, the author should not be allowed to edit the node since it would invalidate the ongoing discussion if the content was to change without announcing it first and stopping the discussion.

- Using the "userpoints" module, users can do workshops (essentially read book pages). However, each book page costs userpoints that are substracted. Only users that engage in community activities can continue to read those workshops. How could I handle those access rights? Probably I could reate groups like "workshop_#1_unit_1" to "workshop_#1_unit_20" for every workshop and if a users wants to read unit 2, he has to join the next group (and on joinig userpoints are subtracted), but this seems very clumsy.

Temporarily blocking edit

How can I temporarily block editing of a certain node?

Where should I modify to change the layout of the login block? Currently looking into user.module

Hi,

I just started to use Drupal about a week ago and quite new with the API. I am trying to move the login block to the top part of a page. At the same time, i want to change the login block so the textfields are next to each other (like below so the login block looks like a bar) and the remaining items - 'register' and 'request password' below the textfields.

       +-------+                +-------+     +------+
user:  |       |    password:   |       |     | Login|
       +-------+                +-------+     +------+

I have manged to change the location of the block by modifiying an existing theme. I added this code below to whereever i wan the block to be displayed.

        $block = module_invoke('user', 'block', 'view', 4);    		
	print $block['content'];

So, right now i am stuck in changing the layout of the textfields so that they are next to each other. For now, I have editted user.module and added a new $delta value of 4 so the code above would work. But i am not sure what to do next. Is there a file where that i can edit to change the layout of textfields?

e-commerce custom product module

I am tying to set up e-commerce to sell PC's and laptops with options to customize them ie ram, hard drive, cpu etc. Looks like I can use the custom product module that is supposed to come with e-commerce/modules/contrib. I just can't seem to find it???
This (http://drupal.org/node/52743) article refers to it but it isn't in contrib folder.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions