boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Private Comments Hack
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    boardom Forum Index -> Hacks
View previous topic :: View next topic  
Author Message
Cyberian75



Joined: 26 Sep 2002
Posts: 983
Location: Washington

PostPosted: Sun Sep 28, 2003 12:36 am    Post subject: Reply with quote

The instruction has been slightly changed to make it more easily understandable, and a "tagging" how-to is added. Smile
_________________
Michael P.
Back to top
View user's profile Send private message Visit poster's website AIM Address
billy



Joined: 05 Jul 2003
Posts: 39

PostPosted: Sun Sep 28, 2003 1:10 am    Post subject: Reply with quote

Cyberian75 wrote:
billy wrote:
i dont see that code anywhere.Sad


From this line...

Code:

$queryc = "SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_private = 0 ORDER BY comment_date";


Take out...

Code:

AND comment_private = 0

when i take out
Code:

AND comment_private = 0

the comment is viewable to anyone
Back to top
View user's profile Send private message
Cyberian75



Joined: 26 Sep 2002
Posts: 983
Location: Washington

PostPosted: Sun Sep 28, 2003 1:18 am    Post subject: Reply with quote

Have you modified the get_commentdata function in b2functions.php file as instructed?
_________________
Michael P.
Back to top
View user's profile Send private message Visit poster's website AIM Address
billy



Joined: 05 Jul 2003
Posts: 39

PostPosted: Sun Sep 28, 2003 1:24 am    Post subject: Reply with quote

yep. don't worry, ill probably download a fresh b2 and reinstall the hack later...but its a great hack and i cant wait to get it working!
Back to top
View user's profile Send private message
Cyberian75



Joined: 26 Sep 2002
Posts: 983
Location: Washington

PostPosted: Sun Sep 28, 2003 1:32 am    Post subject: Reply with quote

I have just changed my comments page for it to display the "this is a private comment" message, and it works just fine. Sorry it's not working for you.
_________________
Michael P.
Back to top
View user's profile Send private message Visit poster's website AIM Address
Cyberian75



Joined: 26 Sep 2002
Posts: 983
Location: Washington

PostPosted: Fri Oct 24, 2003 5:26 am    Post subject: Updated Reply with quote

I have modified this hack so that the number of comments will be 0 on the public template, but in your edit page, private comments will be counted and displayed.
_________________
Michael P.
Back to top
View user's profile Send private message Visit poster's website AIM Address
phreak



Joined: 13 Oct 2002
Posts: 7
Location: philippines

PostPosted: Tue Nov 04, 2003 11:47 am    Post subject: Reply with quote

is there a way I could create a new table without going to cpanel and phpmyadmin? I know there is, but HOW?
_________________
pH 2 is still acidic.

What if God was one of us?

I am a superman.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Cyberian75



Joined: 26 Sep 2002
Posts: 983
Location: Washington

PostPosted: Tue Nov 04, 2003 5:29 pm    Post subject: Reply with quote

phreak,

Check out http://tidakada.com/board/viewtopic.php?t=1169
_________________
Michael P.
Back to top
View user's profile Send private message Visit poster's website AIM Address
phreak



Joined: 13 Oct 2002
Posts: 7
Location: philippines

PostPosted: Mon Nov 10, 2003 9:03 am    Post subject: Reply with quote

Cyberian75 wrote:
phreak,

Check out http://tidakada.com/board/viewtopic.php?t=1169


The topic was useless!!!
_________________
pH 2 is still acidic.

What if God was one of us?

I am a superman.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Cyberian75



Joined: 26 Sep 2002
Posts: 983
Location: Washington

PostPosted: Mon Nov 10, 2003 5:21 pm    Post subject: Reply with quote

phreak,

Do a search yoursellf then...
_________________
Michael P.
Back to top
View user's profile Send private message Visit poster's website AIM Address
phreak



Joined: 13 Oct 2002
Posts: 7
Location: philippines

PostPosted: Tue Nov 11, 2003 9:33 am    Post subject: Reply with quote

waaaaaaaaaaaa!!!!!!!
_________________
pH 2 is still acidic.

What if God was one of us?

I am a superman.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Tang-on



Joined: 14 Aug 2003
Posts: 22

PostPosted: Fri Nov 14, 2003 11:58 pm    Post subject: Reply with quote

Thanks Cyberian75! I've it installed on my blog. *smiles happily* Very Happy
_________________
-Tang-on Smile
Back to top
View user's profile Send private message Visit poster's website
Cyberian75



Joined: 26 Sep 2002
Posts: 983
Location: Washington

PostPosted: Thu Dec 04, 2003 10:49 pm    Post subject: NOTICE -- UPDATE Reply with quote

If you also have my "notify me" hack installed, please refer to the following instruction for a security fix.

Quote:

Locate the following line in b2comments.post.php file:

if ($wxcvbn_c > 0) {

Then change it to:

if ($wxcvbn_c > 0 && $comment_private == 0) {

_________________
Michael P.
Back to top
View user's profile Send private message Visit poster's website AIM Address
Tang-on



Joined: 14 Aug 2003
Posts: 22

PostPosted: Fri Dec 05, 2003 1:41 am    Post subject: Reply with quote

Err... I couldn't find that line on my b2comments.post.php file.
_________________
-Tang-on Smile
Back to top
View user's profile Send private message Visit poster's website
Cyberian75



Joined: 26 Sep 2002
Posts: 983
Location: Washington

PostPosted: Fri Dec 05, 2003 6:28 pm    Post subject: Reply with quote

Please refer back to the instruction for that hack and do the section for the b2comments.post.php file over again.
_________________
Michael P.
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Hacks All times are GMT + 1 Hour
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group