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 - vFCoders - Hide Hack v4 (https://vborg.vbsupport.ru/showthread.php?t=282328)

Badshah93 05-18-2012 05:08 AM

Quote:

Originally Posted by nacaruncr (Post 2330241)
I have a bug :S
When someone want to read a PM, they can't read them.... but when I disable the hack, the users can read them :S
How I can fix it man :S
Thanks and regads :)

Edit:
The only usergroups can read them are:
Adms and global mods

i fixed this bug in 2.0 version

Badshah93 05-18-2012 05:28 AM

Quote:

Originally Posted by Hippy (Post 2330253)
Quote pm is an other mod. not part of this One.. o did the pm test. To see if i got that error. Its s test sites so I logged in as a user and used the quote post in pm to a user that did not thank or post to a test thread and the pm was readable but since I used this to send the pm. It had the hide code in it and was readable by the user

To make it work with quote PM MOD, you will need to do edit one plugin of quote PM

Plugin Name: Quote Post in PM (2)

------------------------------
Find:
PHP Code:

    if ($vbulletin->options['qpipm_trim_text']){$pagetext vbchop($pagetext$vbulletin->options['qpipm_trim_text']);} 

Add Above:
PHP Code:

global $vfc_hide;
if (
$vbulletin->options[hide_hack_sett_main]) {
$params = array('message' => $pagetext'forumid' => $foruminfo['forumid'], 'threadid' => $posttext[threadid], 'postid' => $postinfo[postid], 'userid' => $postinfo[userid]);

$pagetext $vfc_hide->fetch_msg_to_hide($params);




nacaruncr 05-18-2012 06:07 AM

Quote:

Originally Posted by Badshah93 (Post 2330341)
i fixed this bug in 2.0 version

ohhh ohh... thanks man :D
It's awesomeeeeeeee :D

Regards :)

Hippy 05-18-2012 10:00 AM

Quote:

Originally Posted by Badshah93 (Post 2330343)
To make it work with quote PM MOD, you will need to do edit one plugin of quote PM

Plugin Name: Quote Post in PM (2)

------------------------------
Find:
PHP Code:

    if ($vbulletin->options['qpipm_trim_text']){$pagetext vbchop($pagetext$vbulletin->options['qpipm_trim_text']);} 

Add Above:
PHP Code:

global $vfc_hide;
if (
$vbulletin->options[hide_hack_sett_main]) {
$params = array('message' => $pagetext'forumid' => $foruminfo['forumid'], 'threadid' => $posttext[threadid], 'postid' => $postinfo[postid], 'userid' => $postinfo[userid]);

$pagetext $vfc_hide->fetch_msg_to_hide($params);




thanks 2 thumbs up

Hippy 05-18-2012 11:47 PM

Badshah93
I added your fix for the quote pm
and it seems to just remove the [hide] tag if you thanked
so who ever the quoted post is sent to now can view the content.


example

with the code above

Code:

In Reply to your post [ post=12 ]test hide[ /post ]
[ QUOTE=Hippy;12 ] test thank to view content [ /QUOTE ]

if you didn't thank then it will view as

example
and this will be seen
Code:

In Reply to your post [ post=12 ]test hide[ /post ]
[ QUOTE=Hippy;12 ]***Hidden content cannot be quoted.***[ /QUOTE  ]



example with out the code you posted

Code:

In Reply to your post [post=12]test hide[ /post ]
[ QUOTE=Hippy;12 ][HIDE-THANKS]test thank to view content[/HIDE-THANKS][ /QUOTE ]






thanks

Hippy 05-19-2012 12:23 AM

1 Attachment(s)
with boofo's quote post in pm version (The original one)
if you add
Code:

global $vfc_hide;
if ($vbulletin->options[hide_hack_sett_main]) {
$params = array('message' => $pagetext, 'forumid' => $foruminfo['forumid'], 'threadid' => $posttext[threadid], 'postid' => $postinfo[postid], 'userid' => $postinfo[userid]);
 
$pagetext = $vfc_hide->fetch_msg_to_hide($params);

}

above

Code:

// Limit the quoted post text to something sane
if ($vbulletin->options['boofo_qpm_max_text'])

if seems to work..

the post quoted to pm with the hide tag in it views like so as long as your not a member that thanked to the post and pmes it

https://vborg.vbsupport.ru/attachmen...1&d=1337390472
in the event the person / member that "post thank" to the post, then he /she sent it to a member that has not thanked they will be able to read the content in the pm..

Hippy 05-19-2012 12:41 AM

ok , I may of confused you because I confused myself..

ok
example

I'm a regular member and I thanked a post with the hide tag for "post thanks"
now I can view the content..

then I quote pm to a user that did not thank to view ..
in the PM he can view the content..

sorry about that, to many log in and out's to see what was going on..

is there any way for you to make it like in the thread to say ***Hidden content cannot be quoted.*** no matter if they thanked or not to the post in the pm?

Hippy 05-19-2012 01:21 AM

-=snipped=-

nacaruncr 05-19-2012 01:47 AM

ohh... I was searching how make to the first post can't quote for this mod (quote post pm) but with these mod, help me a lot :D
thanks man I'm gonna use them :)

Badshah93 05-19-2012 03:12 AM

Quote:

Originally Posted by Hippy (Post 2330563)
ok , I may of confused you because I confused myself..

ok
example

I'm a regular member and I thanked a post with the hide tag for "post thanks"
now I can view the content..

then I quote pm to a user that did not thank to view ..
in the PM he can view the content..

sorry about that, to many log in and out's to see what was going on..

is there any way for you to make it like in the thread to say ***Hidden content cannot be quoted.*** no matter if they thanked or not to the post in the pm?

replace old edit with this

PHP Code:

global $vfc_hide;
$pagetext $vfc_hide->strip_hide_bbcodes($pagetext'quote'); 



All times are GMT. The time now is 08:08 PM.

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.01517 seconds
  • Memory Usage 1,767KB
  • 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
  • (5)bbcode_code_printable
  • (5)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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