Drupal 6 port with user relationships, content profile support

atuyo60 - August 4, 2008 - 07:53
Project:Private nodes
Version:5.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:atuyo60
Status:needs review
Description

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

#1

atuyo60 - August 4, 2008 - 19:14

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

hitched97 - November 17, 2008 - 16:53

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

zilla - November 17, 2008 - 20:34

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

atuyo60 - November 22, 2008 - 07:49

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

Buffer2k - February 20, 2009 - 04:56

subscribe

#6

minesota - March 12, 2009 - 02:50

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

#7

bomarmonk - July 16, 2009 - 18:40
Status:active» needs review

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

#8

sterwa - July 18, 2009 - 17:35

Is this the same?
http://drupal.org/node/229866

 
 

Drupal is a registered trademark of Dries Buytaert.