Drupal is up and running but how do I ...?

Access to specific menus based on user roles

Is there any way to have menus that are only accessible to specific user roles?

What I want to achieve is a custom block "or" menu system that is only accessible to specific user roles.

I want to add an "Internal Affairs" section to a company website. I want this "Internal Affairs" section to only be visible and accessible to employees of the company after they have logged in, otherwise it would invisible to everyone else. Access to this particular "Internal Affairs" section would only be granted to users assigned the "employee" user role.

I do not know of the best way to do this and need some help.

I found an a php snippet that allows one to create a custom block for certain user roles titled "Show block content only to certain roles" (http://drupal.org/node/27690), but I can't find a way to add menu items to this block. This block code is shown below.

<?php
global $user;
$output = '';
if ( (is_array($user->roles) ) && (in_array('board',$user->roles))) {
  $output .= 'foo';
}
return $output;
?>

Is this custom block method the only solution available? As far as I can see, I have to add menus to this block by adding menu code to the php snippet code itself. I don't even know how to add the menu code; I am not a php programmer. I do not want to constantly have to edit the block php code to add new menu items. There must be a simpler way.

Modify node vote so that only somebody who purchases a particular product can vote on that product

Greetings, everybody. And thanks for such a wonderful community.

So, is there a way to modify Node Vote so that only somebody who actually purchases a particular product/service (i.e., there is an actual transaction) can vote on it? Additionally, is it possible to modify Node Vote so that a person can both vote -- as well as leave comments associated with the vote?

I am new to php/drupal -- but have a willingness to learn.

Thank you so much in advance.

RewriteCond not working with clean urls?

I am still trying to get my file cache working.
I have these rewrite rules:

I have a file static/nodes/1570.html that I want to be served whenever someone calls mysite.com/node/1570
For this I have the following rewrite code (before the drupal specific stuff)

HDI select nodes by cross referencing different categories?

I have two taxonomy vocabularies: types (of article) and channels (sections). Each has a number of terms in them. I would like to 'cross-reference' these terms, and select only those nodes which fall into several different categories at once.

For example, all of type 'review' (taxonomy term 9) in channel 'film' (taxonomy term 4).

Can anyone advise the proper mySQL syntax to achieve this?:

[code]$sql = "SELECT n.nid FROM node n INNER JOIN term_node t ON n.nid = t.nid WHERE (t.tid = 4 AND ALSO t.tid = 9) DESC LIMIT 5";[/code]

Thanks!

James

Sell gym-like memberships with drupal, sorta

Here is my new challenge for the Drupal installation running on our site.

We want to sell memberships to our non-profit public access TV center in the Boston area. Everyone who uses our station or produces programming or used the equipment here must be a member. We are currently limited to registering and renewing our members in person because of two things:

1. We can't take credit cards in our facilities
2. We need signatures on policy agreements and stuff like that.

Online, however, I think we can work around both of those.

The solution I am looking for is some combination of an online store that sells the different types of memberships we offer combined with a form for taking the information we need in a secure way with many of the fields required for completion. In an ideal world, it would be nice if this submitted data would import nicely into a FileMaker database at regular intervals.

I have already looked at and installed the eCommerce module and that gets me one half, but it doesn't play nicely with the Forms or Formproc or Survey modules to complete the deal.

Does anyone have a great idea or some tips (or heck, even a solution in a box) that would make this become a reality? Any help would be greatly appreciated.

While you are at it, take a look at our website and see what Drupal is already doing well for us - video rss feeds, great forums, online store, etc. Thanks for everything so far.

show menu to certain users only

How do I create a menu that will only show for certain users. For instance when a user logs in then the menu appears but not before.

Pages

Subscribe with RSS Subscribe to RSS - Post installation