Block caching and access modules
Previously I had a serious performance issue on my website.
The reason is that I have a big menu with 130+ menu links.
Content access module was breaking the block caching, and the website page loading was 4 times slower. It was a real head banging until I found what causes that issue.
I've removed the content access module and wrote a custom code for block caching.
Right now I've added a Advanced forum on the same website with many features.
Unfortunately I have to use Forum Access module, because real forum is nothing without permissions.
Which PHP files of core and modules must be accessible from browser?
First of all, excuse my English. I hope you can understand what I want to ask.
For a long time I have used this NginX config as a template for mine own, but I am very unsatisfied with it's security concerning PHP files. I mean, there are only some PHP files which a really needed for Drupal to work: index.php, update.php and cron.php (install.php used only once and I don't use any features of xmlrpc.php). So I want to rewrite my NginX config to grant access only for enlisted PHP files.
Read moreControlling access to nodes by simple user relationships
I looking for solution or ideas about how to solve this problem in Drupal 7.
I am going to have a site where users will be working in pairs. One user(Poster) will be posting nodes and another user(Viewer) should have View access to posters nodes. Nobody else outside of these 2 users should be able View the the Posters nodes.
I have thought using the User Relationship module, but it seems overly complicated for what I am trying and would present other problems for my purposes.
Read moreAccess a node into a group without being group member and having a special role.
Hello everybody
I'm using OpenAtrium, I think it's 1.0, but not sure.
I need a user with special profile to access a node into a group without being group member. Is that possible?
In short my code gives groups and "my_content_type" a grant called "my_realm" with gid 1.
hook_node_grants() gives each user with "my_special_role" a grant called "my_realm" with gid 1.
As far as I know that should give access user to node, isn't it?
I added this code, but it's not working:
<?php
/**
* hook_node_grants()
*
Expose CiviCRM address fields to Drupal Node?
I've been looking and everything i'm seeing is old. and believe it or not I've gotten NO replies on the CiviCRM Forums. So please help if you can. I'll try to return the favor.
Read moreWorkflow Access - Allow anonymous users to view certain CCK fields in Views, but not the full node?
I have a Workflow setup like this:
Upcoming - node shows up in "Upcoming Reviews" content pane, but not viewable by anonymous users (also applies to Draft and Waiting states)
Draft - being worked on by author
Waiting for Approval - ready to be reviewed by administrator
Published - Viewable by everyone, shows up in various site sections/taxonomy lists
Node access per user
I need a way for one or two super users to grant access to nodes on a per user basis. I have tried nodeaccess but I don't get a list of which users have access to which nodes which is very important. And in order to grant access I need to type in a user's name. In the node edit, I would like a list of user names in the system with a checkbox for access. With nodeaccess I can't see how to remove access for a user, I only see a way to grant it. I don't want to grant accesss by role, that would mean making a new role for every new user.
Read moreaccess table in slow query log
Hi,
Hopefully this is an appropriate question for this group. Any ideas why this type of query would show up repeatedly in my slow query log? Is there something I can do to optimize this?
thanks.
Time: 100715 12:07:03
User@Host: drupal_db[drupal_db] @ localhost []
Query_time: 0 Lock_time: 0 Rows_sent: 0 Rows_examined: 12
SELECT 1 FROM access WHERE type = 'host' AND LOWER('67.218.116.166') LIKE LOWER(mask) AND status = 0 LIMIT 0, 1;
Time: 100715 12:08:17
User@Host: drupal_db[drupal_db] @ localhost []
Read moreHierarchical corporate structure for an intranet
We are building our new intranet on Drupal. We are a group of companies, i.e. our organizational structure consists of sub-companies, which again have sub-companies or departments, which also can have sub-departments and/or employees belonging to them. We need to have this organizational structure in our Drupal-based intranet system, both:
1) in terms of content: displaying the corporate structure as a hierarchical list of companies, sub-companies, departments; displaying employee listings per company and department;
Access problem with image gallery
Something is screwy with image gallery since I upgraded from Drupal 5 to 6. I only use image galleries on one site, huntresses.org, which is a family site. Anonymous users aren't supposed to see any content. I use front page to say that you have to register. When I upgraded from 5 to 6, the Images menu item started showing on huntresses.org for anonymous. It is the only item in the menu. Originally it let me click through the galleries and it would display the full images (the nodes). Now the images show in the galleries but the image nodes are no longer displayed. So I've made some progress.
Read more



