Resource icon

[Aayush] Hide Hack v1 1.5.3

No permission to download

Aayush Agrawal

Well-known member
Aayush Agrawal submitted a new resource:

vFCoders - Hide Hack (version 1.0) - This addon gives users the ability to hide their content using BbCode.

Description:
This addon gives users the ability to hide their content using BbCode.

View attachment 43155

Features:
  • Six different BBCode to Hide Contents.
    1. [HIDE-REPLY] -> Content within this tag is not shown to user until he/she replies in that thread.
    2. [HIDE-POSTS] -> Content within this tag can only be seen by people's who have more...
Read more about this resource...
 

Sheratan

Well-known member
Some suggestion:

1. Change [HIDE-REPLY-THANKS] to [HIDE-REPLY-LIKES]
2. Change [HIDE-THANKS] to [HIDE-LIKES]
2. Show the BBcode in /help/bb-codes

-edit-
4. Looks like the BB Codes doesn't follow the [plain*] BB Codes rule
 

resonansER

Well-known member
One very annoying bug exists! Look at picture.
If enter ANY links in hide close tag ADD to link. :(

Code:
[SHOWTOGROUPS=3,4][URL='http://xenforo.com/community/resources/vfcoders-hide-hack.1618/[/SHOWTOGROUPS]']http://xenforo.com/community/resources/vfcoders-hide-hack.1618[/SHOWTOGROUPS][/URL]
 

Attachments

  • Desktop_2013_03_31_15_55_40_289.png
    Desktop_2013_03_31_15_55_40_289.png
    110.5 KB · Views: 65

Aayush Agrawal

Well-known member
One very annoying bug exists! Look at picture.
If enter ANY links in hide close tag ADD to link. :(

Code:
[SHOWTOGROUPS=3,4][URL='http://xenforo.com/community/resources/vfcoders-hide-hack.1618/[/SHOWTOGROUPS]']http://xenforo.com/community/resources/vfcoders-hide-hack.1618[/SHOWTOGROUPS][/URL]
Yup. XenForo automatically links URLs and emails and i missed to disable it for hide-tags.
 

resonansER

Well-known member
Thank you. I'll be waiting for fix.
Your addon is VERY useful for some forums. And I grateful to you for this addon!
 

cclaerhout

Well-known member
Yup. XenForo automatically links URLs and emails and i missed to disable it for hide-tags.
See this: http://xenforo.com/community/threads/disable-autolinking.8610/page-2#post-467850

And for information, your addon will break TinyMCE for people who are using the Button Manager (see here - last version) because of this part of your code
PHP:
                case 'editor_tinymce_init':
                    if ($tag_list = self::fetch_tag_list($node_id))
                    {
                        $addToTemplate = ",\ntheme_xenforo_buttons2_add : ',|,$tag_list'";
                        $contents = $contents . $addToTemplate;
                    } 
                    break;
Edit 1: nope I was wrong the use of your addon and my addon advanced toolbar breaks TinyMCE. I still need to understand why.

Edit 2: I disable my toolbar and reactivate it after and it was working... strange. Never mind.
 

Aayush Agrawal

Well-known member
See this: http://xenforo.com/community/threads/disable-autolinking.8610/page-2#post-467850

And for information, your addon will break TinyMCE for people who are using the Button Manager (see here - last version) because of this part of your code
PHP:
                case 'editor_tinymce_init':
                    if ($tag_list = self::fetch_tag_list($node_id))
                    {
                        $addToTemplate = ",\ntheme_xenforo_buttons2_add : ',|,$tag_list'";
                        $contents = $contents . $addToTemplate;
                    }
                    break;
Edit 1: nope I was wrong the use of your addon and my addon advanced toolbar breaks TinyMCE. I still need to understand why.

Edit 2: I disable my toolbar and reactivate it after and it was working... strange. Never mind.

Your mod replaces buttons2 line where as this mods add new set of buttons to its right by using theme_xenforo_buttons2_add. When i was coding this mod i knew this editor problem may arise, so thats why i decided to use "theme_xenforo_buttons2_add". If i am not wrong, i don't think there is any addon which uses "theme_xenforo_buttons2_add" to add new buttons.
 

resonansER

Well-known member

Attachments

  • Desktop_2013_03_31_23_44_03_910.png
    Desktop_2013_03_31_23_44_03_910.png
    88.5 KB · Views: 38

resonansER

Well-known member
This is link looks like:
Code:
[HIDE=100][URL]http://xenforo.com/community/resources/steam-authentication-integration.1336/updates[/HIDE][/URL]
and this:
Code:
http://xenforo.com/community/resources/steam-authentication-integration.1336/updates%5B/vfc_hh%5D
Where this link leads.
heh....Strangely.
 

dwdmadmac

Active member
For this bbcode:
[HIDE-REPLY-THANKS]information[/HIDE-REPLY-THANKS]
Information is not shown to people unless they either reply or press "Like" button.
can you also add the option to switch between Xenforo Default Liking system or Post Ratings Liking System?
 
Top