Advertisement:

Author Topic: Hide Post  (Read 271334 times)

Offline fiver

  • Jr. Member
  • **
  • Posts: 319
Re: Hide Post
« Reply #460 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.

Offline fiver

  • Jr. Member
  • **
  • Posts: 319
Re: Hide Post
« Reply #461 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
« Last Edit: May 02, 2012, 01:39:29 PM by fiver »

Offline nikan

  • Jr. Member
  • **
  • Posts: 390
Re: Hide Post
« Reply #462 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.

Offline fiver

  • Jr. Member
  • **
  • Posts: 319
Re: Hide Post
« Reply #463 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?
Code: [Select]
<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>


« Last Edit: May 03, 2012, 01:59:11 AM by fiver »

Offline nikan

  • Jr. Member
  • **
  • Posts: 390
Re: Hide Post
« Reply #464 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

Offline fiver

  • Jr. Member
  • **
  • Posts: 319
Re: Hide Post
« Reply #465 on: May 03, 2012, 04:56:01 AM »
Thanks nikan,


Another one. ;D



8: Undefined index: hiddenOption
File: /.............../Sources/Profile-View.php

Offline nikan

  • Jr. Member
  • **
  • Posts: 390
Re: Hide Post
« Reply #466 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?

Offline fiver

  • Jr. Member
  • **
  • Posts: 319
Re: Hide Post
« Reply #467 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.

Offline nikan

  • Jr. Member
  • **
  • Posts: 390
Re: Hide Post
« Reply #468 on: May 03, 2012, 02:12:53 PM »
OK fiver, i found it.
Fixed and updated. Thanks.

Offline shazoo!

  • Jr. Member
  • **
  • Posts: 129
  • Gender: Female
Re: Hide Post
« Reply #469 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

Offline fiver

  • Jr. Member
  • **
  • Posts: 319
Re: Hide Post
« Reply #470 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.


Offline nikan

  • Jr. Member
  • **
  • Posts: 390
Re: Hide Post
« Reply #471 on: May 15, 2012, 07:29:27 AM »
On SMF 2.0 this variable name changed to lowercase.

Fixed and updated on Reply#424

Thanks fiver.

Offline shazoo!

  • Jr. Member
  • **
  • Posts: 129
  • Gender: Female
Re: Hide Post
« Reply #472 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!
« Last Edit: May 24, 2012, 03:42:22 PM by shazoo! »

Offline 05185736

  • Semi-Newbie
  • *
  • Posts: 67
    • The Celeb Venue
Re: Hide Post
« Reply #473 on: August 21, 2012, 02:22:49 PM »
When tried to install  HidePost_1-1_smf20.zip
Quote
1.    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
Quote
1.    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
.::.

Offline nikan

  • Jr. Member
  • **
  • Posts: 390
Re: Hide Post
« Reply #474 on: August 22, 2012, 09:16:09 AM »
Below are images with functions of the mod.
« Last Edit: December 04, 2012, 05:43:02 AM by nikan »

Offline l2crystin

  • Jr. Member
  • **
  • Posts: 217
Re: Hide Post
« Reply #475 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

Offline Kisa

  • Newbie
  • *
  • Posts: 4
Re: Hide Post
« Reply #476 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

Offline sles

  • Newbie
  • *
  • Posts: 6
Re: Hide Post
« Reply #477 on: December 03, 2012, 11:48:30 PM »
Some pictures with functions


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

See image on attached.

Offline nikan

  • Jr. Member
  • **
  • Posts: 390
Re: Hide Post
« Reply #478 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.

Offline bros

  • Full Member
  • ***
  • Posts: 644
Re: Hide Post
« Reply #479 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?