vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   BB Code Enhancements - BB Code Hider Lite (https://vborg.vbsupport.ru/showthread.php?t=266744)

nhawk 07-12-2011 10:00 PM

BB Code Hider Lite
 
THIS ADD-ON IS NO LONGER AVAILABLE AND IS NOT SUPPORTED

This mod hides or removes the contents of the CODE BB Code from usergroups of your choice in both posts and private messages.

* FEATURES *
--------------
  • Control who can view [CODE] by usergroup.
  • Replace the viewed contents in [CODE] with a message of your choice.
  • Completely remove [CODE] from view.
  • Removes meta tag content from prying eyes.

NOTE: This mod has been tested on vB 4.0.7, 4.1.4, 4.1.5 and 4.1.7 through 4.2.1. It may or may not work on versions earlier than 4.0.7. Please let me know what vB version you are running if there is a problem.



* INSTALLATION *
-------------------

1) Import the product XML file (product-bbchide.xml) into the Product Manager in AdminCP.

2) Go to AdminCP->Settings->Options->BB Code Hider Lite Settings, turn on the hider and setup the options.

* UPGRADE *
-------------

1) Import the product XML file (product-bbchide.xml) into the Product Manager in AdminCP. Be sure to set 'Allow Overwrite' to 'Yes'.


* History (Changelog) *
-------------------------
1.0.4 (May 26, 2012)
- Add hide functions for vB 4.2 activity stream and threadbit preview.

1.0.3 (November 7, 2011)
- Removed copyright symbol from plugins for those having install problems.

1.0.2 (October 27, 2011)
- Fix text cached by vBulletin being displayed.

1.0.1 (July 14, 2011)
- Updated to work with versions earlier than 4.1.4.

1.0.0 (July 13, 2011)
- Initial public release.

Screenshots are of the Premium Version - The Lite version only hides CODE tags.
The Premium Version is no longer available.

TheLastSuperman 07-13-2011 05:35 PM

I checked out the xml... unless I missed something else besides your dependency in the file, why would this not work with previous versions?

AttalaEA 07-13-2011 05:40 PM

Hello,

I would like to know wheather this can work with the attachments too or not?

nhawk 07-13-2011 05:56 PM

Quote:

Originally Posted by TheLastSuperman (Post 2220117)
I checked out the xml... unless I missed something else besides your dependency in the file, why would this not work with previous versions?

It could if it weren't for the way I display the box and CK Editor.

I am working on a version that will work with earlier versions of VB.

nhawk 07-13-2011 05:57 PM

Quote:

Originally Posted by AttalaEA (Post 2220119)
Hello,

I would like to know wheather this can work with the attachments too or not?

Access to attachments are handled directly by vBulletin.

Unless you're talking about external attachments. Then, no it doesn't at this time.

nhawk 07-14-2011 08:54 AM

Quote:

Originally Posted by TheLastSuperman (Post 2220117)
I checked out the xml... unless I missed something else besides your dependency in the file, why would this not work with previous versions?

Updated today to run on older versions of vB 4.

Interestingly, it will also run on vB 3.8 if you remove the dependency from the xml file. ;)

hexeditor 07-21-2011 06:40 PM

i need this for [php] code and [code]
can you make it?

nhawk 07-21-2011 07:07 PM

Quote:

Originally Posted by hexeditor (Post 2223313)
i need this for [php] code and [code]
can you make it?

It's already available on my site. Either click the link in the main post or the 'Visit Web Site' link in the 'The Developer' box.

hexeditor 07-22-2011 12:27 PM

ok and where is download link, please post

nhawk 07-22-2011 12:38 PM

Quote:

Originally Posted by hexeditor (Post 2223556)
ok and where is download link, please post

There are links to purchase the premium edition all over my site.

westbam666 09-05-2011 10:37 AM

On versions 4.1.3 does not work...

nhawk 09-05-2011 01:25 PM

Quote:

Originally Posted by westbam666 (Post 2242131)
On versions 4.1.3 does not work...

What doesn't work for you?

Works fine for me with 4.1.3. See screenshots attached.

westbam666 09-08-2011 08:20 PM

Thank you, understood.

blueperspective 10-05-2011 04:13 AM

Anyone tested it in 4.1.6 ?
Or anyone would recommend a good hide mod that works on the current version of vB ?!
Thanks.

blueperspective 10-05-2011 04:45 AM

Hum... installed it on 4.1.6, activated but the content is hided even if I'm not in the group mentioned on setting. ( meaning.. I'm the admin and can't see the content. =) )
Suggestions ?

nhawk 10-05-2011 11:56 AM

Quote:

Originally Posted by blueperspective (Post 2253369)
Hum... installed it on 4.1.6, activated but the content is hided even if I'm not in the group mentioned on setting. ( meaning.. I'm the admin and can't see the content. =) )
Suggestions ?

I do not have 4.1.6 installed anywhere, but I just tested it on 4.1.5 P1 and it works without a problem.

Did you include your usergroup to test it at some point? If so, then it's a caching problem with either your browser or your server.

SamSteve 10-05-2011 12:09 PM

How can i put html code in the "[CODE] Message" for example:
HTML Code:

<a href="register.php">Register</a> or <a href="login.php">login</a> to view hide content.
thanks!

nhawk 10-05-2011 12:12 PM

Quote:

Originally Posted by SamSteve (Post 2253563)
How can i put html code in the "[CODE] Message" for example:
HTML Code:

<a href="register.php">Register</a> or <a href="login.php">login</a> to view hide content.
thanks!

You can't in the Lite version.

SamSteve 10-05-2011 12:31 PM

Quote:

Originally Posted by nhawk (Post 2253564)
You can't in the Lite version.

Thanks, i'm going to buy the pro version!

SamSteve 10-05-2011 12:44 PM

Yeah, i bought it but i can't write in html...

-- EDiT --

Seethe attach:

nhawk 10-05-2011 01:49 PM

Quote:

Originally Posted by SamSteve (Post 2253570)
Yeah, i bought it but i can't write in html...

-- EDiT --

Seethe attach:

Use the URL BBcode.

But don't both block URLs and put URLs in the message. One will cancel the other out.

Also, questions about premium versions should be asked on my site. People may get confused about what's included in the lite version if they are discussed here.

SamSteve 10-05-2011 02:50 PM

Okey thanks!
It works! ;)

blueperspective 10-05-2011 04:27 PM

Could be the cache.. I think. I'll do some more tests on different browsers.

Ichigo88 10-06-2011 11:16 AM

but he hide for all usergroup i have 4.1.5 i set usergroup 1 but he hide for all

nhawk 10-06-2011 02:00 PM

Quote:

Originally Posted by Ichigo88 (Post 2253904)
but he hide for all usergroup i have 4.1.5 i set usergroup 1 but he hide for all

It does not hide for all usergroups. It only hides for the ones you specify.

While the screenshots in this post are from 4.1.3, the same thing still applies for 4.1.5...
https://vborg.vbsupport.ru/showpost....1&postcount=12

The only thing I can suggest is seeing if another mod is interfering with the hider.

dtommy79 10-27-2011 06:48 AM

Quote:

Originally Posted by blueperspective (Post 2253369)
Hum... installed it on 4.1.6, activated but the content is hided even if I'm not in the group mentioned on setting. ( meaning.. I'm the admin and can't see the content. =) )
Suggestions ?

I have the same problem on 4.1.7

It's only set to hide links from guests, but it hides them from everyone else.

No other plugins installed. I also tried it with other browsers and it's the same.
I guess something is up after all.

EDIT:

I think I figured out what causes the problem.

I noticed if you have only used one set of code tag, the links are displayed properly and hidden from those specified in the admin option.

The problem occurs when I use more than one code tags, when there are separate coded content in the post.

nhawk 10-27-2011 11:27 AM

Quote:

Originally Posted by dtommy79 (Post 2261979)
I have the same problem on 4.1.7

It's only set to hide links from guests, but it hides them from everyone else.

No other plugins installed. I also tried it with other browsers and it's the same.
I guess something is up after all.

EDIT:

I think I figured out what causes the problem.

I noticed if you have only used one set of code tag, the links are displayed properly and hidden from those specified in the admin option.

The problem occurs when I use more than one code tags, when there are separate coded content in the post.

This is not a problem with BB Code Hider. It is a setting for caching on your site.

Go to ACP->Settings->Options->Server Settings and Optimization Options.

Set Cached Posts Lifespan to 0 (zero).

dtommy79 10-27-2011 03:58 PM

I've tried that too. The problem is still present.

nhawk 10-27-2011 04:05 PM

Quote:

Originally Posted by dtommy79 (Post 2262067)
I've tried that too. The problem is still present.

Well, to be honest I don't know where else to look. That is the only way I can duplicate what is happening to you.

I've tried to duplicate it on 4 totally different servers. And that setting is the only one that causes the problem. As soon as I set that to 0 and refresh the page the problem goes away.

nhawk 10-27-2011 04:49 PM

OK, I think I know what might be happening with this..

Are you posting a new thread with some code, then immediately replying to the thread without leaving the thread?

nhawk 10-27-2011 06:08 PM

It seems I must apologize to everyone that had this problem.

vBulletin itself was caching posts and when they were viewed by people that were allowed to view the code, vBulletin would display what it had in it's cache.

The fix posted today kills the post read from the vBulletin cache so that shouldn't happen any more.

dtommy79 10-27-2011 06:48 PM

Thanks for the quick fix. It seems to work now properly.

killer_t 11-06-2011 12:15 AM

Hi, nice plug-in!
I've an issue: the code is visible in the Recent Forum Message CMS widget! How to Hide??
Thank's!

emperatour 11-06-2011 04:42 AM

I get the following warnings on 4.1.6 and the code is still visible:

Code:

Warning: Unterminated comment starting line 1 in /home/---/public_html/forum/showthread.php(308) : eval()'d code on line 1

Warning: Unterminated comment starting line 20 in /home/---/public_html/forum/includes/class_bbcode.php(424) : eval()'d code on line 20

Warning: Unterminated comment starting line 20 in /home/---/public_html/forum/includes/class_bbcode.php(424) : eval()'d code on line 20

Do you have any idea what may cause this ?

Thank you

nhawk 11-06-2011 11:05 AM

Quote:

Originally Posted by killer_t (Post 2264830)
Hi, nice plug-in!
I've an issue: the code is visible in the Recent Forum Message CMS widget! How to Hide??
Thank's!

I'll have a look to see if the code can be intercepted in that widget or not. For now, the hider doesn't do the CMS widget.

nhawk 11-06-2011 11:06 AM

Quote:

Originally Posted by emperatour (Post 2264866)
I get the following warnings on 4.1.6 and the code is still visible:

Code:

Warning: Unterminated comment starting line 1 in /home/---/public_html/forum/showthread.php(308) : eval()'d code on line 1

Warning: Unterminated comment starting line 20 in /home/---/public_html/forum/includes/class_bbcode.php(424) : eval()'d code on line 20

Warning: Unterminated comment starting line 20 in /home/---/public_html/forum/includes/class_bbcode.php(424) : eval()'d code on line 20

Do you have any idea what may cause this ?

Thank you

Do these warning go away if you disable the hider?

I'm asking because it runs fine on 4.1.5 and 4.1.7 with no warnings (I never installed 4.1.6 anywhere).

emperatour 11-06-2011 03:49 PM

Quote:

Originally Posted by nhawk (Post 2264940)
Do these warning go away if you disable the hider?

I'm asking because it runs fine on 4.1.5 and 4.1.7 with no warnings (I never installed 4.1.6 anywhere).

Yes they go away when I disable the product from plugin manager. But the warnings are still there if I only disable it from BB Code Hider Lite Settings.

I also tested it on another forum (4.1.7) and it works fine. Maybe it is conflicting with another plugin in that 4.1.6 forum?

nhawk 11-06-2011 04:20 PM

Quote:

Originally Posted by emperatour (Post 2265021)
Yes they go away when I disable the product from plugin manager. But the warnings are still there if I only disable it from BB Code Hider Lite Settings.

I also tested it on another forum (4.1.7) and it works fine. Maybe it is conflicting with another plugin in that 4.1.6 forum?

It does sound like something is conflicting with it.

I triple checked and all of the comments are closed in the hider, so I don't think it's in the hider. Try uninstalling, downloading again and re-installinng. Maybe something went wrong with the install or download.

Also, you could try disabling your other mods one at a time to see if you can locate the conflict. If you do locate it, please let me know which one it is so I can see what the conflict is.

emperatour 11-07-2011 03:32 PM

Quote:

Originally Posted by nhawk (Post 2265036)
It does sound like something is conflicting with it.

I triple checked and all of the comments are closed in the hider, so I don't think it's in the hider. Try uninstalling, downloading again and re-installinng. Maybe something went wrong with the install or download.

Also, you could try disabling your other mods one at a time to see if you can locate the conflict. If you do locate it, please let me know which one it is so I can see what the conflict is.

Yes, something was going wrong in importing the product. I checked the plugins content is only this:
Code:

/*================================================*\
||##################################################
|| # BBCode Hider Lite Version 1.0.1
|| # ----------------------------------------------
|| # Copyright

So, the import of each plugin was being interrupted right before the '?' sign. Replacing all ?s with Cs in xml and solved the issue.
Probably there is something wrong in parsing ? with UTF-8 forums. Mine is in Persian language.

Thanks for your help. Your PM regarding the comment led me to checking the plugin. :)

kh99 12-06-2011 09:54 PM

Hey nhawk, can you explain how you fixed the caching issue? I looked at the code briefly but couldn't see it. Actually, if you can explain how the caching system works that would be cool.


All times are GMT. The time now is 06:09 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.03996 seconds
  • Memory Usage 1,838KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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