[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.
shi
Registered User
Posts: 58
Joined: Fri Sep 12, 2003 7:14 am
Location: Shanghai, China
Contact:

New version has been upload!

Post by shi » Tue Nov 04, 2003 8:04 am

You may get the details in the first post in this thread.


BTW
Xore wrote: great work so far!

Thanks!

Animedude
Registered User
Posts: 4
Joined: Thu Oct 09, 2003 12:22 am
Contact:

Post by Animedude » Wed Nov 05, 2003 1:18 am

great, can't wait till the final version of this add-on. It is nice to seein those awsome script from chinese bbs to be imigrated to phpBB.

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

Post by shi » Fri Nov 07, 2003 2:25 pm

The MOD was updated to v0.2.1b now because a bug was found and fixed. All user who can reply the sold post can view the hidden content by clicking the quote button to reply the MOD before he buy.

Please go to the download site in the first post to update your Sell Post MOD NOW!

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

Post by TimeVirus » Fri Nov 07, 2003 6:47 pm

Good catch! :)

What is the easy portal version used for? For the announcements block on the portal in case an announcement was sold?
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 08, 2003 1:49 pm

TimeVirus wrote: Good catch! :)

What is the easy portal version used for? For the announcements block on the portal in case an announcement was sold?

Right.

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

Post by shi » Wed Nov 19, 2003 2:41 pm

Hi, everbody.

The MOD has been upgraded to Advanced Hide Post 1.0.0. The download URL (new installation only) has been changed too.

The Chinese version and the upgrade file will be provided later.

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

Post by shi » Thu Nov 20, 2003 9:39 am

Chinese version and upgrading from sell post 0.2.1b to Advanced Hide Post 1.0.0b have been done.

All can be downloaded from the first post in this thread.

Please give me some feedback after your try.

User avatar
transwarp™
Registered User
Posts: 92
Joined: Fri Jul 19, 2002 11:34 pm

Post by transwarp™ » Wed Nov 26, 2003 7:07 pm

I installed this MOD and checked all the settings; but I got no display for this box field inside posting for adding poins and whatever could be done. And I found no information inside POSTING.PHP about some variables for later display the texts.

While getting no box I removed this BEGIN and END from the profile_body.tpl insert and just got an empty small dropdown box but nothing more. No fields and no text to enter or select something.
- TERRA OCEANICA -

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

Post by shi » Thu Nov 27, 2003 2:53 am

Did you set the permission correctly? Did you have any trouble when installing the MOD?

And there's noting to be changed in profile_body.tpl. Is it a typo or else?

danb00
Registered User
Posts: 1025
Joined: Sun Dec 15, 2002 9:41 pm
Location: Inside Mod:Extreme PHPBB
Contact:

Post by danb00 » Thu Nov 27, 2003 8:53 am

does this work with the multibbcode mod and the UPS mod, ultimate points system

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

Post by shi » Thu Nov 27, 2003 9:48 am

danb00 wrote: does this work with the multibbcode mod and the UPS mod, ultimate points system

You must install MultiBBCode before installing this one.
Theoretically UPS is also supported if it using a field in the users' table to store the points information.

danb00
Registered User
Posts: 1025
Joined: Sun Dec 15, 2002 9:41 pm
Location: Inside Mod:Extreme PHPBB
Contact:

Post by danb00 » Thu Nov 27, 2003 12:54 pm

yer it uses the same table

cos i saw the bbcode and thought does this need it :)


but now i know it will work.


ohhh thanks


cos theres nothing worse than installing a mod and find out it dont work with other things

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

Post by shi » Thu Nov 27, 2003 2:33 pm

3 bugs found
  1. fixed by doing:

    Code: Select all

    #
    #-----[ OPEN ]------------------------------------------
    #
    includes/topic_review.php
    
    #
    #-----[ FIND ]------------------------------------------
    #
    			$message = strip_hidden_contents($row, $hiding_info);
    
    # 
    #-----[ BEFORE, ADD ]------------------------------------------ 
    #
    			include_once($phpbb_root_path . 'includes/functions_hide.' . $phpEx);
  2. Check the field name in table phpbb_posts. If there's one named as hiding_cash_type then change it to hiding_cash_id
  3. Sometimes more than one hiding box appeared in a post when 2 or more posts are hidden in single thread. This has not been solved.
The package for downloading has not been updated since I'm busy now.
Last edited by shi on Tue Dec 09, 2003 12:51 pm, edited 1 time in total.

User avatar
transwarp™
Registered User
Posts: 92
Joined: Fri Jul 19, 2002 11:34 pm

Post by transwarp™ » Thu Nov 27, 2003 5:14 pm

Sure I got the right permissions and as ADMIN I should always see it ? I disabled all the BEGIN and END loops inside posting_body.tpl and only got to empty fields and a dropdown box also empty there !! -

The bug inside TOPIC_REVIEW is fixed thanks. But the other thing from the installation is I got no entries inside a USER table to change the fields there ? - Here is want inside your install text
ALTER TABLE phpbb_posts
ADD hiding_type TINYINT(1) UNSIGNED DEFAULT '0' AFTER post_attachment,
ADD hiding_condition_value INT(11) DEFAULT '0' NOT NULL,
ADD hiding_cash_id SMALLINT(6) DEFAULT '0' NOT NULL;


INSERT INTO phpbb_config (config_name, config_value) VALUES
('cash_system_type', '0'),
('allow_sellpost', '0'),
('allow_hide4reply', '0'),
('allow_hide4posts', '0'),
('allow_hide4fortune', '0'),
('max_sellingprice', '0'),
('min_sellingprice', '1'),
('max_postsrequired', '0'),
('min_postsrequired', '1'),
('max_fortunerequired', '0'),
('min_fortunerequired', '1');

ALTER TABLE phpbb_auth_access
ADD auth_sellpost TINYINT(1) NOT NULL,
ADD auth_hide4reply TINYINT(1) NOT NULL,
ADD auth_hide4posts TINYINT(1) NOT NULL,
ADD auth_hide4fortune TINYINT(1) NOT NULL;

ALTER TABLE phpbb_forums
ADD auth_sellpost TINYINT(2) DEFAULT '1' NOT NULL,
ADD auth_hide4reply TINYINT(2) DEFAULT '3' NOT NULL,
ADD auth_hide4posts TINYINT(2) DEFAULT '3' NOT NULL,
ADD auth_hide4fortune TINYINT(2) DEFAULT '3' NOT NULL;

CREATE TABLE phpbb_payment (
post_id MEDIUMINT(8) UNSIGNED NOT NULL,
user_id MEDIUMINT(8) UNSIGNED NOT NULL,
KEY post_id_user_id (post_id, user_id));


No table with pbpbb_users entries there ?!
- TERRA OCEANICA -

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

Post by shi » Fri Nov 28, 2003 6:52 am

If your phpBB version is 2.0.4 rather than 2.0.6, please do as the following after installing the mod of v1.0.0b

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/functions_hide.php 

# 
#-----[ FIND ]------------------------------------------ 
# 
unset($template->_tpldata[$block_name]);

# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
_name

# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
# 
 . '.'
I don't know what it could be in phpBB 2.0.5 since I don't have that version to test. If you do please tell me.

And this will solve the 3rd problem mentioned above.

Locked

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