The problem is, when I select to have a node by default private it's not going to make the node by default private. Here is way:
Line 13 has a typo:
- define('PRIVSTE_AUTOMATIC', 2);
+define('PRIVATE_AUTOMATIC', 2);
There seems to be some confusion on lines 137 and following. Here is what my if statement looks like -> and that's how it works:
if (empty($node->nid)) {
if(PRIVATE_AUTOMATIC){
$privacy = TRUE;
}
}
else {
$privacy = $node->private;
}
Would be cool if you could take theses fixes into the next release.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | private.txt | 9.16 KB | ashiwebi |
| #3 | 436620_private_typos_3.patch | 3.02 KB | greggles |
| #2 | 436620_private_typos.patch | 3.04 KB | greggles |
Comments
Comment #1
ashiwebi commentedPlease send me the detail If you know
'Private' check box only shows on certain node types?
This patch is available for drupal5.Any one working on drupal 6 patch but as they mentioned that they fix this issue in drupal 6 .
But If you checked this Disabled (always public) option.It should remove the checkbox option from the Node type or content type.
Please provide the readme.txt file for this module.
There is no readme file in this.
Help needed immediately
Comment #2
gregglesThere was no patch here, and I think the logic for the second piece was wrong. It would ignore the value set by the admin as the default.
Attached patch fixes the
1. The variable name is in the format private_ $node->type
2. Logic flaw in the default setting
3. Trailing whitespace
Comment #3
greggles...and now with 100% less debug code.
Comment #4
ashiwebi commentedThanks your code implement perfectly with disabled option for the Node type.
Have you tested the code completely.
Comment #5
ashiwebi commentedPlease find the attached file of corrected private.module.
Let me know whether the file I am putting here needs any further changes.
Thanks every one who help me in this private module
Comment #6
ashiwebi commentedPlease give me your feedback on the private module whether my above attached file is ok or any further changes I have to implement.
Comment #7
greggles@ashiwebi - I don't look at full files that have been uploaded. The are hard to review or compare to other proposed changes - that's why we use http://drupal.org/patch/ patch files.
Also, your attitude of demanding action by other people is somewhat inappropriate.
Comment #8
ashiwebi commentedSorry
If you get hurted by this.I never worked on the patches before.
Thanks for your kindness.
Comment #9
eaton commentedCommitted. Will be part of the next release. Thanks!