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)

W!cKeD 11-02-2011 11:20 PM

When you qoute a Post with Hide its not hidden...any solutions?

annalise 11-02-2011 11:36 PM

Quote:

Originally Posted by J9382F2A102C (Post 2263483)
to make this plugin work in 4.1.x you need to add a custom bb code 'hide' to your vbulletin config through the admin cp

still need to figure out how to make the toolbar buttons appear, because that seems to have been broken while development of this mod stopped, and development of vbulletin continued aswell. but it definitely seems to work :)

Also note that we didn't have to hack 0 files for it to work on vB 4.1.7, just import the .xml, add the files from your upload folder, add a custom hide tag (or if you want everything, add all the tags) as a custom BB tag and off you go.

im using 4.1.7 working fine after i did this, this fixes adding the hide button on the toolbar post editor

Code:

https://vborg.vbsupport.ru/showpost.php?p=2229187&postcount=242

bigrover 11-04-2011 04:13 PM

Quote:

Originally Posted by W!cKeD (Post 2263928)
When you qoute a Post with Hide its not hidden...any solutions?

Yes, but the solution requires editing the mod. I think I posted my solution earlier in the thread. I will go back and review my adjustments to this mod that provide a truly hidden message capability. As distributed the mod is working as designed, which seems to be geared more towards quiz/testing with hints and such embedded. Nothing wrong with that at all, it just didn't fit my application.

More info: I went back and looked through my code to find where I addressed this. I also ran a few tests to confirm my memory. In my case I only have SHOWTOGROUPS enabled, and I have the HIDE tag mapped to SHOWTOGROUPS. The HIDE tag has no paramaters, which when mapped to SHOWTOGROUPS causes the strip_bbcode function to fail in replacing the text. to fix this I added a line of code containing the same regex found in the HIDE-POSTS tag. A note of explanation - the SHOWTOGROUPS tag will default to the groups configuration in the control panel unless specific parameters are entered.

In includes/vS_HHR_Engine.php find:
PHP Code:

$message preg_replace("/\[(" $this->tags['SHOWTOGROUPS'] . ")=("|\"|'|)([0-9,]+)\\2\](.*)\[\/\\1\]/siU"$replacement$message); 

Add above that line:
PHP Code:

$message preg_replace("/\[(" $this->tags['SHOWTOGROUPS'] . ")\](.*)\[\/\\1\]/siU"$replacement$message); 

This will allow the system to recognize and properly process the SHOWTOGROUPS tag without any additional parameters. If you are using another tag and the hidden text isn't being stripped, then you need to look in the strip_bbcode function to see what is expected to happen.

On the other hand, before you go to a lot of work chasing all this down, make sure you are testing the quoted reply from a usergroup that doesn't have permissions to see the hidden text in the first place! :D I'm only saying this because I've made that error myself...

bigrover 11-04-2011 04:16 PM

BTW, I do have this running on my test site with vB version 4.1.7 SP1 with my modifications. It appeared to work as intended without my mods. This was a clean install on vB 4.1.7, not an upgrade.

parks72 11-27-2011 09:12 PM

many thanks for this..................

JamuPegelLinux 12-05-2011 03:52 PM

how with 4.1.8 ?

doopz 12-14-2011 09:51 AM

Quote:

Originally Posted by bigrover (Post 2264437)
Yes, but the solution requires editing the mod. I think I posted my solution earlier in the thread. I will go back and review my adjustments to this mod that provide a truly hidden message capability. As distributed the mod is working as designed, which seems to be geared more towards quiz/testing with hints and such embedded. Nothing wrong with that at all, it just didn't fit my application.

More info: I went back and looked through my code to find where I addressed this. I also ran a few tests to confirm my memory. In my case I only have SHOWTOGROUPS enabled, and I have the HIDE tag mapped to SHOWTOGROUPS. The HIDE tag has no paramaters, which when mapped to SHOWTOGROUPS causes the strip_bbcode function to fail in replacing the text. to fix this I added a line of code containing the same regex found in the HIDE-POSTS tag. A note of explanation - the SHOWTOGROUPS tag will default to the groups configuration in the control panel unless specific parameters are entered.

In includes/vS_HHR_Engine.php find:
PHP Code:

$message preg_replace("/\[(" $this->tags['SHOWTOGROUPS'] . ")=("|\"|'|)([0-9,]+)\\2\](.*)\[\/\\1\]/siU"$replacement$message); 

Add above that line:
PHP Code:

$message preg_replace("/\[(" $this->tags['SHOWTOGROUPS'] . ")\](.*)\[\/\\1\]/siU"$replacement$message); 

This will allow the system to recognize and properly process the SHOWTOGROUPS tag without any additional parameters. If you are using another tag and the hidden text isn't being stripped, then you need to look in the strip_bbcode function to see what is expected to happen.

On the other hand, before you go to a lot of work chasing all this down, make sure you are testing the quoted reply from a usergroup that doesn't have permissions to see the hidden text in the first place! :D I'm only saying this because I've made that error myself...

Ok.. this fix doesn't seem to work.
The [hide] function itself dissapears.. any suggestions ?

Ichigo88 12-21-2011 06:35 PM

where is hide thanks? in this version 4.0.5 the hide reply dont work

Selene 01-24-2012 04:04 PM

works on 4.1.10? and is visionscript coder gone? can we still purchase the premium version.

Kraxell 01-24-2012 05:25 PM

Dont buy the prem-version! No support, no updates anymore.


All times are GMT. The time now is 02:25 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.01216 seconds
  • Memory Usage 1,763KB
  • 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_code_printable
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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