Advertisement:
GCWebhosting

Author Topic: Hide Post  (Read 271364 times)

Offline phantomm

  • Sophist Member
  • *****
  • Posts: 1,064
  • Gender: Male
    • pages/smfpl/171860759503032 on Facebook
    • Polish ElkArte community
Re: Hide Post
« Reply #420 on: August 30, 2011, 10:11:37 AM »
This error happens only when you visit Topics tab in profile (even own) and if this user has hidden post(s).
Polskie wsparcie SMF na simplemachines.org

My mods

Offline otsaki

  • Newbie
  • *
  • Posts: 8
Re: Hide Post
« Reply #421 on: September 07, 2011, 04:58:44 PM »
Can anyone make it work for SMF 2.0 VERSION PLEASE? i'm getting errors, dont even know where to set it up from in admin panel... please help

Offline Ventic

  • Full Member
  • ***
  • Posts: 635
  • Gender: Male
    • vasilis.koukoutis on Facebook
    • @joyspotorg on Twitter
    • JoySpot
Re: Hide Post
« Reply #422 on: September 22, 2011, 12:56:06 AM »
my prob: when someone hide something for +1 karma and the user who wants to see it got 1 karma cant see it

and the errror

http://www.gaming-paradise.net/forum/index.php?action=post;msg=262356;topic=85.76515
Apply Filter: Only show the errors with the same message
8: Undefined index: hiddenOption
Apply Filter: Only show the errors from this file
File: -Sources/Post.php
Line: 2738

http://www.gaming-paradise.net/forum/index.php?action=post;msg=262356;topic=85.76515
Apply Filter: Only show the errors with the same message
8: Undefined variable: ID_MEMBER_POSTER
Apply Filter: Only show the errors from this file
File: -Sources/Post.php
Line: 186

Offline Grosraisin

  • Jr. Member
  • **
  • Posts: 164
  • SMF 2.0.2
    • Prez-Me ALL Forum
Re: Hide Post
« Reply #423 on: November 03, 2011, 06:02:07 PM »
Try this one ;)

Thank you man

Still missing a trick on is kind of mod is to completely hide the subject was hiding (in the index and the list, or els we see all topics)

Its huge if you can will make his.

Thank you again.
SMF / Le Partage et l'Entraide
SMF / Sharing and Caring

Mes modifications de Mods / Templates


Offline nikan

  • Jr. Member
  • **
  • Posts: 390
Re: Hide Post
« Reply #424 on: December 02, 2011, 04:31:26 AM »
Updated for SMF 1.1.xx and SMF 2.0.x
I'll appreciate any feedback.

Feedback history:
Fixed mysql error on installation (BLOB/TEXT column 'hiddenInfo' can't have a default value) (Thanks kinkow)
Fixed a bug with changed karma names on SMF 2.x (Thanks D.S)
Fixed a bug with poster name and link in quoted message on SMF 2.0.2 (Thanks Gladicek)
Fixed a bug with double queried values (Thanks Ventic)
Removed the useless modification of the file Security.php on SMF 2.x
Fixed a bug with double comma (Thanks Inti31)
Fixed a bug with missing queries in post.php (Thanks fiver)
Removed the old code for reply on SMF 2.x (Thanks fiver)
Fixed a bug with missing queries in Profile-View.php (Thanks fiver)
Changed a variable name to lowercase on SMF 2.x (Thanks fiver)
« Last Edit: April 26, 2014, 02:02:19 PM by nikan »

Offline Gladicek

  • Newbie
  • *
  • Posts: 7
Re: Hide Post
« Reply #425 on: December 08, 2011, 09:10:40 AM »
Long time to update this by me.
This one is updated for SMF 1.1.15 and SMF 2.0.1
I'll appreciate any feedback.

Working for me on 2.0.1 without problems :) Thx

Offline soulgeek

  • Semi-Newbie
  • *
  • Posts: 78
    • Life Coaching
Re: Hide Post
« Reply #426 on: December 11, 2011, 01:09:30 AM »
Nice Mod but looks like it will come with a Cost.

The Cost is not so deep spidering and indexing as There is no Option to identify if the Visitor is a Search Engine Bot and the Content will be hidden, resulting Less Indexing. Defies the whole purpose of SEO.

Any Comments?
lets Grow Together With Law of Attraction !

Join to Seek a Better Like at
Law of Attraction Forum

Offline Sheda

  • Semi-Newbie
  • *
  • Posts: 87
Re: Hide Post
« Reply #427 on: December 11, 2011, 07:38:19 AM »
Why would you like a post indexed that you don't want people to see? oö

Offline Gladicek

  • Newbie
  • *
  • Posts: 7
Re: Hide Post
« Reply #428 on: January 06, 2012, 09:12:39 AM »
Long time to update this by me.
This one is updated for SMF 1.1.15 and SMF 2.0.1
I'll appreciate any feedback.

Hiding post is working great but after using this mod all quetes will look as this.


Tested on ver. 2.0.1/2.0.2

Offline nikan

  • Jr. Member
  • **
  • Posts: 390
Re: Hide Post
« Reply #429 on: January 07, 2012, 01:11:22 AM »
I don't get this error on my test pc. If you did a manual installation please check it again.



Offline Gladicek

  • Newbie
  • *
  • Posts: 7
Re: Hide Post
« Reply #430 on: January 08, 2012, 03:35:59 PM »
hxxp:www.image-share.com/upload/1201/27.png [nonactive]

1.1.16 is without problem after install but clean 2.0.2 after installing this mod will have this error.


Offline Sheda

  • Semi-Newbie
  • *
  • Posts: 87
Re: Hide Post
« Reply #431 on: January 08, 2012, 08:09:23 PM »
Heya,
I'd like to install this mod. Because it gave me some errors (got quite some mods installed and code changed already), i modified it to install on my forum, but...
There is one operation that i can't get my head around.
Code: [Select]
<search position="replace"><![CDATA[
<div align="right" class="smalltext"><a href="#top" onclick="return insertQuoteFast(', $post['id'], ');">', $txt['bbc_quote'], '</a></div>
<div class="post">', $post['message'], '</div>
</td>
</tr>';
]]></search>
<add><![CDATA[
';
if ($post['can_view_post'])
echo '
<div align="right" class="smalltext"><a href="#top" onclick="return insertQuoteFast(', $post['id'], ');">', $txt['bbc_quote'], '</a></div>';
echo '
<div class="post">', $post['message'], '</div>
</td>
</tr>';
}
]]></add>
The piece of code that it searches for does not exist in my post.template.php, so i don't know where this code should go or if i can even just take it as it is ('cause it was supposed to replace something).
I'll attach my post.template.php, so you can have a look at it.

Offline nikan

  • Jr. Member
  • **
  • Posts: 390
Re: Hide Post
« Reply #432 on: January 09, 2012, 01:21:05 AM »
Gladicek you are right. It is fixed now.

Sheda you use the original mod and not the updated that i made above ( http://www.simplemachines.org/community/index.php?topic=58833.msg3220648#msg3220648 ).

Offline Ventic

  • Full Member
  • ***
  • Posts: 635
  • Gender: Male
    • vasilis.koukoutis on Facebook
    • @joyspotorg on Twitter
    • JoySpot
Re: Hide Post
« Reply #433 on: January 09, 2012, 06:31:09 AM »
hi i unistalled my previus and installed the new one and got some errors

http://www.gaming-paradise.net/forum/index.php?board=49;action=post2
Apply Filter: Only show the errors with the same message
8: Undefined index: hiddenOption
Apply Filter: Only show the errors from this file
File: forum/Sources/Post.php
Line: 2684

Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'm.hiddenOption, m.hiddenValue, m.hiddenInfo, m.id_member, m.id_board
m.id_boa' at line 2
Apply Filter: Only show the errors from this file
File: /Sources/Post.php
Line: 2750

Offline Ventic

  • Full Member
  • ***
  • Posts: 635
  • Gender: Male
    • vasilis.koukoutis on Facebook
    • @joyspotorg on Twitter
    • JoySpot
Re: Hide Post
« Reply #434 on: January 09, 2012, 06:36:15 AM »
plus when i press quote it doesnt show it to me and i only see this Loading...

Offline Sheda

  • Semi-Newbie
  • *
  • Posts: 87
Re: Hide Post
« Reply #435 on: January 09, 2012, 10:42:58 AM »
Oh, F***....!
After i spent all night coding, i used the wrong version...?!
N...OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOH! :-\ :-[
But no worries, i will use winmerge and just take all the changes you made in your update to my own nearly finished code. ^^
However, the mod on the mod page should be updated as well.

Offline Ventic

  • Full Member
  • ***
  • Posts: 635
  • Gender: Male
    • vasilis.koukoutis on Facebook
    • @joyspotorg on Twitter
    • JoySpot
Re: Hide Post
« Reply #436 on: January 12, 2012, 03:49:32 PM »
anyone

Offline nikan

  • Jr. Member
  • **
  • Posts: 390
Re: Hide Post
« Reply #437 on: January 13, 2012, 03:25:07 AM »
hi i unistalled my previus and installed the new one and got some errors

http://www.gaming-paradise.net/forum/index.php?board=49;action=post2
Apply Filter: Only show the errors with the same message
8: Undefined index: hiddenOption
Apply Filter: Only show the errors from this file
File: forum/Sources/Post.php
Line: 2684

Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'm.hiddenOption, m.hiddenValue, m.hiddenInfo, m.id_member, m.id_board
m.id_boa' at line 2
Apply Filter: Only show the errors from this file
File: /Sources/Post.php
Line: 2750

Sorry for the delay, life is consuming.
Double query for m.id_member and m.id_board was giving you database error.
Fixed it and updated my attachment -> http://www.simplemachines.org/community/index.php?topic=58833.msg3220648#msg3220648

Offline Ventic

  • Full Member
  • ***
  • Posts: 635
  • Gender: Male
    • vasilis.koukoutis on Facebook
    • @joyspotorg on Twitter
    • JoySpot
Re: Hide Post
« Reply #438 on: January 13, 2012, 06:10:09 AM »
plus when i press quote it doesnt show it to me and i only see this Loading...

Offline nikan

  • Jr. Member
  • **
  • Posts: 390
Re: Hide Post
« Reply #439 on: January 13, 2012, 09:10:28 AM »
Ventic i can't reproduce this problem. Can you be more specific?