Wrzucam na prośbę jednego użytkownika. Postanowiłem stworzyć nowy temat, by nie robić syfu i nowi użytkownicy mogli to łatwo znaleźć.
Kod:
DESCRIPTION
Have you ever wanted your users to be able to define who exactly can view the information in any particular post? vS-Hide Hack Resurrection, a vBulletin 3.6 expansion, features a set of handy tags that together give your users an opportunity to do just that:
[HIDE-POSTS]: defines the minimum number of posts required to read the content within.
[SHOWTOGROUPS]: defines the usergroups that may read the content within.
[HIDE-THANKS]*: defines that the content within may only be read after the person says thank you by pressing a special button. (Expanded Edition Only)
[HIDE-REPLY]*: defines that the content within may only be read after the person replies. (Expanded Edition Only)
*(1): The HIDE-THANKS tag comes with a full-featured Post Thank You System. See features for further details.
*(2): The HIDE-REPLY tag can be reversed to HIDE with just one easy switch of an admincp option.
STATISTICS
File Uploads: 1
File Changes: 7
Template Changes: 3
Products to Install: 1
FEATURES
General
* Stylish, HTML-formatted output.
* Compatible With Regular and WYWIWYG editors.
* Unregistered, Unverified and Banned users are prevented from seeing any hidden content.
* Post owners can always see hidden content in their own posts.
* Ability to specify usergroups that can always see hidden content.
* Ability to enable / disable any of the tags:
o on global basis - vBulletin Options
o on per-forum basis - Forum Options (Expanded Edition Only)
o on per-usergroup basis - Usergroup Options (Expanded Edition Only)
* AJAX Features for HIDE-REPLY, HIDE-THANKS, and HIDE-REPLY-THANKS, with full non-ajax functionality for older browsers. (Expanded Edition Only)
* Online vB Code Documentation.
* Case-Insensitive Tags.
* vB Code Shortcut (HIDE) that can be linked to any of the tags featured by this engine. (Expanded Edition Only)
* There is no way to go around the tags. They are parsed correctly everywhere, including:
o Showthread / Showpost.
o Search Area
o Forum Display (First Post Preview)
o New Reply (Thread Review)
o Post Preview
o Archive
o Print Version
o E-mail Subscriptions
o RSS Feeds
Integrated Thank You System (Expanded Edition Only)
* Automatic prevention of users from saying Thank You more than once for the same post.
* Automatic prevention of users from saying Thank You to themselves.
* Ability to define which usergroups can post thanks.
* Ability to define which usergroups can remove own thanks.
* Ability to define which usergroups can remove others' thanks.
* Ability to disable thanks per forum.
* Ability to define whether or not to allow thanks on first post in each thread only.
* Ability to define whether or not to allow thanks in closed threads.
* Remove All Post Thanks button displayed to those who can remove both own and others' thanks.
* List of users who clicked "Thank You" below each post, with an option to limit the maximum amount of such users displayed.
* List of latest Thank You's received is displayed in each member's usercp.
* Administrator can specify a certain amount of reputation to be given to users who upon the receipt of a 'Thank You'.
* AJAX posting and removal of Thank You's, with a stylish progress indicator.
* AJAX posting and removal of Thank You's degrades gracefully to non-javascript functionality when AJAX is disabled.
VERSION HISTORY
Please see the attached "change_log.html" file for version history.
INTRODUCTION
Why "Resurrection"?
The reason is simple: This hack has been written many times by various people, and nobody ever got their version working correctly.
This product presents a professional version written from scratch, and there are no backdoors through which hidden information can be illegally retrieved. Unlike other systems, this one works correctly with the vBulletin Post Cache.
Usage Syntax:
[HIDE]information[/HIDE]
Shortcut code, can be mapped to any of the below ones. By default, it is mapped to HIDE-POSTS.
[HIDE-POSTS=X]information[/HIDE-POSTS]
Information is not shown to people who have less than X posts. Has an alternative syntax: , where X is automatically set to the value defined in vBulletin options.
[HIDE-REPLY]information[/HIDE-REPLY] (Expanded Edition Only)
Information is not shown to people unless they reply.
[HIDE-THANKS]information[/HIDE-THANKS] (Expanded Edition Only)
Information is now shown to people unless they press "Thank You" button.
[HIDE-REPLY-THANKS]information[/HIDE-REPLY-THANKS] (Expanded Edition Only)
Information is not shown to people unless they either reply or press "Thank You" button.
[SHOWTOGROUPS=x]information[/SHOWTOGROUPS]
Information is not shown to people unless they are a member of the X usergroups, where X is a comma-separated list of usergroupids.