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)

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 09:13 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.01264 seconds
  • Memory Usage 1,750KB
  • 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
  • (9)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