Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Leaf on November 30, 2005, 10:49:38 PM

Title: Hide Post
Post by: Leaf on November 30, 2005, 10:49:38 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=228)

Written By: Xiaoqing Zhou (Leaf)
Contact Info: [email protected]
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:



Title: Re: Hidden Post Mod
Post by: Aly on December 01, 2005, 09:50:21 AM
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_MSG DESC
LIMIT 15' at line 6
File: /var/www/ordinaryday/forums/Sources/Post.php
Line: 1989
Title: Re: Hidden Post Mod
Post by: Leaf on December 01, 2005, 10:34:16 AM
I will take a look at it.
Title: Re: Hide Post
Post by: Leaf on December 01, 2005, 12:10:13 PM
Fixed the bug. Uploaded a new zip file. Mod name is changed to Hide Post.
Title: Re: Hide Post
Post by: desistyle on December 01, 2005, 11:53:29 PM
Hi sir can u make one which can be compatiable with smf 1.05 too please
Title: Re: Hide Post
Post by: Leaf on December 02, 2005, 09:17:47 AM
OK, I will create one for smf 1.05.
Title: Re: Hide Post
Post by: Aly on December 02, 2005, 09:52:53 AM
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.
Title: Re: Hide Post
Post by: sendoh23 on December 02, 2005, 02:02:03 PM
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
Title: Re: Hide Post
Post by: Leaf on December 02, 2005, 02:06:04 PM
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.
Title: Re: Hide Post
Post by: sendoh23 on December 02, 2005, 02:11:25 PM
thanx alot man...will be waiting for ur new updated copy of this mod :D
Title: Re: Hide Post
Post by: desistyle on December 02, 2005, 02:48:33 PM
thanks a lot man i am waiting for ur release when this will be compatiable with smf 1.05 thanks a lot
Title: Re: Hide Post
Post by: 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.
Title: Re: Hide Post
Post by: desistyle on December 02, 2005, 07:59:22 PM
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 ?
Title: Re: Hide Post
Post by: Leaf on December 02, 2005, 08:12:00 PM
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.
Title: Re: Hide Post
Post by: 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.
Title: Re: Hide Post
Post by: RoarinRow on December 02, 2005, 10:45:59 PM
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.
Title: Re: Hide Post
Post by: spaceman on December 02, 2005, 11:54:26 PM
Where can I download this mod?
Title: Re: Hide Post
Post by: Leaf on December 03, 2005, 12:29:42 AM
I am updating the files and add more controls to it. Please be patient.
Title: Re: Hide Post
Post by: sendoh23 on December 03, 2005, 08:14:25 AM
so the final and stable version of this mod is v1.0.1?
Title: Re: Hide Post
Post by: Leaf on December 03, 2005, 11:04:08 AM
No, will be 1.0.2. I am testing it.
Title: Re: Hide Post
Post by: Leaf on December 04, 2005, 03:11:08 AM
Release versoin 1.0.2 for SMF 1.1:

Changes:
- Rearrange files and database fields
- Add option to configure hidden message color
- Add permissions to view hidden posts
- Add hiding function in post preview and quotes
- Fix some bugs
- Support Simplified Chinese (UTF-8) for SMF 1.1
Title: Re: Hide Post
Post by: guppy on December 04, 2005, 05:48:52 AM
Hi! I'm having problems showing the hidden post option for SMF 1.0.5.

Seems like some codes couldn't be found:


<operation>
<search position="replace"><![CDATA[
<div align="right" class="smalltext"><a href="#top" onclick="return insertQuoteFast(', $post['id'], ');">', $txt[260], '</a></div>
<div class="post">', $post['message'], '</div>
</td>
</tr>';
]]></search>
<add><![CDATA[
';
if ($post['can_view_post'])
echo '
<div align="right" class="smalltext"><a href="#top" onclick="return insertQuoteFast(', $post['id'], ');">', $txt[260], '</a></div>';
echo '
<div class="post">', $post['message'], '</div>
</td>
</tr>';
}
]]></add>
</operation>


what i have in default is:


<div align="right" class="smalltext"><a href="#top" onclick="reqWin(\'', $scripturl, '?action=quotefast;quote=', $post['id'], ';sesc=', $context['session_id'], '\', 240, 90);">', $txt[260], '</a></div>
<div style="overflow: auto; width: 100%;">', $post['message'], '</div>



I get blank when i replaced this part manually...
Title: Re: Hide Post
Post by: Leaf on December 04, 2005, 11:21:22 AM
Release v1.0.2 for smf 1.0.5: HidePost1.0.2_smf_1-0-5.zip

There is no way to combine the same feature into one mod because of the changes between smf 1.0.5 and smf 1.1 rc1.
Title: Re: Hide Post
Post by: spaceman on December 04, 2005, 01:01:07 PM
This is actually a great mod.

Is there a demo of this for us to test out prior to installation? (As I need to install mods manually on my third-party theme).

Besides, do members have button options (just like Bold, Italic, Underline etc buttons) while doing this hiding trick? Or do they have to apply the codes themselves?

Anyway thank you for such an innovative mod! :)
Title: Re: Hide Post
Post by: Leaf on December 04, 2005, 04:47:46 PM
Relase version 1.0.2. It adds post permissions to view 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.

Admin can configure the hidden message color from global settings.
Hiding option is available if user clicks on "Additional Options" when posting.

Version 1.0.2 sets all default hiding post permssions during installation:
- 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.
- Admins and moderators can view hidden posts.

Demo picture: http://www.anetcity.com/bbs/index.php?topic=6378.0

Please uninstall any previous version if you want to install this versoin.

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

刚刚发布版本1.0.2, 增加了用户权限限制。加密方法有四种:登录、回复、积分、发贴数。
1.0.2中可以根据用户组来设定是否可以观看加密的贴子。
因为改了数据库内容,需要先反安装旧版本才能安装新版本。
演示: http://www.anetcity.com/bbs/index.php?topic=6378.0
Title: Re: Hide Post
Post by: Leaf on December 04, 2005, 04:54:05 PM
Quote from: spaceman on December 04, 2005, 01:01:07 PM
This is actually a great mod.
Thanks! It takes me more time than I thought to finish it. Hope it help others.

Special thanks to Sheepy for his Mod Creator!!! Without it, I won't be able to create this mod.  ;D

Quote from: spaceman on December 04, 2005, 01:01:07 PM
Is there a demo of this for us to test out prior to installation? (As I need to install mods manually on my third-party theme).
See: http://www.anetcity.com/bbs/index.php?topic=6378.0
I posted a demo picture there.

Quote from: spaceman on December 04, 2005, 01:01:07 PM
Besides, do members have button options (just like Bold, Italic, Underline etc buttons) while doing this hiding trick? Or do they have to apply the codes themselves?
There is no such button in current version. It acts like posting attachments.
You will see the hiding option if you are allowed to hide your posts in the  "Additional Options" of the posting page.
Title: Re: Hide Post
Post by: RoarinRow on December 04, 2005, 05:38:40 PM
Awesome mod Leaf, thank you very much for making available on 1.0.5!   :)
Title: Re: Hide Post
Post by: Synn on December 04, 2005, 06:17:32 PM
Excellent Mod!  :D

Is there any way I can include how many posts the user actually has?
For example:

[Hidden post: You need 10 posts to see it. You currently have 5]
Title: Re: Hide Post
Post by: Leaf on December 04, 2005, 07:02:40 PM
Quote from: Synn on December 04, 2005, 06:17:32 PM
Excellent Mod!  :D

Is there any way I can include how many posts the user actually has?
For example:

[Hidden post: You need 10 posts to see it. You currently have 5]
Updated the mod to show the current posts/karma in hidden message.

You can install the updated version, or just replace some code:

In HidePost.php, search for:
elseif ($message['hiddenOption'] == 3)
{
// Hide by Karma ..... ;;;
$hidden_message = sprintf($txt['hide_karma_msg'], $message['hiddenValue']);
checkUserIsInSpecialGroup();
$message['can_view_post'] |= (checkUserIsInSpecialGroup()) || (isset($user_info['karma']) && ($user_info['karma']['good'] - $user_info['karma']['bad']) >= $message['hiddenValue']);
}
elseif ($message['hiddenOption'] == 4)
{
// Hide by post number .....;;
$hidden_message = sprintf($txt['hide_posts_msg'], $message['hiddenValue']);
$message['can_view_post'] |= (checkUserIsInSpecialGroup()) || (isset($user_info['posts']) && $user_info['posts'] >= $message['hiddenValue']);
}

Replace with:
elseif ($message['hiddenOption'] == 3)
{
// Hide by Karma ..... ;;;
$karma = isset($user_info['karma']) ? ($user_info['karma']['good'] - $user_info['karma']['bad']) : 0;
$hidden_message = sprintf($txt['hide_karma_msg'], $message['hiddenValue'], $karma);
checkUserIsInSpecialGroup();
$message['can_view_post'] |= (checkUserIsInSpecialGroup()) || ($karma >= $message['hiddenValue']);
}
elseif ($message['hiddenOption'] == 4)
{
// Hide by post number .....;;
$posts = isset($user_info['posts']) ? $user_info['posts'] : 0;
$hidden_message = sprintf($txt['hide_posts_msg'], $message['hiddenValue'], $posts);
$message['can_view_post'] |= (checkUserIsInSpecialGroup()) || ($posts >= $message['hiddenValue']);
}


In HidePost.english.php, search for:
$txt['hide_karma_msg'] = '[Hidden post: You need %s karma to see it.]';
$txt['hide_posts_msg'] = '[Hidden post: You need %s posts to see it.]';


Replace with:
$txt['hide_karma_msg'] = '[Hidden post: You need %s karma to see it. You currently have %s.]';
$txt['hide_posts_msg'] = '[Hidden post: You need %s posts to see it. You currently have %s.]';
Title: Re: Hide Post
Post by: guppy on December 04, 2005, 07:19:50 PM
Hi, thanks for the update  ;D Working great!

Cld you explain the following permissions? Quite confused  ::)

View hidden posts
View hidden messages in posts
Title: Re: Hide Post
Post by: Leaf on December 04, 2005, 07:26:06 PM
View hidden posts: If a user has this permission, he will be able to see all hidden posts.
View hidden messages in posts: 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.
Title: Re: Hide Post
Post by: RoarinRow on December 04, 2005, 07:26:31 PM
Quote from: Leaf on December 04, 2005, 07:02:40 PM
Quote from: Synn on December 04, 2005, 06:17:32 PM
Excellent Mod!  :D

Is there any way I can include how many posts the user actually has?
For example:

[Hidden post: You need 10 posts to see it. You currently have 5]
Updated the mod to show the current posts/karma in hidden message.

You can install the updated version, or just replace some code:

In HidePost.php, search for:
elseif ($message['hiddenOption'] == 3)
{
// Hide by Karma ..... ;;;
$hidden_message = sprintf($txt['hide_karma_msg'], $message['hiddenValue']);
checkUserIsInSpecialGroup();
$message['can_view_post'] |= (checkUserIsInSpecialGroup()) || (isset($user_info['karma']) && ($user_info['karma']['good'] - $user_info['karma']['bad']) >= $message['hiddenValue']);
}
elseif ($message['hiddenOption'] == 4)
{
// Hide by post number .....;;
$hidden_message = sprintf($txt['hide_posts_msg'], $message['hiddenValue']);
$message['can_view_post'] |= (checkUserIsInSpecialGroup()) || (isset($user_info['posts']) && $user_info['posts'] >= $message['hiddenValue']);
}

Replace with:
elseif ($message['hiddenOption'] == 3)
{
// Hide by Karma ..... ;;;
$karma = isset($user_info['karma']) ? ($user_info['karma']['good'] - $user_info['karma']['bad']) : 0;
$hidden_message = sprintf($txt['hide_karma_msg'], $message['hiddenValue'], $karma);
checkUserIsInSpecialGroup();
$message['can_view_post'] |= (checkUserIsInSpecialGroup()) || ($karma >= $message['hiddenValue']);
}
elseif ($message['hiddenOption'] == 4)
{
// Hide by post number .....;;
$posts = isset($user_info['posts']) ? $user_info['posts'] : 0;
$hidden_message = sprintf($txt['hide_posts_msg'], $message['hiddenValue'], $posts);
$message['can_view_post'] |= (checkUserIsInSpecialGroup()) || ($posts >= $message['hiddenValue']);
}


In HidePost.english.php, search for:
$txt['hide_karma_msg'] = '[Hidden post: You need %s karma to see it.]';
$txt['hide_posts_msg'] = '[Hidden post: You need %s posts to see it.]';


Replace with:
$txt['hide_karma_msg'] = '[Hidden post: You need %s karma to see it. You currently have %s.]';
$txt['hide_posts_msg'] = '[Hidden post: You need %s posts to see it. You currently have %s.]';


Excellent, thank you! 
Title: Re: Hide Post
Post by: guppy on December 04, 2005, 07:49:46 PM
Quote from: Leaf on December 04, 2005, 07:26:06 PM
View hidden posts: If a user has this permission, he will be able to see all hidden posts.
View hidden messages in posts: 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.

got it! thanks  ;)
Title: Re: Hide Post
Post by: RoarinRow on December 04, 2005, 08:29:55 PM
Would you know how to resolve this error:

8: Undefined index: hidden_value
File: /forum/Themes/default/languages/Post.english.php (eval?)
Line: 433
Title: Re: Hide Post
Post by: Leaf on December 05, 2005, 12:15:29 AM
Do you install the mod manually?

This error means it can not find $context['hidden_value'] in Post.template.php.

Here are the place it is defined:

In Post.php, after line:
      // Check the boxes that should be checked.

There should be:
      $context['hidden_option'] = $row['hiddenOption'];
      $context['hidden_value'] = $row['hiddenValue'];

In Post.php, after line:
      // By default....
      $context['use_smileys'] = true;
      $context['icon'] = 'xx';

There should be:
      $context['hidden_option'] = 0;
      $context['hidden_value'] = 0;

If you still get such error, before this line  in Post.php:

   // Check if it's locked.  It isn't locked if no topic is specified.

Add:
      $context['hidden_option'] = 0;
      $context['hidden_value'] = 0;
Title: Re: Hide Post
Post by: RoarinRow on December 05, 2005, 12:38:05 AM
Quote from: Leaf on December 05, 2005, 12:15:29 AM
Do you install the mod manually?

This error means it can not find $context['hidden_value'] in Post.template.php.

Here are the place it is defined:

In Post.php, after line:
      // Check the boxes that should be checked.

There should be:
      $context['hidden_option'] = $row['hiddenOption'];
      $context['hidden_value'] = $row['hiddenValue'];

In Post.php, after line:
      // By default....
      $context['use_smileys'] = true;
      $context['icon'] = 'xx';

There should be:
      $context['hidden_option'] = 0;
      $context['hidden_value'] = 0;

If you still get such error, before this line  in Post.php:

   // Check if it's locked.  It isn't locked if no topic is specified.

Add:
      $context['hidden_option'] = 0;
      $context['hidden_value'] = 0;


Thank you.  I have all the lines above except these, so I added:

$context['hidden_option'] = 0;
$context['hidden_value'] = 0;

Before this line:

// Check if it's locked.  It isn't locked if no topic is specified.   

I installed via Package Manager.
Title: Re: Hide Post
Post by: RoarinRow on December 05, 2005, 01:15:51 AM
Found one bug.  I did a test where a user was not supposed to see the post until they had 1999 posts, but when the user Replied to the post he was able to see the message.
Title: Re: Hide Post
Post by: RoarinRow on December 05, 2005, 02:46:11 AM
Sorry found one other bug.  When a certain Karma number is indicated it will say for example, you need 6 Karma to view message and you have zero.  But in reality, the user reading message had 22 Karma, not zero.
Title: Re: Hide Post
Post by: guppy on December 05, 2005, 10:55:44 AM
And also a search will still show the hidden posts in the results.

(But I'm just hiding links so I don't need a solution  :P)
Title: Re: Hide Post
Post by: Leaf on December 05, 2005, 11:15:33 AM
Quote from: RoarinRow on December 05, 2005, 02:46:11 AM
Sorry found one other bug.  When a certain Karma number is indicated it will say for example, you need 6 Karma to view message and you have zero.  But in reality, the user reading message had 22 Karma, not zero.
Sorry, copy/paste error. I fixed it and uploaded new zip files.

To fix it, in Load.php search for:

      'karma' => array(
         'good' => isset($user_settings['karmaGood']) ? $user_settings['karmaGood'] : 0,
         'bad' => isset($user_settings['karmaGood']) ? $user_settings['karmaGood'] : 0,
      ),

Replace with:
      'karma' => array(
         'good' => isset($user_settings['karmaGood']) ? $user_settings['karmaGood'] : 0,
         'bad' => isset($user_settings['karmaBad']) ? $user_settings['karmaBad'] : 0,
      ),

Quote from: RoarinRow on December 05, 2005, 01:15:51 AM
Found one bug.  I did a test where a user was not supposed to see the post until they had 1999 posts, but when the user Replied to the post he was able to see the message.
I tested and posts worked fine for me.

There is a hiding threshold in global settings with a default value of 500. If you want to use a value more than that, you need to change this global setting first. When saving a post, if the hidden value is greater than this threshold, it is set to the threshold.

Another thing, Admins, Global Moderators can always see hidden posts anywhere. Moderators can see posts in his board. User can see his own posts. Please check to that user's groups, too.

Quote from: iwyen on December 05, 2005, 10:55:44 AM
And also a search will still show the hidden posts in the results.

(But I'm just hiding links so I don't need a solution  :P)
Anyway, search only shows partial results. Originally, I added hidden post in search, but removed it for performance issue.
Title: Re: Hide Post
Post by: Sheepy on December 05, 2005, 12:38:55 PM
Quote from: Leaf on December 04, 2005, 11:21:22 AM
There is no way to combine the same feature into one mod because of the changes between smf 1.0.5 and smf 1.1 rc1.
There's actually a way.  In package-info.xml you can specify smf version for install, uninstall, and upgrade.  I think my More HTML Tags is one that install different things for different SMF version.
Title: Re: Hide Post
Post by: Leaf on December 05, 2005, 01:37:09 PM
Release version 1.0.3:
- Fix some bugs
- Integrate two versions into one mod
Title: Re: Hide Post
Post by: RoarinRow on December 05, 2005, 03:45:09 PM
Quote from: Leaf on December 05, 2005, 01:37:09 PM
Release version 1.0.3:
- Fix some bugs
- Integrate two versions into one mod

Thank you, I just installed the new version.   ;)
Title: Re: Hide Post
Post by: RoarinRow on December 05, 2005, 03:55:45 PM
I am getting a new message:

2: PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "en".
File: /forum/Sources/Subs-Post.php
Line: 838
Title: Re: Hide Post
Post by: Phantom_man on December 05, 2005, 04:38:18 PM
Quote from: Leaf on November 30, 2005, 10:49:38 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=228)

Languages supported: English, Simplified Chinese (GB2312 & UTF-8)


Hi

In Spanish for when?
Or single habra for those two languages

Thanks, good work

Salu2
Title: Re: Hide Post
Post by: Leaf on December 05, 2005, 06:36:44 PM
Quote from: Phantom_man on December 05, 2005, 04:38:18 PM
In Spanish for when?
Sorry, I only know English and Chinese. You can create Spanish translation by yourself if you know English. Just copy HidePost.english.php, tanslate all strings in it and name it with Spanish like your other Spanish files. The same method works for all other languages.

Quote from: RoarinRow on December 05, 2005, 03:55:45 PM
I am getting a new message:

2: PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "en".
File: /forum/Sources/Subs-Post.php
Line: 838
Sorry, I didn't check for spell check. Let me debug it.
Title: Re: Hide Post
Post by: RoarinRow on December 05, 2005, 06:38:05 PM
Quote from: Leaf on December 05, 2005, 06:36:44 PM
Quote from: Phantom_man on December 05, 2005, 04:38:18 PM
In Spanish for when?
Sorry, I only knows English and Chinese. You can create Spanish translation by yourself if you know English. Just copy HidePost.english.php, tanslate all strings in it and name it with Spanish like your other Spanish files. The same method works for all other languages.

Quote from: RoarinRow on December 05, 2005, 03:55:45 PM
I am getting a new message:

2: PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "en".
File: /forum/Sources/Subs-Post.php
Line: 838
Sorry, I didn't check for spell check. Let me debug it.

Thank you until it's resolve no one can spell check.  Appreciate it.
Title: Re: Hide Post
Post by: Aly on December 05, 2005, 09:44:38 PM
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.

Oh! thank you! Yeah i looked for the stuff you said before... and it had been exactly as you said it should be but the mod still wouldn't install... i shall redownload and try installing again ^-^
Thank you so much for your hard work ;D
辛苦你了! ^-^
Title: Re: Hide Post
Post by: Leaf on December 05, 2005, 10:47:50 PM
Quote from: RoarinRow on December 05, 2005, 03:55:45 PM
I am getting a new message:

2: PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "en".
File: /forum/Sources/Subs-Post.php
Line: 838
Tested with a server that can do spell check. No problem to do spell check after installing my mod.
My mod desn't change spell check part. You get the error because your server lacks some spell check file for english, which has nothing to do with smf or my mod.
For more information about pspell, see: http://aspell.sourceforge.net/
Title: Re: Hide Post
Post by: Leaf on December 05, 2005, 10:50:46 PM
Quote from: Aly on December 05, 2005, 09:44:38 PM
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.

Oh! thank you! Yeah i looked for the stuff you said before... and it had been exactly as you said it should be but the mod still wouldn't install... i shall redownload and try installing again ^-^
Thank you so much for your hard work ;D
辛苦你了! ^-^

Pleaase install 1.0.3. There are major changes in version 1.0.2. Also, some important bug fixes in 1.0.3.
Title: Re: Hide Post
Post by: RoarinRow on December 05, 2005, 10:52:05 PM
Quote from: Leaf on December 05, 2005, 10:47:50 PM
Quote from: RoarinRow on December 05, 2005, 03:55:45 PM
I am getting a new message:

2: PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "en".
File: /forum/Sources/Subs-Post.php
Line: 838
Tested with a server that can do spell check. No problem to do spell check after installing my mod.
My mod desn't change spell check part. You get the error because your server lacks some spell check file for english, which has nothing to do with smf or my mod.
For more information about pspell, see: http://aspell.sourceforge.net/

I checked that site that you referenced above and I could not see anything too useful there.  Yahoo is hosting my site so I can not just install something and reboot the server.

This is just coincidence that this occured after I uninstalled 1.0.2 of your mod and installed 1.0.3.  My spell check was working great before this.  
Title: Re: Hide Post
Post by: Leaf on December 05, 2005, 11:00:42 PM
QuoteThe latest version of GNU Aspell is 0.60.4. You can find it at ftp.gnu.org:/gnu/aspell or at a GNU mirror site. You will also need to download at least one dictionary which can be found at the same location.

If you are looking for Aspell 0.33.7, Pspell, or dictionaries for Aspell 0.33.7 go here.
You see, it says that it needs language file for spell check.

Are you using smf 1.0.5? Do you get warnings when you uninstall 1.0.2 and install 1.0.3?
Title: Re: Hide Post
Post by: RoarinRow on December 05, 2005, 11:08:03 PM
Quote from: Leaf on December 05, 2005, 11:00:42 PM
QuoteThe latest version of GNU Aspell is 0.60.4. You can find it at ftp.gnu.org:/gnu/aspell or at a GNU mirror site. You will also need to download at least one dictionary which can be found at the same location.

If you are looking for Aspell 0.33.7, Pspell, or dictionaries for Aspell 0.33.7 go here.
You see, it says that it needs language file for spell check.

Are you using smf 1.0.5? Do you get warnings when you uninstall 1.0.2 and install 1.0.3?

Yes I am running smf 1.0.5.  No warning when I installed/uninstalled and I've done it serval times already.

I didn't installed the dictionary files since it was already part of the server's function. 
Title: Re: Hide Post
Post by: Leaf on December 05, 2005, 11:13:28 PM
Yes, the dictionary files are part of server php functions.

I just install 1.0.2, remove it and install 1.0.3 on smf 1.0.5. No problem to do spell check.

I tested that on a server hosted by an outside ISP. It is not my own and I cannot change the server settings, either.

I will pm you a test account. Please check in my test site and try to see if you can reproduce the problem.
Title: Re: Hide Post
Post by: RoarinRow on December 05, 2005, 11:38:52 PM
Quote from: Leaf on December 05, 2005, 11:13:28 PM
Yes, the dictionary files are part of server php functions.

I just install 1.0.2, remove it and install 1.0.3 on smf 1.0.5. No problem to do spell check.

I tested that on a server hosted by an outside ISP. It is not my own and I cannot change the server settings, either.

I will pm you a test account. Please check in my test site and try to see if you can reproduce the problem.

I'm on the site now.  I'll let you know what I find in a few minutes.
Title: Re: Hide Post
Post by: RoarinRow on December 05, 2005, 11:44:56 PM
Quote from: RoarinRow on December 05, 2005, 11:38:52 PM
Quote from: Leaf on December 05, 2005, 11:13:28 PM
Yes, the dictionary files are part of server php functions.

I just install 1.0.2, remove it and install 1.0.3 on smf 1.0.5. No problem to do spell check.

I tested that on a server hosted by an outside ISP. It is not my own and I cannot change the server settings, either.

I will pm you a test account. Please check in my test site and try to see if you can reproduce the problem.

I'm on the site now.  I'll let you know what I find in a few minutes.

I was unable to replicate the problem.  Thanks for letting me try out on your server.  Not sure what the problem could be, no other mod was installed with yours.  Can't believe that the languange file, i.e. spell check, could be deleted. 
Title: Re: Hide Post
Post by: Leaf on December 06, 2005, 12:19:03 AM
Do you backup your bbs before you install new mods? You can restore your backup copy to see if you can do spell check.

If you don't have a backup, you can install a test bbs in  a different directory on your website and test from there.
Title: Re: Hide Post
Post by: Leaf on December 06, 2005, 12:20:53 AM
Another note, if you are familiar with installing mod manually, you can compare the files to see if the changes are correct as they should be in mod.
Title: Re: Hide Post
Post by: RoarinRow on December 06, 2005, 12:41:17 AM
Quote from: Leaf on December 06, 2005, 12:19:03 AM
Do you backup your bbs before you install new mods? You can restore your backup copy to see if you can do spell check.

If you don't have a backup, you can install a test bbs in  a different directory on your website and test from there.

I did do a backup two days before.  Since then there have been two many posts to go back and recover from that point.  My server logs shows what changes were changed and I could do a restore of just the individual files.

I can also check the files manually as well.

Before I do that, however, I will wait for my host to get back to me on their end about the language file install/files.

Thanks.
Title: Re: Hide Post
Post by: Leaf on December 06, 2005, 09:33:44 AM
When I say backup files, I mean bbs source files, not the db in MySQL.

It is a good practice to backup all your source files in your bbs directory before you install any mod. Usually, a mod will change files in Sources and/or Themes directory. At lease backup files in these two directories.

Or, if you configure a bbs on your local machine for test purpose, you can install and test a mod on bbs in your local machine to make sure everything working fine before you apply it to your actual forum.
Title: Re: Hide Post
Post by: RoarinRow on December 06, 2005, 09:44:08 AM
Quote from: Leaf on December 06, 2005, 09:33:44 AM
When I say backup files, I mean bbs source files, not the db in MySQL.

It is a good practice to backup all your source files in your bbs directory before you install any mod. Usually, a mod will change files in Sources and/or Themes directory. At lease backup files in these two directories.

Or, if you configure a bbs on your local machine for test purpose, you can install and test a mod on bbs in your local machine to make sure everything working fine before you apply it to your actual forum.

My web hosts takes snap shots of all files and keeps originals of all modified files.  I could take a recover from the individual files themselves.  Not sure which one impacts the dictionary that it's looking for or what path it is looking in Subs-Post.php.

I thinking it would be good to have a test environment of some kind. 
Title: Re: Hide Post
Post by: spaceman on December 07, 2005, 07:46:07 AM
Hello,

Well everytime I try to load install.php manually it gives me this error:

QuoteFatal error: Call to undefined function: db_query() in /[snipped]/forum/Packages/install.php on line 7

This happens to any other mod I tried to install manually. Is there anything I need to take notice when loading install.php which insert additional queries into Mysql database? Or did I execute the install.php file from the wrong directory?

For inserting manually through phpMyAdmin I do not know how to manage these in install.php:

Quote// Build group list
$result = db_query("SELECT ID_GROUP FROM {$db_prefix}membergroups WHERE minPosts < 0", __FILE__, __LINE__);
if (!$result) die("Cannot load group id");
$len = mysql_num_rows($result);
$groups = array(0); // Don't include guest
for ($i = 0; $i < $len; $i++) {
  $row = mysql_fetch_row($result);
  if ($row[0] == 1) continue; // Skip admins
  $groups[] = $row[0];
}
mysql_free_result($result);

// Build special board list
$result = db_query("SELECT DISTINCT ID_BOARD FROM {$db_prefix}board_permissions WHERE ID_BOARD > 0", __FILE__, __LINE__);
if (!$result) die("Cannot load board permission");
$len = mysql_num_rows($result);
$boards = array(0);  // Include global permission
for ($i = 0; $i < $len; $i++) {
  $row = mysql_fetch_row($result);
  $boards[] = $row[0];
}
mysql_free_result($result);

// Build & execute add permission query
$permission = "INSERT IGNORE INTO {$db_prefix}board_permissions (ID_GROUP, ID_BOARD, permission, addDeny) VALUES
";
foreach ($groups as $g)
  foreach ($boards as $b) {
    $permission .= "($g,$b,'hide_post_own',1),($g,$b,'hide_post_any',1),($g,$b,'view_hidden_msg',1),";
  }
.
.
.

Please help me. Thank you very much!
Title: Re: Hide Post
Post by: spaceman on December 07, 2005, 09:37:29 AM
Oh well, upon trial and error I manage to insert the queries into my database :)

Question:
I have setup the forum to preview message on mouseover on topic titles (Topic Listing) using Alt="" method. Upon installation of this mod I notice guests or unqualified viewers are still manage to preview the last hidden post. I think it's enabled on purpose?
Title: Re: Hide Post
Post by: Leaf on December 07, 2005, 11:33:02 AM
QuoteWell everytime I try to load install.php manually it gives me this error:

The install.php needs to be run on forum. db_query() is a wapper function in smf. If you want to install db manually, you can package install.php in a simple mod and run it. This simple mod is a zip file of three files: package-info.xml, install.php & uninstall.php. The content of the package-info.xml will be similiar to this:

<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<name>HidePost - Update Database Only</name>
<id>XiaoqingZhou:HidePostDb</id>
<type>modification</type>
<version>1.0</version>
<install>
<code type="file">install.php</code>
</install>
<uninstall>
<code type="file">uninstall.php</code>
</uninstall>
</package-info>


If you only want to install and don't need uninstall, you can remove the uninstall part from the package-info.xml and just zip install.php with package-info.xml.

Quote from: spaceman on December 07, 2005, 09:37:29 AM
I have setup the forum to preview message on mouseover on topic titles (Topic Listing) using Alt="" method. Upon installation of this mod I notice guests or unqualified viewers are still manage to preview the last hidden post. I think it's enabled on purpose?
Search & the lastest post are not checked by default. If you want, you can add by yourself. ;D
Title: Re: Hide Post
Post by: spaceman on December 07, 2005, 11:51:55 PM
Thanks!! Got it working like a charm now!!

I'll try to check "Search & the lastest post" (I assume it's in admin)?

Anyway this is a brilliant mod!! :D
Title: Re: Hide Post
Post by: Leaf on December 08, 2005, 10:55:14 AM
Quote from: spaceman on December 07, 2005, 11:51:55 PM
I'll try to check "Search & the lastest post" (I assume it's in admin)?
They are not supported in the current version. No options in admin.
Title: Re: Hide Post
Post by: guppy on December 08, 2005, 09:12:45 PM
I'm using a custom theme. May I ask if there are any changes made to the template files for upgrade from 1.0.2 to 1.0.3?
Title: Re: Hide Post
Post by: Leaf on December 08, 2005, 10:41:16 PM
No changes in template files from 1.0.2 to 1.0.3.
Title: Re: Hide Post
Post by: sendoh23 on December 10, 2005, 02:54:50 AM
very useful mod....gd job there yo :D
more functions can be added...example integrete with points system ..jus a suggestion
Title: Re: Hide Post
Post by: NTA on December 10, 2005, 10:57:11 PM
This Mod not compatible with PHP 5  :) please fix this.

I have this error :

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in c:\AppServ\www\smf\Sources\Display.php on line 731
Title: Re: Hide Post
Post by: Leaf on December 13, 2005, 11:04:12 PM
Release version 1.0.4:
- Remove call by reference to be compatible with PHP 5
- Support SMF 1.1 beta 3 public

Upgradable from 1.0.3 to 1.0.4. Data in database will remain the same during upgrade.
Title: Re: Hide Post
Post by: Aly on December 14, 2005, 03:03:50 PM
Is there a way that we can also be able to rename 'karma' to whatever we've renamed out system to? My memebers are a bit confused because we call the karma 'tokens' but when they use the hide post mod... it says 'karma'.

I tried to attempt to alter it myself... cause i found where to do it... but i ended up screwing up my forum and had to reinstall xD
Title: Re: Hide Post
Post by: Leaf on December 14, 2005, 04:43:18 PM
You can change the following strings in HidePost.english.php:
$txt['hide_karma'] = 'karma';
$txt['hide_karma_msg'] = '[Hidden post: You need %s karma to see it. You currently have %s.]';

Just rename 'karma' to the word you use like this:
$txt['hide_karma'] = 'token';
$txt['hide_karma_msg'] = '[Hidden post: You need %s tokens to see it. You currently have %s.]';
Title: Re: Hide Post
Post by: Aly on December 15, 2005, 09:47:20 PM
^hmm that's where i thought i needed to edit... it didnt work out the last time i tried... but maybe i took something out that i shouldn't have >_<

Anyway, it worked this time around though... thank you again leaf ^^
Title: Re: Hide Post
Post by: JackRyan on December 16, 2005, 01:24:06 PM
Hey Leaf, I'm curious, is it possible to set this hack up so that Admins and G-Mods can't view the hidden post?

I was hoping to use the hack for trivia games and acronym games etc, but it won't work if the staff can view the posts without replying first.
Title: Re: Hide Post
Post by: Leaf on December 16, 2005, 03:31:24 PM
There is a way to disable G-Mods and moderators if you change some logic in the code. Replace two functions in HidePost.php with the following:


// Check whether the user has replied to the current topic.
function checkUserRepliedToTopic($topic)
{
  global $user_info, $board_info, $context, $db_prefix, $ID_MEMBER;
 
// Find if there a post from you in this thread!!!
if (!$user_info['is_guest'])
{
// Skip check if no topic, and allow global moderators.
if (empty($topic)) {
      $context['user_post_avaible'] = 1;
      return $context['user_post_avaible'];
}
   
$request = db_query("
SELECT ID_MSG, ID_MEMBER
FROM {$db_prefix}messages
WHERE ID_TOPIC = $topic AND ID_MEMBER = $ID_MEMBER
LIMIT 1", __FILE__, __LINE__);

if (mysql_num_rows($request)) $context['user_post_avaible'] = 1;
else $context['user_post_avaible'] = 0;
mysql_free_result($request);
}
else $context['user_post_avaible'] = 0; //Anyway no way you should see it!

return $context['user_post_avaible'];
}

// Check for hidden posts. Show hidden message if needed.
function getHiddenMessage($disable_hidden_msg_color = 0)
{
global $modSettings, $context, $user_info, $ID_MEMBER, $txt;

$message = $context['current_message'];

// Did this user post this message?
$user_own = isset($message['ID_MEMBER']) && $ID_MEMBER == $message['ID_MEMBER'] && !$user_info['is_guest'];

// Some contexts for hiding posts ... ;)
$context['can_view_post'] = $user_own || allowedTo('view_hidden_post', array($message['ID_BOARD']));
$message['hiddenOption'] = (int) $message['hiddenOption'];
$message['hiddenValue'] = (int) $message['hiddenValue'];

// Hiding posts ? ..... Haha....Check here.....
if (!empty($modSettings['allow_hiddenPost']) && !empty($message['hiddenOption']) && isset($message['hiddenValue']))
{
$hidden_message = '';
// Check each hiding criteria..... ;)
if ($message['hiddenOption'] == 1)
{
// Hide by login ....;;;;
$hidden_message = $txt['hide_login_msg'];
$context['can_view_post'] |= !$user_info['is_guest'];
}
elseif ($message['hiddenOption'] == 2)
{
// Hide by reply ....... ;
$hidden_message = $txt['hide_reply_msg'];
$context['can_view_post'] |= checkUserRepliedToTopic($message['ID_TOPIC']);
}
elseif ($message['hiddenOption'] == 3)
{
// Hide by Karma ..... ;;;
$karma = isset($user_info['karma']) ? ($user_info['karma']['good'] - $user_info['karma']['bad']) : 0;
$hidden_message = sprintf($txt['hide_karma_msg'], $message['hiddenValue'], $karma);
checkUserIsInSpecialGroup();
$context['can_view_post'] |= ($karma >= $message['hiddenValue']);
}
elseif ($message['hiddenOption'] == 4)
{
// Hide by post number .....;;
$posts = isset($user_info['posts']) ? $user_info['posts'] : 0;
$hidden_message = sprintf($txt['hide_posts_msg'], $message['hiddenValue'], $posts);
$context['can_view_post'] |= ($posts >= $message['hiddenValue']);
}
else
{
// Normal posts. Anyone can see it. ;)
$context['can_view_post'] = 1;
}

if ($hidden_message != '') {
// Get final hiding message here.... ;;;;
$show_hidden_msg = !empty($modSettings['show_hiddenMessage']) || allowedTo('view_hidden_msg');
$show_hidden_msg_in_color = empty($disable_hidden_msg_color) && !empty($modSettings['show_hiddenColor']);
$hidden_message = $show_hidden_msg_in_color ? ('[color=' . $modSettings['show_hiddenColor'] . ']' . $hidden_message . '[/color]') : $hidden_message;
$message['body'] = !empty($context['can_view_post']) ? (empty($show_hidden_msg) ? $message['body'] : $hidden_message . '<br /><br />' . $message['body']) : $hidden_message;
}
else {
// Normal posts!!!.Anyone can see it. ;)
$context['can_view_post'] = 1;
}
}
else
{
// Normal posts!!! Of course, anyone can see it.
$context['can_view_post'] = 1;
}

return $message['body'];
}


The above changes still use the hidden post permission ('view_hidden_post'). You need set the correct permission for each group. By default, Admins have full permissions on smf forum. So, Admins still can view hidden posts.

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

In addition to the above changes, you can force Admins to reply to hidden post by ignore the view hidden post permission. Search for this line in above code:

   $context['can_view_post'] = $user_own || allowedTo('view_hidden_post', array($message['ID_BOARD']));

Replace with:

   $context['can_view_post'] = $user_own;

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

NOTE: These changes are customized for your needs and will not be supported in future version.
Title: Re: Hide Post
Post by: joeblow1102 on December 19, 2005, 11:04:47 PM
i hid one of my posts by login and it works great.  i tried viewing it as a guest and it didn't work.  said i had to login.  but then i logged in under my name and it said i had to login, but it showed the message as well.  is this a known problem, or just one with my board?
Title: Re: Hide Post
Post by: kicon on December 20, 2005, 07:14:21 PM
iam new. please help me out for installation. when i do the install the script. it said:

Fatal error: Call to undefined function: db_query() in /home/gamedep/public_html/test/install.php on line 7

how could i solve this problem? do i need the previous version for it?
Title: Re: Hide Post
Post by: Leaf on December 21, 2005, 09:42:54 PM
Quote from: joeblow1102 on December 19, 2005, 11:04:47 PM
i hid one of my posts by login and it works great.  i tried viewing it as a guest and it didn't work.  said i had to login.  but then i logged in under my name and it said i had to login, but it showed the message as well.  is this a known problem, or just one with my board?
It is designed this way to let users know that it is a hidden post. You can turn off the message by unchecking the option "Enable viewing hidden messages if user can see the posts" and also turn off the permssion "View hidden messages in posts".
Title: Re: Hide Post
Post by: Leaf on December 21, 2005, 09:48:40 PM
Quote from: kicon on December 20, 2005, 07:14:21 PM
iam new. please help me out for installation. when i do the install the script. it said:

Fatal error: Call to undefined function: db_query() in /home/gamedep/public_html/test/install.php on line 7

how could i solve this problem? do i need the previous version for it?

You don't need a previous version. db_query() is a function supported by smf forum and you need to run the install from package manager in smf. If you do want to manually install this mod, you can check one of the messages I posted before which describes how to install the db only. The message is:

http://www.simplemachines.org/community/index.php?topic=58833.msg414109#msg414109
Title: Re: Hide Post
Post by: joeblow1102 on December 22, 2005, 04:16:04 PM
Quote from: Leaf on December 21, 2005, 09:42:54 PM
Quote from: joeblow1102 on December 19, 2005, 11:04:47 PM
i hid one of my posts by login and it works great.  i tried viewing it as a guest and it didn't work.  said i had to login.  but then i logged in under my name and it said i had to login, but it showed the message as well.  is this a known problem, or just one with my board?
It is designed this way to let users know that it is a hidden post. You can turn off the message by unchecking the option "Enable viewing hidden messages if user can see the posts" and also turn off the permssion "View hidden messages in posts".

oh thanks this works and btw, this is a great mod.
Title: Re: Hide Post
Post by: fiver on December 23, 2005, 09:55:31 PM
Hi, I installed Hide Post through the Admin > Packages.
My system is SMF1.1RC1, server using PHP4.3.11 and MySQL 4.0.25-standard

After installing and logout, as a guest view, the header was ok, but the body has an error message. The forum error log shows:

QuoteGuest     December 23, 2005, 10:55:09 PM    
http://www.fivearts.net/index.php

Database Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')
AND bp.ID_BOARD = IF(b.permission_mode = 1, b.ID_BOARD, 0)
File: /...../Sources/Security.php
Line: 765

I uninstalled it, again through Admin>Packages, there is also an error message. Forum error log shows:

QuoteDatabase Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'IGNORE FROM smf_settings
WHERE `variable` LIKE 'allow_hid
File: /....../Packages/temp/uninstall.php
Line: 20

and in Admin>Packages>Installed Packages, it still shows that Hide Post is installed

QuoteView and Remove Installed Packages   
Mod Name   Version      
1.   Hide Post   1.0.4   [ Uninstall ]   

[ Delete Mod List ]

I would eagerly like to use this MOD... very much appreciate your help.

Merry Chrismas.
:D
Title: Re: Hide Post
Post by: tuga on December 25, 2005, 11:16:00 AM
i use the version 1.0.3 on RC1 and when i try upgrade to 1.0.4 give me error like that one

1. Execute Modification ./Sources/Display.php Test successful
2. Execute Modification ./Sources/Load.php Test successful
3. Execute Modification ./Sources/ManagePermissions.php Test successful
4. Execute Modification ./Sources/ModSettings.php Test successful
5. Execute Modification ./Sources/Post.php Test successful
6. Execute Modification ./Sources/Printpage.php Test successful
7. Execute Modification ./Sources/Profile.php Test successful
8. Execute Modification ./Sources/Recent.php Test successful
9. Execute Modification ./Sources/Subs-Post.php Test successful
10. Execute Modification ./Themes/default/Display.template.php Test successful
11. Execute Modification ./Themes/default/Post.template.php Test successful
12. Execute Modification ./Themes/default/Profile.template.php Test successful
13. Execute Modification ./Themes/default/Recent.template.php Test successful
14. Execute Modification ./Sources/Display.php Test failed  
15. Execute Modification ./Sources/Load.php Test successful
16. Execute Modification ./Sources/ManagePermissions.php Test successful
17. Execute Modification ./Sources/ModSettings.php Test successful
18. Execute Modification ./Sources/Post.php Test successful
19. Execute Modification ./Sources/Printpage.php Test successful
20. Execute Modification ./Sources/Profile.php Test successful
21. Execute Modification ./Sources/Recent.php Test successful
22. Execute Modification ./Sources/Security.php Test successful
23. Execute Modification ./Sources/Subs-Post.php Test successful
24. Execute Modification ./Themes/default/Display.template.php Test successful
25. Execute Modification ./Themes/default/Post.template.php Test failed  
26. Execute Modification ./Themes/default/Profile.template.php Test successful
27. Execute Modification ./Themes/default/Recent.template.php Test successful
28. Extract Tree .//Sources

what i need to do? for fix this?

Title: Re: Hide Post
Post by: tuga on December 25, 2005, 11:17:22 AM
what i need to do for hide for example links but leave free the text? in same post
Title: Re: Hide Post
Post by: tuga on December 26, 2005, 04:43:13 PM
Quote from: tuga on December 25, 2005, 11:17:22 AM
what i need to do for hide for example links but leave free the text? in same post

can anyone help me with this, how can hide only the links and leave free the text and pictures
Title: Re: Hide Post
Post by: guppy on December 27, 2005, 12:00:55 AM
that's not a feature of this mod, tho' it wld be nice to have it  ;)
Title: Re: Hide Post
Post by: kicon on December 27, 2005, 03:37:53 PM
big problem for installation. i have alot of things i dont get. i need installation instruction for smfl ver1.05 with hidepost.

which directory of the smfl package ver1.05 should i upload the hidepost?
how do i install the smfl ver 1.05 together with the hidepost?
there are 2 install.php one from the smfl package and other from the hidepost. i know how to install the smfl package but when i install the hidepost it said:

Fatal error: Call to undefined function: db_query() in /home/gamedep/public_html/forum/install.php on line 7

please give me instruction step by step.thanks

Title: Re: Hide Post
Post by: Leaf on December 28, 2005, 10:34:49 AM
Quote from: kicon on December 27, 2005, 03:37:53 PM
big problem for installation. i have alot of things i dont get. i need installation instruction for smfl ver1.05 with hidepost.

which directory of the smfl package ver1.05 should i upload the hidepost?
how do i install the smfl ver 1.05 together with the hidepost?
there are 2 install.php one from the smfl package and other from the hidepost. i know how to install the smfl package but when i install the hidepost it said:

Fatal error: Call to undefined function: db_query() in /home/gamedep/public_html/forum/install.php on line 7

please give me instruction step by step.thanks


SMF 1.0.5 can be installed by running install.php directly. However, mods like HidePost shall be installed through package manager in smf. You can find package manager from admin panel: Admin->Forum Controls->PackageManager.
Title: Re: Hide Post
Post by: Leaf on December 28, 2005, 11:02:00 AM
Quote from: tuga on December 25, 2005, 11:16:00 AM
i use the version 1.0.3 on RC1 and when i try upgrade to 1.0.4 give me error like that one

14. Execute Modification ./Sources/Display.php Test failed  
25. Execute Modification ./Themes/default/Post.template.php Test failed  

what i need to do? for fix this?
That's because these two files have been changed by other mods or by yourself since you installed HidePost 1.0.3. You can apply the changes for these two files manually.
Title: Re: Hide Post
Post by: tuga on December 28, 2005, 11:14:26 AM
Quote from: Leaf on December 28, 2005, 11:02:00 AM
Quote from: tuga on December 25, 2005, 11:16:00 AM
i use the version 1.0.3 on RC1 and when i try upgrade to 1.0.4 give me error like that one

14. Execute Modification ./Sources/Display.php Test failed  
25. Execute Modification ./Themes/default/Post.template.php Test failed  

what i need to do? for fix this?
That's because these two files have been changed by other mods or by yourself since you installed HidePost 1.0.3. You can apply the changes for these two files manually.

how? can you tell me what i need add for upgrade to 1.0.4

thx
Title: Re: Hide Post
Post by: Leaf on December 28, 2005, 11:48:55 AM
Quote from: fivearts on December 23, 2005, 09:55:31 PM
Hi, I installed Hide Post through the Admin > Packages.
My system is SMF1.1RC1, server using PHP4.3.11 and MySQL 4.0.25-standard

After installing and logout, as a guest view, the header was ok, but the body has an error message. The forum error log shows:

QuoteGuest     December 23, 2005, 10:55:09 PM    
http://www.fivearts.net/index.php

Database Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')
AND bp.ID_BOARD = IF(b.permission_mode = 1, b.ID_BOARD, 0)
File: /...../Sources/Security.php
Line: 765

I uninstalled it, again through Admin>Packages, there is also an error message. Forum error log shows:

QuoteDatabase Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'IGNORE FROM smf_settings
WHERE `variable` LIKE 'allow_hid
File: /....../Packages/temp/uninstall.php
Line: 20

and in Admin>Packages>Installed Packages, it still shows that Hide Post is installed

QuoteView and Remove Installed Packages   
Mod Name   Version      
1.   Hide Post   1.0.4   [ Uninstall ]   

[ Delete Mod List ]

I would eagerly like to use this MOD... very much appreciate your help.

Merry Chrismas.
:D

It seems like a database issue because of different db version. MySQL 4.0.25 is a quite old version. The most important db changes are:

ALTER TABLE `smf_messages` ADD `hiddenOption` TINYINT( 4 ) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `smf_messages` Add `hiddenValue` MEDIUMINT( 8 ) UNSIGNED NOT NULL DEFAULT '0';

You can execute these two commands in phpmyadmin. For other db changes, you can set the correct values from admin panel.
Title: Re: Hide Post
Post by: Leaf on December 28, 2005, 12:06:46 PM
Quote from: tuga on December 28, 2005, 11:14:26 AM
how? can you tell me what i need add for upgrade to 1.0.4

thx
1. Upgrade to 1.0.4.

2. In Display.php:

Search for:
            hiddenOption, hiddenValue,
Replace with:
            hiddenOption, hiddenValue, ID_BOARD,

Search for:
      $message['body'] = getHiddenMessage(&$message, $topic);
Replace with:
      $message['ID_TOPIC'] = $topic;
      $context['current_message'] = $message;
      $message['body'] = getHiddenMessage();
      $message['can_view_post'] = $context['can_view_post'];

3. Changes in Post.template.php are the same as in 1.0.3.
Title: Re: Hide Post
Post by: cH40z-Lord on December 28, 2005, 08:59:42 PM
I'm getting this error

Quote from: ErrorAn Error Has Occurred!
2: fopen(): SAFE MODE Restriction in effect. The script whose uid is 4212 is not allowed to access /hp/aa/ad/dm/www/board/Packages/temp owned by uid 33
File: /hp/aa/ad/dm/www/board/Sources/Subs-Package.php
Line: 1476

What can I do ?

[ I've got SMF 1.0.5 ]
Title: Re: Hide Post
Post by: fiver on December 29, 2005, 07:09:40 AM
Hi Leaf,

Thanks for the reply.

I have made the changes in MySQL for:

ALTER TABLE `smf_messages` ADD `hiddenOption` TINYINT( 4 ) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `smf_messages` Add `hiddenValue` MEDIUMINT( 8 ) UNSIGNED NOT NULL DEFAULT '0';

Then I reinstall Hide Posts. When I logout, viewing as a guest, all the boards are missing which I think the index page was replaced by error message page:

QuoteDatabase Error
Please try again. If you come back to this error screen, report the error to an administrator.

When I login again, the board seems normal again.

So I uninstall it and get error message:

QuoteDatabase Error
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'IGNORE FROM smf_settings
WHERE `variable` LIKE 'allow_hid
File: /......../Packages/temp/uninstall.php
Line: 20

Under Installed Packages, it still list Hide Posts as Installed.

What can I do?

cheers,
:D
Title: Re: Hide Post
Post by: kicon on January 02, 2006, 01:03:22 AM
hey! leaf

i installed the hide post version 1.04 to my smf 1.05. i did check allow to HIDE POST , VIEW HIDDEN POST AND VIEW HIDDEN MASSAGE of the permission under manage board section. and i also check ENABLE HIDDEN POSTS AND HIDDEN MASSAGES of the features and options section in the admin.

i login by admin account and test the post but there is nothing allow me to use hidden option under the ADDETIONAL OPTIONS when i do the post. i dont know what wrong with this. do i miss any other checking? or some problems with hide post.

and where do i dl the hide post version 1.05?


Title: Re: Hide Post
Post by: Leaf on January 02, 2006, 12:57:50 PM
Quote from: kicon on January 02, 2006, 01:03:22 AM
hey! leaf

i installed the hide post version 1.04 to my smf 1.05. i did check allow to HIDE POST , VIEW HIDDEN POST AND VIEW HIDDEN MASSAGE of the permission under manage board section. and i also check ENABLE HIDDEN POSTS AND HIDDEN MASSAGES of the features and options section in the admin.

i login by admin account and test the post but there is nothing allow me to use hidden option under the ADDETIONAL OPTIONS when i do the post. i dont know what wrong with this. do i miss any other checking? or some problems with hide post.

and where do i dl the hide post version 1.05?
Enable Hide Posts permissions for "own post" and "any post" for each group you want them to be able to hide posts. If you have board permssions, enable them there too.
Title: Re: Hide Post
Post by: Leaf on January 02, 2006, 01:01:02 PM
Quote from: cH40z-Lord on December 28, 2005, 08:59:42 PM
I'm getting this error

Quote from: ErrorAn Error Has Occurred!
2: fopen(): SAFE MODE Restriction in effect. The script whose uid is 4212 is not allowed to access /hp/aa/ad/dm/www/board/Packages/temp owned by uid 33
File: /hp/aa/ad/dm/www/board/Sources/Subs-Package.php
Line: 1476

What can I do ?

[ I've got SMF 1.0.5 ]
Did you get this error when you install this mod from Package Manager? If it is an installation error, try to delete Packages\temp directory and redo it.
Title: Re: Hide Post
Post by: Leaf on January 02, 2006, 03:47:14 PM
Quote from: fivearts on December 29, 2005, 07:09:40 AM
Hi Leaf,

Thanks for the reply.

I have made the changes in MySQL for:

ALTER TABLE `smf_messages` ADD `hiddenOption` TINYINT( 4 ) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `smf_messages` Add `hiddenValue` MEDIUMINT( 8 ) UNSIGNED NOT NULL DEFAULT '0';

Then I reinstall Hide Posts. When I logout, viewing as a guest, all the boards are missing which I think the index page was replaced by error message page:

QuoteDatabase Error
Please try again. If you come back to this error screen, report the error to an administrator.

When I login again, the board seems normal again.

So I uninstall it and get error message:

QuoteDatabase Error
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'IGNORE FROM smf_settings
WHERE `variable` LIKE 'allow_hid
File: /......../Packages/temp/uninstall.php
Line: 20

Under Installed Packages, it still list Hide Posts as Installed.

What can I do?

cheers,
:D

Can you setup a test forum on your site? I don't have the excact environment that you have, so, it is hard to say what is wrong or right. You can try to remove "IGNORE" keyword from install.php and uninstall.php and zip the files together to install with the new zip file.
Title: Re: Hide Post
Post by: kicon on January 02, 2006, 08:22:20 PM
your hide post script not working with the  classic SE theme of smf. it was fined with the other theme setting. but after i change the theme to classic. there is no options for hide post when i do the new post. i like the look of classic theme. would you fix this up for me thanks.
Title: Re: Hide Post
Post by: fiver on January 03, 2006, 08:50:00 AM
Hi Leaf,

Thanks for the reply. I am thinking of upgrading from SMF1.1RC1 to SMF1.1RC2. Will Hide Post be compatible?

If you have not tested it on RC2, if I setup a test forum for RC2 for you, is that a good idea? or will you be testing it on RC2 yourself?

Cheers ;)
Title: Re: Hide Post
Post by: Leaf on January 03, 2006, 10:27:05 AM
Hi fivearts, This mod doens't support smf 1.1 RC2 now. I already setup a rc2 test forum and will test on rc2. If you can provide a test forum for rc2, I can make sure it works for you after you upgrade. :)
Title: Re: Hide Post
Post by: Leaf on January 03, 2006, 10:36:10 AM
Quote from: kicon on January 02, 2006, 08:22:20 PM
your hide post script not working with the  classic SE theme of smf. it was fined with the other theme setting. but after i change the theme to classic. there is no options for hide post when i do the new post. i like the look of classic theme. would you fix this up for me thanks.
Sorry, this request takes time and I am currently busy on upgrading my mods and forum as well as developing a new game. It may happen in future but not soon.
Title: Re: Hide Post
Post by: cH40z-Lord on January 04, 2006, 07:16:47 AM
Quote from: Leaf on January 02, 2006, 01:01:02 PM
Quote from: cH40z-Lord on December 28, 2005, 08:59:42 PM
I'm getting this error

Quote from: ErrorAn Error Has Occurred!
2: fopen(): SAFE MODE Restriction in effect. The script whose uid is 4212 is not allowed to access /hp/aa/ad/dm/www/board/Packages/temp owned by uid 33
File: /hp/aa/ad/dm/www/board/Sources/Subs-Package.php
Line: 1476

What can I do ?

[ I've got SMF 1.0.5 ]
Did you get this error when you install this mod from Package Manager? If it is an installation error, try to delete Packages\temp directory and redo it.


Thx for your reply, but that doesn't work :(
Even when I try to apply your nice mod, then I'll get this error again....
My Packages\Temp -Folder is even empty, I've tried deleting it and re-creating it, but it doesn't work :(
Title: Re: Hide Post
Post by: Leaf on January 04, 2006, 06:56:57 PM
Support 1.1 RC 2. Change database statements to be compatible with old MySQL.

Quote from: cH40z-Lord on January 04, 2006, 07:16:47 AM
Thx for your reply, but that doesn't work :(
Even when I try to apply your nice mod, then I'll get this error again....
My Packages\Temp -Folder is even empty, I've tried deleting it and re-creating it, but it doesn't work :(
It seems like you don't have enough permission to install mods from package manager. fopen() is low level file operations executed by package manager.
Title: Re: Hide Post
Post by: fiver on January 05, 2006, 03:50:46 AM
Hi Leaf,

You are fast! I was having problem installing a new forum on subdomain to test Hide Post when I read your update.

I have updated my forum to 1.1rc2 yesterday. Unfortunately, while installing your package today, I got an error:

QuoteDatabase Error   
Duplicate entry 'allow_hiddenPost' for key 1
File: /home/fivearts/public_html/Packages/temp/install.php
Line: 22

The installation did not go through. :(

Appreciate your help very much. :D
Title: Re: Hide Post
Post by: duock on January 05, 2006, 05:38:57 AM
hi, your code are doing very well, you are great, but work in default theme only

got any idea how to insert hidden post code in classic theme?
Title: Re: Hide Post
Post by: Leaf on January 06, 2006, 10:57:09 PM
Quote from: fivearts on January 05, 2006, 03:50:46 AM
Hi Leaf,

You are fast! I was having problem installing a new forum on subdomain to test Hide Post when I read your update.

I have updated my forum to 1.1rc2 yesterday. Unfortunately, while installing your package today, I got an error:

QuoteDatabase Error   
Duplicate entry 'allow_hiddenPost' for key 1
File: /home/fivearts/public_html/Packages/temp/install.php
Line: 22

The installation did not go through. :(

Appreciate your help very much. :D
My mod only supports fresh install for smf 1.1 rc2. If you already have the database settings added in this mod, you will need to remove the following sentence from 1.1 RC2 section in the package-info.xml file and use the new zip file to install:

      <code type="file">install.php</code>

Or, you can delete the existing entries by uninstalling the mod or from phpmyadim.
Title: Re: Hide Post
Post by: Leaf on January 06, 2006, 11:10:47 PM
Quote from: duock on January 05, 2006, 05:38:57 AM
hi, your code are doing very well, you are great, but work in default theme only

got any idea how to insert hidden post code in classic theme?
As I said, it takes time. Please be patient.
Title: Re: Hide Post
Post by: tuga on January 07, 2006, 02:13:57 AM
hello, before i use RC1 with 1.0.3 i install RC2 and i open package-info.xml and i remove this code   <code type="file">install.php</code> from RC2 option, and that upload and install without any problem,
but only me (admin) can login into the  forum, the rest of the members not, they  try and always say:

error on data base, please contact admin

what can i do?
Title: Re: Hide Post
Post by: Leaf on January 07, 2006, 02:24:09 AM
Version 1.0.5: Support classic theme.

Quote from: tuga on January 07, 2006, 02:13:57 AM
hello, before i use RC1 with 1.0.3 i install RC2 and i open package-info.xml and i remove this code   <code type="file">install.php</code> from RC2 option, and that upload and install without any problem,
but only me (admin) can login into the  forum, the rest of the members not, they  try and always say:

error on data base, please contact admin

what can i do?
tuqa, my comments on removing install.php is based on you have run install.php in this mod in the past. It is different from install.php in forum. This mod doesn't affect logon permissions.
Title: Re: Hide Post
Post by: Bigguy on January 08, 2006, 07:31:15 PM
I just tried to uninstall this and I got this error. This is after it said success on everything to uninstall it. What do I do, help. ???:

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'IGNORE FROM smf_settings
WHERE `variable` LIKE 'allow_hid
File: /home/*****/public_html/smf/Packages/temp/uninstall.php
Line: 20
Title: Re: Hide Post
Post by: Leaf on January 09, 2006, 12:00:21 PM
Release version 1.0.6.

Quote from: Bigguy on January 08, 2006, 07:31:15 PM
I just tried to uninstall this and I got this error. This is after it said success on everything to uninstall it. What do I do, help. ???:

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'IGNORE FROM smf_settings
WHERE `variable` LIKE 'allow_hid
File: /home/*****/public_html/smf/Packages/temp/uninstall.php
Line: 20
Remove IGNORE from the uninstall.php and uninstall the mod with the new zip file. This is a known bug and is fixed in 1.0.6.
Title: Re: Hide Post
Post by: Leaf on January 09, 2006, 10:47:10 PM
Update version 1.0.6: Upgradable from 1.0.4 to 1.0.6.
Title: Re: Hide Post
Post by: Bigguy on January 09, 2006, 11:21:50 PM
I sorta got it figured now, thanks.
Title: Re: Hide Post
Post by: Leaf on January 10, 2006, 10:21:00 PM
Sorry, put the wrong xml file in last update. Please try the new zip file.
Title: Re: Hide Post
Post by: fiver on January 11, 2006, 08:40:39 AM
Hi Leaf,

Many many thanks for helping to troubleshoot Hidepost to make it work for 1.1 RC2 on my forum. My member has started using it within hours after installing it!

Quote1. 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.

May I add to the wishlist? ...
5. Hide this post [From all] except [select membergroups].

;D



Title: Re: Hide Post
Post by: carola0102 on January 15, 2006, 06:09:21 AM
Hi I tried to install this mod and I get the following error:

QuoteDuplicate entry 'allow_hiddenPost' for key 1
File: /usr/local/psa/home/vhosts/tamilflowerz.net/httpdocs/forum/Packages/temp/install.php
Line: 24

can anyone help??
Title: Re: Hide Post
Post by: kezayah on January 17, 2006, 03:32:35 AM
Hide 1.03 fuctions very well on RC1.2 with small modifications.
Hide 1.04 and Hide 1.06 bug if I activate the recent's topics ...  >:(  >:(  >:(
Why have to modify Hide 1.03 ??  :-\
Title: Re: Hide Post
Post by: Leaf on January 17, 2006, 01:46:59 PM
Quote from: carola0102 on January 15, 2006, 06:09:21 AM
Hi I tried to install this mod and I get the following error:

QuoteDuplicate entry 'allow_hiddenPost' for key 1
File: /usr/local/psa/home/vhosts/tamilflowerz.net/httpdocs/forum/Packages/temp/install.php
Line: 24

can anyone help??
You have previously installed it. Remove the following records from settings table:
allow_hiddenPost
show_hiddenMessage
max_hiddenValue
show_hiddenColor
hide_post_own
hide_post_any
view_hidden_msg
view_hidden_post
Title: Re: Hide Post
Post by: Leaf on January 17, 2006, 01:53:22 PM
Quote from: kezayah on January 17, 2006, 03:32:35 AM
Hide 1.03 fuctions very well on RC1.2 with small modifications.
Hide 1.04 and Hide 1.06 bug if I activate the recent's topics ...  >:(  >:(  >:(
Why have to modify Hide 1.03 ??  :-\

Because there are some backward compatible issues to support MySQL and PHP.
Please remember, this mod is not a paid commercial product. Users who choose to use it may take their own risks.
Recent topics issue is a known issue. The latest 1.0.6 solved this issue, but there is another print issue. Thus, we will need v1.0.7.
You see, there is always a reason to release new versions.

Quote from: fivearts on January 11, 2006, 08:40:39 AM
Hi Leaf,

Many many thanks for helping to troubleshoot Hidepost to make it work for 1.1 RC2 on my forum. My member has started using it within hours after installing it!

Quote1. 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.

May I add to the wishlist? ...
5. Hide this post [From all] except [select membergroups].

;D
This one cannot be added to the wish list because it doesn't fit into the current db fields.
Title: Re: Hide Post
Post by: Leaf on January 17, 2006, 02:43:45 PM
Release version 1.0.7:
- Fix the display error in print page.
- Fix the duplicate key issue during installation if the key already exists.

Note: Recent post error was fixed in an updated version of 1.0.6 and the fix is included in 1.0.7.
Title: Re: Hide Post
Post by: fiver on January 17, 2006, 10:54:15 PM
Hi Leaf.

Fabulous! Thanks again. :D :D :D

Here's a note to users of previous version 1.0.6.

I have experimented on my test forum by uninstalling 1.0.6 first. The effect is:
- All hidden posts will revert back to normal unhidden post.
- When you install the new 1.0.7, they will still remain as normal unhiddden post.
- If you want to have the old posts hidden, you have to Modify them one by one.

Therefore if you want previously Hidden posts to remain hidden, DO NOT uninstall 1.0.6 - just install 1.0.7 over it.  The table in Admin - Packages will show these


Mod NameVersion
1.Hide Post1.0.6[ List Files ] [ Delete ]
2.Hide Post1.0.7[ Uninstall ][ List Files ][ Delete ]


Now if for some reason you decide to uninstall 1.0.7, the effect is the same as above.
- All hidden posts will revert back to normal unhidden post.
- When you reinstall 1.0.7, they will still remain as normal unhiddden post.
- If you want to have the old posts hidden, you have to Modify them one by one.

The table in Admin - Packages will show these


Mod NameVersion
1.Hide Post1.0.6[ Apply Mod ][ List Files ][ Delete ]
2.Hide Post1.0.7[ Apply Mod ][ List Files ][ Delete ]


Cheers.
;D
Title: Re: Hide Post
Post by: carola0102 on January 20, 2006, 05:01:16 AM
Quote from: Leaf on January 17, 2006, 01:46:59 PM
Quote from: carola0102 on January 15, 2006, 06:09:21 AM
Hi I tried to install this mod and I get the following error:

QuoteDuplicate entry 'allow_hiddenPost' for key 1
File: /usr/local/psa/home/vhosts/tamilflowerz.net/httpdocs/forum/Packages/temp/install.php
Line: 24

can anyone help??
You have previously installed it. Remove the following records from settings table:
allow_hiddenPost
show_hiddenMessage
max_hiddenValue
show_hiddenColor
hide_post_own
hide_post_any
view_hidden_msg
view_hidden_post

Hi Leaf,
thanks for your reply. I'm using SMF version 1.05
I tried to install this mod.. everything is listed as success but when I proceed... I get errors like
QuoteDuplicate entry 'allow_hiddenPost' for key 1
File: /usr/local/psa/home/vhosts/tamilflowerz.net/httpdocs/forum/Packages/temp/install.php
Line: 24

I tried to delete the records from smf_settings. But I can't find all the records u mentioned above. And after I did this should I apply the mod again? Even then it still gives errors :(
Title: Re: Hide Post
Post by: Leaf on January 23, 2006, 10:39:28 AM
Please download the latest mod v1.0.7 and try it. I added some logic to check for duplicate keys in db.
Title: Re: Hide Post
Post by: carola0102 on January 27, 2006, 04:02:47 AM
thanks a lot! :D it's working and it's a wonderful mod ;D
Title: Re: Hide Post
Post by: cH40z-Lord on February 04, 2006, 04:35:44 AM
when are you going to make it compatible with SMF 1.0.6 :/ ?
Title: Re: Hide Post
Post by: fiver on February 05, 2006, 11:19:00 PM
Hi Leaf,

One of my members has a request...

Quotecould you include a feature in hide posts,that makes it possible to write an intro to the hidden post which is not hidden?

From that request, I am thinking... Is it possible to integrate an "Unhide" tag so that the text within the "Unhide" tag will not be hidden? If that is possible, perhaps an "Unhide" tag-button next to the Hide Post criterias will be good.

On another matter, I have also installed Merged Double Posts mod and discovered an interesting "side-effect" with Hide Post:
http://www.fivearts.net/index.php/topic,146.msg610.html#msg610

cheers
:)
Title: Re: Hide Post
Post by: Leaf on February 06, 2006, 01:16:18 PM
Updated version 1.0.7 to support smf 1.0.6.

fivearts, it is a good idear to have some customized introduction message besides the standard message for hidden posts.

Interesting to see the side-effect with Merged Double Posts. I use the message table to store hidden information, but Merged posts will keep only the second message and delete the first one.
Title: Re: Hide Post
Post by: fiver on February 06, 2006, 10:38:51 PM
Hi Leaf,

Quotefivearts, it is a good idear to have some customized introduction message besides the standard message for hidden posts.

I'm sorry you have misunderstood - its not the standard message describing the hidden post.  :P

The problem arise when I install Merged Double Posts. One of my member had posted an introduction for his article (not hidden) and followed with a second post to the article (hidden) - both his 1st and 2nd posts were merged and hidden. Since then, as a solution, I have reduced the time-frame for a post to be merged automatically.

Quotecould you include a feature in hide posts,that makes it possible to write an intro to the hidden post which is not hidden?

So I understand he is requesting whether is it possible to have part of the post not hidden. For example, inside a post, the first paragraph is not hidden while the 2nd paragraph is hidden. The 3rd paragraph is not hidden, the 4th paragraph is hidden.

I understand this is leaning towards the use of tags - which is why I have the idea of having Unhide tags. Is it possible to create Unhide tags to work with Hide Post mod? Will you be considering this idea?  :P

Thanks again for this extremely useful mod. It has encouraged my members to post articles and guests to register to read them.

cheers,
:)

Title: Re: Hide Post
Post by: readme.txt on February 08, 2006, 06:30:04 PM
would this mod work in a forum I specify?

i.e: forum: "downloads" ?
Title: Re: Hide Post
Post by: diegolyanky on February 08, 2006, 08:03:59 PM
GREAT !! ... I installed on SMF 1.1RC2 with Helios_Multi theme and works FINE. Very good job !

I traslated into Portuguese and Spanish, if you like the files send me a private.

Regards !  ;)
Title: Re: Hide Post
Post by: fiver on February 09, 2006, 02:53:42 AM
Quote from: anibal on February 08, 2006, 06:30:04 PM
would this mod work in a forum I specify?

i.e: forum: "downloads" ?

Yes it would. If you are using SMF 1.1RC2 ...
1. Go to Admin > Permissions > Permissions By Board.
2. Choose a forum and switch it to Local permission.
3. After the screen is refreshed, you can click on the forum name.
4. On the extreme right column, you can now select the group to use Hide Post.
5. At the bottom of the page, there are 2 selectors and a "Add permission..." button. Make sure the left selector is on "Add permission..."
6. In (Select a permission) choose "Hide posts (Own post)". Click "Set permissions" button. This will enable the selected group members to use Hide Post in own topics in your choosen forum.
7. In (Select a permission) choose "Hide posts (Any post)". Click "Set permissions" button. This will enable the selected group members to use Hide Post in any topics in your choosen forum.

Hope that helps.
:)
Title: Re: Hide Post
Post by: fiver on February 09, 2006, 02:54:31 AM
Hi Leaf,

Maybe its better to re-word the following:
from Hide posts (Own post) to Hide posts (Own topic)
from Hide posts (Any post) to Hide posts (Any topic)

cheers,
:)
Title: Re: Hide Post
Post by: gerrymore on February 11, 2006, 06:42:50 PM
Could this be altred to a straightforward Post Moderation Mod? By that I mean all new posts from regular members require Admin/Moderator approval before being publically visible? Other membrgroups to see all posts.

This would be awsome if it could be done.
Title: Re: Hide Post
Post by: Kraken on February 16, 2006, 11:12:34 AM
I installe the mod and took the message "installed".
However, no any files are modified.
So i tried to install manually.
Now, i take this message:
Unknown column 'hiddenOption' in 'field list'
file: /forum/Sources/Display.php
Line: 723


Title: Re: Hide Post
Post by: HeLLCiTo on February 28, 2006, 08:23:46 PM
hi , a installa it fine. congratulations

Its posible to hide only a part of de post???

Where i configure the mod in admin cp?
Title: Re: Hide Post
Post by: kezayah on March 02, 2006, 11:50:39 AM
Quote from: HeLLCiTo on February 28, 2006, 08:23:46 PM
hi , a installa it fine. congratulations

Its posible to hide only a part of de post???

Where i configure the mod in admin cp?
Oooooh yes, utiliser par exemple dans un post : [hide] [/hide] avec les options de ce mod !!!  :D
Title: Re: Hide Post
Post by: kicon on April 01, 2006, 07:28:22 PM
hi leaf

i want to ask you make your hide post to work with classic theme yet? i has been waiting for this feature.
Title: Re: Hide Post
Post by: Bigguy on April 01, 2006, 07:31:22 PM
Why not just modify the classic theme by hand. (just a thought)
Title: Re: Hide Post
Post by: zilox on April 03, 2006, 10:25:27 PM
how do u install this thing????
Title: Re: Hide Post
Post by: Sheepy on April 06, 2006, 09:24:55 AM
Normally, you download it and place it in the Package folder of your SMF site, then login to SMF as admin, goto admin panel then package manager, and a new shiny package should be sitting there with a bouncing [Install] or [Upgrade] button next to it.

Ok, maybe it's not bouncing... a mod idea, anyone? ^^

If you don't see the package, it's very likely that you've placed the zip or tar.gz file in a wrong folder.  You don't have to uncompress the file.
Title: Re: Hide Post
Post by: angelillovk on April 11, 2006, 03:11:27 PM
Thank you very much by mod, it wanted to know if there is possibility of raising limits of 500. 

Thank you 
Title: Re: Hide Post
Post by: Surfy on April 26, 2006, 03:58:23 AM

Great Mod  :)

But i found a bug... A user only must try to quote a message, then he see the content without he must post something  :'(
Title: Re: Hide Post
Post by: Leaf on May 01, 2006, 09:56:51 AM
Quote from: Kraken on February 16, 2006, 11:12:34 AM
I installe the mod and took the message "installed".
However, no any files are modified.
So i tried to install manually.
Now, i take this message:
Unknown column 'hiddenOption' in 'field list'
file: /forum/Sources/Display.php
Line: 723

If you install it manually, you shall update your database to add the fields/values introduced in this mod.
Title: Re: Hide Post
Post by: Leaf on May 01, 2006, 11:13:14 AM
Quote from: angelillovk on April 11, 2006, 03:11:27 PM
Thank you very much by mod, it wanted to know if there is possibility of raising limits of 500. 

Thank you 
The limit of 500 can be changed in admin panel->Features and Options.
Title: Re: Hide Post
Post by: Leaf on May 01, 2006, 11:20:39 AM
Quote from: Surfy on April 26, 2006, 03:58:23 AM

Great Mod  :)

But i found a bug... A user only must try to quote a message, then he see the content without he must post something  :'(
If you don't have permission to view it, you shall not be able to quote it.
Title: Re: Hide Post
Post by: angelillovk on May 03, 2006, 01:57:12 PM
Quote from: Leaf on May 01, 2006, 11:20:39 AM
Quote from: Surfy on April 26, 2006, 03:58:23 AM

Great Mod  :)

But i found a bug... A user only must try to quote a message, then he see the content without he must post something  :'(
If you don't have permission to view it, you shall not be able to quote it.

I prove with a user who does not have permission to see the content of post and he lets to me quote
Title: Re: Hide Post
Post by: Surfy on May 06, 2006, 06:33:03 AM


My fault - it works fine on the default theme - other themes u have to edit by hand  ;)
Title: Re: Hide Post
Post by: angelillovk on May 07, 2006, 02:01:36 PM
It does not let to me uninstall mod, I want to do it and to install it to see again if it works to me well. Since I can do it?
Title: Re: Hide Post
Post by: Leaf on May 13, 2006, 09:17:54 PM
If you install other mods after this mod is installed which have conflictions with this one, you may not be able to uninstall it since the files are changed by other mods.
Title: Re: Hide Post
Post by: Leaf on May 13, 2006, 09:24:33 PM
Quote from: kicon on April 01, 2006, 07:28:22 PM
hi leaf

i want to ask you make your hide post to work with classic theme yet? i has been waiting for this feature.
Sorry, there is too much work to make it work with classic theme for all the versions supported by this mod. It is designed to work with default theme currently.
Title: Re: Hide Post
Post by: Leaf on May 13, 2006, 09:43:57 PM
Update version 1.0.7 to support smf 1.0.7.
Title: Re: Hide Post
Post by: LeberMac on May 22, 2006, 01:41:17 PM
Is there a way to do the following with this mod:
Make an entire thread, except for the first post, hidden until a user posts in it.
When the user posts in it, then all the posts are visible.

I suppose you can modify the "post.php" that would set all replies to default to "hidden" by inserting the tags automatically, but that would affect users globally on all boards and threads, and that's not what I want to do.

Any suggestions would be appreciated, I'm diving into the post.php script now...

Okay, looks like I can set the default to automatically hide everything until they post by changing post.php where it says
$context['hidden_option'] = 0;
to...
$context['hidden_option'] = 2;
Where option 2 is {
// Hide by reply ....... ;
$hidden_message = $txt['hide_reply_msg'];
$context['can_view_post'] |= checkUserRepliedToTopic($message['ID_TOPIC']);
}

from HidePost.php

And just disable the ability for specific users to change their "hidden" options by putting some kind of conditional in front of the "can hide post" option in the post.php (and maybe the poll.php, I haven't looked yet...)
Title: Re: Hide Post
Post by: yosemite on May 26, 2006, 05:06:10 PM
i figured out a way to make this work with other themes. you just change your theme to smf default, then modify the post to be hidden and then you drop back in to your other theme. the post you have set up to be hidden are hidden according to what you specified.
Title: Re: Hide Post
Post by: Bigguy on May 26, 2006, 05:42:32 PM
You could also modify the theme that you want to work with this mod. All of the instructions will be in the .xml file of the modification.
Title: Re: Hide Post
Post by: ivo2296 on June 07, 2006, 01:10:30 PM
I'm using smf 1.0.7 .

I wonder if can be done this mod to be connected with "Thank you" mod http://mods.simplemachines.org/index.php?mod=257

So when a user presses "Thank you" button to see the hidden massage in post.
Title: Re: Hide Post
Post by: sbclansite.com on June 07, 2006, 04:22:16 PM
This is an excellent mod and works great when u have to hide passwords to files from visitors :).

Good work leaf i really hope that hide boards with same funcionality are also worked upon it would be great mod. I am not talking about current hideboard vs 1 as it is limited to disabling whole boards for a group i mean disabling boards based on karma or posts requirements.
Title: Re: Hide Post
Post by: MrAnderson.cl on July 03, 2006, 10:28:37 AM
Quote from: fivearts on February 09, 2006, 02:53:42 AM
Quote from: anibal on February 08, 2006, 06:30:04 PM
would this mod work in a forum I specify?

i.e: forum: "downloads" ?

Yes it would. If you are using SMF 1.1RC2 ...
1. Go to Admin > Permissions > Permissions By Board.
2. Choose a forum and switch it to Local permission.
3. After the screen is refreshed, you can click on the forum name.
4. On the extreme right column, you can now select the group to use Hide Post.
5. At the bottom of the page, there are 2 selectors and a "Add permission..." button. Make sure the left selector is on "Add permission..."
6. In (Select a permission) choose "Hide posts (Own post)". Click "Set permissions" button. This will enable the selected group members to use Hide Post in own topics in your choosen forum.
7. In (Select a permission) choose "Hide posts (Any post)". Click "Set permissions" button. This will enable the selected group members to use Hide Post in any topics in your choosen forum.

Hope that helps.
:)


Can't get it to work with SMF 1.1 RC2... I've uploaded it with Package Manager, I pressed on Install Now link, but when I go to Admin Panel -> Permissions -> Board Permissions I can't see the "Local Permission you say" so I can't activate it...

And in the posts i get an aditional option that has no name, and nothing can be selected...

Let me show u a screencapture

(http://img269.imageshack.us/my.php?image=hidepostmodnotworking015ay.jpg) (http://img483.imageshack.us/my.php?image=hidepostmodnotworking028mg.jpg) (http://img242.imageshack.us/my.php?image=hidepostmodnotworking032ra.jpg)

Ohh forget about it i was with my forum in spanish and that's the why it didn't showed the options... my mistake but it will be usefull for someone so I will not delete what i wrote up these lines

(http://img423.imageshack.us/my.php?image=hidepostmodnotworking045nl.jpg)

Going to another point... is there any way to arrange this excelent mod to work for hiding some responses acording to a text in the title of the topic??

I mean let's say the original topic is entitled "Here's my desktop modding" and subsecuents comments are entitled "Re: Here's my desktop modding"... i post some responses or upgrades removing the "Re:"... but i want the post to hide the "Re:" responses with a button click and show them again with another button click... just like it works the Quick Reply mod... can it be done??

It would be a greater upgrade for this awesome modd

Greetings from Chile

MrAnderson
Title: Re: Hide Post
Post by: LeberMac on July 31, 2006, 10:38:00 AM
Just another quick thanks to Leaf for this Mod. It's cool.

I found this to be helpful, from Smiley:

If you are using SMF 1.1RC2 ...
1. Go to Admin > Permissions > Permissions By Board.
2. Choose a forum and switch it to Local permission.
3. After the screen is refreshed, you can click on the forum name.
4. On the extreme right column, you can now select the group to use Hide Post.
5. At the bottom of the page, there are 2 selectors and a "Add permission..." button. Make sure the left selector is on "Add permission..."
6. In (Select a permission) choose "Hide posts (Own post)". Click "Set permissions" button. This will enable the selected group members to use Hide Post in own topics in your choosen forum.
7. In (Select a permission) choose "Hide posts (Any post)". Click "Set permissions" button. This will enable the selected group members to use Hide Post in any topics in your choosen forum.
Title: Re: Hide Post
Post by: ArkServer on August 07, 2006, 07:01:28 PM
Nice i needed this ;D
Title: Re: Hide Post
Post by: Abdull on August 07, 2006, 08:24:53 PM
I installed the packge on SMF 1.0.7 ...
im using arabic style and arabic lang ...
:'( :'( nothing to see  :'( :'(
even when i uninstall it, it goes well no errors
what am i doin wrong

by the way im using my board with 3 languages.

thnx
Title: Re: Hide Post
Post by: k3 on August 10, 2006, 03:31:54 PM
Thank you.  Best mod ever.

One problem though, like somebody mentioned earlier.  I tested it several times and it seems that quoting a hidden message seems to reveal the post.  I'm using 1.1RC2.  If theres a way to fix this, please let me know.

Thanks :)
Title: Re: Hide Post
Post by: Leaf on August 27, 2006, 12:58:28 AM
Quote from: Abdull on August 07, 2006, 08:24:53 PM
I installed the packge on SMF 1.0.7 ...
im using arabic style and arabic lang ...
:'( :'( nothing to see  :'( :'(
even when i uninstall it, it goes well no errors
what am i doin wrong

by the way im using my board with 3 languages.

thnx
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.
Title: Re: Hide Post
Post by: Leaf on August 27, 2006, 01:04:19 AM
Quote from: k3 on August 10, 2006, 03:31:54 PM
Thank you.  Best mod ever.

One problem though, like somebody mentioned earlier.  I tested it several times and it seems that quoting a hidden message seems to reveal the post.  I'm using 1.1RC2.  If theres a way to fix this, please let me know.

Thanks :)
In version 1.0.7, if you are not able to see the post, you will not see the quote or reply button. :)
Title: Re: Hide Post
Post by: Leaf on August 27, 2006, 01:07:03 AM
Support SMF 1.1 RC3

The Package Manager in SMF 1.1 RC3 does not copy files correctly. After installing this mod, please copy the following files from the zip file if the files installed are empty:

/Sources/HidePost.php
/Themes/default/languages/HidePost.english.php
/Themes/default/languages/HidePost.chinese_simplified.php
/Themes/default/languages/HidePost.chinese_simplified_utf8.php
Title: Re: Hide Post
Post by: MrAnderson.cl on August 27, 2006, 08:05:15 AM
I'm wondering if there's a way for a Hide Post Button... for purposes of hiding/unhiding comments from everyone except the first author... or depending on the comment title...

Example...

My Worklog
My Worklog
Comment: My Worklog
Comment: My Worklog
My Worklog

So you press the Hide Button and the post appears like...

My Worklog
My Worklog
My Worklog

Can it be made??

Greetings from Chile
Title: Re: Hide Post
Post by: jcroot on September 03, 2006, 12:37:15 PM
Quote from: LeberMac on July 31, 2006, 10:38:00 AM
Just another quick thanks to Leaf for this Mod. It's cool.

I found this to be helpful, from Smiley:

If you are using SMF 1.1RC2 ...
1. Go to Admin > Permissions > Permissions By Board.
2. Choose a forum and switch it to Local permission.
3. After the screen is refreshed, you can click on the forum name.
4. On the extreme right column, you can now select the group to use Hide Post.
5. At the bottom of the page, there are 2 selectors and a "Add permission..." button. Make sure the left selector is on "Add permission..."
6. In (Select a permission) choose "Hide posts (Own post)". Click "Set permissions" button. This will enable the selected group members to use Hide Post in own topics in your choosen forum.
7. In (Select a permission) choose "Hide posts (Any post)". Click "Set permissions" button. This will enable the selected group members to use Hide Post in any topics in your choosen forum.

Hi Guys! I like to mod, I installed it on SMF RC3.

Well here is the problem, I went to Admin Panel/ Permission/ Permissions By Board  here I see a list of all my forums but I don't see any way to switch it to Local permission can sombody give me a hand please?

This is what I would like to do with this mod, I want to be able to select which forums are allow to use Hide Post, I want to be able to select if Admin or Users are allow to use the hide post option because I don't want every body to be able to use this option or mod.

Thanks.
Title: Re: Hide Post
Post by: HHwarriors on September 10, 2006, 11:08:52 AM
i get
"2: mkdir(/home/lonnie/public_html/Board/Packages/temp/HidePost_1-0-7rc3/default/) [<a href='function.mkdir'>function.mkdir</a>]: No such file or directory
File: /home/lonnie/public_html/Board/Sources/Subs-Package.php
Line: 413"

What to i dooo ? :S
Title: Re: Hide Post
Post by: HHwarriors on September 19, 2006, 04:44:37 PM
Anyone ?????  :'( :'( :'( :'(
PLZ
Title: Re: Hide Post
Post by: ivo2296 on September 20, 2006, 12:22:43 PM
Quote from: HHwarriors on September 10, 2006, 11:08:52 AM
i get
"2: mkdir(/home/lonnie/public_html/Board/Packages/temp/HidePost_1-0-7rc3/default/) [<a href='function.mkdir'>function.mkdir</a>]: No such file or directory
File: /home/lonnie/public_html/Board/Sources/Subs-Package.php
Line: 413"

What to i dooo ? :S

You probably have MK portal installed, that's why you getting this error.
Title: Re: Hide Post
Post by: 1funny2 on September 30, 2006, 03:20:03 AM
I have 1.1 RC3.

I am trying to get this to work but not geting aany luck. I installed it through the package manager via browse and upload because I downloaded it onto my desktop. However, it is'nt working and is getting..

Call to undefined function: gethiddenmessage() in /home/content/s/p/y/spyder00/html/testforum/Sources/Display.php

During the install, it did show those 4 files listed there. What is wrong?
Title: Re: Hide Post
Post by: Leaf on October 09, 2006, 10:28:51 PM
Quote from: 1funny2 on September 30, 2006, 03:20:03 AM
I have 1.1 RC3.

I am trying to get this to work but not geting aany luck. I installed it through the package manager via browse and upload because I downloaded it onto my desktop. However, it is'nt working and is getting..

Call to undefined function: gethiddenmessage() in /home/content/s/p/y/spyder00/html/testforum/Sources/Display.php

During the install, it did show those 4 files listed there. What is wrong?
1.1 RC3 fails to copy files in mod. Check the mod description and copy the four files listed there from the zip file to replace the empty files installed by the mod in 1.1 RC3.

Quote from: jcroot on September 03, 2006, 12:37:15 PM
Hi Guys! I like to mod, I installed it on SMF RC3.

Well here is the problem, I went to Admin Panel/ Permission/ Permissions By Board  here I see a list of all my forums but I don't see any way to switch it to Local permission can sombody give me a hand please?
In Admin panel->Permissions->Permissions by board page, click on "Local" for the boards that you want to use per board permissions. Then, click on the board name to set the permissions for that board.
Title: Re: Hide Post
Post by: 1964 on October 10, 2006, 07:13:36 AM
I had a problem and uninstalled this mod(yes this mod) now my forum won't load, I can login as admin only, see globe to the left for the site.

Thanks, no idea how to take care of it, help, someone, also a restore from an earlier database backup didn't help.
Title: Re: Hide Post
Post by: 1964 on October 10, 2006, 08:54:22 AM
Its definitely this mod, reinstalled it and database error went away, uninstalled again database error returned.

A very lost person needs urgent help here.
Title: Re: Hide Post
Post by: Oldiesmann on October 10, 2006, 09:48:35 PM
What database error are you getting? It would definitely help if you'd provide that info.
Title: Re: Hide Post
Post by: 1964 on October 10, 2006, 10:13:39 PM
Got it, what I did was reupload all file changed my MODs(since I couldn't uninstall any of them), and removed files left behind from MODs, apparently something that was left behind was causing Database Error, beyond me which one it was.

As commercial goes, I'm good to go.
Title: Re: Hide Post
Post by: epon on October 15, 2006, 06:58:34 PM
SMF 1.1 RC3  +  HidePost_1-0-7rc3.zip error

my server: centos 4.3 / MYSQL - 4.1.20 / Apache 2

i installed SMF 1.1 RC3 with no problem forum is working ...
i installed HidePost_1-0-7rc3.zip with Packages > Download Packages > Package to Upload: ... Browse
I copy thes files:
/Sources/HidePost.php
/Themes/default/languages/HidePost.english.php
/Themes/default/languages/HidePost.chinese_simplified.php
/Themes/default/languages/HidePost.chinese_simplified_utf8.php


i switch to Local permissions:
and when i go to:
Permissions > Permissions by Board > Global Moderator> Modify
and at the bootom of the page i don't see the text, the row is empty
"Hide posts (Own post)" & "Hide posts (Any post)"

and when i post/replay a topic i get:



i have installed 5 times SMF 1.1 RC3  +  HidePost_1-0-7rc3.zip and still the same

what should i do?
thanks
Title: Re: Hide Post
Post by: epon on October 16, 2006, 02:15:33 AM

and in /var/log/messages
i get

PHP Fatal error:  Call to undefined function:  gethiddenmessage() in .../Sources/Display.php on line 893


now when i open a post i get ony the title row of the post and not the body of the post
Title: Re: Hide Post
Post by: xxangel on October 22, 2006, 06:52:18 PM
I keep on getting this error:

Quote
8: Undefined index: can_view_post
File: /yinten.com/forum/Sources/Display.php
Line: 923

How can I fix this?

I uninstalled the mod but now I get this:

Quote8: Undefined index: can_hide_post
File: /yinten.com/forum/Themes/default/languages/Post.english.php (eval?)
Line: 539
Title: Re: Hide Post
Post by: lxlanubislxl on November 06, 2006, 10:50:06 AM
ive installed this mod and get the following error:  If anyone except admin tries to read a post on the forum they get the message "database error, please try again, contact admin if u keep seein this error" and no posts are shown. Even after uninstalling the mod this error still reoccurs. how do i solve this issue.

thanks in advance
Title: Re: Hide Post
Post by: balzizras on November 07, 2006, 11:11:13 AM
On 1.1RC2 I get a blank screen when I click to apply this mod, --doesnt install either. Any idea why? I'd like to use this.
Title: Re: Hide Post
Post by: HecKel on November 13, 2006, 09:35:14 PM
Hi!

I have 1 suggestions, an option to that post don't entry to the postcount of that user..., my idea is make some think like recycle bin but more reversible...

In big forums the SMF recycle bin is a mess..., a lot of posts and when we delete by mistake one post we have to go to recyclebin..., move the post..., change the posticon....

Using Hide Post, only moderators can see that "deleted" posts and if they want can recover them easier.

To enhance this, the hidden posts should be at another color to moderator can see what is visible and not :)

HecKel
Title: Re: Hide Post
Post by: valenti on November 14, 2006, 08:55:04 PM
How exactly do you hide a /message/ within a post and have the message be shown to people with enough requirements (like 50 min. posts)?
Title: Re: Hide Post
Post by: carola0102 on November 18, 2006, 05:02:06 AM
Hi

I recently upgraded my forum to 1.1 RC3

I wanted to install hide post by the package manager
But I get the following warning:

Quote!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

What should I do?
Title: Re: Hide Post
Post by: qaisar on December 03, 2006, 08:00:58 PM
Can you update it for SMF 1.1 please... :(
Title: Re: Hide Post
Post by: clemenzo on December 12, 2006, 08:32:34 AM
To show my appreciation of SMF, after having benefited from all the gurus.. Attached is the slightly modified version for 1.1 final.. I have it working in my freshly installed SMF.

http://beta.voixbox.com

Updated for 1.1.1, see later posts
Title: Re: Hide Post
Post by: clemenzo on December 12, 2006, 09:40:42 AM
My apologises to Leaf for modifying and sharing the script without seeking permission first. Please remove the attachment if desired.. sorry..
Title: Re: Hide Post
Post by: mgaidia on December 18, 2006, 11:13:14 AM
Please upgrade to 1.1.1 asap
Thanks in advance
Title: Re: Hide Post
Post by: clemenzo on December 19, 2006, 04:31:34 AM
Updated to 1.1.1
Title: Re: Hide Post
Post by: mgaidia on December 19, 2006, 06:10:19 PM
Quote from: clemenzo on December 19, 2006, 04:31:34 AM
Updated to 1.1.1
i cant install it
i get 2 warnings
i also mentionned that this mod cannot be downloaded from admin panel via mod browser.
Title: Re: Hide Post
Post by: clemenzo on December 19, 2006, 08:21:03 PM
Must be conflicts with your other mods. Have you tried uninstalling and removing the hide_post mod for 1.1 before installing this?

I have installed this successfully from admin panel for a fresh installation of SMF 1.1.1
Title: Re: Hide Post
Post by: mgaidia on December 19, 2006, 08:25:36 PM
i dont have any previous hide post mod installed
this is the first one
Title: Re: Hide Post
Post by: clemenzo on December 19, 2006, 08:37:59 PM
What other mods you have prior installing this and what are the exact errors you get?
Title: Re: Hide Post
Post by: mgaidia on December 20, 2006, 04:06:03 AM
Board Viewers Mod
Profile User Action
Custom Profile Field Mod
Trim Url
Mod List Color Alternate
Related Topics
Signature Option Post
Contact Page
Hide Tag

the errors i get when installing hide post mod are:
-  Execute Modification ./Sources/Display.php Test failed
- Execute Modification ./Sources/Subs-Post.php Test failed
Title: Re: Hide Post
Post by: clemenzo on December 20, 2006, 07:50:35 AM
You can do a manual find and add of codes in the two files that failed.
Title: Re: Hide Post
Post by: AtelierGal on December 20, 2006, 11:50:02 PM
I'm using 1.1.1
I uploaded the file but it gave me the mesg "File corrupt or not compatible for current SMF version"

Help, anyone?
Title: Re: Hide Post
Post by: bigmohi on December 22, 2006, 04:19:05 PM
i think that mod not updated yet at the mod site, this mod is a must and you can called it  (anti-leechers), so plz make a new version soon! ;)
Title: Re: Hide Post
Post by: clemenzo on December 24, 2006, 04:48:49 AM
Quote from: AtelierGal on December 20, 2006, 11:50:02 PM
I'm using 1.1.1
I uploaded the file but it gave me the mesg "File corrupt or not compatible for current SMF version"

Help, anyone?

Try download from my post in page 13 of this topic.
Title: Re: Hide Post
Post by: Kiwitje on December 24, 2006, 07:51:41 AM
Hmmmmm! I'm using 1.1.1 and installed the 1.1.1 version... But after the installation succeeded, i can't read any messages anymore... getting this error:

Fatal error: Call to undefined function: gethiddenmessage() in /home/nzb/public_html/forum/Sources/Display.php on line 899

any help?!
Title: Re: Hide Post
Post by: bigmohi on December 24, 2006, 07:53:19 AM
same thing happend to me,uninstalled it again and the forum is ok now,so it must have some bugs to correct!  ;)
Title: Re: Hide Post
Post by: clemenzo on December 25, 2006, 10:32:42 AM
Did you follow the notes by the mod author?

QuoteNOTE:

1. 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.

2. The Package Manager in SMF 1.1 RC3 does not copy files correctly. After installing this mod, please copy the following files from the zip file if the files installed are empty:

/Sources/HidePost.php
/Themes/default/languages/HidePost.english.php
/Themes/default/languages/HidePost.chinese_simplified.php
/Themes/default/languages/HidePost.chinese_simplified_utf8.php
Title: Re: Hide Post
Post by: Leaf on December 27, 2006, 01:01:52 AM
Updated to version 1.0.8 to support smf 1.1 & smf 1.1.1.

epon: Please double check the files you copied to forum directory and make sure they are not empty. If you get empty description texts for the options in permission page, it is usually caused by empty language file. If you get "Call to undefined function:  gethiddenmessage()" error, it is usually caused by empty HidePost.php in sources directory.

Quote from: clemenzo on December 12, 2006, 09:40:42 AM
My apologises to Leaf for modifying and sharing the script without seeking permission first. Please remove the attachment if desired.. sorry..
No problem. I am busy recently and just have time to update it for smf 1.1.1.
Title: Re: Hide Post
Post by: Leaf on December 27, 2006, 01:06:27 AM
Quote from: jcroot on September 03, 2006, 12:37:15 PM
Quote from: LeberMac on July 31, 2006, 10:38:00 AM
Just another quick thanks to Leaf for this Mod. It's cool.

I found this to be helpful, from Smiley:

If you are using SMF 1.1RC2 ...
1. Go to Admin > Permissions > Permissions By Board.
2. Choose a forum and switch it to Local permission.
3. After the screen is refreshed, you can click on the forum name.
4. On the extreme right column, you can now select the group to use Hide Post.
5. At the bottom of the page, there are 2 selectors and a "Add permission..." button. Make sure the left selector is on "Add permission..."
6. In (Select a permission) choose "Hide posts (Own post)". Click "Set permissions" button. This will enable the selected group members to use Hide Post in own topics in your choosen forum.
7. In (Select a permission) choose "Hide posts (Any post)". Click "Set permissions" button. This will enable the selected group members to use Hide Post in any topics in your choosen forum.

Hi Guys! I like to mod, I installed it on SMF RC3.

Well here is the problem, I went to Admin Panel/ Permission/ Permissions By Board  here I see a list of all my forums but I don't see any way to switch it to Local permission can sombody give me a hand please?

This is what I would like to do with this mod, I want to be able to select which forums are allow to use Hide Post, I want to be able to select if Admin or Users are allow to use the hide post option because I don't want every body to be able to use this option or mod.

Thanks.
First, enable advanced by-board permissions under "Admin Panel > Permissions > Settings". Then, you will see the Global & Local options.
Title: Re: Hide Post
Post by: Leaf on December 27, 2006, 01:09:01 AM
Quote from: xxangel on October 22, 2006, 06:52:18 PM
I keep on getting this error:

Quote
8: Undefined index: can_view_post
File: /yinten.com/forum/Sources/Display.php
Line: 923

How can I fix this?

I uninstalled the mod but now I get this:

Quote8: Undefined index: can_hide_post
File: /yinten.com/forum/Themes/default/languages/Post.english.php (eval?)
Line: 539
Check if the following files are emtpy. The Package Manager in SMF 1.1 RC3 and above does not copy files correctly. After installing this mod, please copy the following files from the zip file if the files installed are empty:

/Sources/HidePost.php
/Themes/default/languages/HidePost.english.php
/Themes/default/languages/HidePost.chinese_simplified.php
/Themes/default/languages/HidePost.chinese_simplified_utf8.php
Title: Re: Hide Post
Post by: mgaidia on December 27, 2006, 03:45:21 AM
hello
can u please add an option to hide all posts by default from admin panel.
i already have an active forum and i only want registered members to view topics
Title: Re: Hide Post
Post by: BigGunn on December 27, 2006, 03:16:33 PM
was just wondering... I know you can change the color of the hidden text... but is there anyway to add a "hidden" and "unhidden" image to it?
Title: Re: Hide Post
Post by: AtelierGal on December 29, 2006, 08:40:51 AM
Quote from: clemenzo on December 24, 2006, 04:48:49 AM
Quote from: AtelierGal on December 20, 2006, 11:50:02 PM
I'm using 1.1.1
I uploaded the file but it gave me the mesg "File corrupt or not compatible for current SMF version"

Help, anyone?

Try download from my post in page 1
Quote from: clemenzo on December 24, 2006, 04:48:49 AM
Quote from: AtelierGal on December 20, 2006, 11:50:02 PM
I'm using 1.1.1
I uploaded the file but it gave me the mesg "File corrupt or not compatible for current SMF version"

Help, anyone?

Try download from my post in page 13 of this topic.

Thanks mate.
But...some parts are empty...

http://i14.tinypic.com/2vxhyls.png
http://i12.tinypic.com/403ci21.png
Title: Re: Hide Post
Post by: clemenzo on December 29, 2006, 09:39:30 AM
Quote from: AtelierGal on December 29, 2006, 08:40:51 AM
Quote from: clemenzo on December 24, 2006, 04:48:49 AM
Quote from: AtelierGal on December 20, 2006, 11:50:02 PM
I'm using 1.1.1
I uploaded the file but it gave me the mesg "File corrupt or not compatible for current SMF version"

Help, anyone?

Try download from my post in page 1
Quote from: clemenzo on December 24, 2006, 04:48:49 AM
Quote from: AtelierGal on December 20, 2006, 11:50:02 PM
I'm using 1.1.1
I uploaded the file but it gave me the mesg "File corrupt or not compatible for current SMF version"

Help, anyone?

Try download from my post in page 13 of this topic.

Thanks mate.
But...some parts are empty...

http://i14.tinypic.com/2vxhyls.png
http://i12.tinypic.com/403ci21.png

As I have highlighted.. re-upload the 4 files as mentioned in the mod notes..

2. The Package Manager in SMF 1.1 RC3 does not copy files correctly. After installing this mod, please copy the following files from the zip file if the files installed are empty:

/Sources/HidePost.php
/Themes/default/languages/HidePost.english.php
/Themes/default/languages/HidePost.chinese_simplified.php
/Themes/default/languages/HidePost.chinese_simplified_utf8.php


The above applies to 1.1 and 1.1.1, as far as I tested..
Title: Re: Hide Post
Post by: AtelierGal on December 29, 2006, 08:16:04 PM
Ok.. Thanks.
One last dumb qns: how do i upload via ftp when the Hide Post Package I uploaded to my forum is in zip form?
Title: Re: Hide Post
Post by: xyxis_fahim on December 30, 2006, 08:08:17 PM
Quote from: mgaidia on December 20, 2006, 04:06:03 AM

the errors i get when installing hide post mod are:
-  Execute Modification ./Sources/Display.php Test failed
- Execute Modification ./Sources/Subs-Post.php Test failed

Same problem here :( And how do I add the codes in manual in those 2 files? Any fix?
thanks in advance
Title: Re: Hide Post
Post by: clemenzo on January 01, 2007, 12:43:27 AM
Quote from: AtelierGal on December 29, 2006, 08:16:04 PM
Ok.. Thanks.
One last dumb qns: how do i upload via ftp when the Hide Post Package I uploaded to my forum is in zip form?


Unzip the package in your local computer, then ftp the required files to their correct locations, overwriting those with 0 bytes size in the remote folders.
Title: Re: Hide Post
Post by: clemenzo on January 01, 2007, 01:00:00 AM
Quote from: xyxis_fahim on December 30, 2006, 08:08:17 PM
Quote from: mgaidia on December 20, 2006, 04:06:03 AM

the errors i get when installing hide post mod are:
-  Execute Modification ./Sources/Display.php Test failed
- Execute Modification ./Sources/Subs-Post.php Test failed

Same problem here :( And how do I add the codes in manual in those 2 files? Any fix?
thanks in advance

Read http://docs.simplemachines.org/index.php?topic=402.0
and http://www.simplemachines.org/community/index.php?topic=34526.0;all
Title: Re: Hide Post
Post by: Loverboy on January 01, 2007, 03:04:22 PM
Does this Modification include a BBC icon to use for the Hide tags in the messages?
Title: Re: Hide Post
Post by: clemenzo on January 02, 2007, 04:25:15 AM
No icon, it appears as a dropdown select menu in the additional options section when you are replying a post..
Title: Re: Hide Post
Post by: babjusi on January 03, 2007, 10:54:29 AM
I ''ve finally installed this mod, but it doesn''t appear. My forum version is 1.1.1. What shall I do to enable and use the functions this mod has offer? Thank you
Title: Re: Hide Post
Post by: clemenzo on January 07, 2007, 09:39:22 AM
Did you turn on the functions in Admin > Features and Options > Basic Features? Did you see the drop down hide options under "additional options" in post reply page?
Title: Re: Hide Post
Post by: babjusi on January 07, 2007, 04:30:27 PM
Quote from: clemenzo on January 07, 2007, 09:39:22 AM
Did you turn on the functions in Admin > Features and Options > Basic Features? Did you see the drop down hide options under "additional options" in post reply page?

Not at all, I looked for it but I couldn''t find it nowhere
Title: Re: Hide Post
Post by: clemenzo on January 08, 2007, 09:07:46 AM
Then do you see 4 lines of options in the basic feature page without description? If yes, you need to manually upload the 4 files as mentioned by the author. These files are not uploaded properly through the package manager.
Title: Re: Hide Post
Post by: babjusi on January 08, 2007, 04:03:20 PM
No, I can not see those 4 lines of options in the basic feature page without description. eidher that U mentioned. When I downloaded and applied the mod, I got a message that it was installed successfully and I would be able to use the functions it had to offer
Title: Re: Hide Post
Post by: clemenzo on January 08, 2007, 10:09:13 PM
Can you provide screenshots of your basic features page?
Title: Re: Hide Post
Post by: babjusi on January 08, 2007, 10:42:58 PM
I would, but the point is that I don''t know how to do it. But there is no change at all in my Administrative panel at Features and options.

By the way, my forum version is 1.1.1 and maybe I ain''t looking in the right place. Can u tell me where exactly I should look in order to enable this mod? Thank u
Title: Re: Hide Post
Post by: clemenzo on January 09, 2007, 12:03:15 AM
Admin > Features and Options > Basic Features
Title: Re: Hide Post
Post by: iyeru42 on January 13, 2007, 09:40:14 PM
After installing your mod (Hide Board) then installing this modification, you create duplicate entries for MySQL. Deleting these entries causes the replies not to go through and presents a WRONG COUNT error. Since this error is produced by an error, the mod maker should fix it.

Also, after installing this modification along with Merge Posts if the replier is the same post (By Din1031) may make the Template for replying not work (IE: It adds a $ where it shouldn't be. Installing the Merge Posts deal by it self, does NOT present this error. Only after installing your mods.)

Quote from: clemenzo on January 09, 2007, 12:03:15 AM
Admin > Features and Options > Basic Features

After installing both mods, these descriptions disappear.
Title: Re: Hide Post
Post by: NeLLIsania on January 27, 2007, 03:15:10 AM
nice mod! but when I view hidden message, message shown and with him shown alert text: $txt['hide_login_msg'] = '[Hidden post: You need login to forum to see it.]';
Q: how I can hide this message when view message ?

Sorry for my pure english  :-[
Title: Re: Hide Post
Post by: Jewelzz on February 05, 2007, 09:23:43 AM
I'm running SMF 1.1.1 on localhost for testing purposes, I installed the hide post mod and get this error when I try to post a hidden message:

Fatal error: Call to undefined function getHiddenMessage() in C:\Program Files\xampp\htdocs\forums\Sources\Display.php on line 899

Now the odd thing, when I click my back button it actually shows the topic but when I try to view it I get the same fatal error.  When you look at line 899 in display.php it says this:

$message['body'] = getHiddenMessage();

Can anyone help fix this error?

TIA

Title: Re: Hide Post
Post by: sherpa サイバー侍 on February 06, 2007, 02:35:26 AM
hey Leaf good work
i am using smf 1.1.1
i try to install HidePost_1-0-8_smf11 but it says
!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

6. Execute Modification    .\Sources/Post.php   Test failed  
13. Execute Modification   .\Themes\default/Post.template.php   Test failed  

help me in easy language
i am cow for all these php..... this and that language :'(
Title: Re: Hide Post
Post by: sherpa サイバー侍 on February 13, 2007, 06:25:48 PM
some one help me plz!!!!!!! I just install hide mode but I can't see anything at description. Here I am posting screen shot. Please give me some advice


(http://imageshack.us)
Title: Re: Hide Post
Post by: Bigguy on February 13, 2007, 08:39:41 PM
It looks like the edits did not get put into the modifications.english.php Look in the .xml file for those and add them manually. That should take care of that problem.
Title: Re: Hide Post
Post by: clemenzo on February 13, 2007, 11:45:48 PM
Quote from: sherpa on February 13, 2007, 06:25:48 PM
some one help me plz!!!!!!! I just install hide mode but I can't see anything at description. Here I am posting screen shot. Please give me some advice


(http://imageshack.us)

As mentioned by the mod owner and myself in this thread, you need to manually upload the php and languages files to overwrite those on your web server. Somehow, those files are uploaded by the package manager with 0 byte size.
Title: Re: Hide Post
Post by: sherpa サイバー侍 on February 14, 2007, 09:08:26 AM
thanks guys!!! really helpful
i might knock your door again if i dont able to ride
thankyou again
Title: Re: Hide Post
Post by: bigmohi on February 15, 2007, 02:13:18 AM
does it work with 1.1.2?
seems not yet!
Title: Re: Hide Post
Post by: sherpa サイバー侍 on February 15, 2007, 04:03:36 AM
after i install 1.1.2 it was gone. nothing left in admin cp but still working hiding post from guest  
Title: Re: Hide Post
Post by: bigmohi on February 15, 2007, 05:32:46 AM
same happend to me, but i saw some guys install it at 1.1.2 dunno how  ???
Title: Re: Hide Post
Post by: clemenzo on February 15, 2007, 11:23:37 AM
1.1.2 should not affect the mod. Mine still exists.
Title: Re: Hide Post
Post by: bigmohi on February 15, 2007, 04:29:15 PM
it needs upgrade to 1.1.2 !!
Title: Re: Hide Post
Post by: sherpa サイバー侍 on February 15, 2007, 05:09:36 PM
(http://imageshack.us)
Title: Re: Hide Post
Post by: clemenzo on February 16, 2007, 10:20:30 AM
Can you try reinstalling the mod?
Title: Re: Hide Post
Post by: bigmohi on February 16, 2007, 04:08:54 PM
i got the message (not work with your smf version) , so i can't install it!!
Title: Re: Hide Post
Post by: babjusi on February 16, 2007, 05:35:32 PM
Try this and maybe it helps. Unzip the package, open the package info (XML-Document) and where it''s written 1.1.1 replace it with 1.1.2 and zip it back. Then u should be able to download it and use it with the SMF 1.1.2.  I tried the same way another mod created by leaf, hideboard mod, and it installed  succesfully, hope it helps
Title: Re: Hide Post
Post by: sherpa サイバー侍 on February 16, 2007, 07:14:13 PM
working working now its working even no language problem
Xiaoqing Zhou has updated for 1.1.2

http://custom.simplemachines.org/mods/index.php?mod=228
Title: Re: Hide Post
Post by: giovanni83 on February 24, 2007, 10:50:09 AM
hi guys!
I only want to say that I installed this mod, then I copied the 4 files indicated before,and all went ok!
thanks guys!!
;)
Title: Re: Hide Post
Post by: mgaidia on March 06, 2007, 07:47:58 AM
QuoteAn Error Has Occurred!
The package you are trying to download or install is either corrupt or not compatible with this version of SMF. 
I am trying to install it through package manager, smf 1.1.2 + saf mc theme
Title: Re: Hide Post
Post by: babjusi on March 06, 2007, 08:55:58 AM
Quote from: mgaidia on March 06, 2007, 07:47:58 AM
QuoteAn Error Has Occurred!
The package you are trying to download or install is either corrupt or not compatible with this version of SMF. 
I am trying to install it through package manager, smf 1.1.2 + saf mc theme
Try to switch back to the default theme and give it another shot
Title: Re: Hide Post
Post by: bluesurfer666 on March 18, 2007, 06:38:15 AM
is there a way to set default options to hide posts so you have to reply ?
Title: Re: Hide Post
Post by: babjusi on March 18, 2007, 02:13:40 PM
Quote from: bluesurfer666 on March 18, 2007, 06:38:15 AM
is there a way to set default options to hide posts so you have to reply ?

Yes, there is. You have 4 options for this mod
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.

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.

Title: Re: Hide Post
Post by: zatara10 on March 20, 2007, 06:01:47 PM
hi,i will this mod only admin worked,what is way hide this mod for user? 
Title: Re: Hide Post
Post by: jaankaash on March 23, 2007, 06:01:33 PM
i want to know how to upload this hack and how to install i was trying but i got FTP conecting error plz expalin it
Title: Re: Hide Post
Post by: babjusi on March 23, 2007, 06:36:03 PM
Quote from: jaankaash on March 23, 2007, 06:01:33 PM
i want to know how to upload this hack and how to install i was trying but i got FTP conecting error plz expalin it

Did you try it via the package manager?
Title: Re: Hide Post
Post by: dirtylaundry on March 26, 2007, 11:00:48 PM
WHERE are the options for this MOD?!?!?!?!?!?!
Title: Re: Hide Post
Post by: babjusi on March 26, 2007, 11:02:44 PM
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.

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.

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.

You can read more about it in the first post of this topic
Title: Re: Hide Post
Post by: dirtylaundry on March 26, 2007, 11:23:47 PM
no i mean on the admistration panel/additional options
iinstallyed everything fine and enabled it but i dont see any changes
i have 1.1.2
Title: Re: Hide Post
Post by: nip0n on March 30, 2007, 04:10:01 AM
nice mod :)

Title: Re: Hide Post
Post by: shadow82x on March 30, 2007, 03:16:06 PM
Shows the options has blank in permissions
Title: Re: Hide Post
Post by: babjusi on March 31, 2007, 12:35:19 PM
Quote from: dirtylaundry on March 26, 2007, 11:23:47 PM
no i mean on the admistration panel/additional options
iinstallyed everything fine and enabled it but i dont see any changes
i have 1.1.2


When you post something, you can enable the mod on the left side, where it says : Additional Options
Title: Re: Hide Post
Post by: commando_systems on April 10, 2007, 05:33:34 PM
I got a clean install with this mod.

All the controls are there everything looks good but:

The messages themselves are not hiding. The posts come up and the hidden message is there followed by the message that is supposed to be hidden.

Any suggestions? It does the same thing in the default theme.

Thanks again for all your help.


In this pic I'm not signed in.


In this pic I'm signed in as the admin.
Title: Re: Hide Post
Post by: xyxis_fahim on April 10, 2007, 06:22:10 PM
Make another account "test" and than log in. View the post you're trying to hide..because i'm pretty sure admin can view post without reply is checked.

Title: Re: Hide Post
Post by: commando_systems on April 10, 2007, 07:37:36 PM
No luck,

Still doesn't hide the message. The message was written by me(admin) I set it to hide.

Message is still visible to guests.

To me, it is visible and has the red quote at the top like before:

[Hidden post: You need login to forum to see it.]

I'm pretty sure this isn't a theme thing. It does the exact same thing in the default theme.

I really think it is something simple I'm just missing. It looks like it wants to work, I just can''t figure out the permission settings or something.

THX again
Title: Re: Hide Post
Post by: 123kid on April 11, 2007, 03:26:27 AM
did i missed something...???

installed it on SMF ver. 1.1.2 and installed properly w/out errors!

but could you point me out on a link on how to make this mod work on other themes :) btw im using blackday theme TIA!!!

More power to you guyz!
Title: Re: Hide Post
Post by: Leaf on April 15, 2007, 03:42:50 PM
Updated the mod to support smf 1.1.2.

If someone cannot see the options in additional options or gets error saying it cannot find the function getHiddenMessage(), it is probably because the previous mentioned 4 files are not uploaded by Package Manager properly. You can copy these four files.

The text message is shown to admin by default.  If you visit the forum as a guest or regular user, you should see only the hiddden messages unless you meet the hidden criteria of that post.

This mod supports default theme and classic theme as of today. If you want to use it in other themes, you will have to modify it by yourself.
Title: Re: Hide Post
Post by: 123kid on April 17, 2007, 01:38:03 AM
Quote from: Leaf on April 15, 2007, 03:42:50 PM
Updated the mod to support smf 1.1.2.

This mod supports default theme and classic theme as of today. If you want to use it in other themes, you will have to modify it by yourself.

how? could you point me out on the right codes to be replaced! tia!!!
Title: Re: Hide Post
Post by: p-chan on April 23, 2007, 01:34:11 AM
Hi..i tried installing the mod while using the default and classic template, but I am still getting this error --> Execute Modification ./Sources/Display.php

during the testing.. any idea why? =) thanks
Title: Re: Hide Post
Post by: p-chan on April 26, 2007, 02:52:24 AM
Just wondering if anyone knows the answer to the above qn? I would appreciate it a lot. Thanks
Title: Re: Hide Post
Post by: Suby on April 29, 2007, 04:54:20 PM
Hi!
Great mod, but I have suggestions to make it even better.

Is it possible to do the following:

If we give a user permission to hide his own post, then disable options like - login, karma, and leave just one option that fits us all, just to stop confusion.
Then, give an option to hide posts only in specific boards, not globaly.

(I didn't read the whole thread)
Title: Re: Hide Post
Post by: El Reclutador 2003 on May 13, 2007, 06:19:44 AM
Is this mod avaible in 1.1.2? Thanks!
Title: Re: Hide Post
Post by: babjusi on May 13, 2007, 08:31:04 PM
Quote from: El Reclutador 2003 on May 13, 2007, 06:19:44 AM
Is this mod avaible in 1.1.2? Thanks!

Yes, it is. If you go to the first post and click : Link to mod it will take you to the page where the mod can be downloaded. There it says :Compatible With:     1.0.5, 1.0.6, 1.0.7, 1.1 Beta 3 Public, 1.1 RC1, 1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2
Title: Re: Hide Post
Post by: El Reclutador 2003 on May 14, 2007, 09:27:19 AM
Quote from: babjusi on May 13, 2007, 08:31:04 PM
Quote from: El Reclutador 2003 on May 13, 2007, 06:19:44 AM
Is this mod avaible in 1.1.2? Thanks!

Yes, it is. If you go to the first post and click : Link to mod it will take you to the page where the mod can be downloaded. There it says :Compatible With:     1.0.5, 1.0.6, 1.0.7, 1.1 Beta 3 Public, 1.1 RC1, 1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2

Hmmm i've got problems when i Try use it, this is the reason for my quesiton..
Title: Re: Hide Post
Post by: babjusi on May 14, 2007, 09:54:19 AM
Quote from: El Reclutador 2003 on May 14, 2007, 09:27:19 AM
Quote from: babjusi on May 13, 2007, 08:31:04 PM
Quote from: El Reclutador 2003 on May 13, 2007, 06:19:44 AM
Is this mod avaible in 1.1.2? Thanks!

Yes, it is. If you go to the first post and click : Link to mod it will take you to the page where the mod can be downloaded. There it says :Compatible With:     1.0.5, 1.0.6, 1.0.7, 1.1 Beta 3 Public, 1.1 RC1, 1.1 RC2, 1.1 RC3, 1.1, 1.1.1, 1.1.2

Hmmm i've got problems when i Try use it, this is the reason for my quesiton..

you mean you get a error mesage. I kept getting an error message as well when trying to install it.
Title: Re: Hide Post
Post by: El Reclutador 2003 on May 14, 2007, 03:00:57 PM
Hmmm i think i've fixed it. The problem was the language. I've readapt the mod to spanish and now appears that runs ok :)

Sorry for all and thanks! :)
Title: Re: Hide Post
Post by: babjusi on May 14, 2007, 03:05:02 PM
Quote from: El Reclutador 2003 on May 14, 2007, 03:00:57 PM
Hmmm i think i've fixed it. The problem was the language. I've readapt the mod to spanish and now appears that runs ok :)

Sorry for all and thanks! :)

Glad that you sorted it out mate
Title: Re: Hide Post
Post by: maxgentino on May 16, 2007, 03:30:44 PM
Is there any mod to hide a complete post and not only the containing text?...
Title: Re: Hide Post
Post by: babjusi on May 16, 2007, 03:50:55 PM
Quote from: maxgentino on May 16, 2007, 03:30:44 PM
Is there any mod to hide a complete post and not only the containing text?...

I don''t think that such a mod exicts, at least I haven''t come across one yet
Title: Re: Hide Post
Post by: Xiphi on May 26, 2007, 04:48:30 PM
I'm getting this error in SMF 1.1.2
11.     Execute Modification     ./Sources/Subs-Post.php     Test failed
Title: Re: Hide Post
Post by: babanner on May 30, 2007, 12:19:28 PM
Please help me! This is what i get when i want to modify a message or post a new one:
Template Parse Error!
There was a problem loading the /Themes/default/Post.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected $end


PLEASE TELL ME HOW TO REPAIR THIS ERROR!!! THANKS IN ADVANCE!
Title: Re: Hide Post
Post by: babanner on May 30, 2007, 02:17:35 PM
**BUMP**
Title: Re: Hide Post
Post by: babjusi on May 30, 2007, 02:25:18 PM
Please, don''t bump your posts within 24 hours as all the guys here are helping us in their free time.

Did you try to uninstall the mod? What theme are you using?
Title: Re: Hide Post
Post by: babanner on May 31, 2007, 04:58:12 AM
Yes, i tried to uninstall the mod and then reinstall. When i uninstalled the mod and wanted to modify an existing post in said that there was a problem in \soursces\display.php . I reinstalled the mod,but when i wanted to modify (or to post) a message the problem with sources\display.php dissapeared but the one i told you earlier appeared. I'm using DILBER multicolor, i also tried the core template of the smf forum but the error was still there. I copied manually those 4 files to the right directories, but i copied them after i installed the mod (i read the readme after i installed the mod LOL ).

PS: PLEASE tell me is there any way to hide only a part of the post? For example i want to have description of a product visible to anyone,but the download link to be hidden for a specific number of posts? Please,please tell me if it is possible.
Title: Re: Hide Post
Post by: babanner on May 31, 2007, 10:28:00 AM
Please reply to me! I really need the mod i described in the last post!
Title: Re: Hide Post
Post by: asdolo on June 29, 2007, 10:24:16 AM
hallo
is possible to make it work also in a different way?
the post is hidden as usual and if you want to read it you have only to click
like in the image


and how to hide also the sign toghether with post?
Title: Re: Hide Post
Post by: armco on July 15, 2007, 09:21:26 AM
has anyone got this to install on version 1.1.3?  if yes can you please le me know
Title: Re: Hide Post
Post by: Maxtor on August 02, 2007, 03:54:00 PM
quote and preview can still bypassed. any fix for that??
Title: Re: Hide Post
Post by: pulkit on August 08, 2007, 04:38:33 AM
will this work with 1.1.3 ??
Title: Re: Hide Post
Post by: babjusi on August 08, 2007, 08:47:21 AM
Quote from: pulkit on August 08, 2007, 04:38:33 AM
will this work with 1.1.3 ??

Yes, it will. Unzip the package, open the info.xml and add after the other versions, 1.1.3 at the action for install and uninstall
Title: Re: Hide Post
Post by: bori_2k6 on August 10, 2007, 09:25:32 PM
could anybody help me how to install this sorry i'm kinda new to this thanks in advance im running smf1.1.3
Title: Re: Hide Post
Post by: babjusi on August 10, 2007, 09:27:27 PM
Quote from: bori_2k6 on August 10, 2007, 09:25:32 PM
could anybody help me how to install this sorry i'm kinda new to this thanks in advance im running smf1.1.3

You can install it as any other mod through the package manager in the admin panel of your forum
Title: Re: Hide Post
Post by: bori_2k6 on August 10, 2007, 09:33:12 PM
tks for the fast reply but i did then what??? didnt see no changes  :(
Title: Re: Hide Post
Post by: bori_2k6 on August 10, 2007, 09:41:40 PM
i see at Package Manager under Modification Packages but looked at Installed Packages and dont show nothing as been installed.please help
Title: Re: Hide Post
Post by: bori_2k6 on August 10, 2007, 09:50:58 PM
The package you are trying to download or install is either corrupt or not compatible with this version of SMF. this the error i get know
Title: Re: Hide Post
Post by: babjusi on August 10, 2007, 10:13:35 PM
Quote from: bori_2k6 on August 10, 2007, 09:50:58 PM
The package you are trying to download or install is either corrupt or not compatible with this version of SMF. this the error i get know

Please don''t bump your posts in quick successions. Try this: Unzip the package, open the info.xml and add 1.1.3 after 1.1.2 at the actions for install and uninstall. Zip it back and install it again
Title: Re: Hide Post
Post by: bori_2k6 on August 10, 2007, 10:54:45 PM
tks it worked and sorry about floding the forum.
Title: Re: Hide Post
Post by: babjusi on August 10, 2007, 11:05:23 PM
Glad to hear that worked out for you, but for future references, it is frowned upon here to bump your own posts and topics within 24 hours. The guys of the Support team are all volunteers and try to help us all in their free time, so let us make things as much easier as possible to them
Title: Re: Hide Post
Post by: LeberMac on August 12, 2007, 06:40:17 PM
Quote from: babjusi on August 08, 2007, 08:47:21 AM
Quote from: pulkit on August 08, 2007, 04:38:33 AM
will this work with 1.1.3 ??

Yes, it will. Unzip the package, open the info.xml and add after the other versions, 1.1.3 at the action for install and uninstall

Hrm, this does not work for me. I've been able to upload the standard version, but every time I try to modify the "package-info.xml" file, changing this:
<install for="1.1, 1.1.1, 1.1.2">
and this
<uninstall for="1.1, 1.1.1, 1.1.2">

to:

<install for="1.1, 1.1.1, 1.1.2, 1.1.3">
and this
<uninstall for="1.1, 1.1.1, 1.1.2, 1.1.3">

Save the .xml file, recompress everything with WinZip and then try to upload, I always get the "The package you tried to upload either is not a valid package or has become corrupted" Error.

I've tried to compress it with Stuffit on the Mac as well as the Mac's default "Archive" feature that comes with OS X. None of those methods gives me a file that SMF will accept.

Even if I just extract the zip file, make NO CHANGES, and recompress it, I get this error. Is there some method of zipping files that I'm not aware of that SMF requires?

(Using SMF 1.1.3)
(Yes, Packages and backups directories are at 777, in fact, everything in that whole Package Directory is now 777)

Other packages upload and install just fine.

I've tried to be sneaky, upload the old version via SMF but not install it, and then FTP up the new version and replace the ZIP file inside the Packages directory... but no luck. The package listing disappears when I do that.

Alright, I was able to get it installed and working by using the UNMODIFIED post, downloaded from the forums, but using this little trick I found from "H":
******************************************************
Lesson Four - Backporting the Package Manager

Did you know that even though a mod is technically incompatable, since you get the notice with your version of SMF that you can still install it?

Well, its true. You can fool the package manager into thinking that you have a different version.

Lets use my Gmail Field mod because I know it is not compatable with any version beyond 1.1 RC1.

When you've downloaded the mod to your local machine and uploaded it via your package manager, go back to the package manager (click the link in the side bar on the left) and then add

;version_emulate=1.1-RC1

This will make the package manager think that you're using SMF 1.1 RC1 rather than SMF 1.1.1.

But due to the Core theme being very different than the Babylon, I dont remcommend installing anything that isnt compatable with 1.1 RC2 or newer, unless you're happy to manually install anything that fails and check for bugs.

Remember that if you emulate to any version that has had a security patch released (1.1 RC2, 1.1 RC2-1, 1.1 RC3, 1.1) then you may get the notifications for them. But you can ignore those since if you're using 1.1.1 then they will already have them applied.

Obviously you'll need ;version_emulate=1.1.2
*******************************************
Title: Re: Hide Post
Post by: Maxtor on August 17, 2007, 02:53:08 PM
custom themes (im using SlickPro: Graphite) doesnt wortk properly.

Quote and Preview posts can still bypassed ... any fix for that? What do i need to modify?
Title: Re: Hide Post
Post by: Maxtor on August 19, 2007, 08:13:01 AM
Quote from: maxtor on August 17, 2007, 02:53:08 PM
custom themes (im using SlickPro: Graphite) doesnt wortk properly.

Quote and Preview posts can still bypassed ... any fix for that? What do i need to modify?

i iwll pay to whoever find me a solution for this.
Title: Re: Hide Post
Post by: Limun on August 27, 2007, 01:30:54 PM
thanks for mod...its great-..
work fine on 1.1.3  :)
Title: Re: Hide Post
Post by: fortest on September 17, 2007, 10:54:07 AM
I'm also having the same problem... quoting or searching will reveal the hidden message. Too bad, 'cause I really need this mod... :(

Is there any plan to update this mod? Leaf hasn't been active for months now... Maybe someone can continue his work??
Title: Re: Hide Post
Post by: Limun on September 20, 2007, 12:53:35 PM
Quote from: fortest on September 17, 2007, 10:54:07 AM
I'm also having the same problem... quoting or searching will reveal the hidden message. Too bad, 'cause I really need this mod... :(

Is there any plan to update this mod? Leaf hasn't been active for months now... Maybe someone can continue his work??

mee too...i didnt see it first.. :(
Title: Re: Hide Post
Post by: buddhika_s on September 23, 2007, 12:08:28 AM
I still don't get this.

How do you edit, info.xml?
Title: Re: Hide Post
Post by: haiwasnm on October 05, 2007, 11:05:59 AM
建议一叶楼主去掉一些不必要的功能细节,保留[hide]BBC代码,加代码后回复可见,这样可以保护一些信息又比较适合大多数人的习惯。
Title: Re: Hide Post
Post by: tinatoth on October 24, 2007, 01:04:02 PM
Any chance to update this for 1.1.4?

I've tried using the package-info.xml trick, didn't work, got the message saying it's not a valid package. I also tried the 1.1.2 emulation trick, but what's the use when it returns errors during installation testing, some files fail the test.


ALSO


Quote from: fortest on September 17, 2007, 10:54:07 AM
I'm also having the same problem... quoting or searching will reveal the hidden message. Too bad, 'cause I really need this mod... :(

Is there any plan to update this mod? Leaf hasn't been active for months now... Maybe someone can continue his work??

Is this true? That's very disappointing.  :( There's got to be some way to hide individual posts from guests, properly.
Title: Re: Hide Post
Post by: bigmohi on November 18, 2007, 05:32:38 AM
yeah, this mod is amazing, any chance of update to 1.1.4 ?
Title: Re: Hide Post
Post by: bigmohi on November 25, 2007, 08:11:35 AM
long time and no respond!! :(
Title: Re: Hide Post
Post by: Leaf on November 26, 2007, 10:49:07 AM
Updated to support smf 1.1.3 & 1.1.4.
Title: Re: Hide Post
Post by: bigmohi on December 01, 2007, 10:55:50 AM
plz someone help me to get it work on my forum and will $$$ to his e-gold, thx for the update!!
Title: Ynt: Hide Post
Post by: a-amp on December 09, 2007, 03:34:27 AM
Hi,

How could I set it so that the whole post would be hidden rather than the message?   I would like to set it so that a guest could only see the topic titles but when he click on the topic, it will prompt the guest to login or register to see the message.

Could that be done?

Tks,
Title: Re: Hide Post
Post by: Limun on December 13, 2007, 01:14:03 PM
Quote from: maxtor on August 17, 2007, 02:53:08 PM
custom themes (im using SlickPro: Graphite) doesnt wortk properly.

Quote and Preview posts can still bypassed ... any fix for that? What do i need to modify?

finaly !!!!!!!!
i resolved this problem in my board-
if u want i can try to resolve also in your....
Title: Re: Hide Post
Post by: MarcusM on December 21, 2007, 04:58:45 AM
Well first i wanna say a big thx for this mod...
My problem is this: the quote and preview thing doesnt work so its safe (i have instaled 1.0.8 version of this mod) BUT my problem is with search!!! if some1 gives a search he sees the post :( What should i do?? thx
Title: Re: Hide Post
Post by: Limun on December 21, 2007, 10:02:05 AM
Quote from: MarcusM on December 21, 2007, 04:58:45 AM
Well first i wanna say a big thx for this mod...
My problem is this: the quote and preview thing doesnt work so its safe (i have instaled 1.0.8 version of this mod) BUT my problem is with search!!! if some1 gives a search he sees the post :( What should i do?? thx

i haved problems with quote prewiex and search..
but when i resolwed quote and prewiew ..i also resolved search...
maybe your permisions are not set up-ed ok
Title: Re: Hide Post
Post by: MarcusM on December 21, 2007, 12:13:55 PM
can you help me set them up pls??? i just disabled serach so the regular memebers cant search and see the topics BUT this is not a solution IF YOU WANT PLS PM ME with what you did !!! i would apreciate very much thx
Title: Re: Hide Post
Post by: MarcusM on December 22, 2007, 07:51:24 AM
some help pls?
Title: Re: Hide Post
Post by: Limun on December 26, 2007, 05:56:53 AM
ok...first check in your admin panel
Permisions > than click on modifity (for group you want to edit permissions) scroll down to Posts..and see my picture..
if is like in mine

Title: Re: Hide Post
Post by: MarcusM on December 27, 2007, 05:37:34 AM
yes its exactly like that... but if it does a search it shows the post!!!
Title: Re: Hide Post
Post by: Limun on December 27, 2007, 05:40:50 AM
ok..than send me your Display.template.php from folder of your template u use
Title: Re: Hide Post
Post by: Limun on December 27, 2007, 05:49:34 AM
Quote from: a-amp on December 09, 2007, 03:34:27 AM
Hi,

How could I set it so that the whole post would be hidden rather than the message?   I would like to set it so that a guest could only see the topic titles but when he click on the topic, it will prompt the guest to login or register to see the message.

Could that be done?

Tks,

well i think this isnt topic for this...
btw this what you want u can set up-it in permissions noo need "hide post" to do this !!
Title: Re: Hide Post
Post by: MarcusM on December 28, 2007, 12:32:49 PM
what should i modify from dysplay.template.php??? i have the a  custom theme and i dotn have dysplay.template.php i have only in default theme so i guess it uses that. what should i modify from display.template.php
Title: Re: Hide Post
Post by: Limun on December 28, 2007, 01:49:06 PM
Quote from: MarcusM on December 28, 2007, 12:32:49 PM
what should i modify from dysplay.template.php??? i have the a  custom theme and i dotn have dysplay.template.php i have only in default theme so i guess it uses that. what should i modify from display.template.php

hmm
what files u have in custom template?
Recent.template.php  ?
Profile.template.php   ?

for example this was problem in my case..in custom display template...this  lines

if ($message['can_view_post']) {
                // Can they reply? Have they turned on quick reply?
                if ($context['can_reply'] && !empty($options['display_quick_reply']))
                        echo '
                                        <a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '" onclick="doQuote(', $message['id'], ', \'', $context['session_id'], '\'); return false;">', $reply_button, '</a>';

                // So... quick reply is off, but they *can* reply?
                elseif ($context['can_reply'])
                        echo '
                                        <a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '">', $reply_button, '</a>';

                // Can the user modify the contents of this post?
                if ($message['can_modify'])
                        echo '
                                        <a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', $modify_button, '</a>';

                // How about... even... remove it entirely?!
                if ($message['can_remove'])
                        echo '
                                        <a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';sesc=', $context['session_id'], '" onclick="return confirm(\'', $txt[154], '?\');">', $remove_button, '</a>';
                if ($context['can_warn'])
echo '
<a href="', $scripturl, '?action=warnadd;topic=', $context['current_topic'], ';start=', $context['start'], ';user=', $message['member']['id'], ';msg=', $message['id'], '">', $warn_button, '</a>';
                       

                // What about splitting it off the rest of the topic?
                if ($context['can_split'])
                        echo '
                                        <a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', $split_button, '</a>';
                }

Title: Re: Hide Post
Post by: MarcusM on December 29, 2007, 04:22:37 AM
ell ok ok but what should i modify man??? what i add or what i remove?? cmon pls tell me
Title: Re: Hide Post
Post by: Limun on December 29, 2007, 05:51:53 PM
Quote from: MarcusM on December 29, 2007, 04:22:37 AM
ell ok ok but what should i modify man??? what i add or what i remove?? cmon pls tell me

mannn...first i have to know what php files u have in custom theme...
how can i help u if i dont nothing...
i m not programer...but i resolved this in my forum...
i can try help you but you need to answer me
Title: Re: Hide Post
Post by: MarcusM on December 30, 2007, 10:01:49 AM
i have only index.template.php
Title: Re: Hide Post
Post by: DitherTask on January 01, 2008, 02:46:09 PM
Hi. Can you modify script to hide karma entry in dropdown list, when karma option is disabled globally? Thank you.
Title: Re: Hide Post
Post by: hm19000 on January 19, 2008, 04:49:10 PM
how can i download it, i tried but the link is down
Title: Re: Hide Post
Post by: gubius on January 25, 2008, 02:47:36 AM
Hi,

i didn't read the whole post now(16 pages) but have only a question. IS it possible for the mod(or exists another?), or the creator to do it, that only unread posts get shown, until you click on a button to show them all.

Thanks for your help!
Title: Re: Hide Post
Post by: pactman on February 20, 2008, 06:39:57 AM
There is a problem the Mod !!!!

Search publishes the thing hidden under his claw!!

PLEASE HELP!
Title: Re: Hide Post
Post by: Chewy954 on February 25, 2008, 06:12:52 PM
I cant uninstall it...

Installing this package will perform the following actions:
Type Action Description
1. Execute Modification HiddenPost_smf_1-1.xml Modification parse error
2. Execute Modification - Modification parse error
3. Execute Modification HiddenPost_smf_1-1-rc1-classic.xml Modification parse error
4. Execute Modification - Modification parse error
5. Delete File ./Sources/HidePost.php
6. Delete File ./Themes/default/languages/HidePost.english.php
7. Delete File ./Themes/default/languages/HidePost.chinese_simplified.php
8. Delete File ./Themes/default/languages/HidePost.chinese_simplified_utf8.php
9. Execute Code uninstall.php
Title: Re: Hide Post
Post by: yesu on March 08, 2008, 12:32:24 PM
i`m using colatesi_v3 theme on my forum 1.1.4 and  i get this error

   Tipo     Acción     Descripción
1.    Ejecutar Código    install.php    
2.    Ejecutar Modificación    ./Sources/Display.php    Éxito
3.    Ejecutar Modificación    ./Sources/Load.php    Éxito
4.    Ejecutar Modificación    ./Sources/ManagePermissions.php    Éxito
5.    Ejecutar Modificación    ./Sources/ModSettings.php    Éxito
6.    Ejecutar Modificación    ./Sources/Post.php    Éxito
7.    Ejecutar Modificación    ./Sources/Printpage.php    Éxito
8.    Ejecutar Modificación    ./Sources/Profile.php    Éxito
9.    Ejecutar Modificación    ./Sources/Recent.php    Prueba fallida
10.    Ejecutar Modificación    ./Sources/Security.php    Éxito
11.    Ejecutar Modificación    ./Sources/Subs-Post.php    Éxito
12.    Ejecutar Modificación    ./Themes/default/Display.template.php    Éxito
13.    Ejecutar Modificación    ./Themes/default/Post.template.php    Éxito
14.    Ejecutar Modificación    ./Themes/default/Profile.template.php    Éxito
15.    Ejecutar Modificación    ./Themes/default/Recent.template.php    Éxito
16.    Ejecutar Modificación    ./Themes/classic/Display.template.php    Éxito
17.    Ejecutar Modificación    ./Themes/classic/Post.template.php    Éxito
18.    Ejecutar Modificación    ./Themes/classic/Recent.template.php    Éxito
19.    Extraer Archivo    ./Sources/HidePost.php    
20.    Extraer Archivo    ./Themes/default/languages/HidePost.english.php    
21.    Extraer Archivo    ./Themes/default/languages/HidePost.chinese_simplified.php    
22.    Extraer Archivo    ./Themes/default/languages/HidePost.chinese_simplified_utf8.php    

help!!!
Title: Re: Hide Post
Post by: Ikhsan4488 on March 25, 2008, 11:06:48 PM
how to install in my custom template.. :(
Title: Re: Hide Post
Post by: Lysyj on March 28, 2008, 08:32:29 AM
nice mod! but when I view hidden message, message shown and with him shown alert text: $txt['hide_login_msg'] = '[Hidden post: You need login to forum to see it.]';
Q: how I can hide this message when view message ?

Sorry for my pure english
Title: Re: Hide Post
Post by: smartlim on April 06, 2008, 02:01:57 AM
I am using smf 1.1.4. After installing Hide Post, I can't see anything in Admin > Features and Options > Basic Features. It blank, only got a check box. I try to find and read the solution in this discussion, that replace 4 files that mentions by creater but still same result, what's going on?
Title: Re: Hide Post
Post by: rabb1t on April 11, 2008, 03:19:40 AM
hello, what about a bug with quoting a message?
This a simple cheat to see a hidden post, i create a screenshots to show how it works.
Screen 1: First of all, we get the URL of quote next message
Screen 2: Then, we paste a URL into web-browser
Screen 3: Now, edit the URL to number of message with hidden post
Screen 4: We get the hidden post.

Sorry, my english isn't very pure, i'm from Russia.
Title: Re: Hide Post
Post by: Ikhsan4488 on May 01, 2008, 02:21:07 PM
can i use this mod for 1.1.5?
Title: Re: Hide Post
Post by: rabb1t on May 16, 2008, 02:05:59 AM
yes, it's work on my smf 1.1.5
Title: Re: Hide Post
Post by: ivantoar on June 26, 2008, 07:28:02 AM
I cannot use this mod on SMF 1.1.5. When I'm trying to install it, it shows one fail line at :
6.     Execute Modification     ./Sources/Post.php     Test failed

Even I already uninstall all mods I have (Auto Embed Video/Audio Clips 3.0, rateTopic    1.0, Simple_Mood 1.0 )

I try to manual edit post.php using the manual, but seems my post.php doesn't have "if (isset($topic)) getTopic();" line, so I cannot edit it too. Please help, thanks.
Title: Re: Hide Post
Post by: Leaf on July 02, 2008, 02:08:23 PM
Support SMF 1.1.5 now.

For search and quote issues, I will check it later.
Title: Re: Hide Post
Post by: Lady Night Owl on July 02, 2008, 03:04:12 PM
This looks similar to the Mod Hide Post mod - except I can define groups of users that can use it, aside from moderators and I wouldn't have to give moderators the permission to manage forum members.

ETA: I installed it (on 1.1.5) no problems so far)
Title: Re: Hide Post
Post by: Leaf on July 13, 2008, 06:49:34 PM
Quote from: rabb1t on April 11, 2008, 03:19:40 AM
hello, what about a bug with quoting a message?
This a simple cheat to see a hidden post, i create a screenshots to show how it works.
Screen 1: First of all, we get the URL of quote next message
Screen 2: Then, we paste a URL into web-browser
Screen 3: Now, edit the URL to number of message with hidden post
Screen 4: We get the hidden post.

Sorry, my english isn't very pure, i'm from Russia.

In Post.php, searh for:

SELECT m.subject, IFNULL(mem.realName, m.posterName) AS posterName, m.posterTime, m.body



Add after it:

,m.ID_BOARD, m.ID_TOPIC, m.ID_MEMBER, m.hiddenOption, m.hiddenValue
      

Search for:

list ($form_subject, $mname, $mdate, $form_message) = mysql_fetch_row($request);


Replace it with:


//list ($form_subject, $mname, $mdate, $form_message) = mysql_fetch_row($request);

// Hide the post in quotes or not? --- XD
$row = mysql_fetch_assoc($request);
$form_subject = $row['subject'];
$mname = $row['posterName'];
$mdate = $row['posterTime'];
if (!empty($modSettings['allow_hiddenPost']) && $row['hiddenOption'] > 0)
{
global $sourcedir;
require_once($sourcedir . '/HidePost.php');
$context['current_message'] = $row;
$form_message = getHiddenMessage();
} else
$form_message = $row['body'];



It should solve the quote issue.

=======================================================

In Search.php, search for:


m.icon, m.posterIP, m.body, m.smileysEnabled, m.modifiedTime, m.modifiedName,


Add after it:

m.hiddenOption, m.hiddenValue,


Search for:

// Sadly, we need to check the icon ain't broke.


Add before it:

// Hide the post in search or not? --- XD
if (!empty($modSettings['allow_hiddenPost']) && $message['hiddenOption'] > 0)
{
global $sourcedir;
require_once($sourcedir . '/HidePost.php');
$context['current_message'] = $message;
$message['body'] = getHiddenMessage(1);
}



This should solve the search issue.

I will update mod to include these two fixes later.
Title: Re: Hide Post
Post by: baijianpeng on July 16, 2008, 10:54:13 PM
hi, leaf,

Are you still improving this mod ?

I noticed that your Hide Post (http://custom.simplemachines.org/mods/index.php?mod=228) mod supports SMF 1.1.5 now. Will it support SMF 2.0 ?

Thanks.
Title: Re: Hide Post
Post by: Leaf on July 16, 2008, 11:21:48 PM
Upgrade to v 1.1:
- Fix search and quote bugs.
- Add moderator option for moderators to hide posts from all guests or regular members.
- Add hidden notes to give the reason or explanation about the hidden content.
- Disable karma option when karma is disabled.
- Leave data in database when uninstalling the mod.

Quote from: baijianpeng on July 16, 2008, 10:54:13 PM
hi, leaf,

Are you still improving this mod ?

I noticed that your Hide Post (http://custom.simplemachines.org/mods/index.php?mod=228) mod supports SMF 1.1.5 now. Will it support SMF 2.0 ?

Thanks.
There are too many changes for smf 2.0. I will need some time to support it.
Title: Re: Hide Post
Post by: baijianpeng on July 17, 2008, 12:43:12 AM
Cool ! Since SMF 2.0 is still in beta status, we will wait for your new mod.

Thanks a lot.
Title: Re: Hide Post
Post by: Leaf on July 30, 2008, 02:58:08 AM
Version 1.1 for SMF 2.0: HidePost_1-1_smf20.zip
- Support SMF 2.0
- Allow users to hide posts by karma, posts, reply or moderator
- Allow user to enable/disable this mod in global options
- Allow user to display/hide the hidden message if user can see the posts.
- Allow user to set the threshold of hiding posts
- Allow user to input hidden notes
- Leave data in database during uninstall

If anyone would like to provide the language file that is not in the mod, I can add it to the zip file.
Title: Re: Hide Post
Post by: baijianpeng on July 30, 2008, 06:36:40 AM
Good job!  Finally we got a new version for SMF 2.0.

Title: Re: Hide Post
Post by: moonjo on August 19, 2008, 12:18:18 PM
This is great mod. But it looks like it only hides the message in the topic, not the topic itself.
ie. If I create a topic called "Hidden Topic" with a message "this is hidden topic's message sldkfjsad" and hide it with moderator setting, regular users can still see the topic "Hidden Topic" in the forum and click to get inside and then see that the message is hidden.
I was hoping it would hide the topics in a simliar way as unapproved posts.
Title: Re: Hide Post
Post by: okae on September 21, 2008, 05:16:43 PM
Quote from: Leaf on July 30, 2008, 02:58:08 AM
Version 1.1 for SMF 2.0: HidePost_1-1_smf20.zip
- Support SMF 2.0
- Allow users to hide posts by karma, posts, reply or moderator
- Allow user to enable/disable this mod in global options
- Allow user to display/hide the hidden message if user can see the posts.
- Allow user to set the threshold of hiding posts
- Allow user to input hidden notes
- Leave data in database during uninstall

If anyone would like to provide the language file that is not in the mod, I can add it to the zip file.

dont work on beta 4 :(

pd: i cant w8 untill  new revision ;)
Title: Re: Hide Post
Post by: okae on September 23, 2008, 06:22:44 PM
anyone have this mod working on a beta 4?
Title: Re: Hide Post
Post by: baijianpeng on September 26, 2008, 09:02:34 PM
I tried to install Hide Post Mod on SMF 1.1.6, but after upload, there is no option to Apply the Mod, see screenshot.

What's wrong?

Title: Re: Hide Post
Post by: DooDoo on October 07, 2008, 05:55:18 AM
Quote from: okae on September 23, 2008, 06:22:44 PM
anyone have this mod working on a beta 4?

It not compleate work in beta4.  When not select option of hide post, it will show error msg as below.

Wrong value type sent to the database. Integer expected.
Title: Re: Hide Post
Post by: Primo Cosa on October 14, 2008, 05:02:19 PM
I installed the mod and I have to main errors.

It pops up this error message:
Quote
Column count doesn't match value count at row 1
Archivo: $msgOptions[hiddenOption]
Línea: $msgOptions[hiddenValue]

database error

and the red hidden message doesn't appear, so it doesn't work.

I have smf 1.1.6 with default theme and spanish language.

¿Please, could anybody help me figure it out how to fix this or I should uninstall it?


Title: Re: Hide Post
Post by: kurosaki00 on October 16, 2008, 10:39:41 PM
please i need this :'(
i have 1.1.6 and it doesnt work, it says is incompatible
Title: Re: Hide Post
Post by: Sudhakar Arjunan on October 19, 2008, 02:15:22 AM
I got a error during installation on my 2.0.4.


Find [Select]

            id_msg, icon, subject, poster_time, poster_ip, id_member, modified_time, modified_name, body,

Add After [Select]

            hiddenOption, hiddenValue, hiddenInfo, id_board,

But in my display.php file i could see all text with "m." prefix.

ex:             m.id_msg, m.icon, m.subject, m.poster_time, m.poster_ip, m.id_member, m.modified_time, m.modified_name, m.body,
            m.smileys_enabled, m.poster_name, m.poster_email, m.approved,
            m.id_msg_modified < {int:new_from} AS is_read, k.message AS is_repped
Title: Re: Hide Post
Post by: Sudhakar Arjunan on October 21, 2008, 02:32:14 PM
Any Updates, if i install it. Does not allow even admin to post.
Title: Re: Hide Post
Post by: theshock on October 23, 2008, 07:14:22 PM
Hi Girls and Guys!

I have this Problem 2 on my SMF 2.0 Beta 3.1 Public!

I Download the HidePost_1-1_smf20 zip and Install it!
It works really good if you select some reason for hiding!
If you don't pick a reason, this message will displayed;

"An Error Has Occurred!
Wrong value type sent to the database. Integer expected. "

What value type he mean! I don't set one! Or the default setting is wrong!

I do a manual install 2, but nothing changes!

So it will be cool, if i write something it don't do something!
Only if I pick some reason 2 Hide, the mod Grep the Post!

Thx for some help or fixes!

TheShock!
Title: Re: Hide Post
Post by: theshock on October 23, 2008, 08:47:29 PM
K, i got some errors in my database!

url  -->  ?action=post2;start=0;board=9
message  -->  8: Use of undefined constant hiddenInfo - assumed 'hiddenInfo'
error_type  -->  undefined_vars
file  -->  forum/Sources/Subs-Post.php
line  -->  1822

url  -->  ?action=post2;start=0;board=9
message  -->  8: Use of undefined constant hiddenOption - assumed 'hiddenOption'
error_type  -->  undefined_vars
file  -->  forum/Sources/Subs-Post.php
line  -->  1822

url  -->  ?action=post2;start=0;board=9
message  -->  8: Use of undefined constant hiddenValue - assumed 'hiddenValue'
error_type  -->  undefined_vars
file  -->  forum/Sources/Subs-Post.php
line  -->  1822


This Line in Subs-Post.php is as follow;

$msgOptions[hiddenOption], $msgOptions[hiddenValue], $msgOptions[hiddenInfo],

I try it with '' but nothing!
$msgOptions['hiddenOption'], $msgOptions['hiddenValue'], $msgOptions['hiddenInfo'],
Title: Re: Hide Post
Post by: jdizine on October 29, 2008, 03:00:59 PM
I have SMF 1.1.6 English and it has no apply option.
Any help?
Title: Re: Hide Post
Post by: baijianpeng on November 01, 2008, 06:08:33 AM
Ok, finally I figured out why this Mod has no Apply option when installing on SMF 1.1.6: the author did not add support for SMF 1.1.6 at all.

I had patched this Mod to support SMF 1.1.6.  I tested and it worked very good.

If you want to install Hide Post Mod v1.1 on SMF 1.1.6, please download patched version of Hide Post Mod at joomlagate.com  (http://www.joomlagate.com/component/option,com_remository/Itemid,48/func,fileinfo/id,1178/).

The website is in Chinese language, but you can just click on the green download button to get the file.
Title: Re: Hide Post
Post by: jdizine on November 02, 2008, 01:09:58 PM
I get an error here:

Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.


./Themes/rt_smf_versatility/Display.template.php File not found
./Themes/rt_smf_versatility/Post.template.php    File not found
./Themes/rt_smf_versatility/Post.template.php    File not found

Any idea on what I should do?

EDIT: Fixed the issue by downloading the Versatile Theme.
Title: Re: Hide Post
Post by: baijianpeng on November 02, 2008, 07:09:03 PM
Don't worry. The /rt_smf_versatility is my custom theme name. I added these three lines of code to make this Mod work on my custom theme.

I did not delete them in order to remind other users that they should replace these /rt_smf_versatility names with your custom theme name.

You can find these lines in the file HidePost11_smf_1-1-5.xml and file HiddenPost_smf_1-1-5.xml. Just replace my theme name with yours.

If you are using the default theme, you don't need to modify anything, just ignore that warning and go on to apply this Mod. Since you don't have a theme named rt_smf_versatility, so those lines can't take effect at all. They will be skipped.

Enjoy !
Title: Re: Hide Post
Post by: kurosaki00 on November 23, 2008, 04:05:39 AM
woo it works!
Title: Re: Hide Post
Post by: okae on November 25, 2008, 06:04:05 PM
baijianpeng (http://www.simplemachines.org/community/index.php?action=profile;u=70012)very very thanks to you, now i can use it.

pd: now i am waiting to updates for 2.0b4 :P
Title: Re: Hide Post
Post by: Low on November 25, 2008, 10:24:49 PM
baijianpeng, There is no download except for Joomla?

Also will this work 1.1.7?

Thanks
Title: Re: Hide Post
Post by: okae on November 26, 2008, 06:51:49 AM
yes with the patch it works on 1.1.7
Title: Re: Hide Post
Post by: baijianpeng on November 26, 2008, 07:38:12 AM
hi, Low, please download Hide Post Mod at:

http://www.joomlagate.com/component/option,com_remository/Itemid,48/func,fileinfo/id,1178/ (http://www.joomlagate.com/component/option,com_remository/Itemid,48/func,fileinfo/id,1178/)

Maybe guest can't download because I recently adjusted the permissions. I will try to open that permission soon.

Surely it can work on SMF v1.1.7, I am using it on my 1.1.7 now.
Title: Re: Hide Post
Post by: okae on November 29, 2008, 12:29:54 PM
the autor want to updated this great mod to 2.0b4 some day or this mob is abandonned?
Title: Re: Hide Post
Post by: zeroandone on December 01, 2008, 02:38:52 PM
Quote from: theshock on October 23, 2008, 07:14:22 PM
Hi Girls and Guys!

I have this Problem 2 on my SMF 2.0 Beta 3.1 Public!

I Download the HidePost_1-1_smf20 zip and Install it!
It works really good if you select some reason for hiding!
If you don't pick a reason, this message will displayed;

"An Error Has Occurred!
Wrong value type sent to the database. Integer expected. "

What value type he mean! I don't set one! Or the default setting is wrong!

I do a manual install 2, but nothing changes!

So it will be cool, if i write something it don't do something!
Only if I pick some reason 2 Hide, the mod Grep the Post!

Thx for some help or fixes!

TheShock!
I have the same error when I try to reply to a post, or move a topic. After un-installing the mod, everything works fine.
Title: Re: Hide Post
Post by: Leaf on December 21, 2008, 03:33:48 PM
Mod Update:
HidePost_1-1_smf117.zip:
- Support SMF 1.1.6 & 1.1.7
- Languages supported: English, Greek, Simplified Chinese (GB2312, utf8), Traditional Chinese (Big5, utf8)
Title: Re: Hide Post
Post by: okae on December 21, 2008, 05:27:10 PM
Quote from: Leaf on December 21, 2008, 03:33:48 PM
Mod Update:
HidePost_1-1_smf117.zip:
- Support SMF 1.1.6 & 1.1.7
- Languages supported: English, Greek, Simplified Chinese (GB2312, utf8), Traditional Chinese (Big5, utf8)

when a release for 2.0b4?

pd: thx for this great mod.
Title: Re: Hide Post
Post by: Leaf on December 21, 2008, 05:48:54 PM
Mod update:

HidePost_1-1_smf20.zip:
- Support SMF 2.0 beta 4
- Fix empty hidden option issue
- Languages supported: English, Greek, Simplified Chinese (GB2312, utf8), Traditional Chinese (Big5, utf8)
Title: Re: Hide Post
Post by: Darkness_ on January 11, 2009, 10:58:56 AM
where in the admin CP can I enable it?

searched for it bu couldn't find it
Title: Re: Hide Post
Post by: ampedm on January 18, 2009, 06:42:06 AM
Quote from: Darkness_ on January 11, 2009, 10:58:56 AM
where in the admin CP can I enable it?

searched for it bu couldn't find it

Security and Moderation > General > bottom part
(SMF 2.0 Beta 4)
Title: Re: Hide Post
Post by: Darkness_ on January 18, 2009, 08:19:51 AM
gets in the error logs


this bit of code.

if (isset($_POST['hiddenOption']) && !((allowedTo('hide_post_any') || ($user_info['id'] == $ID_MEMBER_POSTER && allowedTo('hide_post_own'))) && !empty($modSettings['allow_hiddenPost'])))



this is the error in the error log


8: Undefined variable: ID_MEMBER_POSTER
Title: Re: Hide Post
Post by: Dr Web on January 20, 2009, 03:57:22 AM
 Hi,

Is this MOD able to do the below described?

I just found a vB forum with a feature that I would like to have on my SMF 2.0B4, a guest be able to see only the first post of a topic and have a message below telling them to login or register to see the rest, exactly like this site below:

http://www.forex4noobs.com/forums/talking-forex/486-your-money-safe.html

If this MOD doesn't do this, what changes I need to do to have the same feature.

Thanks for any help, very appreciated.
Title: Re: Hide Post
Post by: okae on February 08, 2009, 04:57:28 PM
any updated for 2.0rc1? this work on 2.0rc1 already?
Title: Re: Hide Post
Post by: DeviDarkL on March 16, 2009, 05:11:09 PM
Great mod ;)

Translation to Portuguese (for HidePost.portuguese_pt.php)
$txt['hide_post'] = 'Esconder Post';
$txt['allow_hiddenPost'] = 'Activar posts escondidos';
$txt['show_hiddenMessage'] = 'Permitir ver mensagens escondidas se o utilizador conseguir ver o post.';
$txt['show_hiddenColor'] = 'Cor da mensagem escondida';
$txt['max_hiddenValue'] = 'Valor máximo para esconder posts por Karmas ou N. de posts';

$helptxt['allow_hiddenPost'] = 'Permitir esconder posts por Karma, N. de posts, respostas, pontos ou moderadores.';

$txt['hide_this_post'] = 'Esconder este post';
$txt['hide_select'] = '-----';
$txt['hide_karma'] = 'karma';
$txt['hide_posts'] = 'posts';
$txt['hide_reply'] = 'resposta';
$txt['hide_login'] = 'login';
$txt['hide_value'] = 'Valor (Máximo valor: %s)';
$txt['hide_karma_msg'] = '[Post Escondido: Precisas de %s karmas para poderes ver. Tu, neste momento, tens %s.]';
$txt['hide_posts_msg'] = '[Post Escondido: Precisas de %s posts para poderes ver. Tu, neste momento, tens %s.]';
$txt['hide_reply_msg'] = '[Post Escondido: Precisas de responder a este tópico para poderes ver.]';
$txt['hide_login_msg'] = '[Post Escondido: Precisas de fazer login no fórum para poder ver.]';

$txt['permissionname_hide_post'] = 'Esconder posts';
$txt['permissionhelp_hide_post'] = 'Esconder posts por Karma, N. de posts, respostas, pontos ou moderadores.';
$txt['permissionname_hide_post_own'] = 'Próprio post';
$txt['permissionname_hide_post_any'] = 'Qualquer post';
$txt['permissionname_view_hidden_post'] = 'Ver posts escondidos';
$txt['permissionhelp_view_hidden_post'] = 'Permite que os utilizadore vejam os posts escondidos independentemente do critério em causa.';
$txt['permissionname_view_hidden_msg'] = 'Ver notas escondidas em posts';
$txt['permissionhelp_view_hidden_msg'] = 'Ver notas escondidas se o utilizador conseguir ver os posts.';

$txt['hide_moderator'] = 'moderador';
$txt['hidden_info_length'] = 'Tamanho maximo das notas escondidas';
$txt['hide_mod_msg'] = '[Post Escondido: Este post foi escondido por um moderador.]';
$txt['hide_info'] = 'Notas escondidas';
Title: Re: Hide Post
Post by: HecKel on April 06, 2009, 06:39:38 AM
One suggestion to DeviDarkL.

Instead of "post" and "posts" I think it would be better in Portuguese, we have that words in our own language :) "mensagem" and "mensagens".
Title: Re: Hide Post
Post by: okae on April 06, 2009, 07:17:54 AM
still waiting for any updated of this great mod :(
Title: Re: Hide Post
Post by: CraigPal on April 06, 2009, 01:48:03 PM
I like this! I wasn't even looking for it either!

Thanks!
Title: Re: Hide Post
Post by: fishery on April 17, 2009, 01:03:49 AM
when a release for 1.1.8?

ps: thx for this great mod.
Title: Re: Hide Post
Post by: jdizine on May 12, 2009, 07:25:54 PM
Since I updated to 1.1.8 the mod is not working! I see all the stuff but it does not apply. Any fix to this?
Title: Re: Hide Post
Post by: Maxtor on May 20, 2009, 04:18:27 PM
in "Admin">"Forum Error Log" this error:

8: Undefined index: hiddenOption
File: /home/maxt0ras/public_html/forum/Sources/Display.php
Line: 1021
is repeating 20 times every second each time by different user wtf!??!?

anyone can help??? i cant solve this.

Display.php line 1021 code:
// Hide the post or Not? --- XD
$message['can_view_post'] = 1;
if (!empty($modSettings['allow_hiddenPost']) && $message['hiddenOption'] > 0)
{
global $sourcedir;
require_once($sourcedir . '/HidePost.php');
$message['ID_TOPIC'] = $topic;
$context['current_message'] = $message;
$message['body'] = getHiddenMessage();
$message['can_view_post'] = $context['can_view_post'];
}
Title: Re: Hide Post
Post by: Neverhurry on May 22, 2009, 01:23:35 PM
hello, i installed both this mod (i love this mod) and shop mod, may i ask is it possible to set the condition to see a post one has to spent 5 karmas or 10 $?

then it will make this mod even greater.

any ideas? or, is there already such mod? please help me if you have any suggestion. Thank you!
Title: Re: Hide Post
Post by: GeorgeGR on June 11, 2009, 03:34:22 AM
what about this error?


Database Error
Incorrect integer value: '-----' for column 'hiddenOption' at row 1
File: C:\wamp\www\Forum\Sources\Subs-Post.php
Line: 1540 
Title: Re: Hide Post
Post by: D.S on July 13, 2009, 07:19:05 AM
is it possible hide by number of (topic)  please ....
Title: Re: Hide Post
Post by: DreaMNauT on August 18, 2009, 12:57:29 PM
Another good idea is to put inside the mod the option to hide the links from membergroups and unhide ..lets say to moderators
Title: Re: Hide Post
Post by: Sprockette on September 28, 2009, 07:11:08 PM
is it possible to hide a post to all users except the author?
Title: Re: Hide Post
Post by: okae on October 09, 2009, 06:31:23 AM
i install this mod into smf 2.0rc1.2 and all works fine without errors but the hide by karma option dont work, can anyone help me to fix it?
Title: Re: Hide Post
Post by: linette97 on October 30, 2009, 05:14:51 AM
Quote from: okae on October 09, 2009, 06:31:23 AM
i install this mod into smf 2.0rc1.2 and all works fine without errors but the hide by karma option dont work, can anyone help me to fix it?

Hi there Okae, How did you get it to install in 2.0 RC1.2??? I downloaded the HidePost_1-1_smf20 version,  I upload with all test successful, then when I go to apply mod I get this error (Same error with 1.7 version)

Type Action Description
1. Execute Code install.php
2. Execute Modification HidePost11_smf_2-0.xml Modification parse error
3. Execute Modification HidePost11_smf_2-0.xml Modification parse error
4. Execute Modification HidePost_smf_2-0-classic.xml Modification parse error
5. Execute Modification HidePost_smf_2-0-classic.xml Modification parse error
6. Extract File ./Sources/HidePost.php
7. Extract Tree ./Themes/default/languages



Anyone can help me if they know the problem! Thanks!


I really think this mod will come in handy for me...
Trying to restrict members to the "Request Area" with less then 10 post count.
Meaning they can not request anything unless they have 10 or more posts

I don't mind them viewing the "Request board & topics" but they can not post.

If anyone has another way for me to accomplish this I'm all ears!!

EDIT:
Never Mind I got it to work...Don't know how!!t After logging out of my site for a while, I tried to install it again it went through and it works for 2.0 RC1.2

But funny thing this is not the kinda mod I was looking for. It only works for Posts. I need something like I described above.

Well going to search again and see what I can find. If anyone can still help me.. Please PM me. Thanks!

Title: Re: Hide Post
Post by: yourdailysaver on November 01, 2009, 03:54:34 PM
sir is it possible to hide all existing post with the same rule (say karma greater than 5) .
Title: Re: Hide Post
Post by: yourdailysaver on November 04, 2009, 02:05:32 PM
Quote from: yourdailysaver on November 01, 2009, 03:54:34 PM
sir is it possible to hide all existing post with the same rule (say karma greater than 5) .

can somebody please reply its really urgent
Title: Re: Hide Post
Post by: scorpion1082 on November 04, 2009, 04:29:57 PM
Apply Filter: Only show the error messages of this member  Nathan Whedon      Reverse chronological order of list  Today at 01:26:35 pm
Apply Filter: Only show the error messages of this IP address 70.173.101.21      Apply Filter: Only show the error messages of this session ab1db394f339d83688419b4ea64f862b
     Apply Filter: Only show the errors of this type Type of error: Database
Apply Filter: Only show the error messages of this URL http://www.bluesunalliance.com/index.php?action=admin;area=packages;sa=install2;package=HidePost_1-1_smf20.zip;pid=0
Apply Filter: Only show the errors with the same message
Database Error: BLOB/TEXT column 'hiddenInfo' can't have a default value
Apply Filter: Only show the errors from this file
File: C:/Clients/bluesunalliance/Packages/temp/HidePost_1-1_smf20/install.php
Line: 17

huh? anyone know what this is about?  it wont actually allow me to apply the mod.

edit 1: i get an error on the default display template for core, but im using a modified theme and it installs there fine, so im ignoring the error since its exactly the same code that is trying to be inserted (both the default display template and modified display template initially showed errors for the same code, but ive fixed the modified theme error and left the other).
Title: Re: Hide Post
Post by: darkfaerie129 on November 18, 2009, 08:56:06 PM
I installed this mod, and it states that it is installed in my package manager, however i do not see any of the new options on the forum. Any suggestions?
Title: Re: Hide Post
Post by: yourdailysaver on December 20, 2009, 04:24:27 PM
i am using your mod on my forum sir. the problem i am facing is it hides only first post of new topic. is there any way that i can hide all future posts within hide tags and also put all past posts also within hide tags ?

please let me know if you have any idea. thanks in advance.
Title: Re: Hide Post
Post by: -=[Vyorel]=- on December 26, 2009, 07:15:40 AM
For SMF 2.0 RC2 ?
Title: Re: Hide Post
Post by: yourdailysaver on December 27, 2009, 09:55:47 AM
Quote from: -=[Vyorel]=- on December 26, 2009, 07:15:40 AM
For SMF 2.0 RC2 ?

yes sir 2.0RC2
Title: Re: Hide Post
Post by: juliegreen on January 01, 2010, 03:35:32 PM
after the reply users still see the warning of [Hidden post: You need reply to this topic to see it.]! what to do remove it after replying?

thank you
Title: Re: Hide Post
Post by: motomaniacs on January 17, 2010, 01:46:10 AM
i need for smf 1.1.11 is it available
Title: Re: Hide Post
Post by: nikan on January 19, 2010, 04:23:57 PM
This is a great mod and all credits goes to Leaf (http://www.simplemachines.org/community/index.php?action=profile;u=25758)

Updated for 1.1.11 and 2.0 RC2
Title: Re: Hide Post
Post by: Eudemon on February 16, 2010, 01:51:11 PM
Quote from: nikan on January 19, 2010, 04:23:57 PM
This is a great mod and all credits goes to Leaf (http://www.simplemachines.org/community/index.php?action=profile;u=25758)

Updated to work with 1.1.11 and 2.0 RC2

hi, i downloaded and installed it into my 2.0rc2 forum and it works great, thx a lot, and thx to leaf 2
Title: Re: Hide Post
Post by: nikan on March 20, 2010, 08:29:23 AM
Updated for 2.0 RC3
Title: Re: Hide Post
Post by: haito on March 24, 2010, 01:21:43 AM
thanks Nikan!
Title: Re: Hide Post
Post by: lakechurch on April 09, 2010, 01:01:17 PM
thanks a lot nikan!

It worked good for me, i get an error with adding  "hiddenOption, hiddenValue, hiddenInfo, id_board,"  but I could do it easily manually.

It works great, thanks again.
Title: Re: Hide Post
Post by: nikan on April 09, 2010, 02:23:21 PM
It's tested to work flawlessly on fresh install of SMF 1.1.11 and 2.0 RC3
Maybe you got allot of mods installed  ???
Title: Re: Hide Post
Post by: Bugo on April 25, 2010, 06:37:00 AM
Russian translation (ANSI & UTF8)
Title: Re: Hide Post
Post by: TechPrince on April 30, 2010, 06:02:30 PM
Quote from: juliegreen on January 01, 2010, 03:35:32 PM
after the reply users still see the warning of [Hidden post: You need reply to this topic to see it.]! what to do remove it after replying?

thank you
This is a problem with login condition also.

There was another problem in rc3 package, missing buttons in Profile.template.php giving undefined errors, fixed in this package
Title: Re: Hide Post
Post by: vip_gm on June 12, 2010, 05:33:31 AM
is there any change that Mod would work on when the server language is 'ARABIC" utf8

even if the names in the list stays in english but i want them to work

regards
Title: Re: Hide Post
Post by: Bangzor on July 03, 2010, 08:33:10 PM
fix something else..

Fix that Members can use hide too...
im admin and only me can use it

smf 1.1.11
Title: Re: Hide Post
Post by: SinnerSaint on August 04, 2010, 03:17:24 PM
I hope someone can help me fix this error.

http://www.allpinoystuff.net/test/index.php?action=profile;area=showposts;sa=topics;u=1
Apply Filter: Only show the errors with the same message
8: Undefined index: hiddenOption
Apply Filter: Only show the errors from this file
File: /xxxxxx/xxxxxx/xxxxxxxxxx/test/Sources/Profile-View.php
Line: 487


I'm currently running SMF 2.0 RC3 with the following Mods installed:

1.    SimpleAds     1.0
2.    Hide Post    1.1
3.    Karma Description Mod    2.6.8
4.    Users Online Today    1.5.6
5.    AJAX Instant Quick Reply    1.0.3
6.    AjaxChat Integration    3.2.1 (modified for SMF 2 RC3)

The error is generated whenever a Guest or Member clicks on the "Topics" link in a members profile in the "Profile Info" => "Show Posts" => "Topics".



I have attached the Profile-View.php file in this post.
Title: Re: Hide Post
Post by: SinnerSaint on September 05, 2010, 10:37:37 PM
Anyone who can help us here?
Title: Re: Hide Post
Post by: petebocken on November 21, 2010, 11:17:05 PM
I setup a topic to post a question and require all replies to be hidden to all members until you reply first then you can see all replies to the initial message.  I have noticed that if you click quote & reply on any of these hidden replies you are able to see the post without having to reply to the topic first.
Title: Re: Hide Post
Post by: badger413 on December 12, 2010, 12:44:46 AM
I have smf 1.1.2 version. When I go to install this mod it gives me these error messages...


16.   Execute Modification    ./Themes/classic/Display.template.php    File not found
17.    Execute Modification    ./Themes/classic/Post.template.php    File not found
18.    Execute Modification    ./Themes/classic/Recent.template.php    File not found

How do I fix this?
Title: Re: Hide Post
Post by: zibu on December 13, 2010, 09:21:57 AM
I just try to install this mode on pure version 2.0rc4 and I found that that during files verification not every programming code was inserted into, so verification filed cause strings for code replacement ware not found. At this moment I need some advice how to install this mod properly using 2.0rc4.
Probably I have to wait for new version, but if somebody share idea or proper resolution would be nice. :)

latest version with proper installation was 20rc1-2,
what should I do before upgrade it to 2.0rc4?

[edit]
S..t! mea culpa!
I did not saw link to attachments in this thread
I just downloaded zip file for 2.0rc3.
Just beginner's mistake :)
Title: Re: Hide Post
Post by: cabolivar on February 22, 2011, 08:55:43 AM
Im having problems installing I have 2.0 rc4.

See  screenshots..





Who can help me?.
Thanks a lot
Title: Re: Hide Post
Post by: Arantor on February 22, 2011, 08:58:20 AM
The mod wasn't written for 2.0 RC4, it was written for 2.0 BETA 4, which is now a couple of years old, not to mention heavily out of date. The mod just won't work properly and needs to be basically rewritten.
Title: Re: Hide Post
Post by: asduskun on March 28, 2011, 03:30:03 PM
hi why am i getting the error below

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''show_hiddenColor' at line 5

when i want to run this query below, what is missing

INSERT INTO smf_settings (`variable`, `value`)
VALUES ('allow_hiddenPost', '1'),
('show_hiddenMessage', '1'),
('max_hiddenValue', '500'),
('show_hiddenColor
Title: Re: Hide Post
Post by: jackulator on March 29, 2011, 06:04:22 PM
hello there, I'm using this mod, and also running the SMF archive mod here: http://custom.simplemachines.org/mods/index.php?mod=339

how would I go about preventing hidden posts from showing up in the archive?
Title: Re: Hide Post
Post by: Cristian10 on March 30, 2011, 04:47:08 AM
Could you make it for 1.1.13 smf version plzz>?
Title: Re: Hide Post
Post by: RETRoXg on April 12, 2011, 11:55:43 PM
Quote from: Cristian10 on March 30, 2011, 04:47:08 AM
Could you make it for 1.1.13 smf version plzz>?

Idem merci.
Title: Re: Hide Post
Post by: bruce86 on July 05, 2011, 05:12:56 AM
2.0?thank you..:)
Title: Re: Hide Post
Post by: Adrek on August 09, 2011, 09:03:36 AM
Try this one ;)
Title: Re: Hide Post
Post by: The Lurker on August 19, 2011, 06:49:59 PM
Hello,

I have several questions about this mod:

1) Can it hide the whole topic so it will be invisible to anyone except the topic creator and designated admins?
2) If so, can it be set up so that only the designated admins can unhide it (not even the topic creator)?
3) If so, can it be set up so that all topics created in a specified sub-forum will be thus hidden?

If not, can this functionality be added?

If not, are you aware of any other mod that can achieve the above?

Thank you in advance!

Peace,
Lurker.

Edit: Reason for asking (http://www.simplemachines.org/community/index.php?topic=447093.0).
Title: Re: Hide Post
Post by: Ventic on August 30, 2011, 05:46:10 AM
i parsed it so i can add it manually,tough i got a problem at post.template
can anyone help me?
i need it for smf 2.0
Title: Re: Hide Post
Post by: Adrek on August 30, 2011, 07:57:01 AM
Did you check package from my post?
http://www.simplemachines.org/community/index.php?topic=58833.msg3131164#msg3131164

It works with SMF 2.0, but i couldn't resolve this issue
http://www.simplemachines.org/community/index.php?topic=58833.msg2731540;topicseen#msg2731540
Title: Re: Hide Post
Post by: Ventic on August 30, 2011, 08:37:50 AM
i installed finally yours but i dont have any problem
Title: Re: Hide Post
Post by: Inti31 on August 30, 2011, 09:05:46 AM
@ph4ntom


thx for it - it works fine - and - without the error message you posted (like Ventic) - thx again.

Cheers Inti31
Title: Re: Hide Post
Post by: Adrek on August 30, 2011, 10:11:37 AM
This error happens only when you visit Topics tab in profile (even own) and if this user has hidden post(s).
Title: Re: Hide Post
Post by: otsaki on September 07, 2011, 04:58:44 PM
Can anyone make it work for SMF 2.0 VERSION PLEASE? i'm getting errors, dont even know where to set it up from in admin panel... please help
Title: Re: Hide Post
Post by: Ventic on September 22, 2011, 12:56:06 AM
my prob: when someone hide something for +1 karma and the user who wants to see it got 1 karma cant see it

and the errror

http://www.gaming-paradise.net/forum/index.php?action=post;msg=262356;topic=85.76515
Apply Filter: Only show the errors with the same message
8: Undefined index: hiddenOption
Apply Filter: Only show the errors from this file
File: -Sources/Post.php
Line: 2738

http://www.gaming-paradise.net/forum/index.php?action=post;msg=262356;topic=85.76515
Apply Filter: Only show the errors with the same message
8: Undefined variable: ID_MEMBER_POSTER
Apply Filter: Only show the errors from this file
File: -Sources/Post.php
Line: 186
Title: Re: Hide Post
Post by: Grosraisin on November 03, 2011, 06:02:07 PM
Quote from: phantomm on August 09, 2011, 09:03:36 AM
Try this one ;)

Thank you man

Still missing a trick on is kind of mod is to completely hide the subject was hiding (in the index and the list, or els we see all topics)

Its huge if you can will make his.

Thank you again.
Title: Re: Hide Post
Post by: nikan on December 02, 2011, 04:31:26 AM
Updated for SMF 1.1.xx and SMF 2.0.x
I'll appreciate any feedback.

Feedback history:
Fixed mysql error on installation (BLOB/TEXT column 'hiddenInfo' can't have a default value) (Thanks kinkow)
Fixed a bug with changed karma names on SMF 2.x (Thanks D.S)
Fixed a bug with poster name and link in quoted message on SMF 2.0.2 (Thanks Gladicek)
Fixed a bug with double queried values (Thanks Ventic)
Removed the useless modification of the file Security.php on SMF 2.x
Fixed a bug with double comma (Thanks Inti31)
Fixed a bug with missing queries in post.php (Thanks fiver)
Removed the old code for reply on SMF 2.x (Thanks fiver)
Fixed a bug with missing queries in Profile-View.php (Thanks fiver)
Changed a variable name to lowercase on SMF 2.x (Thanks fiver)
Title: Re: Hide Post
Post by: Gladicek on December 08, 2011, 09:10:40 AM
Quote from: nikan on December 02, 2011, 04:31:26 AM
Long time to update this by me.
This one is updated for SMF 1.1.15 and SMF 2.0.1
I'll appreciate any feedback.

Working for me on 2.0.1 without problems :) Thx
Title: Re: Hide Post
Post by: soulgeek on December 11, 2011, 01:09:30 AM
Nice Mod but looks like it will come with a Cost.

The Cost is not so deep spidering and indexing as There is no Option to identify if the Visitor is a Search Engine Bot and the Content will be hidden, resulting Less Indexing. Defies the whole purpose of SEO.

Any Comments?
Title: Re: Hide Post
Post by: Sheda on December 11, 2011, 07:38:19 AM
Why would you like a post indexed that you don't want people to see? oö
Title: Re: Hide Post
Post by: Gladicek on January 06, 2012, 09:12:39 AM
Quote from: nikan on December 02, 2011, 04:31:26 AM
Long time to update this by me.
This one is updated for SMF 1.1.15 and SMF 2.0.1
I'll appreciate any feedback.

Hiding post is working great but after using this mod all quetes will look as this.


Tested on ver. 2.0.1/2.0.2
Title: Re: Hide Post
Post by: nikan on January 07, 2012, 01:11:22 AM
I don't get this error on my test pc. If you did a manual installation please check it again.


Title: Re: Hide Post
Post by: Gladicek on January 08, 2012, 03:35:59 PM
http://www.image-share.com/upload/1201/27.png (http://www.image-share.com/upload/1201/27.png)

1.1.16 is without problem after install but clean 2.0.2 after installing this mod will have this error.

Title: Re: Hide Post
Post by: Sheda on January 08, 2012, 08:09:23 PM
Heya,
I'd like to install this mod. Because it gave me some errors (got quite some mods installed and code changed already), i modified it to install on my forum, but...
There is one operation that i can't get my head around.
<search position="replace"><![CDATA[
<div align="right" class="smalltext"><a href="#top" onclick="return insertQuoteFast(', $post['id'], ');">', $txt['bbc_quote'], '</a></div>
<div class="post">', $post['message'], '</div>
</td>
</tr>';
]]></search>
<add><![CDATA[
';
if ($post['can_view_post'])
echo '
<div align="right" class="smalltext"><a href="#top" onclick="return insertQuoteFast(', $post['id'], ');">', $txt['bbc_quote'], '</a></div>';
echo '
<div class="post">', $post['message'], '</div>
</td>
</tr>';
}
]]></add>

The piece of code that it searches for does not exist in my post.template.php, so i don't know where this code should go or if i can even just take it as it is ('cause it was supposed to replace something).
I'll attach my post.template.php, so you can have a look at it.
Title: Re: Hide Post
Post by: nikan on January 09, 2012, 01:21:05 AM
Gladicek you are right. It is fixed now.

Sheda you use the original mod and not the updated that i made above ( http://www.simplemachines.org/community/index.php?topic=58833.msg3220648#msg3220648 ).
Title: Re: Hide Post
Post by: Ventic on January 09, 2012, 06:31:09 AM
hi i unistalled my previus and installed the new one and got some errors

http://www.gaming-paradise.net/forum/index.php?board=49;action=post2
Apply Filter: Only show the errors with the same message
8: Undefined index: hiddenOption
Apply Filter: Only show the errors from this file
File: forum/Sources/Post.php
Line: 2684

Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'm.hiddenOption, m.hiddenValue, m.hiddenInfo, m.id_member, m.id_board
m.id_boa' at line 2
Apply Filter: Only show the errors from this file
File: /Sources/Post.php
Line: 2750
Title: Re: Hide Post
Post by: Ventic on January 09, 2012, 06:36:15 AM
plus when i press quote it doesnt show it to me and i only see this Loading...
Title: Re: Hide Post
Post by: Sheda on January 09, 2012, 10:42:58 AM
Oh, F***....!
After i spent all night coding, i used the wrong version...?!
N...OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOH! :-\ :-[
But no worries, i will use winmerge and just take all the changes you made in your update to my own nearly finished code. ^^
However, the mod on the mod page should be updated as well.
Title: Re: Hide Post
Post by: Ventic on January 12, 2012, 03:49:32 PM
anyone
Title: Re: Hide Post
Post by: nikan on January 13, 2012, 03:25:07 AM
Quote from: Ventic on January 09, 2012, 06:31:09 AM
hi i unistalled my previus and installed the new one and got some errors

http://www.gaming-paradise.net/forum/index.php?board=49;action=post2
Apply Filter: Only show the errors with the same message
8: Undefined index: hiddenOption
Apply Filter: Only show the errors from this file
File: forum/Sources/Post.php
Line: 2684

Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'm.hiddenOption, m.hiddenValue, m.hiddenInfo, m.id_member, m.id_board
m.id_boa' at line 2
Apply Filter: Only show the errors from this file
File: /Sources/Post.php
Line: 2750

Sorry for the delay, life is consuming.
Double query for m.id_member and m.id_board was giving you database error.
Fixed it and updated my attachment -> http://www.simplemachines.org/community/index.php?topic=58833.msg3220648#msg3220648
Title: Re: Hide Post
Post by: Ventic on January 13, 2012, 06:10:09 AM
Quote from: Ventic on January 09, 2012, 06:36:15 AM
plus when i press quote it doesnt show it to me and i only see this Loading...
Title: Re: Hide Post
Post by: nikan on January 13, 2012, 09:10:28 AM
Ventic i can't reproduce this problem. Can you be more specific?
Title: Re: Hide Post
Post by: Ventic on January 13, 2012, 12:07:04 PM
when i got the hide post installed and try to make a quote post it just saying that annoying orange thing Loading.. nothing more
Title: Re: Hide Post
Post by: nikan on January 14, 2012, 01:46:22 AM
Sorry i can't reproduce this problem.
Title: Re: Hide Post
Post by: wwe-dan on January 22, 2012, 08:01:27 AM
Can anyone help me? I'm currently on 2.0.2 of SMF, I tried installing the Hide Post mod which installed perfectly, but im not getting any options to edit the mod, nor does it work if i attempt to use it on a post!?
Title: Re: Hide Post
Post by: nikan on January 22, 2012, 08:15:39 AM
This mod modifies Display.template.php and other template files, so if you use other then default or core theme that uses their own template files you have to install it manually.

Options: Admin -> HelpSecurity and Moderation -> General
Post: Expand 'Attachments and other options'
Title: Re: Hide Post
Post by: wwe-dan on January 22, 2012, 08:31:00 AM
Quote from: nikan on January 22, 2012, 08:15:39 AM
This mod modifies Display.template.php and other template files, so if you use other then default or core theme that uses their own template files you have to install it manually.

Options: Admin -> HelpSecurity and Moderation -> General
Post: Expand 'Attachments and other options'

It works! Thank you :)

Question, does the hidden post have to be an attachment? I cant see any other option to just do a link or text etc.
Title: Re: Hide Post
Post by: nikan on January 22, 2012, 10:56:25 AM
It's not an attachment, it's just under Attachments and other options
The entire post will be hidden.
Title: Re: Hide Post
Post by: briggz5d on January 23, 2012, 01:02:54 AM
seems like a lot of editing to do so i didnt correct the errors reported while installing>> (custom theme) - so i guess thats why it didnt work for me..
but since its the only mod around which does this - i'll try to manually parse.. But.. Do i edit before installing? or install then make edits?
Title: Re: Hide Post
Post by: Sheda on January 23, 2012, 01:16:26 PM
Better try to edit the Mod before you install it.
If you edit it, then install, then uninstall, it will work fine, but if you edit it after installing and then try to uninstall, it won't recognize the code, 'cause it's different than it should be, so it will not uninstall properly.
Title: Re: Hide Post
Post by: briggz5d on January 23, 2012, 01:32:31 PM
This Mod should be able to install using 2.0 Beta4 Emulator.. But anyways . i'll Uninstall.. Edit.. then install..
Tell you how it goes...
Back Up First :p
Title: Re: Hide Post
Post by: Arantor on January 23, 2012, 02:33:56 PM
2.0 beta 4 is very, very different to 2.0.2.
Title: Re: Hide Post
Post by: nikan on January 23, 2012, 04:31:10 PM
Quote from: soki2ng on January 23, 2012, 01:02:54 AM
seems like a lot of editing to do so i didnt correct the errors reported while installing>> (custom theme) - so i guess thats why it didnt work for me..
but since its the only mod around which does this - i'll try to manually parse.. But.. Do i edit before installing? or install then make edits?

I suppose you mean the updated mod that i made (page 22, post 424)
You may also try this mod: Hide Tag Special -> http://custom.simplemachines.org/mods/index.php?mod=118
Title: Re: Hide Post
Post by: Inti31 on March 14, 2012, 04:00:45 PM
@nikan

i just setup a fresh 2.0.2 forum (testdomain).

The install of this mod was the first one - it installed it successful without any errors.
The mod works as it should - but... - I can't quick edit a post - i just can change them full.
When I click on  quick edit  for a millisecond is at the top of the page is loading visible - that's all.

any idea?
cheers inti31
Title: Re: Hide Post
Post by: nikan on March 15, 2012, 04:09:59 AM
Thanks Inti31.
Get the fixed mod here -> http://www.simplemachines.org/community/index.php?topic=58833.msg3220648#msg3220648
Title: Re: Hide Post
Post by: Sheda on March 15, 2012, 06:19:15 AM
Hey, what exactly have you fixed?
I've downloaded this mod some time ago, but i modified it so much that it's impossible to un- and reinstall it.
So i'd like to check if i have the bug as well and fix it in my forum, too. :)
Title: Re: Hide Post
Post by: Inti31 on March 15, 2012, 07:41:49 AM
Quote from: nikan on March 15, 2012, 04:09:59 AMGet the fixed mod here -> http://www.simplemachines.org/community/index.php?topic=58833.msg3220648#msg3220648

THX a lot - it works fine now.

cheers Inti31
Title: Re: Hide Post
Post by: nikan on March 15, 2012, 08:35:24 AM
@Sheda

Do a comparison of the .xml file (yours with mine).
Title: Re: Hide Post
Post by: Sheda on March 15, 2012, 09:15:20 AM
Oh, good idea! Although, as i said...
There are so many differences... and i even changed more stuff around, after i installed it. Actually, i think i didn't use your version from the beginning, but accidentally used the old version from the first post.
So maybe the bug wasn't even there. Though i've had problems with my members trying to quick edit too, that might also have been because of my half-finished Sneaky Editing mod. I'd better just test it again now and if there's no bug, then i guess everything's fine. ::)
Sorry to bother you. This mod has already taken so much of my time, so i wouldn't want there to be too many bugs in it.
Title: Re: Hide Post
Post by: TrickyRicky on April 20, 2012, 04:10:41 PM
Thanks For Update to mod

Seems to work Great
Title: Re: Hide Post
Post by: fiver on May 01, 2012, 03:45:20 AM

8: Undefined index: hiddenOption

File: /.........../Sources/Post.php
Line: 2594





Installed the package from Reply#424. Got many of the above errors. Any solution to this error please? Many thanks.
Title: Re: Hide Post
Post by: nikan on May 01, 2012, 10:40:00 AM
Updated with fix for missing queries.

Download from Reply#424 (http://www.simplemachines.org/community/index.php?topic=58833.msg3220648#msg3220648)

Thanks fiver
Title: Re: Hide Post
Post by: fiver on May 01, 2012, 10:22:37 PM
Hi nikan,


You're welcome.


I got a problem. I uninstalled hidepost before installing the new package, and the uninstalling removed the column hiddenOption, hiddenValue and hiddenInfo from the table smf_messages.


There is the backup_smf_messages I can use. May I know how I can copy those 3 columns from backup_smf_messages to smf_messages, into the correct id_msg?


Thanks.
Title: Re: Hide Post
Post by: fiver on May 02, 2012, 03:05:51 AM
Hi nikan,


Nevermind the above problem. I restored it.


Another error found:



8: Undefined index: id_board


File: /........../Sources/HidePost.php
Line: 110
Title: Re: Hide Post
Post by: nikan on May 02, 2012, 05:30:27 AM
I had included the necessary queries for smf1 but not for smf2.
Mod on Reply#424 has been updated.
Thanks again fiver.
Title: Re: Hide Post
Post by: fiver on May 02, 2012, 10:44:45 PM
Hi nikan,


Sorry to trouble you again.



Error:



Undefined offset: 146

File: /............./Themes/default/Profile.template.php
Line: 393

Could the error be caused by this part of the installer?
<file name="$themedir/Profile.template.php">      <operation> <search position="after"><![CDATA[ if ($post['can_reply']) ]]></search> <add><![CDATA[ if ($post['can_reply'] && $post['can_view_post']) echo ' <a href="', $scripturl, '?action=post;topic=', $post['topic'], '.', $post['start'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reply_sm.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]), '</a>'; else]]></add> </operation>  </file>



Title: Re: Hide Post
Post by: nikan on May 03, 2012, 03:05:58 AM
No trouble at all.

Yes, this is the code and it's from old version of smf which uses images for buttons.

Fixed and updated on Reply#424 (http://www.simplemachines.org/community/index.php?topic=58833.msg3220648#msg3220648)
Title: Re: Hide Post
Post by: fiver on May 03, 2012, 04:56:01 AM
Thanks nikan,


Another one. ;D



8: Undefined index: hiddenOption
File: /.............../Sources/Profile-View.php
Title: Re: Hide Post
Post by: nikan on May 03, 2012, 05:43:29 AM
fiver i can't reproduce this error, i 've re-upload the mod just in case of some mistake. Can you check again?
Title: Re: Hide Post
Post by: fiver on May 03, 2012, 12:58:02 PM
Hi nikan,


I test with several user profile again, and the full error is



http://................/index.php?action=profile;area=showposts;sa=topics;u=20
8: Undefined index: hiddenOption
File: /...................../Sources/Profile-View.php
Line: 474


Thanks.
Title: Re: Hide Post
Post by: nikan on May 03, 2012, 02:12:53 PM
OK fiver, i found it.
Fixed and updated. Thanks.
Title: Re: Hide Post
Post by: shazoo! on May 07, 2012, 10:30:21 AM
Is there a way to hide the link to an attachment as well?

The post is hidden, but if you attach something, it can be seen
Title: Re: Hide Post
Post by: fiver on May 15, 2012, 02:52:31 AM
Hi nikan,


An undefined error:



8: Undefined variable: ID_MEMBER_POSTER
File: /Sources/Post.php
Line: 187


Thanks.

Title: Re: Hide Post
Post by: nikan on May 15, 2012, 07:29:27 AM
On SMF 2.0 this variable name changed to lowercase.

Fixed and updated on Reply#424 (http://www.simplemachines.org/community/index.php?topic=58833.msg3220648#msg3220648)

Thanks fiver.
Title: Re: Hide Post
Post by: shazoo! on May 24, 2012, 03:26:17 PM
Ahhh, downloaded the 2.0.2 update from here; http://www.simplemachines.org/community/index.php?topic=58833.440

and everything works great!
Title: Re: Hide Post
Post by: 05185736 on August 21, 2012, 02:22:49 PM
When tried to install  HidePost_1-1_smf20.zip
Quote1.    Execute Code    install.php    
*    2.    Execute Modification    ./Sources/Display.php    Test successful
*    3.    Execute Modification    ./Sources/Load.php    Test successful
*    4.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
*    5.    Execute Modification    ./Sources/ManageSettings.php    Test successful
*    6.    Execute Modification    ./Sources/Post.php    Test failed
      1.    Replace    ./Sources/Post.php    Test successful
      2.    Add After    ./Sources/Post.php    Test successful
      3.    Add Before    ./Sources/Post.php    Test failed
      4.    Add After    ./Sources/Post.php    Test successful
      5.    Add After    ./Sources/Post.php    Test successful
      6.    Add Before    ./Sources/Post.php    Test successful
      7.    Add After    ./Sources/Post.php    Test successful
      8.    Add After    ./Sources/Post.php    Test successful
      9.    Add Before    ./Sources/Post.php    Test successful
      10.    Add Before    ./Sources/Post.php    Test successful
      11.    Add Before    ./Sources/Post.php    Test successful
      12.    Add After    ./Sources/Post.php    Test successful
      13.    Add After    ./Sources/Post.php    Test failed
      14.    Add After    ./Sources/Post.php    Test successful
      15.    Add Before    ./Sources/Post.php    Test successful
      16.    Add Before    ./Sources/Post.php    Test successful
*    7.    Execute Modification    ./Sources/Printpage.php    Test failed
      1.    Add After    ./Sources/Printpage.php    Test successful
      2.    Add Before    ./Sources/Printpage.php    Test successful
      3.    Add After    ./Sources/Printpage.php    Test failed
*    8.    Execute Modification    ./Sources/Profile-View.php    Test failed
      1.    Add After    ./Sources/Profile-View.php    Test failed
      2.    Add Before    ./Sources/Profile-View.php    Test successful
      3.    Add After    ./Sources/Profile-View.php    Test successful
*    9.    Execute Modification    ./Sources/Recent.php    Test successful
*    10.    Execute Modification    ./Sources/Search.php    Test successful
*    11.    Execute Modification    ./Sources/Security.php    Test successful
*    12.    Execute Modification    ./Sources/Subs-Post.php    Test successful
*    13.    Execute Modification    ./Themes/default/Display.template.php    Test successful
*    14.    Execute Modification    ./Themes/default/Post.template.php    Test failed
      1.    Add After    ./Themes/default/Post.template.php    Test failed
      2.    Add After    ./Themes/default/Post.template.php    Test successful
      3.    Replace    ./Themes/default/Post.template.php    Test failed
*    15.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
*    16.    Execute Modification    ./Themes/default/Recent.template.php    Test successful
*    17.    Execute Modification    ./Themes/classic/Display.template.php    Test successful
   18.    Extract File    ./Sources/HidePost.php    
   19.    Extract Tree    ./Themes/default/languages

When install HidePost11.zip (http://www.simplemachines.org/community/index.php?topic=58833.msg3220648#msg3220648)
Quote1.    Execute Code    install2.php    
*    2.    Execute Modification    ./Sources/Display.php    Test successful
*    3.    Execute Modification    ./Sources/Load.php    Test successful
*    4.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
*    5.    Execute Modification    ./Sources/ManageSettings.php    Test successful
*    6.    Execute Modification    ./Sources/Post.php    Test successful
*    7.    Execute Modification    ./Sources/Printpage.php    Test successful
*    8.    Execute Modification    ./Sources/Profile-View.php    Test successful
*    9.    Execute Modification    ./Sources/Recent.php    Test successful
*    10.    Execute Modification    ./Sources/Search.php    Test successful
*    11.    Execute Modification    ./Sources/Subs-Post.php    Test successful
*    12.    Execute Modification    ./Themes/default/Display.template.php    Test successful
*    13.    Execute Modification    ./Themes/default/Post.template.php    Test successful
*    14.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
*    15.    Execute Modification    ./Themes/default/Recent.template.php    Test successful
   16.    Extract File    ./Sources/HidePost.php    
   17.    Extract File    ./Themes/default/HidePost.template.php    
   18.    Extract Tree    ./Themes/default/languages
HidePost11.zip installs fine but i cannot see any function
Title: Re: Hide Post
Post by: nikan on August 22, 2012, 09:16:09 AM
Below are images with functions of the mod.
Title: Re: Hide Post
Post by: l2crystin on October 07, 2012, 10:02:53 PM
smf 2.0.2 and see error in last indstall

Database Error
BLOB/TEXT column 'hiddenInfo' can't have a default value
File: C:\xampp\htdocs\forum\Packages\temp\install2.php
Line: 17

how fix
Title: Re: Hide Post
Post by: Kisa on October 22, 2012, 07:15:44 AM
Hello,

I'm sorry if i post in the wrong topic.
I'd like to install the hide tag with smf version 1.1.16, does anyone know which version i should use ?

Thanks in advance
Title: Re: Hide Post
Post by: sles on December 03, 2012, 11:48:30 PM
Quote from: nikan on August 22, 2012, 09:16:09 AM
Some pictures with functions


HidePost11.zip installed fine but i cannot see any function on 1.1.16

See image on attached.
Title: Re: Hide Post
Post by: nikan on December 04, 2012, 05:40:42 AM
What am i suppose to see in your attached image. Did you think that this mod adds a central menu?
In attached images of my post you can see the functions of the mod and where to find them.
That was the purpose of the post, not just words.
Title: Re: Hide Post
Post by: bros on April 19, 2013, 12:07:41 AM
Would there be a way to make it to hide a post from all users except:
1. The poster
2. The mod staff

And do it everytime a poster posts on a board?
Title: Re: Hide Post
Post by: TheListener on April 19, 2013, 12:09:14 AM
Which version smf are you using?
Title: Re: Hide Post
Post by: Arantor on April 19, 2013, 12:12:25 AM
bros: Why? Is the intent to globally ignore a user, or to create some kind of private area where the user can post but only the staff can see all topics?
Title: Re: Hide Post
Post by: bros on April 20, 2013, 02:34:30 PM
Quote from: Arantor on April 19, 2013, 12:12:25 AM
bros: Why? Is the intent to globally ignore a user, or to create some kind of private area where the user can post but only the staff can see all topics?

It's to make it so users who cause trouble on one forum don't have their posts visible to all users on that one forum, but they still think they are posting, only everyone is ignoring them
Title: Re: Hide Post
Post by: Arantor on April 20, 2013, 02:43:06 PM
Yeah, there's no way to implement that with this mod, nor to do it without a major performance hit.
Title: Re: Hide Post
Post by: bros on April 20, 2013, 04:47:30 PM
Quote from: Arantor on April 20, 2013, 02:43:06 PM
Yeah, there's no way to implement that with this mod, nor to do it without a major performance hit.

I'm guessing it is the applying it to a single board part that is the performance issue?

Since other than that, it would be good, provided you can do it to all of a user's posts & do it to a specific board.
Title: Re: Hide Post
Post by: Arantor on April 20, 2013, 04:51:13 PM
Nope. It's the fact that you're doing a unoptimisable selection to exclude posts. Same reason the '24 things to make SMF faster' outright suggests turning off post moderation: it introduces a component to the 'fetch topic' queries that cannot be optimised.
Title: Re: Hide Post
Post by: bros on April 23, 2013, 01:55:30 PM
Quote from: Arantor on April 20, 2013, 04:51:13 PM
Nope. It's the fact that you're doing a unoptimisable selection to exclude posts. Same reason the '24 things to make SMF faster' outright suggests turning off post moderation: it introduces a component to the 'fetch topic' queries that cannot be optimised.

Damn.

It'd be fun to do that to screw with a rather acerbic user.
Title: Re: Hide Post
Post by: D.S on June 20, 2013, 06:49:37 PM
Hi guys , I need some help for this mod , hid post was working on 1.1.18 version in perfect but when upgrade the forum to 2.0.4 the mod isn't work ,therefore when hide any post by karma the warning message as pix in attach is appear [You currently have 0] although I have a lot of karma , please guys can you help to solve this issue ..

Regards

D.S
Title: Re: Hide Post
Post by: pikiame on June 20, 2013, 06:53:15 PM
Quote from: D.S on June 20, 2013, 06:49:37 PM
Hi guys , I need some help for this mod , hid post was working on 1.1.18 version in perfect but when upgrade the forum to 2.0.4 the mod isn't work ,therefore when hide any post by karma the warning message as pix in attach is appear [You currently have 0] although I have a lot of karma , please guys can you help to solve this issue ..

Regards

D.S



i have exactly the same probem please help
Title: Re: Hide Post
Post by: D.S on June 26, 2013, 10:16:01 AM
can any body help me ?? :\
Title: Re: Hide Post
Post by: nikan on June 26, 2013, 12:34:37 PM
D.S i updated the mod in this port with fix for karma. Can you test it?
http://www.simplemachines.org/community/index.php?topic=58833.msg3220648#msg3220648
Title: Re: Hide Post
Post by: D.S on June 26, 2013, 06:08:42 PM
Quote from: nikan on June 26, 2013, 12:34:37 PM
D.S i updated the mod in this port with fix for karma. Can you test it?
http://www.simplemachines.org/community/index.php?topic=58833.msg3220648#msg3220648
waw, it is work , you are great man thank you dude for ur effort

Regards

D.s
Title: Re: Hide Post
Post by: Endy U on June 28, 2013, 03:06:33 AM
SMF 2.0.4

I have been using this mod for many years, and thanks to nikan for keeping it up to date.

After the years, the many values set by each user in each post is very very varied. Quite messy at times.

I had an idea of trying to simplify the hide option,
FROM
Hide this post:
-----
login
posts
moderator


TO
Hide this post:
-----
login
from Postcount Group 1
from Postcount Group 1+2
from Postcount Group 1+2+3
moderator


I had a look at <file name="$sourcedir/Post.php"> and <file name="$themedir/Post.template.php"> and they are beyond me as I cannot tweak that level of PHP.

Very grateful if you can help in this matter. Thanks.

Title: Re: Hide Post
Post by: Biodinamika on November 07, 2013, 04:46:07 AM
Hidden post is visible!? SMF 2.05
Title: Re: Hide Post
Post by: nikan on November 07, 2013, 07:01:01 AM
Hidden posts are hidden up to 2.0.6
Title: Re: Hide Post
Post by: Biodinamika on November 07, 2013, 08:33:19 AM
No, it is quite visible to my embarrassment!

Installation was fine, but when I write something

Title: Re: Hide Post
Post by: nikan on November 08, 2013, 04:20:33 AM
The post should be hidden from guests and members, not from admins and moderators.
Title: Re: Hide Post
Post by: Biodinamika on November 10, 2013, 02:26:27 PM
I know - but this image is from member not a moderator!
Title: Re: Hide Post
Post by: nikan on November 11, 2013, 08:52:14 AM
Check if the mod is installed correctly in the files and in database.
Title: Re: Hide Post
Post by: GrolchNr1 on December 24, 2013, 06:03:05 AM
hey there,

I have a short question regarding the HidePost mod.
what I need to change in order to hide the notes are displayed below the hidden post message.
and not behind the hidden post message?

thanks for answer and sorry for my bad english ;)

greetz
Grolch
Title: Re: Hide Post
Post by: kinkow on February 11, 2014, 07:51:51 AM
Quote from: nikan on June 26, 2013, 12:34:37 PM
D.S i updated the mod in this port with fix for karma. Can you test it?
http://www.simplemachines.org/community/index.php?topic=58833.msg3220648#msg3220648

Thank you for update. I love it.

But i found error install.

BLOB/TEXT column 'hiddenInfo' can't have a default value
ไฟล์: C:\www\board\Packages\temp\install2.php
บรรทัด: 17

SMF 2.0.7
Title: Re: Hide Post
Post by: nikan on February 11, 2014, 09:14:14 AM
Thanks kinkow.

Package updated.
Title: Re: Hide Post
Post by: kinkow on February 11, 2014, 11:56:11 PM
Quote from: nikan on February 11, 2014, 09:14:14 AM
Thanks kinkow.

Package updated.

Work fine with SMF 2.0.7. Thank you again.  ;)
Title: Re: Hide Post
Post by: lopez7 on February 12, 2014, 05:55:04 PM
Just upgraded to SMF 2.0.7 but can't Install Hide Tag Special Modification Package.

How can I install Hide Tag Special Modification Package to SMF 2.0.7 ?
Title: Re: Hide Post
Post by: Vivid Values on February 12, 2014, 06:06:40 PM
Quote from: lopez7 on February 12, 2014, 05:55:04 PM
Just upgraded to SMF 2.0.7 but can't Install Hide Tag Special Modification Package.

How can I install Hide Tag Special Modification Package to SMF 2.0.7 ?

Hmm... Ok, let's try something. Always backup before you install a mod.
Title: Re: Hide Post
Post by: nikan on February 12, 2014, 08:03:59 PM
Quote from: lopez7 on February 12, 2014, 05:55:04 PM
Just upgraded to SMF 2.0.7 but can't Install Hide Tag Special Modification Package.

How can I install Hide Tag Special Modification Package to SMF 2.0.7 ?

This is the support topic of Hide Post mod.
Ask here (http://www.simplemachines.org/community/index.php?topic=32954.0).
Title: Re: Hide Post
Post by: LirikAskO on February 13, 2014, 12:26:15 PM
Thanks.  ;D
Title: Re: Hide Post
Post by: shazoo! on February 01, 2015, 04:21:06 PM
Hi I'm seeing the following error in the log:

//.../index.php?action=post;topic=5709.0;last_msg=94380
8: Undefined index: hiddenOption
File://.../Sources/Post.php
Line: 2635


2633: // Hide the post in preview or not? --- XD
2634: $row['can_view_post'] = 1;
==>2635: if (!empty($modSettings['allow_hiddenPost']) && $row['hiddenOption'] > 0)
2636: {
2637: global $sourcedir;
2638: require_once($sourcedir . '/HidePost.php');
2639: $row['id_topic'] = $topic;
2640: $context['current_message'] = $row;
2641: $row['body'] = getHiddenMessage();
2642: $row['can_view_post'] = $context['can_view_post'];
2643: }
Title: Re: Hide Post
Post by: nikan on February 01, 2015, 07:42:02 PM
Please, check if you got the following code on line 2616

m.id_board, m.id_topic, m.hiddenOption, m.hiddenValue, m.hiddenInfo,
Title: Re: Hide Post
Post by: shazoo! on February 01, 2015, 07:48:47 PM
Quote from: nikan on February 01, 2015, 07:42:02 PM
Please, check if you got the following code on line 2616

m.id_board, m.id_topic, m.hiddenOption, m.hiddenValue, m.hiddenInfo,

I'm not seeing it

Here's lines 2601 -2632 of my Post.php


// Get the topic for display purposes.
function getTopic()
{
global $topic, $modSettings, $context, $smcFunc, $counter, $options;

if (isset($_REQUEST['xml']))
$limit = '
LIMIT ' . (empty($context['new_replies']) ? '0' : $context['new_replies']);
else
$limit = empty($modSettings['topicSummaryPosts']) ? '' : '
LIMIT ' . (int) $modSettings['topicSummaryPosts'];

// If you're modifying, get only those posts before the current one. (otherwise get all.)
$request = $smcFunc['db_query']('', '
SELECT
IFNULL(mem.real_name, m.poster_name) AS poster_name, m.poster_time,
m.body, m.smileys_enabled, m.id_msg, m.id_member
FROM {db_prefix}messages AS m
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
WHERE m.id_topic = {int:current_topic}' . (isset($_REQUEST['msg']) ? '
AND m.id_msg < {int:id_msg}' : '') .(!$modSettings['postmod_active'] || allowedTo('approve_posts') ? '' : '
AND m.approved = {int:approved}') . '
ORDER BY m.id_msg DESC' . $limit,
array(
'current_topic' => $topic,
'id_msg' => isset($_REQUEST['msg']) ? (int) $_REQUEST['msg'] : 0,
'approved' => 1,
)
);
$context['previous_posts'] = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
Title: Re: Hide Post
Post by: nikan on February 02, 2015, 07:21:52 AM
Please install the updated mod from this post http://www.simplemachines.org/community/index.php?topic=58833.msg3220648#msg3220648
Title: Re: Hide Post
Post by: shazoo! on February 02, 2015, 07:45:42 AM
Quote from: nikan on February 02, 2015, 07:21:52 AM
Please install the updated mod from this post http://www.simplemachines.org/community/index.php?topic=58833.msg3220648#msg3220648
Ah, will do.
Thanks!
Title: Re: Hide Post
Post by: desiamerican26 on February 10, 2015, 10:54:43 PM
Hi,

I just installed this mod and it is really great. I was just wondering if I can give this to specific group to do. Like If only Admins or Mods or some specific group member have access to it. Of what I see after installing is that every group member has access to it, I don't want that. I am not sure if that is because of the different theme I am using.

My site: www.desi-american.com

Please help me with this.

Thank You
Regards,
Nikhil
Title: Re: Hide Post
Post by: helyea on July 08, 2015, 03:25:12 PM
I get parse error when i trying install this mod with 2.0.1 version
Title: Re: Hide Post
Post by: nikan on July 09, 2015, 10:20:01 AM
Please update your smf to the latest version.
Title: Re: Hide Post
Post by: helyea on July 16, 2015, 08:09:04 AM
Quote from: nikan on July 09, 2015, 10:20:01 AM
Please update your smf to the latest version.
... i have 2.0.10
Title: Re: Hide Post
Post by: nikan on July 17, 2015, 08:21:09 AM
Please install the updated mod from this post http://www.simplemachines.org/community/index.php?topic=58833.msg3220648#msg3220648
Title: Re: Hide Post
Post by: JaGuR on February 01, 2016, 06:27:42 PM
Thanks for this Mod, I had something similar in SMF 1, which we used extensively for moderating our forum and hiding unwanted posts.

What would be great is to have a hide button next to the actual post, beside the reply button or some thing similar from a moderation perspective.

Being able to hide a post that breaches the Forum Rules / Code Of Conduct with out having to click the "Modify" button, then "Attachments and other options"

Title: Re: Hide Post
Post by: aschenberg on May 20, 2018, 01:46:05 AM
Please update to ver 2.01.5. I don't understand with this code
Title: Re: Hide Post
Post by: -Rock Lee- on May 20, 2018, 09:00:36 AM
It can serve you How can I install a mod that doesn't work in my SMF version? (https://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version)!


Regards!
Title: Re: Hide Post
Post by: evgeniyk on February 14, 2021, 10:54:58 PM
How I can add possibility to see "moderator" option when hide message for ordinary user? I expect that when ordinary user hide message only he and moderators can view it.

I can see "moderator" when I am moderator or administrator only.

I need to hide some specific messages from users and show them only to administrators or moderatos.

How this mod should be modified?
Title: Re: Hide Post
Post by: evgeniyk on February 22, 2021, 11:48:33 AM
I was able to resolve it somehow. I enabled karma and achieved required results with karma option and permissions on board.