• Welcome to Simple Machines Community Forum. Please login or sign up.
December 07, 2021, 01:46:02 AM

News:

Want to get involved in developing SMF, then why not lend a hand on our github!


Hide Post

Started by Leaf, November 30, 2005, 10:49:38 PM

Previous topic - Next topic

Leaf

November 30, 2005, 10:49:38 PM Last Edit: July 30, 2008, 02:59:08 AM by Leaf
Link to Mod

Written By: Xiaoqing Zhou (Leaf)
Contact Info: leaf88@gmail.com
SMF Board: http://www.anetcity.com/bbs/index.php?board=125.0

This mod hides posts, including attachments, according to certain criteria when viewing posts.
It shows some hidden post messages when applicable.

Posts can be hidden by the following options:
1. Login: It requires a user to login to see the post.
2. Reply: It requires a user to reply to the topic to see the post.
3. Karma: It requires a user to have a total karma greater than or equal to a specified value to see the post.
4. Posts: It requires a user to have a number of posts greater than or equal to a specified value to see the post.
5. Moderator: It requires a user to be a moderator, global moderator or administrator to see the post.

In Admin panel, user can control the behavior of this mod:
1. Option to enable the hidden post feature.
2. Option to show hidden messages in posts if user can see the posts.
3. Set the threshold for the posts hidden by Karma and posts.
4. Option to configure hidden message color.
5. Set the maximum length of the hidden notes.

Post permissions in board:
- Hide own posts ('hide_post_own'): If a user has this permission, he will be able to hide his own posts.
- Hide any posts ('hide_post_any'): If a user has this permission, he will be able to hide others posts given that he can modify them, or he can hide his replies to other's posts. Post modification permission still applies.
- View hidden posts ('view_hidden_post'): If a user has this permission, he will be able to see all hidden posts.
- View hidden messages ('view_hidden_msg'): If a user has this permission and the global option to show hidden messages is turned off, he will be able to see the hidden messages if he can see the hidden posts.

If a user belongs to a certain allowed group, they may be able to view all hidden posts regardless whether they meet the hiding criteria or not.

This mod sets the default global settings and hiding post permssions during installation:
- Enable hiding post and show hidden messages.
- Default threshold for hiding by karma/posts is 500.
- Default hidden message color is red.
- Default maximum length of hidden notes is 500.
- Regular user and above can hiding his own or any posts if he can modify/create a post.
- Regular user and above can always see the hidden message if he can see the post.

Administrators and moderators can view hidden posts.
Administrators can diable this mod completely or configure the hidden threshold from global settings.
Hiding option is available if user clicks on "Additional Options" when posting.

This mod supports default and classic theme. If you use any language other than the supported languages (English & Simplified Chinese), you shall copy the language file HidePost.english.php to HidePost.yourlanguage.php and translate it by yourself. Then, upload that language file HidePost.yourlanguage.php to the language directory.

---------------------------------

Version:  HidePost_1-1_smf115.zip  Support: SMF 1.0.5 - SMF 1.1.5
Languages supported: English, Simplified Chinese (GB2312)

Version:  HidePost_1-1_smf20.zip  Support: SMF 2.0
Languages supported: English, Simplified Chinese (GB2312, utf8), Traditional Chinese (Big5, utf8)

------------------------------------

加密贴子,不符合条件的用户只能看到指定隐藏信息。加密方法有五种:登录、回复、积分、发贴数、版主。
增加了用户权限限制,可以根据用户组来设定是否可以观看加密的贴子。
HidePost_1-1_smf115.zip 适用于SMF 1.0.5 - SMF 1.1.5,  支持英文和简体中文(GB2312)。
HidePost_1-1_smf20.zip 适用于SMF 2.0,  支持英文, 简体中文(GB2312, utf8), 和繁体中文(big5, utf8)。

------------------------------------

Demo Picture:




Aly

I'm getting a mysql error that says this whenever i try to start a new topic:

QuoteYou have an error in your SQL syntax near 'ORDER BY m.ID [nofollow]_MSG DESC
LIMIT 15' at line 6
File: /var/www/ordinaryday/forums/Sources/Post.php
Line: 1989

Leaf

December 01, 2005, 10:34:16 AM #2 Last Edit: December 01, 2005, 11:41:17 AM by Leaf
I will take a look at it.

Leaf

Fixed the bug. Uploaded a new zip file. Mod name is changed to Hide Post.

desistyle

Hi sir can u make one which can be compatiable with smf 1.05 too please

Leaf

OK, I will create one for smf 1.05.

Aly

December 02, 2005, 09:52:53 AM #6 Last Edit: December 02, 2005, 10:05:59 AM by Aly
Quote from: Leaf on December 01, 2005, 12:10:13 PM
Fixed the bug. Uploaded a new zip file. Mod name is changed to Hide Post.

xie xie
i shall give it another try ^_^
and thank you for making this mod i was looking for something exactly like this =D


-edit-
ahhh now im having trouble installing the mod.
The "Execute Modification /var/www/ordinaryday/Themes/default/Post.template.php" Test Failed.

sendoh23

can u add in feature to the functions?

QuotePosts can be hidden by the following options:
1. Reply: It requires a user to reply to the topic to see the post.
2. Karma: It requires a user to have a total karma greater than or equal to a specified value to see the post.
3. Posts: It requires a user to have a number of posts greater than or equal to a specified value to see the post.

how bout a number 4:
Login: User is required to log in in order to see the hidden topic

Leaf

Quote from: sendoh23 on December 02, 2005, 02:02:03 PM
can u add in feature to the functions?

how bout a number 4:
Login: User is required to log in in order to see the hidden topic
OK, I will add it.

sendoh23

thanx alot man...will be waiting for ur new updated copy of this mod :D

desistyle

thanks a lot man i am waiting for ur release when this will be compatiable with smf 1.05 thanks a lot

Leaf

Release version 1.0.1:
- Support smf 1.0.5
- Add hidden option 'Login'
- Fix some bugs

Aly, I changed the search text in Post.template.php. Hope it helps.

desistyle

Quote from: Leaf on December 02, 2005, 04:49:35 PM
Release version 1.0.1:
- Support smf 1.0.5
- Add hidden option 'Login'
- Fix some bugs

Aly, I changed the search text in Post.template.php. Hope it helps.

thanks a lot dude i installed the mod i know i am gonna sound stupid now but i still gotta ask this coz i am not gettin how will i use this mod coz i dont see an option of this in admin pannel it says installed successfully how will i use this mod now ?

Leaf

This mods adds several global options into "Basic Forum Features" under "Features and Options".

By default, the hiding post option is enabled.

When you post a new message or modifying a message, click on "Additional Options". There are options to hiding posts. Default is not hiding post.

RoarinRow

I guess you're updating the file because it is not available for download, but it available directly from Package Manager.

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

RoarinRow

Quote from: RoarinRow on December 02, 2005, 10:40:07 PM
I guess you're updating the file because it is not available for download, but it available directly from Package Manager.

Actually, I tried to download from Package Manager and there was an error indicating that the package is missing or corrupt, something like that.

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

spaceman

Where can I download this mod?

Leaf

I am updating the files and add more controls to it. Please be patient.

sendoh23

so the final and stable version of this mod is v1.0.1?

Leaf

No, will be 1.0.2. I am testing it.

Advertisement: