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)
-   -   Show Thread Enhancements - Hide BBCodes/Signatures From Guests/Users (https://vborg.vbsupport.ru/showthread.php?t=318467)

MarkFL 01-28-2017 05:17 PM

I will investigate and upload an update when I figure out the issue. :)

MarkFL 01-28-2017 05:54 PM

Update - Version 1.8:
  • Fixed reported issue with inline attached images.

MarkFL 01-29-2017 05:23 PM

Update - Version 1.8.1:
  • Moved function to external script to avoid redeclaration error.

creative-friend 01-29-2017 05:47 PM

1 Attachment(s)
Thank you so much Mark for your support

I tried to install both new update(1.8 and 1.8.1). When i install then no thread open even that product still off in admin PC options.
This error shown on opening of thread. When i disable product then threads open
Attachment 155758

MarkFL 01-29-2017 05:49 PM

Quote:

Originally Posted by creative-friend (Post 2581496)
Thank you so much Mark for your support

I tried to install both new update(1.8 and 1.8.1). When i install then no thread open even that product still off in admin PC options.
This error shown on opening of thread. When i disable product then threads open
Attachment 155758

Use v1.8.1 as v1.8 had an issue with threads with more than 1 post.

Did you update the external script on your server with the .php file packaged in the .zip file?

creative-friend 01-29-2017 06:06 PM

Quote:

Originally Posted by MarkFL (Post 2581498)
Use v1.8.1 as v1.8 had an issue with threads with more than 1 post.

Did you update the external script on your server with the .php file packaged in the .zip file?

ok. i will check again after updating script
I hope it will work fine
thank in advance:)

creative-friend 01-31-2017 04:44 PM

Quote:

Originally Posted by MarkFL (Post 2581498)
Use v1.8.1 as v1.8 had an issue with threads with more than 1 post.

Did you update the external script on your server with the .php file packaged in the .zip file?

I update .php file but threads with more than 1 posts cannot open

MarkFL 01-31-2017 04:51 PM

Quote:

Originally Posted by creative-friend (Post 2581616)
I update .php file but threads with more than 1 posts cannot open

You may have another product that is interfering, as I can't replicate this issue on my local dev site. :confused:

MarkFL 02-22-2017 12:43 AM

If you installed version 1.8.1 before the datestamp of this post, please do so again as I neglected to save an important change to the product. I apologize for the inconvenience. :o

vimarc 03-11-2017 04:06 AM

I am using this mod but it is not working on my forum..

it is not displaying message as you shown in your thread and not hiding any links

eg

http://www.mlmforum.in/threads/18-Ho...!!?p=27#post27

MarkFL 03-11-2017 04:14 AM

Are those links wrapped in URL tags? How do you have the product configured?

vimarc 03-11-2017 06:34 AM

1 Attachment(s)
Configured but not working

see attchments

MarkFL 03-11-2017 11:44 AM

Are those links in the post to which you linked wrapped in URL tags?

vimarc 03-11-2017 04:09 PM

Quote:

Originally Posted by MarkFL (Post 2583664)
Are those links in the post to which you linked wrapped in URL tags?

yes

even for images it is showing image.jpg
instead of showing message as shown in your images
youtube also same

MarkFL 03-11-2017 06:44 PM

I would have to come to your site to investigate then. If you are interested, PM the credentials for a temporary admin account to me.

blade5000 07-08-2017 03:56 PM

error code

Code:

Call to a member function query_read_slave() on null on line 279 in /home/xxxxxx/public_html/includes/class_bbcode.php
#0 /home/xxxxxxx/public_html/includes/class_bbcode.php(241): vB_BbCodeParser->append_custom_tags()
#1 /home/xxxxxx/public_html/includes/class_postbit.php(345) : eval()'d code(12): vB_BbCodeParser->__construct(Object(stdClass), Array)
#2 /home/xxxxxxxx/public_html/includes/class_postbit.php(345): eval()
#3 /home/xxxxxxxx/public_html/showthread.php(1096): vB_Postbit->construct_postbit(Array)
#4 {main}

have vb 4.2.5 php version 7.0

MarkFL 07-08-2017 04:34 PM

I run this on vB 4.2.5 and PHP 7.x without issue. Without more info, I'm afraid I can't help.

blade5000 07-08-2017 04:38 PM

After setting I got the error
Uploaded to hoster and installed set and already came the error

blade5000 07-10-2017 02:45 PM

1 Attachment(s)
the data error

help my plase you

blade5000 07-29-2017 08:29 AM

Can someone help me it runs with me?

scotty 10-01-2017 03:07 PM

same here

PHP Version 7.1.9-1+ubuntu16.04.1+deb.sury.org+1

scotty 10-02-2017 06:42 PM

Quote:

Originally Posted by MarkFL (Post 2588257)
I run this on vB 4.2.5 and PHP 7.x without issue. Without more info, I'm afraid I can't help.

do you have any custom bb-codes active?

MarkFL 10-02-2017 09:03 PM

Quote:

Originally Posted by scotty (Post 2590227)
do you have any custom bb-codes active?

Yes, quite a few actually. :)

scotty 10-03-2017 04:30 AM

hm.

according to the error message, there might be something in the custom_bbcodes (line #0 "append_custom_tags()"):

Code:

Call to a member function query_read_slave() on null on line 279 in /local/sites/sitehtml/includes/class_bbcode.php
#0 /local/sites/sitehtml/includes/class_bbcode.php(241): vB_BbCodeParser->append_custom_tags()
#1 /local/sites/sitehtml/includes/class_postbit.php(345) : eval()'d code(13): vB_BbCodeParser->__construct(Object(stdClass), Array)
#2 /local/sites/sitehtml/includes/class_postbit.php(345): eval()
#3 /local/sites/sitehtml/showthread.php(1097): vB_Postbit->construct_postbit(Array)
#4 {main}

any idea?

Scyther 10-08-2017 04:41 AM

Awesome Mod. Thanks.

mchll9898 11-01-2017 05:59 AM

I uploaded the hidebbcodesfromguests folder to my root folder and imported the product file. I'm trying to hide IMG code from guests, but it isn't working :confused:. I have unregistered / not logged in users selected. Can you let me know if I've done anything wrong?

https://vborg.vbsupport.ru/external/2017/10/7.png

MarkFL 11-01-2017 02:38 PM

1 Attachment(s)
Okay, try updating with the attacched .XML file and let me know if that works.

mchll9898 11-02-2017 02:44 AM

Quote:

Originally Posted by MarkFL (Post 2590897)
Okay, try updating with the attacched .XML file and let me know if that works.

Thank you so much! It works great now.

slash77xx 12-13-2017 11:44 AM

1 Attachment(s)
GOOD AFTERNOON.
I HAVE INSTALLED THE product-hidebbcodesandsigsfromque.xml THE LAST VERSION, AND MY PROBLEM IS IN WHICH THE MESSAGE TO REGISTER AS IT APPEARS IN THE IMAGES YOU SHOW.
I USE VBULLETIN 4.2.5 AND PHP 7.1
SOME HELP .

Peter Walker 12-22-2017 01:42 PM

1 Attachment(s)
I needed this for a different reason, that a minor change to this mod made possible:

I have a premium membership system on my forum, where those that are in the Premium secondary usergroup are allowed to view videos, etc. that are displayed with custom bb codes.
Everybody else, should see a message explaining that they need to join the Premium usergroup to view the content.

As this mod does the opposite, I needed to change the code to make it work for me. With the change, it disables the named bbcodes everywhere but, for those who are members of the premium additional usergroup in the given forums.

This means that normal members see the error message, which I changed to tell them to buy a subscription, and members of the premium usergroup can now see the bbcode (videos, etc.)

After chatting with Mark about this and looking closely at the code, I was able to make this work with just a minor change to the product file and reinstalling it.

Find:
Code:

if ($vbulletin->options['markfl_hbfg_active'] AND array_intersect(explode(',', $foruminfo['parentlist']), explode(',', $vbulletin->options['markfl_hbfg_forums'])) AND !in_array($threadinfo['threadid'], array_map('trim', explode(',', $vbulletin->options['markfl_hbfg_threadsignore']))))
{
                if ($show['guest'] OR is_member_of($vbulletin->userinfo, explode(',', $vbulletin->options['markfl_hbfg_addgroups'])))
                {
                                $show['markfl_hbfg_bbcodes'] = 1;
                }

Replace with:
Code:

if ($vbulletin->options['markfl_hbfg_active'] AND array_intersect(explode(',', $foruminfo['parentlist']), explode(',', $vbulletin->options['markfl_hbfg_forums'])) AND !in_array($threadinfo['threadid'], array_map('trim', explode(',', $vbulletin->options['markfl_hbfg_threadsignore']))))
{
                if ($show['guest'] OR is_member_of($vbulletin->userinfo, explode(',', $vbulletin->options['markfl_hbfg_addgroups'])))
                {
                                $show['markfl_hbfg_bbcodes'] = 0;
                }
                else
                {
                                $show['markfl_hbfg_bbcodes'] = 1;
                }

Or simply use the attached file. Important, this changes the use of the mod, now allowing bbcodes in specific locations, it is the only way I found to do it.

Usage:
BBCode Tag Content To Hide From Guests: Give the mods that are to be activated. In my case they were the custom mods: audiop,videomp4p,videomp4vttp

Active Forums: Mark all the forums that contain premium content that use the above bbcodes.

Usergroup(s) From Which To Hide BBCodes: Set only the usergroups that are ALLOWED to use the BBCodes. e.g. Premium usergroup.

Hide BBCodes From Users Until They Reply? No Users

Usergroups Required To Reply: All

The remaining fields remain empty.

I also changed the phase displayed to:
Code:

This content is reserved for premium members only. Please obtain a premium subscription to view this content.
This is working perfectly in vb 4.2.5.
I have enclosed some images of how it works. Regular members see the blocked message while members that have Premium status can play the content - great!

Enjoy and thanks to Mark for his excellent work that just needed a little tweak.

mangmel 03-04-2018 03:31 AM

eror with php 7

scotty 05-11-2018 12:26 PM

version 1.8.2 still this error:

HTML Code:

Call to a member function query_read_slave() on null on line 279 in /htdocs4/includes/class_bbcode.php
#0 /htdocs4/includes/class_bbcode.php(241): vB_BbCodeParser->append_custom_tags()
#1 /htdocs4/includes/class_postbit.php(345) : eval()'d code(13): vB_BbCodeParser->__construct(Object(stdClass), Array)
#2 /htdocs4/includes/class_postbit.php(345): eval()
#3 /htdocs4/showthread.php(1097): vB_Postbit->construct_postbit(Array)
#4 {main}


gnrx 06-06-2018 07:51 PM

Hello.
Today, I installed this fantastic mod in vb 4.2.5 and php 7.1.
The version 1.8.1 not works, any error, but not hide any.
I installed 1.8.2 from this post https://vborg.vbsupport.ru/showpost....&postcount=107
Now, works, hide my codes but...:
If I have a one post with images (with code img), in this mod, only configure for hide the code "CODE", well, hide this code but not appears the images in the post, appears her links, if I logued, appears the images in the post.

How I can solved this?

Thanks and regards!

MarkFL 06-06-2018 09:09 PM

You can get version 1.8.3 from the sites in my signature, and support will be provided there. To be honest, I'm not clear on the issue you're having.

gnrx 06-07-2018 06:05 AM

Ok, thanks MarkFL.
I download 1.8.3 and have the same issue, but reply in your site signature :)

Again, thanks.

rekha 06-07-2018 10:45 AM

New thread name and url not shown while posting a new thread on my forum is anyone help me to find out ?

http://www.lovielimes.com/showthread...uns-68509.html

MarkFL 06-07-2018 01:56 PM

Quote:

Originally Posted by rekha (Post 2595062)
New thread name and url not shown while posting a new thread on my forum is anyone help me to find out ?

http://www.lovielimes.com/showthread...uns-68509.html

Why are you posting this in this thread?

blade5000 01-01-2019 10:51 PM

not work by 4.2.5 php7.0 the Attached files ;(

MarkFL 01-02-2019 04:40 PM

Quote:

Originally Posted by blade5000 (Post 2597991)
not work by 4.2.5 php7.0 the Attached files ;(

I use it on vB 4.2.5 and PHP 7.x without issue.

blade5000 01-03-2019 08:31 AM

it is about data attachments that are displayed


All times are GMT. The time now is 02:56 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.01394 seconds
  • Memory Usage 1,830KB
  • 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
  • (1)bbcode_html_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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