Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vS-Hide Hack Resurrection Details »»
vS-Hide Hack Resurrection
Version: 4.0.5, by akanevsky akanevsky is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.0.x Rating:
Released: 02-26-2010 Last Update: 03-11-2010 Installs: 253
DB Changes Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.

I no longer support my hacks. Please feel free to update them and release new versions elsewhere as long as I get the credit for the original modification.

/*===================================*\
|| vS-Hide Hack Resurrection (Limited Edition)
||
|| Author : Anton Kanevsky
|| Works on : vBulletin 4.0.x
|| Released : Mar 12, 2010
||
|| Time required to install: ~2 minutes
|| Difficulty: easy
\*===================================*/

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 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)
[STU]: defines the users that may read the content within. (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: 5
Products to Install: 1


FEATURES

General

  • Stylish, HTML-formatted output.
  • Compatible With Regular and WYWIWYG editors.
  • Compatible with vBulletin 4.0.x (and there is also an old version for vBulletin 3.5.x - 3.8.x).
  • Unregistered, Unverified and Banned users are prevented from seeing any hidden content.
  • Post owners can always see hidden content in their own posts.
  • Users can always see hidden content in posts that they can edit.
  • It is impossible to quote hidden text even if it is revealed - it is stripped from the quotation.
  • Ability to specify usergroups that can always see hidden content.
  • Zero template edits.
  • Works fast on large boards.
  • Ability to enable / disable any of the tags:
    • on global basis - vBulletin Options
    • on per-forum basis - Forum Options (Expanded Edition Only)
    • 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.
  • There is no way to go around the tags. They are parsed correctly everywhere, including:
    • Showthread / Showpost.
    • Search Area
    • Forum Display (First Post Preview)
    • New Reply (Thread Review)
    • Post Preview
    • Archive
    • Print Version
    • E-mail Subscriptions
    • RSS Feeds


Integrated "Thank You" System ? (Expanded Edition Only)

  • Works fast on large boards.
  • 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 define in which forums to enable the system (can also be enabled/disabled globally).
  • Ability to define in which forums to bump thanked threads (can also be enabled/disabled globally).
  • Ability to define whether to allow thanks on first post only.
  • Ability to define whether to allow thanks in closed threads.
  • "Remove All" 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.

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.

[STU=x]information[/STU]
Information is not shown to people unless they are a listed in X, where X is a comma-separated list of userids.

:: Copyrights ::
The Engine & Toolbar Images - Copyright ? Anton Kanevsky (aka @kan), 2006 - 2010
Locked and Unlocked Images - Copyright ? vBStyles.com, 2004 - 2006, huge thanks to Miko for providing the PSD files!

VERSION HISTORY

Please see the attached "change_log.html" file for version history.

The installation manual is contained within the attached file.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL

Download Now

File Type: zip vS-HHRL_4.0.5_by_akan.zip (45.1 KB, 2279 views)

Screenshots

File Type: jpg screenshot01.jpg (102.2 KB, 0 views)
File Type: jpg screenshot02.jpg (86.2 KB, 0 views)
File Type: jpg screenshot03.jpg (76.6 KB, 0 views)
File Type: jpg screenshot04.jpg (84.7 KB, 0 views)
File Type: jpg screenshot05.jpg (77.8 KB, 0 views)
File Type: jpg screenshot06.jpg (134.1 KB, 0 views)
File Type: png screenshot07.png (23.8 KB, 0 views)
File Type: png screenshot08.png (19.9 KB, 0 views)
File Type: jpg screenshot09.jpg (63.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
Fraxter, Michael.A, pandusetiawan

Comments
  #152  
Old 10-21-2010, 05:42 PM
bigrover bigrover is offline
 
Join Date: Jun 2010
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I performed a complete re-install of this product mod on my vB 4.0.7 and the text is now hidden when I select "reply with quote". Actually the hidden text is replaced with ***hidden text*** in bold, and I can live with that. I'm not sure what I missed before.

OK, I figured it out! The situation that causes the text to not be hidden occurs when the option information is not included in the tag. For example, [hide]***hidden stuff***[/hide] will work and only the groups set as the default in the control panel can see it, but if anyone selects Reply With Quote the hidden text will be revealed. However, if the tag is written out completely as [hide='5,6,7']***more hidden stuff***[/hide] then it works properly, even when quoted. The same is true with the [showtogroups] tag. It is not case sensitive, but it does require the options to be specified. Which leads to the next big issue...

Now if I can only figure out how to make this mod default the group numbers in the HIDE and SHOWTOGROUPS buttons in the editor.
Reply With Quote
  #153  
Old 10-22-2010, 01:30 AM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bigrover View Post
I performed a complete re-install of this product mod on my vB 4.0.7 and the text is now hidden when I select "reply with quote". Actually the hidden text is replaced with ***hidden text*** in bold, and I can live with that. I'm not sure what I missed before.

OK, I figured it out! The situation that causes the text to not be hidden occurs when the option information is not included in the tag. For example, [hide]***hidden stuff***[/hide] will work and only the groups set as the default in the control panel can see it, but if anyone selects Reply With Quote the hidden text will be revealed. However, if the tag is written out completely as [hide='5,6,7']***more hidden stuff***[/hide] then it works properly, even when quoted. The same is true with the [showtogroups] tag. It is not case sensitive, but it does require the options to be specified. Which leads to the next big issue...

Now if I can only figure out how to make this mod default the group numbers in the HIDE and SHOWTOGROUPS buttons in the editor.
I tested this on vBulletin 4.0.7 and it does strip out the text when you use just [hide] a [/hide].
Reply With Quote
  #154  
Old 10-22-2010, 01:48 AM
MonsterDK MonsterDK is offline
 
Join Date: Nov 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Psionic Vision View Post
I tested this on vBulletin 4.0.7 and it does strip out the text when you use just [hide] a [/hide].
Psionic Vision how is it possible to stop hidden content been seen in WHAT'S NEW tab via mouse over in 4.0.6 ?
Reply With Quote
  #155  
Old 10-22-2010, 02:16 AM
bigrover bigrover is offline
 
Join Date: Jun 2010
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Psionic Vision View Post
I tested this on vBulletin 4.0.7 and it does strip out the text when you use just [hide] a [/hide].
Did you try Reply With Quote? It fails consistently on mine when the options are not included. I'm going to check the install again, but I think the problem lies in the regex in vS_HHR_Engine.php and that won't have anything to do with the install. Since it works with the options included that means it is properly going through the hooks to the engine. I'm going to have a few beers and debug the regex to see why it isn't matching without the options.

I could always wipe out my whole site and start over with a fresh install of vB and only this mod, but I know I will be in the same place. I've already disabled all the other mods with no change. It isn't practical for me to include the options to list the authorized forums as the list is quite long. Also, if the original poster sees the entire list of authorized forums and can monkey around with that list. That kinda defeats the whole concept of security for this mod.
Reply With Quote
  #156  
Old 10-22-2010, 03:43 AM
bigrover bigrover is offline
 
Join Date: Jun 2010
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

GOT IT!

Find at line 685 in vS_HHR_Engine.php:
PHP Code:
        if (!($purpose == 'dopost' AND $show['toolbar_showtogroups_button']))
        {
            
$message preg_replace("/\[(" $this->tags['SHOWTOGROUPS'] . ")=("|\"|'|)([0-9,]+)\\2\](.*)\[\/\\1\]/siU"$replacement$message);
        } 
Replace with:
PHP Code:
        if (!($purpose == 'dopost' AND $show['toolbar_showtogroups_button']))
        {
            
// hack trying to fix HIDE without options
            
$message preg_replace("/\[(" $this->tags['SHOWTOGROUPS'] . ")\](.*)\[\/\\1\]/siU"$replacement$message);
            
$message preg_replace("/\[(" $this->tags['SHOWTOGROUPS'] . ")=("|\"|'|)([0-9,]+)\\2\](.*)\[\/\\1\]/siU"$replacement$message);
        } 
The regex was not going to match on to the tag without the options included. I basically duplicated the function of the HIDE-POSTS match above it at line 662. Works great now.

Now to figure out the toolbar button prompt issue. The provided instructions are incorrect and lead to a dead-end.
Reply With Quote
  #157  
Old 10-22-2010, 08:58 AM
Kraxell's Avatar
Kraxell Kraxell is offline
 
Join Date: Jun 2010
Location: Germany
Posts: 481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is it possible to see, where a user have thanks? (which posts/threads)
Reply With Quote
  #158  
Old 10-22-2010, 09:05 AM
weindians weindians is offline
 
Join Date: Sep 2006
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is it possible to import thanx from post thank u hack to this mod
Reply With Quote
  #159  
Old 10-22-2010, 12:39 PM
bigrover bigrover is offline
 
Join Date: Jun 2010
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MonsterDK View Post
Psionic Vision how is it possible to stop hidden content been seen in WHAT'S NEW tab via mouse over in 4.0.6 ?
On my vB 4.0.7 system the hidden text is properly dealt with in the mouse hover situation. It works as expected.
Reply With Quote
  #160  
Old 10-22-2010, 12:58 PM
bigrover bigrover is offline
 
Join Date: Jun 2010
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want to have the mod use the configured defaults rather than prompt for options when the button in the editor is pushed, consider the following changes.

Go to your plugin manager and edit HHR: Load Editor Buttons (E/2). The variable of interest is twoparams. If it is set to '1' then the button will prompt for one option, however if it is set to zero, the button doesn't prompt at all. It just inserts the tags and you go on with your edit. When the tags are processed by the mod, if no options are specified, it defaults to the configuration entered in the control panel.

In my case I have the HIDE tag mapped to SHOWTOGROUPS so my changes to the HHR: Load Editor Buttons (E/2) plugin would look like this:
PHP Code:
if ($show['toolbar_shortcut_button'])
{
    
$extrabuttons[] = array(
        
'buttonimage' => vB_Template_Runtime::fetchStylevar('imgdir_editor') . '/hide.gif',
        
//'twoparams' => ($vbulletin->options['hidetag_shortcut'] == 0 || $vbulletin->options['hidetag_shortcut'] == 4 || $vbulletin->options['hidetag_shortcut'] == 5) ? 1 : 0,
        
'twoparams' => 0,
        
'bbcodetag' => 'hide',
        
'tag' => 'hide',
    );

and:
PHP Code:
if ($show['toolbar_showtogroups_button'] AND $vbulletin->options['hidetag_shortcut'] != 4)
{
    
$extrabuttons[] = array(
        
'buttonimage' => vB_Template_Runtime::fetchStylevar('imgdir_editor') . '/showtogroups.gif',
        
//'twoparams' => 1,
        
'twoparams' => 0,
        
'bbcodetag' => 'showtogroups',
        
'tag' => 'showtogroups',
    );

Reply With Quote
  #161  
Old 10-22-2010, 01:18 PM
motorola motorola is offline
 
Join Date: May 2009
Location: Romania
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Psionic Vision can you give me an answere on my previous question ?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:39 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07628 seconds
  • Memory Usage 2,393KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete