Hide Post

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

Previous topic - Next topic

gubius

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!

pactman

There is a problem the Mod !!!!

Search publishes the thing hidden under his claw!!

PLEASE HELP!

Chewy954

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

yesu

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!!!

Ikhsan4488

how to install in my custom template.. :(

Lysyj

#325
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

smartlim

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?

rabb1t

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.

Ikhsan4488

can i use this mod for 1.1.5?

rabb1t

yes, it's work on my smf 1.1.5

ivantoar

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.

Leaf

Support SMF 1.1.5 now.

For search and quote issues, I will check it later.

Lady Night Owl

#332
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)
Running SMF 2.0.1

Leaf

#333
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.

baijianpeng

hi, leaf,

Are you still improving this mod ?

I noticed that your Hide Post mod supports SMF 1.1.5 now. Will it support SMF 2.0 ?

Thanks.
JoomlaGate: The way to the World of Joomla!

http://www.joomlagate.com

Leaf

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

baijianpeng

Cool ! Since SMF 2.0 is still in beta status, we will wait for your new mod.

Thanks a lot.
JoomlaGate: The way to the World of Joomla!

http://www.joomlagate.com

Leaf

#337
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.

baijianpeng

Good job!  Finally we got a new version for SMF 2.0.

JoomlaGate: The way to the World of Joomla!

http://www.joomlagate.com

moonjo

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.

Advertisement: