News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Hide Post

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

Previous topic - Next topic

zeroandone

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.
ASP.NET developer
Drupal fan
Joomla fan
Ubuntu newbie
http://www.codingbeaver.com

Leaf

#361
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)

okae

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.

Leaf

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)

Darkness_

where in the admin CP can I enable it?

searched for it bu couldn't find it

ampedm

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)

Darkness_

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

Dr Web

 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.
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

okae

any updated for 2.0rc1? this work on 2.0rc1 already?

DeviDarkL

#369
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';

HecKel

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".
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

okae

still waiting for any updated of this great mod :(

CraigPal

#372
I like this! I wasn't even looking for it either!

Thanks!

fishery

when a release for 1.1.8?

ps: thx for this great mod.

jdizine

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?



Maxtor

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'];
}

Neverhurry

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!
I am using SMF 2.0.1, curve themes.

GeorgeGR

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

D.S

is it possible hide by number of (topic)  please ....

DreaMNauT

Another good idea is to put inside the mod the option to hide the links from membergroups and unhide ..lets say to moderators

Advertisement: