News:

Join the Facebook Fan Page.

Main Menu

Hide Post

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

Previous topic - Next topic

fiver

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.

fiver

#461
Hi nikan,


Nevermind the above problem. I restored it.


Another error found:



8: Undefined index: id_board


File: /........../Sources/HidePost.php
Line: 110

nikan

I had included the necessary queries for smf1 but not for smf2.
Mod on Reply#424 has been updated.
Thanks again fiver.

fiver

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




nikan

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

fiver

Thanks nikan,


Another one. ;D



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

nikan

fiver i can't reproduce this error, i 've re-upload the mod just in case of some mistake. Can you check again?

fiver

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.

nikan

OK fiver, i found it.
Fixed and updated. Thanks.

shazoo!

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

fiver

Hi nikan,


An undefined error:



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


Thanks.


nikan

On SMF 2.0 this variable name changed to lowercase.

Fixed and updated on Reply#424

Thanks fiver.

shazoo!

#472
Ahhh, downloaded the 2.0.2 update from here; http://www.simplemachines.org/community/index.php?topic=58833.440

and everything works great!

05185736

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

nikan

#474
Below are images with functions of the mod.

l2crystin

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

Kisa

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

sles

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.

nikan

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.

bros

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?

Advertisement: