News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Hide Post

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

Previous topic - Next topic

kinkow

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

nikan

Thanks kinkow.

Package updated.

kinkow

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

lopez7

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 ?

Vivid Values

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.

nikan

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.

LirikAskO


shazoo!

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: }

nikan

Please, check if you got the following code on line 2616

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

shazoo!

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))
{


shazoo!


desiamerican26

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

helyea

I get parse error when i trying install this mod with 2.0.1 version

nikan

Please update your smf to the latest version.

helyea

Quote from: nikan on July 09, 2015, 10:20:01 AM
Please update your smf to the latest version.
... i have 2.0.10


JaGuR

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"


aschenberg

Please update to ver 2.01.5. I don't understand with this code

-Rock Lee-

¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

Advertisement: