Users unable to access content unless "administer nodes" is enabled.

Users are unable to access content on my site unless they have permission to "administer nodes." My site is set up so that views generates the content and panels organize and display the views. The content is also arranged by one taxonomy.

The problem is that while the Admin can see the content (embedded views) the authenticated users and anonymous users can't.

Suddenly can't login on my site as admin?

Suddenly can't login on my site as admin and also another user no matter what I do. 2 other persons can still login.

I have used the whole day to search Google and done what people suggest but nothing helps. I have deleted history, cache, temporary files and deleted sessions from sessionstable. Tried 3 different browsers. Any one know what to do next, please?

Book navigation variable in node tpl

Hi everybody;

I try to customize my book content pages. And I've a problem. There are some variables in book_navigation.tpl.php like $next_title, $pre_title etc. I want to use them in node.tpl.php I try to do with preprocess but I couldn't. All variables came to node page but their values are NULL. I created book_preprocess_node from template_preprocess_book_navigation and added to book module which shown in below. But it didn't work.

function book_preprocess_node(&$variables) {
$book_link = $variables['book_link'];
global $ssy;
$ssy= $book_link;
// Provide extra variables for themers. Not needed by default.
$variables['book_id'] = $book_link['bid'];
$variables['book_title'] = check_plain($book_link['link_title']);
$variables['book_url'] = 'node/'. $book_link['bid'];
$variables['current_depth'] = $book_link['depth'];

$variables['tree'] = '';
if ($book_link['mlid']) {
$variables['tree'] = book_children($book_link);

if ($prev = book_prev($book_link)) {
$prev_href = url($prev['href']);
drupal_add_link(array('rel' => 'prev', 'href' => $prev_href));
$variables['prev_url'] = $prev_href;
$variables['prev_title'] = check_plain($prev['title']);
}
if ($book_link['plid'] && $parent = book_link_load($book_link['plid'])) {

Accordeon embed

Hello,

I have created a view and it haves an accordeon-style.
When i click on the first line it opens the content.
Now i want in the same view an extra accordeon line.
Is that possible?

MENU ACCORDEON (clickable accordeon)
-Item 1
-Item 2
-Item 3
ANOTHER ACCORDEON (clickable accordeon - thats the one i needed)
-Item 1
-Item 2
-Item 3

I do not have much skills on PHP...

Tnx

problem with module views

Hi,

After the migration of a website from OVH (the website works fine) to an
internal server i have a problem.
As soon as i activate the views module in the administrator menu in
drupal, the website loads indefinitely without diplaying anything.
I recovered sometimes an erreur, either after a x minutes loading or just
after activating the views module.

"Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to
allocate 7680 bytes) in
/home/www/**/modules/aggregator/aggregator.pages.inc on line 441"

Also, here are some errors found in the apache2 log :

[Thu Apr 11 17:51:59 2013] [error] [client 192.168.X.X] PHP Fatal error:
Allowed memory size of 100663296 bytes exhausted (tried to allocate 7680
bytes) in
/home/www/**/sites/all/modules/ctools/plugins/content_types/contact/user_contact.inc
on line 44, referer: http://www.**.com/admin/build/modules/list

[Thu Apr 11 17:57:53 2013] [error] [client 192.168.X.X] PHP Fatal error:
Allowed memory size of 100663296 bytes exhausted (tried to allocate 30720
bytes) in
/home/www/**/sites/all/modules/ctools/plugins/content_types/search/search_form.inc
on line 117, referer: http://www.**.com/admin/build/modules/list

[Thu Apr 11 18:04:53 2013] [error] [client 192.168.X.X] PHP Fatal error:
Allowed memory size of 100663296 bytes exhausted (tried to allocate 7680

limit block to show on only one node when taxonomy matches

Please see the below code, I am able to see the block show up when a node has the taxonomy term listed (32715). What I am try to do is limit the block to only show up based on this term and not have multiple blocks appear when there is a match of more then one term. For example if the node has taxonomy for 32715, 32698, and 32715 three blocks will show on the page. I am trying to limit this to only show one block. Thanks!

<?php
if ( arg(0) == 'node' and is_numeric(arg(1)) and arg(2) == FALSE ) {

// Vocabulary term ID for which to display the block:
$displayTermID ="32715";

// Get all taxonomy terms for current node:
$currNodeTerms = taxonomy_node_get_terms(node_load(arg(1)));

// If there are no terms, fail-fast:

if (is_null($currNodeTerms) || 0 == count($currNodeTerms)) {
return FALSE;
}

// For each term of the current node, get all the ancestor terms:
foreach($currNodeTerms as $term) {

$ancestors = taxonomy_get_parents_all($term->tid);

// Check for each ancestor term whether it is the term we are looking for.
// If it is, return TRUE immediately:
if (!is_null($ancestors) && 0 < count($ancestors)) {
foreach($ancestors as $ancestor) {
if ($displayTermID == $ancestor->tid) {
return TRUE;
}
}
}
}
}

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x