vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vS-Hide Hack Resurrection (https://vborg.vbsupport.ru/showthread.php?t=97366)

akanevsky 10-01-2005 10:00 PM

vS-Hide Hack Resurrection
 
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
||
|| Author : Anton Kanevsky
|| Works on : vBulletin 3.5.x - 3.8.x
|| Released : Oct 07, 2009
||
|| 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 3.5.x - 3.8.x 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: 10
Products to Install: 1


FEATURES

General

  • Stylish, HTML-formatted output.
  • Compatible With Regular and WYWIWYG editors.
  • Compatible with all vBulletin Versions from 3.5.x through 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, 2006 - 2009
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 file for version history.

The installation manual is contained within the attached file.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL

erratic assasin 10-02-2005 11:39 AM

err where do I find the file?

akanevsky 10-02-2005 11:44 AM

You usually have to wait about 5 minutes for the files to appear. I at first create the thread, then I edit my hack manual to contain a reference to the thread, and only then I fill the thread with archive / screenshots / whatever. This is true for any of my hacks.

erratic assasin 10-02-2005 11:57 AM

Thanks for the advice nice work and check your pm please...

Kent100 10-02-2005 01:04 PM

Thanks!!! :banana:

VaaKo 10-02-2005 01:42 PM

you should make the hide hack integrated with the thank you hack
[hide]text[/hide]
when a user clicks on "thank you" button, it unhides the text!

erratic assasin 10-02-2005 01:45 PM

Fatal error: Call to undefined function: parsehide() in /****/*******/public_html/******/includes/functions_forumdisplay.php on line 163

getting parse error on this line ? help :nervous:

$thread['preview'] = strip_tags(str_replace("<br />", "\n", parseHide($thread['preview'])));

akanevsky 10-02-2005 04:31 PM

Quote:

you should make the hide hack integrated with the thank you hack
[hide]text[/hide]
when a user clicks on "thank you" button, it unhides the text!
What's the point in that "thank you" hack?

Quote:

Fatal error: Call to undefined function: parsehide() in /****/*******/public_html/******/includes/functions_forumdisplay.php on line 163


getting parse error on this line ? help

$thread['preview'] = strip_tags(str_replace("<br />", "\n", parseHide($thread['preview'])));
Make sure you followed the instructions correctly. I am not getting any errors on my end.

dantes 10-02-2005 05:12 PM

Fine work !
Thx ....

Mr Chad 10-02-2005 06:10 PM

Quote:

Originally Posted by dantes
Fine work !
Thx ....

The [HIDE] works fine but the [SHOWTOGROUPS=] does nothing...

By the way loved your manual.

erratic assasin 10-02-2005 06:26 PM

Its OK I uninstalled hack its not what I was looking for but still awesome manual and support many thanks...

kauka 10-02-2005 07:16 PM

ok where in admincp can you change amount of posts before you can see?

slank 10-02-2005 07:16 PM

this will be awesome for a riddles forum - i'll try installing.
thanks

akanevsky 10-02-2005 08:37 PM

Quote:

The [HIDE] works fine but the [SHOWTOGROUPS=] does nothing...

By the way loved your manual.
That's not true, it works for me.
Thanks for compliment about the manual :)

Quote:

ok where in admincp can you change amount of posts before you can see?
vBulletin Options -> BBCODE Settings

VaaKo 10-03-2005 09:14 AM

Quote:

What's the point in that "thank you" hack?
you'll get to say thank you to the poster and unhide the topic

MarsNIIT 10-03-2005 10:34 AM

Please help me , error:

Fatal error: Call to undefined function: parsehide() in /home/ddfiles/public_html/includes/class_postbit.php(279) : eval()'d code on line 1

Cyricx 10-03-2005 12:48 PM

Will this check secondary usergroups as well? or just primaries?

ctsolutions 10-03-2005 02:40 PM

Quote:

Originally Posted by Lebanese Forces
you'll get to say thank you to the poster and unhide the topic

if I know well, the hide hack is coded to read the post count and then let the user read the hide text.
the thank you hack will not increase your post count, so they cant work together for the moment.

Mike

akanevsky 10-03-2005 07:20 PM

Quote:

Fatal error: Call to undefined function: parsehide() in /home/ddfiles/public_html/includes/class_postbit.php(279) : eval()'d code on line 1
You need to copy and paste from the instructions.
There isn't "parsehide", but instead there is a "parseHide"... Case matters.

Quote:

Will this check secondary usergroups as well?
Yes.

Quote:

if I know well, the hide hack is coded to read the post count and then let the user read the hide text.
the thank you hack will not increase your post count, so they cant work together for the moment.
Not with the same tag. I could make it with a different tag, such as [hide-no-reply]... However, I don't see a point in doing that. It's too easy to click a button, who cares about it.

kauka 10-03-2005 07:39 PM

Very nice hack indeed. Just for my own personal view about this hack if it's done by post counts not every member has or hasn't that amount required. I guess what i'm asking is instead of post counts it be by usergroups. Just asking as I know nothing about coding.

ctsolutions 10-03-2005 08:02 PM

(50 post(s) are required, you have 0):
You do not have sufficient rights to be able to see this block.
==============================================
but, my user has 62.

still after I updated the post count. from where will be the post count read ?

Mike

akanevsky 10-03-2005 08:05 PM

Quote:

Very nice hack indeed. Just for my own personal view about this hack if it's done by post counts not every member has or hasn't that amount required. I guess what i'm asking is instead of post counts it be by usergroups. Just asking as I know nothing about coding.
This hack features both... Read the description carefully and you fill discover the existence of [SHOWTOGROUPS] tag.


Quote:

(50 post(s) are required, you have 0):
You do not have sufficient rights to be able to see this block.
==============================================
but, my user has 62.
In what area are you trying to use the tag? Can I see it?

akanevsky 10-03-2005 08:30 PM

Your problem is that you still have the [hide-until-reply] hack installed... They are incompatible.

akanevsky 10-03-2005 09:10 PM

I could look at your FTP... If you want, send me the login details as a PM.

ctsolutions 10-03-2005 10:15 PM

Sorry about previous posts, I deleted them.
I just installed your hack on another site and works like a charm.

Thanky You !!!

Mike

alhedayh 10-04-2005 09:59 AM

Thanky You !!!

booktoweb 10-04-2005 11:12 AM

i want

[HIDE]text[/HIDE]

dis appear from user

and apear pic
http://www.shazly.net/hst2x1/dbosch7t...hide.gif


when user post reply
text appear to him with this pic
http://www.shazly.net/hst2x1/ewaramvw...unhidden.gif

how can i do it

where the option of thes hack in admincp ?

akanevsky 10-04-2005 11:56 AM

Quote:

i want

[HIDE]text[/HIDE]

dis appear from user

and apear pic



when user post reply
text appear to him with this pic


how can i do it

where the option of thes hack in admincp ?
That's not in this hack. This hack is based on postcounts and usergroups.

jaks 10-04-2005 03:51 PM

I'm getting the exact same error as above
Fatal error: Call to undefined function: parsehide() in /home/eroticst/public_html/forums/includes/functions_forumdisplay.php on line 163

did this problem get fixed?

booktoweb 10-04-2005 03:57 PM

can you re build this hack to 3.5.0 please :surprised:

jaks 10-04-2005 04:03 PM

When I add this line to functions_forumdisplay
PHP Code:

 $thread['preview'] = strip_tags(str_replace("<br />""\n"parseHide($thread['preview']))); 

Fatal error: Call to undefined function: parsehide() in /home/eroticst/public_html/forums/includes/functions_forumdisplay.php on line 163

Any ideas? Sorry for the double post.

akanevsky 10-04-2005 04:10 PM

Quote:

sorry for doube post
Diagnosis: crooked hands of the person who was performing the installation.
Make sure you edited functions.php properly, as described in the manual.

Quote:

can you re build this hack to 3.5.0 please
No, because in my opinion that hack is pointless.

jaks 10-04-2005 05:13 PM

Quote:

Diagnosis: crooked hands of the person who was performing the installation.
Make sure you edited functions.php properly, as described in the manual.
These are fresh files and it's only the one line to add. Crooked hands is not an option. ;) Any other ideas?

Edit:

I'll double check all edits one more time.

jaks 10-04-2005 06:13 PM

Edit: I figured out that the code is different when viewed with IE. Might want to make a note to use only Firefox. There are no errors now but showgrougs tag does nothing. Any ideas?

jaks

oricon 10-04-2005 06:42 PM

any chance to integrate this hack with the thank you hack? i think it is better to press "thank you"-button as a simple "thank you" answer. without this hack most user wrote only thx and the post count is high. sorry for my english, i hope you understand.

jaks 10-04-2005 07:08 PM

I'm getting a DB error when i run the install which I figure is a conflict with the old version. Any chance you have an upgrade install or a db removal for the old version?

Figured it out i just had to delete the 2 rows in the settings table and it now works like a charm.
Jaks

akanevsky 10-05-2005 05:08 PM

Quote:

I figured out that the code is different when viewed with IE.
False. Tested in the three major browsers: IE, Opera, Firefox

Quote:

There are no errors now but showgrougs tag does nothing.
It does for me.

Quote:

any chance to integrate this hack with the thank you hack? i think it is better to press "thank you"-button as a simple "thank you" answer. without this hack most user wrote only thx and the post count is high. sorry for my english, i hope you understand.
Maybe I will release a separate version that will include both "Thank You" and "Hide Until Reply" tags. Keep up with updates (of course, to do that you need to click Install)

akanevsky 10-05-2005 05:48 PM

Download the new version, just released.

To upgrade:
1. Re-do changes for functions.php
2. Do changes for vbulletin_textedit.js

To find out why this version has a "Limited" label, please check out the manual.

Kent100 10-05-2005 06:25 PM

Суперхак! :up:

akanevsky 10-05-2005 06:40 PM

Спасибо =)


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

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02000 seconds
  • Memory Usage 1,843KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete