vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - vS-Hide Hack Resurrection (https://vborg.vbsupport.ru/showthread.php?t=237057)

mertiliuss 10-22-2010 03:23 PM

I can obter as the extended version ?

exportforce 10-24-2010 02:56 PM

The Forum where I can "Buy" the EXTENDED Edition is totally unsupported and dead.
Do I still need to buy that ? If yes, the last update is almost a year ago and I can't seem to see any support on the board... I am confused.

Kraxell 10-24-2010 04:01 PM

if you only need hide and thanks-hack, you dont need the extended-version.(use another thanks-hack)

bigrover 10-25-2010 03:10 PM

I purchased the extended version for the per-forum and per-usergroup settings. With the exception of a few things I have noted and resolved, the product works. None of the other HIDE mods even make attempts at a complete hide.

Find what works for you and go with it. I understand the support issues. I have a mod I probably should post, but I am reluctant to due to the support load it would likely generate. It is an ugly mod, but it works for me. Sometimes that is what you need.

exportforce 10-26-2010 11:55 AM

Quote:

Originally Posted by Kraxell (Post 2113662)
if you only need hide and thanks-hack, you dont need the extended-version.(use another thanks-hack)

Can you link me one ? Since I only need the Thankyou + Hide.

NovoCiv 11-07-2010 07:09 PM

Quote:

Originally Posted by bigrover (Post 2112626)
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.

I did this and now both hide and showtogroups makes the message invisible to everyone. I don't even see "This message is hidden", its just as if I didn't type anything.

alexbuidoi 11-09-2010 03:35 PM

Well, I installed it on my 4.0.8 forum and it worked fine (though I had to work 1 hour to make the thanks_postbit template look ok).
I tried to find a bug like you said, but everything was fine til now. I tried to quote the post, view source.... and it's still hidden.
I think this mod will be perfect if the coder give full support as it supposed to.

jackichan70 11-12-2010 01:10 PM

be used for vB4.0.1 or not?

dcuellar 11-13-2010 04:17 PM

Hey vS,
I asked about this on a previous version and you said you were going to look into it. Can you add the ability to view content for x amount of vbcredits?

Saphyrus 11-16-2010 02:23 PM

Quote:

Allow 'Thanks' in Closed Threads
Sorry but this doesn't work! I have vb 4.0.7. Please help!

NovoCiv 11-16-2010 04:56 PM

We have noticed that hidden content can be found by quoting a post. I've narrowed it down to the newpost_quote template, and in styles where I remove the {vb:raw pagetext} from the template the vulnerability is removed (at the cost of quoting). I think the best solution would just be to add some command in the code to parse all BB code. I just don't know enough PHP to know what command to use. Here's an example of what I mean (I know parsebbcode() isn't real).
Code:

ORIGINAL:
[QUOTE={vb:raw originalposter}]{vb:raw pagetext}[/QUOTE]
FIX:
[QUOTE={vb:raw originalposter}]parsebbcode({vb:raw pagetext})[/QUOTE]

Anyone have ideas?

motorola 11-19-2010 08:31 PM

Quote:

Originally Posted by dcuellar (Post 2121440)
Hey vS,
I asked about this on a previous version and you said you were going to look into it. Can you add the ability to view content for x amount of vbcredits?

+1

I'm also interested to have this

bigrover 11-20-2010 02:44 AM

Quote:

Originally Posted by NovoCiv (Post 2119176)
I did this and now both hide and showtogroups makes the message invisible to everyone. I don't even see "This message is hidden", its just as if I didn't type anything.

I went back in and looked at my adjustments to this mod and they are as I posted. It does prevent the hidden text from being quoted. If you look at the code snippets closely, you will see I am really only adding a single line after the opening braces of the if statement:
PHP Code:

// hack trying to fix HIDE without options
            
$message preg_replace("/\[(" $this->tags['SHOWTOGROUPS'] . ")\](.*)\[\/\\1\]/siU"$replacement$message); 


NovoCiv 11-20-2010 02:56 AM

Quote:

Originally Posted by bigrover (Post 2123739)
I went back in and looked at my adjustments to this mod and they are as I posted. It does prevent the hidden text from being quoted. If you look at the code snippets closely, you will see I am really only adding a single line after the opening braces of the if statement:
PHP Code:

// hack trying to fix HIDE without options
            
$message preg_replace("/\[(" $this->tags['SHOWTOGROUPS'] . ")\](.*)\[\/\\1\]/siU"$replacement$message); 


I know. That breaks the mod so that HIDE doesn't show up at all. See this post:

We have noticed that hidden content can be found by quoting a post. I've narrowed it down to the newpost_quote template, and in styles where I remove the {vb:raw pagetext} from the template the vulnerability is removed (at the cost of quoting). I think the best solution would just be to add some command in the code to parse all BB code. I just don't know enough PHP to know what command to use. Here's an example of what I mean (I know parsebbcode() isn't real).
Code:

ORIGINAL:
[QUOTE={vb:raw originalposter}]{vb:raw pagetext}[/QUOTE]
FIX:
[QUOTE={vb:raw originalposter}]parsebbcode({vb:raw pagetext})[/QUOTE]

Anyone have ideas?

luckid 11-22-2010 03:26 AM

My PAID license not work !!!!

Luckid..... !!!!

bigrover 11-22-2010 01:59 PM

That is the point of the fix I posted. It is a correction of the bbcode parsing routines in the hide hack that were not processing correctly during quoting. If you look at the code, and the hooks you will see this was intended to do what the poster was requesting.

At this point I'm not sure what is going wrong for you. I have spent roughly 40 hours tracking through how this mod works and fixing things on my sites so that I have the results I need. You are going to have to invest the same if you don't get what you are looking for in this or any of the other hide mods out there.

I've looked back through my hacks to this mod, and they are minor and pretty simple. They work for me, but I don't know what else you have going on. Good luck.

Quote:

Originally Posted by NovoCiv (Post 2123743)
I know. That breaks the mod so that HIDE doesn't show up at all. See this post:

We have noticed that hidden content can be found by quoting a post. I've narrowed it down to the newpost_quote template, and in styles where I remove the {vb:raw pagetext} from the template the vulnerability is removed (at the cost of quoting). I think the best solution would just be to add some command in the code to parse all BB code. I just don't know enough PHP to know what command to use. Here's an example of what I mean (I know parsebbcode() isn't real).
Code:

ORIGINAL:

FIX:

Anyone have ideas?


NovoCiv 11-23-2010 04:17 AM

I don't understand php or vBulletin nearly as much as you. I made exactly the change you outlined and it caused hidden messages to not appear at all. I removed the change and it started working again.

andreamarucci 11-25-2010 12:33 PM

A question.

I would like that the text included in is only visible to admin specified usergroups.

Can I do that using this mod or do I need the expanded version? I don't need any other feature, just this one.

doopz 11-25-2010 12:42 PM

Quote:

Originally Posted by andreamarucci (Post 2125609)
A question.

I would like that the text included in is only visible to admin specified usergroups.

Can I do that using this mod or do I need the expanded version? I don't need any other feature, just this one.

Same thing for me.
I basicly just want our crew to be able to view the hidden text, everyone else no.

sulasno 11-25-2010 10:02 PM

there is an updated version at the developer's site

andreamarucci 11-26-2010 05:55 AM

The version at the developer's site is the same. Tried to install it on a test board and now I get completely blank pages...

SBKTR 12-11-2010 11:44 PM

If anyone can help when trying to do the templates, all goes well until this one and then I get this error:

In file(s) ./includes/functions_forumdisplay.php

Fatal error: Call to a member function parse_bbcode() on a non-object in /home/admin/public_html/includes/functions_forumdisplay.php on line 176

Strik3 12-16-2010 02:21 PM

And although I have installed this hack:
vS.Hide.Hack.Resurrection.Expanded.Edition.v4.0.5

In the standard skin of the hack works without problems. In the Skin of the element works Thanks not when I click it does not point to thank who have thanked?

On what is the?
Reply With Quote

KissOfDeath 12-28-2010 03:38 PM

good idea but this hack is kind of useless as you can just view source of the web page and see the hidden content which is included in the meta tag description.......

genxstan 01-04-2011 05:26 AM

It isnt working on VB 4.0.8 anyways

KaiStone 01-05-2011 02:47 PM

Dear Psionic Vision,

If you do search with Show Post option, the hidden content is showed, please try to fix it and release new version.

I'm using vBulletin 4.0.8 PL2 and find that bug.

NovoCiv 01-05-2011 03:32 PM

I finally figured out a fix.

In Plugin Manager find the newreply_quote in the vS Hide Hack section.

Under
PHP Code:

$pagetext $GLOBALS['hhr']->strip_bbcode($pagetext'editor'); 

Add
PHP Code:

$pattern '/\[hide\](.*)\[\/hide\]/i';
$replacement " [i]Hide tags Hidden[/i] ";
$pagetext preg_replace($pattern$replacement$pagetext); 

Edit: The first post can still reveal hidden content due to meta tags. There are various ways to fix this but I removed the vulnerability from all but the public sections (who needs meta tags in members only sections anyway?) by changing this to this in Showthread template:
PHP Code:

    <vb:if condition="$threadinfo['keywords']"><meta name="keywords" content="{vb:raw threadinfo.keywords}" /></vb:if>
    <
meta name="description" content="{vb:raw thread.meta_description}" /> 

PHP Code:

<vb:if condition="in_array($threadinfo['forumid'], array(28,30,32))">
    <
vb:if condition="$threadinfo['keywords']"><meta name="keywords" content="{vb:raw threadinfo.keywords}" /></vb:if>
    <
meta name="description" content="{vb:raw thread.meta_description}" />
</
vb:if> 


FReeSTER 01-08-2011 07:45 PM

Quote:

Originally Posted by NovoCiv (Post 2144457)
I finally figured out a fix.

In Plugin Manager find the newreply_quote in the vS Hide Hack section.

Under
PHP Code:

$pagetext $GLOBALS['hhr']->strip_bbcode($pagetext'editor'); 

Add
PHP Code:

$pattern '/\[hide\](.*)\[\/hide\]/i';
$replacement " [i]Hide tags Hidden[/i] ";
$pagetext preg_replace($pattern$replacement$pagetext); 

Edit: The first post can still reveal hidden content due to meta tags. There are various ways to fix this but I removed the vulnerability from all but the public sections (who needs meta tags in members only sections anyway?) by changing this to this in Showthread template:
PHP Code:

    <vb:if condition="$threadinfo['keywords']"><meta name="keywords" content="{vb:raw threadinfo.keywords}" /></vb:if>
    <
meta name="description" content="{vb:raw thread.meta_description}" /> 

PHP Code:

<vb:if condition="in_array($threadinfo['forumid'], array(28,30,32))">
    <
vb:if condition="$threadinfo['keywords']"><meta name="keywords" content="{vb:raw threadinfo.keywords}" /></vb:if>
    <
meta name="description" content="{vb:raw thread.meta_description}" />
</
vb:if> 


have anyone else tried this?

EDIT:

what this stand for?
array(28,30,32))">

NovoCiv 01-09-2011 07:11 AM

Quote:

Originally Posted by El Intocable (Post 2146124)
have anyone else tried this?

EDIT:

what this stand for?
array(28,30,32))">

Those are the IDs of our three "Public" forums. (The ones guests can view).

KaiStone 01-09-2011 10:42 AM

It seems to be there's nobody care about searching problem. vS-Hide cannot work if you do a search inside topic :D

NovoCiv 01-09-2011 08:11 PM

Quote:

Originally Posted by KaiStone (Post 2146391)
It seems to be there's nobody care about searching problem. vS-Hide cannot work if you do a search inside topic :D

I've been working on this all day and I can't figure it out.

I've altered everything I can think of in the search_results_postbit and search_resultlist templates, with no luck. As long as it strips bbcode and formatting there's no [hide] tags to find and replace.

Maybe someone with more knowledge can figure out a fix.

KaiStone 01-10-2011 03:27 AM

Quote:

Originally Posted by NovoCiv (Post 2146620)
I've been working on this all day and I can't figure it out.

I've altered everything I can think of in the search_results_postbit and search_resultlist templates, with no luck. As long as it strips bbcode and formatting there's no [hide] tags to find and replace.

Maybe someone with more knowledge can figure out a fix.

In fact, I can fix it. But I don't like Psionic very much, simple because he did a bad business. He's a good coder, but he sells a product with so much bugs, and can't support to fix it.

Who are you, NovoCiv? You're so active in this thread. I don't use vS-Hide anymore, so I don't care about it.

I believe that you are really interested in fixing this Mod, so you want to find the way yourself?

I can give you an idea.

You're right, as long as strip bbcode, there's no HIDE tag to replace. So you can re-call it in original, replace the HIDE tag, and rebuild it to display in post. Even, you can use "if - else" fuction to let who has permission to see the content right that moment.

And the Hook Location is "search_results_postbit". "search_resultlist" only builds the structure.

NovoCiv 01-10-2011 11:10 PM

I'm not entirely sure what you're suggesting but I was going to have the [hide] tags add a *hidden* Message here *hidden* inside, so I could preg_replace anything within the *hidden*s. The slight addition in clutter wouldn't be a very big deal to my mod staff if it means patching the vulnerability. The main section we use it for (mod applications) I just disabled searching.

I'd rather have a working tag right away than figure out a fix myself, as I still have quite the backlog of features to develop. If you tell me how you've fixed it I would be very grateful.

And to your question of "Who are you?", I used to be a mod at a ~50,000 member flash games website. When I got sick of trying to convince the administration to do things that make it more enjoyable for the members I quit and got my own vBulletin license, then made a website for most of the active members to go where we do everything we can to make it enjoyable. My only coding experience is an intro to Java university course, and I do most of the coding and development myself, so it's a lot of work. I basically look through source code, other mods, and php tutorials to figure out ways to make it do what I want to do.

MarioRe 01-10-2011 11:16 PM

Quote:

Originally Posted by KaiStone (Post 2146824)
....He's a good coder, but he sells a product with so much bugs, and can't support to fix it.

co-sign! BAD MOVE!

Quote:

Originally Posted by KaiStone (Post 2146824)
I don't use vS-Hide anymore, so I don't care about it.

Could you suggest any other correct working solution?

KaiStone 01-11-2011 12:29 AM

Quote:

Originally Posted by MarioRe (Post 2147302)
Could you suggest any other correct working solution?

I use Sid's Hide Hack and convert it to compatible with vB 4 myself. Because I just need Hide-Thanks only.

@ NovoCiv: it's funny if you're going to disable searching system. Bad idea. To fix the small problem, you have a bigger one.

I'm already give you an idea, I thought you're interested...

So, add a new plugin

Product: *Your Product*
Hook Location: search_result_postbit
Title: Hide when Search (Show Post)
PHP Code:

Code:

global $vbphrase, $db;
$post_text = $db->query_first("SELECT pagetext FROM " . TABLE_PREFIX . "post WHERE postid = $post[postid] ORDER BY dateline ASC");
$post_hide['pagetext'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', 'Your Message Goes Here', $post_text[pagetext]);
$post['pagetext'] = nl2br(vbchop($post_hide['pagetext'], 200));


NovoCiv 01-11-2011 07:08 AM

Thank you! As far as I know my Hide hack is completely patched now :)

KaiStone 01-11-2011 11:16 AM

Quote:

Originally Posted by NovoCiv (Post 2147442)
Thank you! As far as I know my Hide hack is completely patched now :)

I think you should creat a new topic, includes all patches collection for everyone are using this Mod.

NovoCiv 01-11-2011 05:24 PM

But then I would be the one that's not offering support. (I can't support when I hardly understand vbulletin myself).

MarioRe 01-11-2011 10:38 PM

Quote:

Originally Posted by KaiStone (Post 2147327)
I use Sid's Hide Hack and convert it to compatible with vB 4 myself. Because I just need Hide-Thanks only.

Thanks for your response...

But, we need no [HIDE-THANKS]... we (only) need a correct workin' solution for the [HIDE-REPLY] function.

Quote:

Originally Posted by KaiStone (Post 2147488)
I think you should creat a new topic, includes all patches collection for everyone are using this Mod.

Good idea... I'm with that!

Quote:

Originally Posted by NovoCiv (Post 2147629)
But then I would be the one that's not offering support. (I can't support when I hardly understand vbulletin myself).

I think nobody would (can!) expect extra support from you... but would be a great move to share your knowledge and show to other how it's possible to fix the bugs of this "Hide Hack".

NovoCiv 01-12-2011 05:49 AM

They would get more help searching this topic, honestly.


All times are GMT. The time now is 02:23 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.01682 seconds
  • Memory Usage 1,884KB
  • 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
  • (4)bbcode_code_printable
  • (12)bbcode_php_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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