Download & Extend

Drupal 6 port with user relationships, content profile support

Project:Private nodes
Version:5.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:atuyo60
Status:needs review

Issue Summary

I have done the port with new access implementation using hook_access instead of the previous method. I could not figure out how to make the original version work in Drupal 6.

The code is improved with proper coding standards and support for the new user relationships and content profile modules. The buddylist and nodeprofile modules have been removed from the code since they are not available for Drupal 6. Additional friends modules may be added to the code as required by searching for the following line: Add any friends module

I have made use of page handlers and did a version that uses http://wtanaka.com/node/7644 method for those with memory limitations. This reduced version has a memory usage of about 39,000 bytes compared to the original 95,000 bytes.

AttachmentSize
private_nodes.zip6.57 KB
private_nodes_reduced.zip8.58 KB

Comments

#1

Remember to run the 6000 update if you are using this version as the privacy levels have changed. Also, do report any problems as I have not done extensive testing, especially for the additional module support.

There is a bug in the code provided above. Inside private_nodes_user() function Line 10, amend this line:

else {
          if (module_exists('user_relationships_api')) {

to include the $access check:
else {
          if (module_exists('user_relationships_api') && $access == 2) {

#2

Would be nice to see this patch adapted to the Drupal 6 version of private_nodes you've created. I took a stab at it myself, but, not being a PHP or Drupal programmer, wasn't very successful.

#3

actually, shouldn't this go up as a new module? if it's for Content Profile and UR, then i'd strongly suggest posting either as standalone OR as a contrib module to Content Profile (and perhaps UR too)

i'm looking for exactly this kind of utility

#4

Would be nice to see this patch adapted to the Drupal 6 version of private_nodes you've created. I took a stab at it myself, but, not being a PHP or Drupal programmer, wasn't very successful.

hi, i might try it when i next update my site but meanwhile some other developer could try adding it and post a patch here =)

#5

subscribe

#6

There is a Buddylist for Drupal 6, so it may be better to keep suppport for this

#7

Status:active» needs review

Testing reduced drupal 6 version and hoping for an official release.

#8

#9

have to say that this port did not work for me.
Here is what did instead:
http://drupal.org/node/374376 #8 (see my comment in #9 with more details). As much as I enjoyed using private_nodes while with D5 for 2 years 9and my site is all about private/friends_only blogs), this module was the only module of 40 I have on the site impeding my upgrade to D6. I am kinda happy to get rid of this obviously abandoned module...

nobody click here