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

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Locked
shi
Registered User
Posts: 58
Joined: Fri Sep 12, 2003 7:14 am
Location: Shanghai, China
Contact:

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

Post by shi » Thu Oct 30, 2003 1:13 pm

[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.
Last edited by shi on Sat Mar 27, 2004 11:20 am, edited 19 times in total.

User avatar
TimeVirus
Registered User
Posts: 125
Joined: Sat Jul 12, 2003 12:17 am

Post by TimeVirus » Thu Oct 30, 2003 8:51 pm

What a great idea! :D
I'm probably wrong again...

mm3guy
Registered User
Posts: 197
Joined: Tue Oct 14, 2003 8:13 pm

Post by mm3guy » Thu Oct 30, 2003 11:23 pm

Better than those $200 scripts! :)

shi
Registered User
Posts: 58
Joined: Fri Sep 12, 2003 7:14 am
Location: Shanghai, China
Contact:

Post by shi » Fri Oct 31, 2003 1:08 am

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?

mm3guy
Registered User
Posts: 197
Joined: Tue Oct 14, 2003 8:13 pm

Post by mm3guy » Fri Oct 31, 2003 3:18 am

Can you make it so people can pay with points?

shi
Registered User
Posts: 58
Joined: Fri Sep 12, 2003 7:14 am
Location: Shanghai, China
Contact:

Post by shi » Fri Oct 31, 2003 4:14 am

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');

mm3guy
Registered User
Posts: 197
Joined: Tue Oct 14, 2003 8:13 pm

Post by mm3guy » Fri Oct 31, 2003 9:55 pm

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"

User avatar
TimeVirus
Registered User
Posts: 125
Joined: Sat Jul 12, 2003 12:17 am

Post by TimeVirus » Sat Nov 01, 2003 3:50 am

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.
I'm probably wrong again...

User avatar
TimeVirus
Registered User
Posts: 125
Joined: Sat Jul 12, 2003 12:17 am

Post by TimeVirus » Sat Nov 01, 2003 4:18 am

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 )
I'm probably wrong again...

User avatar
TimeVirus
Registered User
Posts: 125
Joined: Sat Jul 12, 2003 12:17 am

Post by TimeVirus » Sat Nov 01, 2003 4:24 am

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'm probably wrong again...

User avatar
TimeVirus
Registered User
Posts: 125
Joined: Sat Jul 12, 2003 12:17 am

Post by TimeVirus » Sat Nov 01, 2003 5:21 am

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 probably wrong again...

shi
Registered User
Posts: 58
Joined: Fri Sep 12, 2003 7:14 am
Location: Shanghai, China
Contact:

Post by shi » Sat Nov 01, 2003 6:00 am

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.

shi
Registered User
Posts: 58
Joined: Fri Sep 12, 2003 7:14 am
Location: Shanghai, China
Contact:

Post by shi » Sat Nov 01, 2003 6:12 am

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:

shi
Registered User
Posts: 58
Joined: Fri Sep 12, 2003 7:14 am
Location: Shanghai, China
Contact:

Post by shi » Sat Nov 01, 2003 6:22 am

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.

shi
Registered User
Posts: 58
Joined: Fri Sep 12, 2003 7:14 am
Location: Shanghai, China
Contact:

Post by shi » Sat Nov 01, 2003 6:26 am

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!

Locked

Return to “[2.0.x] MODs in Development”