password protect a page or node and it's child, drupal 7

Hi all, I was looking for a module which can password protect a particular page or node and it's child in drupal 7. I have searched for this and I found some But they were for drupal 6 or earlier.

How to install module and themes

Am using drupal 7.x and how do i install new modules or theme onto my project. pls kindley show me the process to do that and i will be grateful. am trying it but it is showing me an error message as:

Unable to create directory 'temporary://update-extraction/pathauto/'
this message shows when i try to upload new module "pathauto" into my project.

thanks. Waiting.

Writing a Views 3 Relationship Handler

I am trying to write a relationship handler for Views 3 in Drupal 7, but am failing even to begin.

Basically, I have a bunch of nodes of various types all with the same field attached to them. This field is a reference field linking off to a Civicrm contact - but that's not important, as essentially these fields just contain integers.

Now, let's say I have a node of content type 'story', and its reference field contains the integer, oh, let's say 55. In addition, there are nodes of content type 'news' which also contain the reference ID 55.

Redirecting Drupal When Installed in Sub-Directory of Add-on Domain

Hi, I have a question about redirecting Drupal when it's installed in the sub-directory of an add-on domain. I looked around the forum and searched on Google, but can't seem to find a thread that is related to this situation (most of them are on multi-sites or redirecting from sub-dir to root), I'm sorry if this has been previously discussed, in which case please do point me to the correct place ^^;

Anyways, I have Drupal installed in the sub-directory of an add-on domain, so the directory structure looks like this:

public_html/addon.com/drupal/

While to users the site would appear as follows:

addon.com/drupal/

Since CPanel treats the add-on domain as a subdomain, sometimes Google is indexing the site as a subdomain like this:

addon.site.com/drupal/ (instead of addon.com/drupal/)

I tried doing a redirect in .htaccess with the following:

RewriteCond %{HTTP_HOST} ^addon.site.com/drupal
RewriteRule ^(.*)$ http://www.addon.com/drupal/$1 [R=301,L]

But the redirect is not working.

I tried changing base_url in setting.php to "addon.com/drupal", and uncommenting the line "RewriteBase /drupal" in .htaccess (note I also uncommented the part in .htaccess that allows users to access the site with the 'www.' prefix), but that didn't help either.

Drupal 7 manage displays will not retain settings

Having issues when setting "manage displays" for Content Types. Lets say changing "Default" to "Hidden", it's not retained when clicking save. It goes right back to Default.

Any ideas what could be causing this?

how to retrieve a value from a nest stdClass Object?

maybe there is a very simple answer, but I have no idea how to do it: how to retrieve a value from a nest stdClass Object?

Here is part of the output from print_r($data):

stdClass Object
(
[node_title] => admin -reports - general - article -file
[nid] => 57
[node_created] => 1302612250
[field_data_field_file_node_entity_type] => node
[_field_data] => Array
(
[nid] => Array
(
[entity_type] => node
[entity] => stdClass Object
(
[vid] => 57
[uid] => 1
[title] => admin -reports - general - article -file
[log] =>
[status] => 1
[comment] => 2
[promote] => 1
[sticky] => 0
[nid] => 57
[type] => file
[language] => und
[created] => 1302612250
[changed] => 1302612250
[tnid] => 0
[translate] => 0
[revision_timestamp] => 1302612250
[revision_uid] => 1
[body] => Array
(
[und] => Array
(
[0] => Array
(
[value] => On February 23, 2011 the Mines and Forestry, 

[summary] =>
[format] => filtered_html
[safe_value] => 

On February 23, 2011 the Mines and Forestry,

[safe_summary] =>
)

)

)

[field_attac] => Array
(
[und] => Array
(
[0] => Array
(
[fid] => 7
[display] => 1
[description] =>

..........................

I want to get the value of [fid]=>7, what should I do?
I can get the [entity_type] value (node) using this:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x