Page 1 of 17

[ABD]Advanced Hide Post 1.0.0 (From Sell Post 0.2.1)

Posted: Thu Oct 30, 2003 1:13 pm
by shi
[Chinese Support]

Mod Name: Advanced Hide Post MOD
Mod Version: 1.0.1 Beta
Installation Level: Intermediate
Installation Time: ~30 minutes.
Files To Edit: 21
Files Included: 5

Mod description:
  • This MOD will allow authorized user to hide the message posted by himself. The other user must reply, pay with the virtual money in forum, or reach the level poster asked to read the hidden contents.
  • Sell post
    see the introductions in Sell Post 0.2.1b
  • Asking replying
    Only moderator and the user who replied after the hidden post can get all contents
  • Require posts
    Only moderator and the user whose amount of posts reached the value poster specified can get all contents
  • Require fortune
    Only moderator and the user whose amount of fortune(cash or points) reached the value poster specified can get all contents
Features
  • All the features that Sell Post 0.2.1b have
  • 4 methods to hide a post: sell, asking reply, require amount of posts or fortune (cash or points)
  • A introduction box which will never be hidden to show some informations about the post (implement by a bbcode)
  • Guest cannot read the hidden post
  • Different messages for different users(poster, who can read and can not)
  • The hiding permission can be set in forum, group and user control individually
  • Disallowable in the whole forum
  • Maximum and minimum value
  • Support multi-currency of Xore's Cash MOD
Update Logs
  • Mar. 27, 2004
    - BlueSky_Ray provided the plug-in to support Cash MOD 2.2.x
  • Nov. 28, 2003 - Version 1.0.1 Beta
    - Bugs Fixed
  • Nov. 19, 2003 - Version 1.0.0 Beta
    - Renamed to Advanced Hide Post
    - Restructured the original Sell Post
    - Add new methods to hide a post: by requiring replying, posts or fortune
    - Support multi-currency of CASH MOD
  • Nov. 7, 2003 - Version 0.2.1 Beta
    - Fix the "Quote" bug
  • Nov. 3, 2003 - Version 0.2.0 Beta
    - Maximum and minimum price added
    - Bugs fixed
  • Nov. 1, 2003 - Version 0.1.1 Beta
    - Some bug fixed
  • Oct. 30, 2003 - Version 0.1.0 Alpha
    - Initial alpha release
Screenshots

Demo

Download To-do list
Please post the features you'd like to be added at here.


NOTE
  • Dec. 28, 2003
    Demo site has been open. Click here to visit.
  • Nov. 28, 2003
    For those experienced multiple hiding information boxes in single post using phpBB 2.0.4, please visit here.
  • Nov. 27, 2003
    Some bugs were found. Please take a look at here.
  • Nov. 20, 2003
    The upgrading file and Chinese version can be downloaded now.
  • Nov. 19, 2003
    • I changed the name of the MOD to Advanced Hide Post because some other methods to hide a post were added.
    • Screenshots is provided.
    • Chinese version of this MODhas not been prepared till now.
  • Nov. 7, 2003
    A bug to show the hidden content when clicking the quote button of a sold post was found. This bug exist in the version below 0.2.0. Please update your Sell Post MOD right NOW!
  • Nov. 4, 2003
    The MOD has been updated to v0.2.0 Beta since a function of maximum and minimum price was added and some bugs was fixed.
  • Nov. 3, 2003
    My personal site has been moved to another space temporary. The URL above have been updated, too. I set the version to 0.1.1 Beta after some successful cases and bug fixed.

Posted: Thu Oct 30, 2003 8:51 pm
by TimeVirus
What a great idea! :D

Posted: Thu Oct 30, 2003 11:23 pm
by mm3guy
Better than those $200 scripts! :)

Posted: Fri Oct 31, 2003 1:08 am
by shi
Thanks for you comments! Have you tested it? What's the result?

I know little about the version control. If it's testified working well now, may I upgrade the verion to beta?

Posted: Fri Oct 31, 2003 3:18 am
by mm3guy
Can you make it so people can pay with points?

Posted: Fri Oct 31, 2003 4:14 am
by shi
mm3guy wrote: Can you make it so people can pay with points?

Try this in includes/constants.php:
replace

Code: Select all

define('CASH_FIELD_NAME', 'user_cash');
with

Code: Select all

define('CASH_FIELD_NAME', 'user_points');

Posted: Fri Oct 31, 2003 9:55 pm
by mm3guy
shi wrote:
mm3guy wrote:Can you make it so people can pay with points?

Try this in includes/constants.php:
replace

Code: Select all

define('CASH_FIELD_NAME', 'user_cash');
with

Code: Select all

define('CASH_FIELD_NAME', 'user_points');


I thought this MOD was paying with real money! I guess I should have looked closer, because when I saw the text "PayPal"

Posted: Sat Nov 01, 2003 3:50 am
by TimeVirus
I cannot find this in viewtopic.php:

Code: Select all

#
#-----[ FIND ]------------------------------------------ 
#
		display_post_attachments($postrow[$i]['post_id'], $postrow[$i]['post_attachment']);
I don't have attachment mod though, maybe that's only for such cases.

Posted: Sat Nov 01, 2003 4:18 am
by TimeVirus
Ok I can't find this in topic_review.php and it doesn't make sense to me, maybe a typo involved? I mean the two [FIND] instructions in a row...

Code: Select all

#
#-----[ FIND ]------------------------------------------ 
#

			display_review_attachments($row['post_id'], $row['post_attachment'], $is_auth);

#
#-----[ FIND ]------------------------------------------
#
if ( $selling_state < 3 )

Posted: Sat Nov 01, 2003 4:24 am
by TimeVirus
This is repeated twice for admin forumauth.php, is that a typo?

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
	0  =>

#
#-----[ IN-LINE FIND ]------------------------------------------
#
),

#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
, AUTH_REG


Posted: Sat Nov 01, 2003 5:21 am
by TimeVirus
In my admin page it doesn't display text for {L_ALLOW_SELL_POST} and neither radio button is set. When I try to set it and return to check it, it's unset again.

Edit: Tried to set it using phpmyadmin, it sets to one but still dont see any sign of the mod yet and the radio buttons still wont highlight either on or off.

Posted: Sat Nov 01, 2003 6:00 am
by shi
mm3guy wrote: I thought this MOD was paying with real money! I guess I should have looked closer, because when I saw the text "PayPal"

Sorry for confusing you. My English is not so good to express my opinion clearly.

Posted: Sat Nov 01, 2003 6:12 am
by shi
TimeVirus wrote: I cannot find this in viewtopic.php:

Code: Select all

#
#-----[ FIND ]------------------------------------------ 
#
		display_post_attachments($postrow[$i]['post_id'], $postrow[$i]['post_attachment']);
I don't have attachment mod though, maybe that's only for such cases.

Yes, this is for attachment mod. It's rare since I have added a comment twice. But they disappeared time after time.

TimeVirus wrote: Ok I can't find this in topic_review.php and it doesn't make sense to me, maybe a typo involved? I mean the two [FIND] instructions in a row...

Code: Select all

# 
#-----[ FIND ]------------------------------------------ 
# 

         display_review_attachments($row['post_id'], $row['post_attachment'], $is_auth); 

# 
#-----[ FIND ]------------------------------------------ 
# 
if ( $selling_state < 3 ) 

The former is the same with the one above. The latter is the mistake I made. It should be BEFORE, ADD instead of FIND

TimeVirus wrote: This is repeated twice for admin forumauth.php, is that a typo?

Code: Select all

# 
#-----[ FIND ]------------------------------------------ 
# 
   0  => 

# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
), 

# 
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------ 
# 
, AUTH_REG 

I'd like to appreciate for pointing the mistake again! That's why I finally call this an alpha version. :oops:

Posted: Sat Nov 01, 2003 6:22 am
by shi
TimeVirus wrote: In my admin page it doesn't display text for {L_ALLOW_SELL_POST} and neither radio button is set. When I try to set it and return to check it, it's unset again.

Edit: Tried to set it using phpmyadmin, it sets to one but still dont see any sign of the mod yet and the radio buttons still wont highlight either on or off.

I'm checking this one. It works fine in the forum I writting the codes. Perhaps I missed something when I made it as a MOD.

Posted: Sat Nov 01, 2003 6:26 am
by shi
This was what I lost in admin/admin_board.php

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
	"L_RESET" =>

#
#-----[ AFTER, ADD ]------------------------------------------
#
"L_ALLOW_SELL_POST" => $lang['Allow_sell_post'],
"SELLPOST_YES" => $sellpost_yes,
"SELLPOST_NO" => $sellpost_no,
Thanks again, TimeVirus!