Customizing SMF > Modifications and Packages

Hide Post

(1/102) > >>

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:


--- Quote ---You have an error in your SQL syntax near 'ORDER BY m.ID_MSG DESC
LIMIT 15' at line 6
File: /var/www/ordinaryday/forums/Sources/Post.php
Line: 1989
--- End quote ---

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

Navigation

[0] Message Index

[#] Next page

Go to full version