WordPress PlugIn HideIt
— This posting is in English to make it readable for a broader audience as it touches some technical aspects. —
WordPress, the glorious, is certainly weak when it comes to access rights for postings. As far as I see the current version 2.0.5 does not provide more than declaring a posting as Private. This would hide the posting from anyone than the author himself. Obviously this is not what is needed for semi-private content as pictures of the family or anecdotes not to be read by future employers and such. Taking this as requirement – ignoring idealistic policies whatsoever – it is time to think about solutions. Especially without any promising strategies of the WordPress community in regard of that.
So the search for a suitable WordPress-Plugin started. Lots can be found here, for instance. But most of the promising ones turned out to have this or that crucial downside. However, I found HideThis by Mark Edwards.
By implementing a content filter it hides elements enclosed within special tags from readers who are not logged in. The filtering is done after the actual SQL query has delivered the result. So hidden text could be found by the blog’s search functionality. This might be seen as weakness but I can live with that.
The thing is so simple that I did not only used it as is but took it as inspiration for some enhancements. With all respect the original HideThis filter (v 1.0.1) is not too sophisticated.
- It does not cover multiple hidden sections within one post.
- It does not cut the closing markup tag from the filtered content.
- It does not provide information about hidden sections neither for users not allowed to nor to other just to make them aware of content which would be hidden to others.
So lots of thanks go to Mark Edwards for the initial inspiration provided with HideThis. Based on the idea I created HideIt which does all what I was missing in the original one.
If interested in further documentation please refer to the readme file which comes with the plugin package.
There are no plans for any further development activities so far. However, comments can be dropped whenever something comes up.
22. November 2006 23:55
Cool! Also will ich einen Account! Der alte geht nicht…
23. November 2006 09:21
Das ist ganz normal, der alte war ja nur für den FTP-Server. Account folgt.
24. November 2006 00:04
Account? Account!
27. November 2006 04:09
mein (wp-)account geht (auch) nicht mehr …
29. November 2006 23:38
Nee, ich hatte ja auch einen für die Bilder. Werden die auch noch migriert?
30. November 2006 00:19
Oho. Die Bilder. Da denk ich schon seit Monden drüber nach. Wenn migrieren, dann wird dein neuer Account auch dafür gehen. Word. Ansonsten sind die Bilder noch da, wo sie immer waren.
14. Januar 2007 17:44
hi!
thanks for the plugin. that’s what I really was searching for.
I need some links in my posts to be available for registered users only and message “for reg.only” insead of the links for all other visitors. but actually your plugin (with no configuration to default settings from my end) just hide the content without any message insead of it…
please advise.
thanks in advance.
Dmytro
27. April 2007 11:10
Hallo,
ich würde gerne mit meinen bescheidenen “lerning by doing” PHP Kenntnissen das Plugin auf die Rollenverwaltung umstellen. Und wollte dazu mal nachfragen ob ihrer-/deinerseits dahingehend schon irgendwelche Aktivititäten vorhanden sind (um einer Doppelentwicklung vorzubeugen). Den Sourcecode würde ich Ihnen/Dir natürlich für eine Veröffentlichung zur Verfügung stellen. Wäre das in Ordnung?
Gruß
Andreas
27. April 2007 11:32
@Andreas:
Ich habe keine Absichten, irgendwas in der Richtung weiter zu entwickeln.
Du kannst den Code verwenden und modifizieren, wie du lustig bist. Ich empfehle die Verwendung eines neuen PlugIn-Namens, gerne auch aus HideIt abgeleitet. Eine Nennung/Verlinkung in den Metadaten wäre nett.
Das Ergebnis würde mich natürlich auch interessieren.
27. April 2007 12:11
@M:
Super, danke.
Ich werde dich dann zu gegebener Zeit informieren. Die Nennung/Verlinkung ist natürlich Ehrensache und auf jedenfall enthalten.
Als Name ist mir sowas wie “HideIt+”, “HideIt_Advanced” etc. vorgeschwebt.
Gruß
Andreas
27. April 2007 12:27
@Andreas:
Prima. Bin gespannt.
27. Oktober 2007 17:45
Great Plugin! It does exactly what I need and very easily!
21. Juni 2008 22:43
So what are the special tags? I’m using it, but I can’t find what the tags are supposed to be!
22. Juni 2008 20:34
@Alan
I suggest, special just meant the tags to enclose hidden parts. As you are using it successfully, there is not much of a question left, I guess.
15. Juli 2008 18:08
Gibt es eine Möglichkeit, die Hide-Tags auch im Template zu verwenden? Habe mein Theme ein wenig individualisiert und möchte gerne dirket im Template einen Teil nur für registrierte User sichtbar machen…
12. Mai 2009 17:53
Does this work with the latest current version of WordPress?
12. Mai 2009 21:58
Works fine with 2.7. And I am sure 2.7.1 would also be fine. As it uses a quite basic filter hook I hope it will last quite a while.