profile-based groups

Hi all,

One of our Drupal sites is growing, and there is a desire to create several regional admins who only have access to their own user base. I thought a relatively simple solution would take two steps:

1) Add another visibility option to profile fields, "Site admin only". Only user 1 and modules can see/edit these values.
2) Create a field of that type in the profile. Only allow admins to see users who have the same value as them in that field.

Why I want to kill the contemplate module

I am in the process of moving my flexinode data to CCk and upgrading my site to 5.0. I have quite a few custom node.tpl files that need to get imported into CCK templates. I'm using contemplate and everything works rather nicely except one crucial problem. The book navigation links and "add another location" links (for location module) just don't show for my customized CCK node. The rest of the template works great, but I can't get these important navigational elements to display with my custom template. I am about to go crazy. I went through this same problem with flexinode and my node.tpl files. The fix that I found for flexinode will not work with my contemplates! Can
someone help? Shouldn't contemplate simply incorporate, by default, the expected node related links for a drupal node?

Here is the solution that I found for my flexinode templates:
http://drupal.org/node/25567#comment-45897

I can get everything to show by simply using

<?php print $body ?> 

Here is a copy of contemplate content thus far.

About

foreach ((array)$field_header_image as $item) {
print $item['view']

keelingdesign.com

Drupal 4.7.x

Please visit the personal website of a communication designer in Germany. Features an image gallery, a blog, and a portfolio section.

www.keelingdesign.com

Problems using the Views API - anyone willing to assist...at a small cost ???

Hi,

I've been trying to program my custom module, AssignCourse (using the Views API) so that I could use Views to create certain views on the data. Basically, this is documented at this post,

http://drupal.org/node/161076

I've used the feedback from this post...but haven't made much progress. My code changes dok not work...

Move comments from Category nodes

I originally had my static content in menus via the category module. I am now moving this same static content to the book module. I need to move the comments from category nodes to book nodes. How can I do this Will the comment mover module be helpful while doing this?

Thanx

Redirect user to desired node after login?

Scenario: A user chooses to view a node without being logged in. I want my website to redirect the user to a login page, and then after logging in, return to the requested node. If the user enters the wrong login info at first, I still want them to be able to view the requested node after they provide the correct info.

I have both a login block on the very first page of the site, and a separate login page (a node) which is viewable to users who have not logged in.

I am very new to Drupal, but have implemented this functionality before without Drupal (using just php). There's a few things that I'm trying to get under my control.

1) Being able to designate a page to redirect to when the user tries to view a node and is not logged in. For instance, I would like the user to go to /login_page&destination=/user/node/### provided I have my separate login_page (cck node type with input set as PHP) created. I have tried to implement this by editing page.tpl.php for my respective theme (by setting a condition for if (!$user->uid) and using the traditional header(Location: ...) PHP redirect method. This does not seem to work however, as any page I try to access (existing or not) while I am not logged in redirects me to what I am calling home. Any ideas how to override this incorrect redirection?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x