News:

Wondering if this will always be free?  See why free is better.

Main Menu

Hide Post

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

Previous topic - Next topic

Adrek

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

the simplest solution is most likely the right one

otsaki

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

Ventic

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

Grosraisin

Quote from: phantomm on August 09, 2011, 09:03:36 AM
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



nikan

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

Gladicek

Quote from: nikan on December 02, 2011, 04:31:26 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

soulgeek

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

Sheda

Why would you like a post indexed that you don't want people to see? oö

Gladicek

Quote from: nikan on December 02, 2011, 04:31:26 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

nikan

I don't get this error on my test pc. If you did a manual installation please check it again.



Gladicek

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.


Sheda

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

nikan

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

Ventic

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

Ventic

plus when i press quote it doesnt show it to me and i only see this Loading...

Sheda

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.

Ventic


nikan

Quote from: Ventic 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

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

Ventic

Quote from: Ventic 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...

nikan

Ventic i can't reproduce this problem. Can you be more specific?

Advertisement: