Drupal 7.x

Drupal7 - Blocks - Visibility Settings per role - NOT working

In Drupal7, in the admin, if you go to Blocks, configure a selected block, and then Visibility Settings and then Roles, you should be able to restrict per Role. However, this doesn't work for me (at all). Any/all changes I make here take no effect.

Why? Anyone else experienced this? I would PAY money for this to work, as it seems like a great feature, but I can't get it to work.

(Goal: I want the block named "content" to only appear for the "authenticated user" role.)

Problem on getting access to the database as installing Drupal

I tried to built a Drupal system to my Linux Mint. I haven't configured MySQL ever before so I got a problem. I don't know how to get access to the database as Drupal says that

In order for Drupal to work, and to continue with the installation process, you must resolve all issues reported below. For more help with configuring your database server, see the installation handbook. If you are unsure what any of this means you should probably contact your hosting provider.

Failed to connect to your database server. The server reports the following message: SQLSTATE[28000] [1045] Access denied for user 'jaakko'@'localhost' (using password: YES).

Is the database server running?
Does the database exist, and have you entered the correct database name?
Have you entered the correct username and password?
Have you entered the correct database hostname?

I believe that database server is OK and database exists. But how can I add an user to my database?

Help needed - D7 insert Node+Menu with PHP

hello,

on d6 i used following code to post into a php enabled node, this is a "1 time usage snipped", it creates pages and menu from 1 array.

<?php
$insert
[] = array("menu" => "primary-links", "path" => "MY-MENU", "link_title" => "My-Menutitle");
$insert[] = array("menu" => "primary-links", "path" => "MY-MENU/SUBMENU", "link_title" => "My-SubMenutitle");
$insert[] = array("menu" => "primary-links", "path" => "MY-MENU/SUBMENU2", "link_title" => "My-SubMenutitle2");

foreach(
$insert AS $line){

   
$node = new StdClass;
   
$node->type = 'page'; //Inhaltstyp
   
$node->body = 'Platzhalterseite';
   
$node->title = $line['link_title'].' - Platzhalter';
   
$node->uid = 1;
   
$node->status = 1;
   
$node->active = 1;
   
$node->promote = 1;
   
$node->path = $line['path'];
   
$node_id = node_save($node);

   
$menu = array(
   
'link_title' => $line['link_title'],
   
'router_path' => $line['path'],
   
'link_path' => 'node/'.$node->nid,
   
'mlid' => 0,
   
'plid' => 0,
   
'menu_name' => $line['menu']
    );

   
menu_link_save($menu);

    unset(
$node);
    unset(
$menu);
}
?>

The code above pasted into a D7 node will result in:
Fatal error: Unsupported operand types in /www/htdocs/space/includes/path.inc on line 435

so any suggestion for modification, please?

this is not a module, it's only a 1 time snipped, 1 usage, remove node.

thank you,

Andreas

Great Idea for Website

I have a great idea for a website. I believe it will be very popular (not as much as facebook or twitter, but as much as popular sports sites). I also think it is doable using Drupal. The problem is I don't have web designing idea. If anyone having good knowledge is interested, please provide me a way to contact you personally.

A view with sort tabs

Hi,

I wonder how to get sort criteria located and selected in ajax tabs of a view on Drupal 7 with Views 3?
Imagine a list of news, sorted by date (Newest). But we need also to sort them by number of voices (Best), and maybe - by count of comments (Popular) - just in place, via ajax, by clicking corresponding Tabs: Newest, Best, Popular. How to do this?
Example: http://www.onlinedisk.ru/view/607546

Making new content-type not appear in navigation by default

I'm new on Drupal but I've looked and can't find an answer to this.

I've created a new content type called 'biography'. When I add a new biography content-type page it appears in the main navigation. I want it so that by default it does not appear in the navigation. How can I do this?

Thanks in advance.

Subscribe with RSS Syndicate content
nobody click here