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-01-2012 10:00 PM

vFCoders - Hide Hack v4
 
1 Attachment(s)
.::vFCoders - Hide Hack::.

This MOD gives users in selected forums the ability to hide their content by using any of the 7 BBCode. ([HIDE], [HIDE-REPLY], [HIDE-THANKS], [HIDE-REPLY-THANKS], [HIDE-POSTS], [SHOWTOGROUPS], [STG])

1. Features
  1. Seven different BBCode to Hide Contents.
    • [HIDE-REPLY] -> Content within this tag is not shown to user until he/she replies in that thread.
    • [HIDE-POSTS] -> Content within this tag can only be seen by people's who have more posts than defined number of posts.
    • [HIDE-THANKS] -> Content within can only be seen after the user says thank you by pressing Thanks Button. Requires: Abe1 [AJAX] Post Thank You Hack / vBSeo Like System.
    • [HIDE-REPLY-THANKS] -> Content within this tag is not shown to user until he/she either reply or press "Thank You" button.
    • [SHOWTOGROUPS] -> Content within this tag is only shown to defined usergroups.
    • [STG] -> Content within this tag is only shown to defined users.
    • [HIDE] -> This tag can be mapped to any of the above BBCodes. (Default - [HIDE-REPLY])
  2. Fully Compatible with Source and Wysiwyg Editor.
  3. No Template or File Edits. (optional - one file edit if you have rss enabled)
  4. Uses vBulletin easy Product installer/updater/uninstaller
  5. Uses AJAX technology so your users don't have to refresh to see hidden content.
  6. Content within Tags are completely hidden, there is no way to bypass hide tags. Contents are hidden everywhere including
    • Showthread
    • Threadbit
    • Archive
    • Search
    • Subscribed Threads in USERCP
    • Email
    • Print Page
    • RSS
    • Meta Description
    • Quote
  7. Usergroup permissions for each tag, including option to select usergroups which can always see Hidden Content.
  8. Global and Per-Forum Basis vBulletin settings for each tag.
  9. Option to turn on Hide Button's in quick reply and quick edit Editor.
  10. Uses Phrases
  11. Dialog Box for selecting Usergroup's when user clicks [SHOWTOGROUPS] Tag.


2. Installation
  • Download and unzip vFCoders_hide_hack.zip file from this thread.
  • Upload all the files inside "UPLOAD" folder into your vBulletin installation directory. (where forum.php file is located)
  • Import product-vfc_hide_hack.xml file through Product Manager in admincp.
  • Note: [HIDE-THANKS] and [HIDE-REPLY-THANKS] Tag will not work if you don't have Abe1 [AJAX] Post Thank You Hack or vBSEO Like System installed in your forum.
  • Optional - If you have RSS enabled in your forum, then open install.txt file and do the edit's which is mention in that file.

    Installation Complete..


3. Settings
  1. Global Settings: Admincp -> Settings -> Options -> vFCoders - Hide Hack
  2. Usergroup Settings: Admincp -> Usergroups -> Usergroup Manager -> Edit Usergroup -> vFCoders - Hide Hack Permissions
  3. Forum Settings: Admincp -> Forum Manager -> Edit Forum -> vFCoders - Hide Hack [Options]

4. DEMO

http://screencast-o-matic.com/watch/clhnrr5e9

5. Support

Support will be provided to those who have my copyright link in their sites.


Mod History:
v1.0 : 3 May 2012 : First Release.
v1.01 : 3 May 2012 : Fixed Thanks Bug.
v1.1 : 3 May 2012 : Added vBSEO Like System Integration Function
v1.2 : 4 May 2012 : Now compatible with vB < 4.1.4 also.
v1.3 : 4 May 2012 : Fixed PM Bug.
v2.0 (RC) : 4 May 2012 : Optimized Codes and fixed a minor bug.
v2.1 (RC) : 13 May 2012 : Fixed a minor bug.
v2.2 (RC) : 23 May 2012 : Changed Ajax Request Method, Added 1 new Plugin and also removed few.
v3.0 (GOLD) : 10 June 2012 : Added STU tag, Optimize Codes, Fix [SHOWTOGROUPS] Tag Bug, Added Hide/Unhide Box
v3.1 : 13 June 2012 : Fix Hide tag mapped issue.
v4.0 : 7 July 2012 : Now mod uses YUI for ajax requests and fixed some minor bugs.

-> Click On Mark As Installed If You Have Installed This Mod.
-> You Can Nominate it also for Mod Of The Month.
-> If u like my work, you can Donate me also.

Badshah93 05-02-2012 07:28 PM

v3 GOLD Released (for vB 4.1.10+=)

Changes:
1) Added STU Tag
2) Fix [SHOWTOGROUPS] Tag Bug
3) Optimize Codes
4) Hide/Unhide Box

ProFifaLeagues 05-02-2012 08:16 PM

Nice Idea will test this as soon as i get home thanks mate

Badshah93 05-02-2012 08:28 PM

Demo Added and Mod Updated to v 1.01.

nacaruncr 05-02-2012 10:16 PM

It'll be a good idea add the vbseo's thanks in the hack... from someone say "Like me" this work as same way....
regards and tagged :D

Badshah93 05-03-2012 10:05 AM

<i>Version 1.1 Added.</i>
Changes: Added vBSEO Like System Integration for THANKS Tag

Kraxell 05-03-2012 10:56 AM

My hero of the year!

I've tagged it. I'll install it, when i update my vB.

Translations allowed?

Badshah93 05-03-2012 11:00 AM

Quote:

Originally Posted by Kraxell (Post 2325775)
My hero of the year!

I've tagged it. I'll install it, when i update my vB.

Translations allowed?

it is allowed.

Gn_Snake 05-03-2012 01:13 PM

Very Nice!!!!
I test it

Shazz 05-03-2012 01:45 PM

Will take a look at it, great job

mitch84 05-03-2012 01:48 PM

Hi, can you add a option for use this hack with thanks dbtech? thank you

nacaruncr 05-03-2012 02:16 PM

Do you think it works fine with oldest versions?
Ex. 4.1.3, 4.1.4... because I have 4.1.3, and I gonna install it, if this works fine, I come back and tell you ok, and if not, could you fix it to oldest versions?

Regards and many thanks man :D

Badshah93 05-03-2012 02:20 PM

Quote:

Originally Posted by nacaruncr (Post 2325837)
Do you think it works fine with oldest versions?
Ex. 4.1.3, 4.1.4... because I have 4.1.3, and I gonna install it, if this works fine, I come back and tell you ok, and if not, could you fix it to oldest versions?

Regards and many thanks man :D

to make it compaitable with vBulletin 4.1.3, i have to add one plugin.
so, wait for an hour, will post 4.1.3 xml.

Alex@bulletin 05-03-2012 02:35 PM

Hello there, nice mod, I will consider to translate it to german later.
One suggestion I'd like to make is that it would be great, if your mod additionally works with DB Tech Advanced Thanks / Likes. I don't know if this is possible, but I like to request that :)

nacaruncr 05-03-2012 02:36 PM

ohhhh I gonna love you man XD really I gonna install it :D
thanks I'll wait for it :D

Edit:

5 STARS + MOTM

Asterix_ita 05-03-2012 02:55 PM

On vbulletin suite, if I use the widget Recent Forum Post the bbcode don't work

https://vborg.vbsupport.ru/external/2012/05/53.png

Regards

Badshah93 05-03-2012 03:49 PM

Version 1.2 Added

Changes - Now Mod Supports vB < 4.1.4

Nirjonadda 05-03-2012 04:07 PM

You can add hidden content message with image?

https://vborg.vbsupport.ru/attachmen...3&d=1275549867

Badshah93 05-03-2012 04:19 PM

Quote:

Originally Posted by Asterix_ita (Post 2325858)
On vbulletin suite, if I use the widget Recent Forum Post the bbcode don't work

https://vborg.vbsupport.ru/external/2012/05/53.png

Regards

CMS Widget (Recent Forum Posts) doesn't have any plugin hook, so manual edit is required to strip hide bbcodes from recent forum posts widget.

Open file -> packages/vbcms/widget/recentposts.php
Find:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

PHP Code:

            $post['previewtext'] = fetch_censored_text($parser->get_preview($post['pagetext'], $this->default_previewlen$allow_html));
            
$post['pagetext'] = fetch_censored_text($parser->do_parse($post['pagetext'], $allow_html)); 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Add Below:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

PHP Code:

            if (vB::$vbulletin->options[hide_hack_sett_main]) 
            {
            global 
$vfc_hide;
            
$post['previewtext'] = $vfc_hide->strip_hide_bbcodes($post['previewtext'], 'email');
            
$post['pagetext'] = $vfc_hide->strip_hide_bbcodes($post['pagetext'], 'email');
            } 


Badshah93 05-03-2012 04:30 PM

Quote:

Originally Posted by Nirjonadda (Post 2325879)
You can add hidden content message with image?

https://vborg.vbsupport.ru/attachmen...3&d=1275549867

This Mod uses Template for [HIDE-REPLY], [HIDE-THANKS] AND [HIDE-REPLY-THANKS]. (if [HIDE] tag is mapped to any of these three tag, then [hide] tag also uses template.)

So to add image

StyleManager -> Edit templates

for [HIDE-REPLY] Tag open vfc_hide_hack_bbcode_reply Template

Replace:
Code:

{vb:rawphrase vfc_hidden_content_reply_ntml}
With:
Code:

IMG HTML CODE

nacaruncr 05-03-2012 04:36 PM

ohh it's working so fine :D
thank you very much man :D your my hero :D
I gonna put this thread in my signature :D

Regards :D

Edit:
Done :D the thread is in my signature :D

Edit:
For the icos in the Quick Editor, I have to put the code from the install.txt file, right? or not?

Alex@bulletin 05-03-2012 05:07 PM

1 Attachment(s)
Hello there,

my translation of your mod to German is done. But it seems you've forgotten to phrase some parts, as I'm not a coder, I can't fix that by myself :( I'd like to show you where I wasn't able to translate. (green marked on the screenshots) It would be great if you could phrase them, so I can provide my translation as fast as possible :)

Screenshot 1:

https://vborg.vbsupport.ru/attachmen...1&d=1336068312


Screenshot 2:

https://vborg.vbsupport.ru/attachmen...1&d=1336068312

Alex@bulletin 05-03-2012 05:28 PM

German translation (beta) available now!!! :)

Badshah93 05-03-2012 06:19 PM

Quote:

Originally Posted by Alex@bulletin (Post 2325900)
Hello there,

my translation of your mod to German is done. But it seems you've forgotten to phrase some parts, as I'm not a coder, I can't fix that by myself :( I'd like to show you where I wasn't able to translate. (green marked on the screenshots) It would be great if you could phrase them, so I can provide my translation as fast as possible :)

new zip file i have uploaded with those two missing phrases.

Alex@bulletin 05-03-2012 06:35 PM

1 Attachment(s)
Quote:

Originally Posted by Badshah93 (Post 2325919)
new zip file i have uploaded with those two missing phrases.

thx. I will update my translation now.

EDIT:
Aww, I don't want to annoy you now but while updating my translation I noticed that still one phrase is missing :( (green marked of course :D)

Screenshot:

https://vborg.vbsupport.ru/attachmen...1&d=1336074350

I'll wait for next release and then provide my updated translation. Please don't forget to add the missing phrase for your next version :cool:

nacaruncr 05-03-2012 07:22 PM

Thanks man, I gonna download and try to translate to spanish :D
Regards :D

Edit:
In 4.1.3 don't show the option to select usergroups :S
There is a fix for this?

Regards :D

Badshah93 05-03-2012 07:37 PM

Quote:

Originally Posted by nacaruncr (Post 2325943)
Thanks man, I gonna download and try to translate to spanish :D
Regards :D

Edit:
In 4.1.3 don't show the option to select usergroups :S
There is a fix for this?

Regards :D

i will see if that can be done in vb 4.1.3 or not.

Nirjonadda 05-03-2012 07:43 PM

Installed and Nominate !

nacaruncr 05-03-2012 08:28 PM

Quote:

Originally Posted by Badshah93 (Post 2325944)
i will see if that can be done in vb 4.1.3 or not.

ok man :D thank you very much :D
regards :D

nacaruncr 05-03-2012 09:33 PM

1 Attachment(s)
Here is the Spanish translation (BETA) :D
thanks Alex@bulletin for the tip

EDIT:
V2 add, the missed phrases are now in this translation :)
Regards :)

Gemma 05-04-2012 06:35 AM

Very nice. Thank you for releasing :)

Badshah93 05-04-2012 08:14 AM

Version 1.3 Added
Changes: Fixed PM Bug

W!cKeD 05-04-2012 01:10 PM

Quote:

Originally Posted by Badshah93 (Post 2326093)
Version 1.3 Added
Changes: Fixed PM Bug

Thanks for Release

It is compatible with vBulletin 4.1.12?

Badshah93 05-04-2012 01:20 PM

Quote:

Originally Posted by W!cKeD (Post 2326160)
Thanks for Release

It is compatible with vBulletin 4.1.12?

vB 4.x.x

nacaruncr 05-04-2012 01:23 PM

The initial release was for 4.1.11 I remember....
regards ;)

Nirjonadda 05-04-2012 05:18 PM

Can you provide an option so that thread opener & Admins can intimated whether the post used HIDE TAG on not?

L2Insomnia 05-04-2012 07:12 PM

Looks great marked. Thanks!

Badshah93 05-04-2012 07:20 PM

Quote:

Originally Posted by Nirjonadda (Post 2326248)
Can you provide an option so that thread opener & Admins can intimated whether the post used HIDE TAG on not?

i didn't get you completely.. do you want a small icon near threadtitle in forumdisplay (threadlist) to state whether the thread used HIDE tag or not.

Nirjonadda 05-05-2012 07:54 AM

Not something like that. Actually admins/staffs are not bound on hide codes. They can view every post as it is not hidden.
If there was an indication in each post whether it uses hide tag or not. They can check it going to EDIT mode, but there is no way to learn whether the particular post is hidden or not for the general members.

Badshah93 05-06-2012 08:11 AM

Quote:

Originally Posted by Nirjonadda (Post 2326399)
Not something like that. Actually admins/staffs are not bound on hide codes. They can view every post as it is not hidden.
If there was an indication in each post whether it uses hide tag or not. They can check it going to EDIT mode, but there is no way to learn whether the particular post is hidden or not for the general members.

ok, in next release (Gold) will add indication. (maybe a unhide image)
btw, in current version you can add indication for [HR], [HT], [HRT], [H] tags by editing their respective templates.

[HR] - vfc_hide_hack_bbcode_reply
[HT] - vfc_hide_hack_bbcode_thanks
[HRT] - vfc_hide_hack_bbcode_replythanks

Open anyof these templates, and

find:

Code:

{vb:raw message}
Replace with

Code:

Unhidden Content:
<div>{vb:raw message}</div>



Version 2.0 (RC) Added
Changes: Optimized Codes and fixed a minor bug.


All times are GMT. The time now is 07:31 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.01791 seconds
  • Memory Usage 1,849KB
  • 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
  • (2)bbcode_php_printable
  • (12)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