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

Import all site users into a particular group

How would I go about making all existing site users members of a particular group. Anybody have a code snippet?

(4.7.2)

John
www.drupal.com.au

How to creat menu driven static page

Hi All,

I want to create a menu driven web page/story using drupal.

What I mean is that I want to have menus on the left panel and the content/page changes with the selection of the menu.

I have been trying in different ways, but not getting this. The web link I created is www.micro-array.org/dru

tinymce & full HTML - special characters getting stripped

I'm having problems with the trademark character and I need to use it! Full HTML converts it to a question mark. In the javscript for the tinymce, I set the entities to false, changed them to numeric, still nothing. Anyone find a way around this?

How to? Context sensitive menu: anonymous users or logged in users

Hi,

I've run into a snag I can't figure out:

Running Drupal 4.7, I want a header menu with four links for anonymous users: login, register, tour and help. For logged in users the menu should only show log out and help. The menu is built using a list.

I tried the PHP snipped "Display different page content to anonymous and authenticated users": http://drupal.org/node/23449 hardcoded into the pages.tpl.php template and that only resulted in a completely blank page. It might be that the PHP snippet and list tags doesn't play nice together, but I need to use lists inside the snippet since it otherwise has no function.

I also tried to put the list with the PHP in a header block and enabled it.

<div id="toplinks">
<?php 
global $user; 
if ($user->uid) { 
    return " <ul>
    <li><a href="#">logout</li>
          <li><a href="#">help</a></li>
          </ul>"; 
} 
if (!$user->uid) { 
    return "
 <ul>
    <li><a href="#">login</li>
      <li><a href="#">tour</a></li>
        <li><a href="#">register</a></li>
          <li><a href="#">help</a></li>
          </ul>
    "; 
} 
?> 
</div>

But nothing happend. (And the block WAS enabled). I'm running a mod off the Friends Electric theme.

I also looked (but didn't try) the Custom login, http://drupal.org/node/17272, but even if that solves the log in / logout part, it doesn't solve the states of the other links.

Menu OTF problem?

Does anyone know why this is happening?

Fatal error: Call to undefined function: user_access() in /home/www/chrityru/modules/menu_otf/menu_otf.module on line 25

Would it do to disable menu_otf? can i do it through ftp?

Thanks in advance.

Placing class=active in the LI tag, not the A tag in menu's

Hi,

I'm currently trying to theme Drupal, and am implementing a main site nav as a menu. The site nav uses CSS tabs that require the LI of an active tab to hold the 'class="active"' portion of code rather than the A tag as is usual with Drupal.

Is there anyway to achieve this? I've search drupal.org and there doesn't seem to be any fixes or mods that will do quite what I want. I've also ducked around the source code, but I can't find where the relevant piece of code despite doing a search on the drupal folder.

Any help would be overwhelmingly appreciated :-)

Pages

Subscribe with RSS Subscribe to RSS - Post installation