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.
| Comment | File | Size | Author |
|---|---|---|---|
| private_nodes_reduced.zip | 8.58 KB | atuyo60 | |
| private_nodes.zip | 6.57 KB | atuyo60 |
Comments
Comment #1
atuyo60 commentedRemember 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:
to include the $access check:
Comment #2
hitched97 commentedWould 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.
Comment #3
zilla commentedactually, 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
Comment #4
atuyo60 commentedhi, i might try it when i next update my site but meanwhile some other developer could try adding it and post a patch here =)
Comment #5
Witch commentedsubscribe
Comment #6
minesota commentedThere is a Buddylist for Drupal 6, so it may be better to keep suppport for this
Comment #7
bomarmonk commentedTesting reduced drupal 6 version and hoping for an official release.
Comment #8
sterwa commentedIs this the same?
http://drupal.org/node/229866
Comment #9
sterwa commentedhave 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...