PDA

View Full Version : Show Thread Enhancements - Hide BBCodes/Signatures From Guests/Users


MarkFL
04-28-2015, 09:00 PM
Overview:

This product will allow you to decide what BBCode content you wish to hide from guests/users on your site. You can also choose to hide user signatures from guests/users too. Hidden content is replaced with a link to your registration page for guests, and a simple message for restricted usergroups. In posts, this link or message is placed inside a block element so that it stands out.

Guests will see the following:

https://vborg.vbsupport.ru/attachment.php?attachmentid=152952&stc=1&d=1437375134

Members of restricted usergroups/users that have not replied will see the following:

https://vborg.vbsupport.ru/attachment.php?attachmentid=152948&stc=1&d=1437374424

You are given the option to merge the defined list of BBCodes in the product "MarkFL: Enhanced View Forum Posts" (https://vborg.vbsupport.ru/showthread.php?t=318407). This way, you may choose to define the list in one place and have both products hide the same BBCodes.

Updates:

Version 1.1:


Now allows usergroups to be restricted from seeing the defined list of BBCodes and signatures.


Version 1.2:


Posts containing the symbols "<" and/or ">" will now display correctly to those from whom BBCodes are being hidden.


Version 1.3:


Fixed bug where the $vbulletin array need to be global for some users.
Messages to guests/users now phrased to allow for translations.


Version 1.4:


Added setting to allow hiding of BBCodes/Signatures from users until they reply to a thread.


Version 1.5:


Added setting for "Active Forums" in which the product is active.
Added separate usergroup selection for usergroups whose members must reply to a thread before the hidden BBCodes/signatures are revealed.


Version 1.6:


Added setting to allow for internal links to be hidden.


Version 1.7:


Added settings to allow individual threads/posts to be ignored by product.


Version 1.8:


Fixed reported issue with inline attached images.


Version 1.8.1:


Moved function to external script to avoid redeclaration error.


To Install:

1.) Download and extract the attached .zip file.

Upload the contents of the "upload" folder to your forum's root directory.

Note: If you have already installed "MarkFL: Enhanced View Forum Posts" (https://vborg.vbsupport.ru/showthread.php?t=318407) v1.1 or higher, then you may skip this step, since both products use the same external PHP script.

2.) In AdminCP go to Plugins & Products -> Manage Products -> Add/Import Product.

Click on "Choose File" and browse to the product xml file that was packaged in the .zip file.

Click "Import"

You MUST set your settings to enable the mod. Each setting has an explanation of its use.

https://vborg.vbsupport.ru/attachment.php?attachmentid=155622&stc=1&d=1483103076

Support for this product can be found here:


MHB - Hide BBCodes/Signatures From Guests/Users (http://mathhelpboards.com/vbulletin-products-61/hide-bbcodes-signatures-guests-users-22030.html)
TAZ - Hide BBCodes/Signatures From Guests/Users (https://theadminzone.com/threads/hide-bbcodes-signatures-from-guests-users.145209/)

v123shine
05-13-2015, 01:06 PM
Thank you so much. Very useful.

Raptor
07-19-2015, 02:00 PM
vb 4.2.3 not working - white screen when viewing a thread

MarkFL
07-19-2015, 02:13 PM
vb 4.2.3 not working - white screen when viewing a thread

Did you upload the external file?

Raptor
07-19-2015, 03:04 PM
No because i'm an idiot who hasn't been a vb user for 14 years derp!

All good Thanks Mark :)

MarkFL
07-19-2015, 03:08 PM
No because i'm an idiot who hasn't been a vb user for 14 years derp!

All good Thanks Mark :)

LOL! I could write a book chronicling the bonehead things I have done. :D

Glad to hear the issue was that simple to resolve. :up:

Raptor
07-19-2015, 03:53 PM
Just to add as this might help someone else

if you also want to hide from other usergroups simply edit line 65 of the XML and re-import

if ($show['guest'] || is_member_of($vbulletin->userinfo, 1, 2, 3))

tested on vb 4.2.3 works a treat. Now to play with the css :)

Thanks again!

MarkFL
07-19-2015, 04:01 PM
Just to add as this might help someone else

if you also want to hide from other usergroups simply edit line 65 of the XML and re-import

if ($show['guest'] || is_member_of($vbulletin->userinfo, 1, 2, 3))

tested on vb 4.2.3 works a treat. Now to play with the css :)

Thanks again!

I will soon update this add-on to allow the BBCodes to be hidden from other usergroups. I will also look into allowing the customization of the CSS as well. :D

Raptor
07-19-2015, 04:28 PM
Sweet :)

MarkFL
07-20-2015, 04:57 AM
Update: version 1.1


Now allows usergroups to be restricted from seeing the defined list of BBCodes and signatures.


I decided it would be easiest to just let users edit the .css template manually if so desired. :D

Stratis
07-20-2015, 01:38 PM
Hi Mark, I cannot make this to work for me vb4.2.0, Guest can see code links
And something else, it puts space in all post after each line of text.
hidebbcodesfromguests, is where it supposed to be.

Here two images.

disabled mod
152956

enabled mod
152957

Lets wait for some other to test to :)
Thanks for all goodies you give us.

MarkFL
07-20-2015, 01:45 PM
Hello Stratis,

Have you defined the BBCodes you want to hide in the product settings? As for the spacing, I don't know what's causing that, and I don't have access to vB 4.2.0 to test it either.

Stratis
07-20-2015, 02:00 PM
Yes Mark, all is done, actually I am searching right now.
Even if there is a mistake from me, it should not break my css
Same issue in all skins and vbulletin skin to.

Better is to wait for some one else to install in 4.2.0, we will see.

Stratis
07-20-2015, 04:05 PM
Mark, I found text issue, at least for me.

in plugin Hide BBCodes/Signatures From Guests I change the two span.
'<span style="color: #FF0000; font-weight: bold">You Do Not Have Sufficient PrivilegesTo View User Signatures...</span>';

Put in front double mark(") instead of one (')

"<span style="color: #FF0000; font-weight: bold">You Do Not Have Sufficient PrivilegesTo View User Signatures...</span>";

Waiting now for some one to test

MarkFL
07-20-2015, 07:48 PM
Mark, I found text issue, at least for me.

in plugin Hide BBCodes/Signatures From Guests I change the two span.
'<span style="color: #FF0000; font-weight: bold">You Do Not Have Sufficient PrivilegesTo View User Signatures...</span>';

Put in front double mark(") instead of one (')

"<span style="color: #FF0000; font-weight: bold">You Do Not Have Sufficient PrivilegesTo View User Signatures...</span>";

That will break the PHP string...:confused:

Stratis
07-26-2015, 10:49 AM
Can some one please confirm that this mod works in vb4.2.0 pl4
Thanks

gobears20
07-29-2015, 12:04 AM
Hi, I just tried to use this and for some reason it turns into a white screen when going into a specific thread. The screen is just white and never loads the content. I turn it off an it works again. Any idea why this would happen?

MarkFL
07-29-2015, 12:08 AM
Hi, I just tried to use this and for some reason it turns into a white screen when going into a specific thread. The screen is just white and never loads the content. I turn it off an it works again. Any idea why this would happen?

Okay, first thing...did you upload the contents of the "upload" folder to your root directory?

gobears20
07-29-2015, 12:15 AM
Just to make sure, I uploaded into my forums directory(hidebbcodesfromguests.php), yes.

I am running version (vBulletin 4.2.2 Patch Level 4)

It seems to work and function correctly inside the AdminCp screen but when I turn it on it doesn't work and any posts is just a blank white screen.

MarkFL
07-29-2015, 12:21 AM
The PHP file needs to have the path:

/hidebbcodesfromguests/hidebbcodesfromguests.php

What you should do is simply upload the "upload" folder included in the zip file straight to your root directory, and the correct folder will be copied along with the PHP file.

gobears20
07-29-2015, 12:36 AM
You got me :) That was exactly what it was and it worked. Quick question for you, if someone uploads an attachment to my server and uses it inside a post it doesn't look like this can be blocked with this mod?

Also, do you take donations? If so where because this is a great mod that you have put together!

MarkFL
07-29-2015, 12:43 AM
You got me :) That was exactly what it was and it worked. Quick question for you, if someone uploads an attachment to my server and uses it inside a post it doesn't look like this can be blocked with this mod?

Also, do you take donations? If so where because this is a great mod that you have put together!

This add-on will block inline attachments (because of the ATTACH tags present in the post content), but not thumbnails...however I think it would be a simple matter to add this feature. I will look into this soon. :up:

I am not seeking donations directly, but if you wish to do so, a small donation to your local animal shelter would be greatly appreciated. :)

gobears20
07-29-2015, 12:52 AM
I turned the attachment feature off inside the user group management. It won't allow you to see it but will allow you to click on it and show the attachment. You may think about adding that feature. Great mod and yes, I already make donations to the animal shelter around here. I also make donations to my house animals, two cats and two dogs ;) Thanks again for a great mod!

akz645
08-02-2015, 01:44 PM
SNIP

Could you add a feature that 'disables' BB codes from being used, rather than just hide for certain usergroups?

Also, could you make this mod forum specific & usergroup specific ("")?
Example: Hide BB code IMG on forum section A for usergroups: 'registered & guests & banned'. Hide BB code IMG on forum section B for usergroups: 'guest & banned'. etc...

https://vborg.vbsupport.ru/external/2015/08/52.png
^ have that appear inside each one of these:
https://vborg.vbsupport.ru/external/2015/08/53.png
+ Another setting/box which disables BB codes (if you implement that feature)

That would be really useful for me :)

MarkFL
08-04-2015, 05:15 AM
Could you add a feature that 'disables' BB codes from being used, rather than just hide for certain usergroups?

The goal of this product is to simply hide BBCodes from guests and other defined usergroups. Preventing their usage would be a whole other issue for another product to address.

Also, could you make this mod forum specific & usergroup specific ("")?
Example: Hide BB code IMG on forum section A for usergroups: 'registered & guests & banned'. Hide BB code IMG on forum section B for usergroups: 'guest & banned'. etc...

https://vborg.vbsupport.ru/external/2015/08/52.png
^ have that appear inside each one of these:
https://vborg.vbsupport.ru/external/2015/08/53.png
+ Another setting/box which disables BB codes (if you implement that feature)

That would be really useful for me :)

While adding forum and usergroup information for each BBCode in the list could be done, I don't feel at this time there would be enough demand for that to justify the added complexity of the coding and in particular the settings. :)

akz645
08-04-2015, 12:02 PM
The goal of this product is to simply hide BBCodes from guests and other defined usergroups. Preventing their usage would be a whole other issue for another product to address.
Alright, that's fine. I guess it has to be created as an entirely different mod altogether, with that function only. I thought it would be simple to add on, but guess not.


While adding forum and usergroup information for each BBCode in the list could be done, I don't feel at this time there would be enough demand for that to justify the added complexity of the coding and in particular the settings. :)
I have to wait for more demand then...
Speaking of complexity, if you did do it, how long do you think it would take you?

Note: It doesn't neccesarily have to be adjusted from these settings (http://i.imgur.com/S6utggJ.png). One of DB Tech's products (http://www.dragonbyte-tech.com/product/163-threadmins-group-moderators/) has another approach, which is by users selecting a forum (double clicking) and then options for how it affects each individual usergroups appears below (http://i.imgur.com/mhrvZ9R.png).
In this case, instead of a tick/untick box (http://i.imgur.com/lc2sPa7.png) for each individual option, this box (http://i.imgur.com/4PHVosE.png) would appear instead.
^
I don't know which methods is easier to code. I just thought I'd let you see this method, in case you hadn't seen it before.

Vintum
08-05-2015, 03:10 AM
I just thought of something I could use a product like this for, but I'm not sure I want there to be any indication to guest/unallowed users that content has been hidden.

Is it possible to just remove the bbcode and the content within them if they don't have permissions? Or just anything else to hide the fact that content was hidden.

Vintum
08-08-2015, 04:03 AM
Hi,

I'm sorry, but I'm not able to get this product to work. I have the file uploaded, mod is enabled, and no errors are happening in console. But nothing is hidden. I can see the content as both admin and guest even though both are selected as not allowed to view. Both signatures and the bbcode remain visible.

I'm on VB 4.2.2. Any idea?

MarkFL
08-08-2015, 04:12 AM
Hi,

I'm sorry, but I'm not able to get this product to work. I have the file uploaded, mod is enabled, and no errors are happening in console. But nothing is hidden. I can see the content as both admin and guest even though both are selected as not allowed to view. Both signatures and the bbcode remain visible.

I'm on VB 4.2.2. Any idea?

Hello! I am sorry to hear you are experiencing difficulty.

Can you provide me with a link to a page where the "MEMBER" BBCode is being displayed so I can look at the HTML of the page?

Vintum
08-08-2015, 04:41 AM
Link sent,

thanks

MarkFL
08-11-2015, 02:56 PM
Update: version 1.2


Posts containing the symbols "<" and/or ">" will now display correctly to those from whom BBCodes are being hidden.

akz645
08-11-2015, 07:50 PM
Update: version 1.2


Posts containing the symbols "<" and/or ">" will now display correctly to those from whom BBCodes are being hidden.


I downloaded it, but I think you forgot to change the version number.
Plugin & Products: MarkFL: Hide BBCodes/Signatures From Guests/Users 1.1 (http://i.imgur.com/PHyOEhe.png)

Admin CP -> settings -> Options -> MarkFL: Hide BBCodes/Signatures From Guests/Users v1.1 (http://i.imgur.com/ZsZFNxM.png)

MarkFL
08-11-2015, 09:07 PM
I downloaded it, but I think you forgot to change the version number.
Plugin & Products: MarkFL: Hide BBCodes/Signatures From Guests/Users 1.1 (http://i.imgur.com/PHyOEhe.png)

Admin CP -> settings -> Options -> MarkFL: Hide BBCodes/Signatures From Guests/Users v1.1 (http://i.imgur.com/ZsZFNxM.png)

Good catch...I have properly updated the product's version number now. :o

Stratis
08-12-2015, 11:56 AM
Mark it does not work for me, if you read post 11, you will see what about.
Problem with spacing to text with this version is ok.
code and attach that I put not to show, in the first version, did not work at all.

Now rather than working i see the code of coded link, see example
<div class="bbcode_container" >
<div class="bbcode_description" style="padding-bottom:2px">Code <a href="#" onclick="selectCode(this); return false;"><input type="button" value=" Select " /></a></div>
<pre class="bbcode_code"style="height:36px;"><p>https://play.google.com/store/apps/details?id=com.led.notify&hl=el</p></pre>
</div>
This supposed to be this link
https://play.google.com/store/apps/details?id=com.led.notify&hl=el

Same with attach images, i see all code.

MarkFL
08-15-2015, 06:52 PM
Mark it does not work for me, if you read post 11, you will see what about.
Problem with spacing to text with this version is ok.
code and attach that I put not to show, in the first version, did not work at all.

Now rather than working i see the code of coded link, see example
<div class="bbcode_container" >
<div class="bbcode_description" style="padding-bottom:2px">Code <a href="#" onclick="selectCode(this); return false;"><input type="button" value=" Select " /></a></div>
<pre class="bbcode_code"style="height:36px;"><p>https://play.google.com/store/apps/details?id=com.led.notify&hl=el</p></pre>
</div>
This supposed to be this link
https://play.google.com/store/apps/details?id=com.led.notify&hl=el

Same with attach images, i see all code.

Try editing the plugin "Hide BBCodes/Signatures From Guests" by locating the line:

require_once(DIR . '/hidebbcodesfromguests/hidebbcodesfromguests.php');

and directly below this, add:

header("Content-Type: text/html; charset=utf-8");

Stratis
08-15-2015, 08:00 PM
No Mark, when I change the above code, I get this ��� �� ������������ ��.
I use 63 Mods, no problems so far, I don't know if there is a conflict ?. :(

EDIT:
Uninstalled for the issues to me :(

MarkFL
08-15-2015, 09:29 PM
Okay, it was worth a shot...I have no clue why it's not working for you.

geosharing
10-21-2015, 05:34 AM
not working at vb 4.2.3 how can i fix this ...

MarkFL
10-21-2015, 05:38 AM
not working at vb 4.2.3 how can i fix this ...

How do you have the product settings configured?

friendlymela
10-21-2015, 08:25 AM
is this effective on SEO?

Visual010
01-13-2016, 06:38 AM
Welp, for some reason I can't get this mod to work. I uploaded what's required to the correct folder and edited the settings.

Doesn't matter what I do my forum ignores any attempt to hide BB Code or links/images from guests. Duh. Am I doing something wrong?

MarkFL
01-13-2016, 12:37 PM
Welp, for some reason I can't get this mod to work. I uploaded what's required to the correct folder and edited the settings.

Doesn't matter what I do my forum ignores any attempt to hide BB Code or links/images from guests. Duh. Am I doing something wrong?

Without knowing more, I would have to come to your site to see what's going on. Please PM to me the credentials for a temporary admin account, and I will see if I can figure out what's going on there. :)

Visual010
01-13-2016, 05:28 PM
Without knowing more, I would have to come to your site to see what's going on. Please PM to me the credentials for a temporary admin account, and I will see if I can figure out what's going on there. :)

PM sent! Thanks for the quick response

josedvd123
02-26-2016, 03:45 PM
This is the mod that I was looking for! But I have a problem... It seems to not work in vBulletin 4.2.3.
I just hide Images and Urls to every one except the Admin and it doesn't work at all :S
Can you help me to solve this problem?
I will sent you a PM with my web page.
Thanks

MarkFL
02-26-2016, 06:53 PM
Update: version 1.3


Fixed bug where the $vbulletin array needs to be global for some users.
Messages to guests/users now phrased to allow for translations.

Gerardo Zuccal?
05-14-2016, 10:58 AM
Excellent!! ADDS-ON, very well Istalled, Only one question, since I have an Italian language forum, How can i change the written "You must be registered and logged On to view the BBCode Contents" to "Registrati per scaricare il Codice"?
Thank you for your help

MarkFL
05-14-2016, 12:29 PM
Excellent!! ADDS-ON, very well Istalled, Only one question, since I have an Italian language forum, How can i change the written "You must be registered and logged On to view the BBCode Contents" to "Registrati per scaricare il Codice"?
Thank you for your help

Hello, Gerardo! :)

You would simply need to provide translations for the following 4 global phrases:

https://vborg.vbsupport.ru/attachment.php?attachmentid=154988&stc=1&d=1463236038

Gerardo Zuccal?
05-14-2016, 12:35 PM
Ciao Mark
as you can see from the image i made it
Traslated and also change the colorfont from the templates
Thank you

http://imgur.com/vAtpuiG

Kane@airrifle
06-14-2016, 03:14 PM
Strange behaviour on vBulletin 4.2.3.

BBcode specified in the "tag to hide" from guests works as expected.

But, it seems to arbitrarily block other bbcode as well, in particular img tags, from guests despite setting Usergroup setting being set to "none" - except images that have a title or alt tag.

MarkFL
06-14-2016, 03:33 PM
I'm not getting that behavior...it blocks only the specified BBCodes for me. I would have to come to your site to try to figure out what you have going on there that is interfering.

Kane@airrifle
06-17-2016, 09:26 AM
Thank you for your assistance Mark.

Turns out I needed to set "Allow BB Code in Non Forum Specific Areas" (all of them except HTML) to yes in ACP/BBcode.

After doing same the mod is working as expected.

pnhltt
07-07-2016, 09:00 PM
Fatal errors for unregistered users after installing this product, so removed it for now.

MarkFL
07-07-2016, 09:22 PM
Fatal errors for unregistered users after installing this product, so removed it for now.

Did you upload the included files to your server?

pnhltt
07-08-2016, 10:37 PM
Did you upload the included files to your server?

Yep, but not the folder. Once I edited the pathway, everything worked as it should. Thanks!

MarkFL
11-26-2016, 02:58 AM
Update - Version 1.4:


Added setting to allow hiding of BBCodes/Signatures from users until they reply to a thread.

creative-friend
11-26-2016, 04:07 PM
Update - Version 1.4:


Added setting to allow hiding of BBCodes/Signatures from users until they reply to a thread.


thank you so much MarkFL
its work fine except one item. Usergroup option not work. I have management rank on my forum and i did not select management rank to hide BB code. But BB code not shown to me.
155506

I also want to hide BB code in one forums (and its sub forum). Is it possible???

MarkFL
11-26-2016, 05:14 PM
Yes, as it stands now, the affected usergroups is overridden by hiding BBCodes until people reply.

I will update the product soon so that there is a separate usergroup selection for the reply setting.

I will also add a setting for the selection of active forums. :)

creative-friend
11-26-2016, 05:50 PM
Thank you in advance

MarkFL
11-26-2016, 07:54 PM
Update - Version 1.5:


Added setting for "Active Forums" in which the product is active.
Added separate usergroup selection for usergroups whose members must reply to a thread before the hidden BBCodes/signatures are revealed.

Gn_Snake
11-29-2016, 08:41 PM
Hi Mark,
Excellent work has long i was looking for an updated plugin.
The problem, for me at least, that i can not hide link in the posts. I put the URL term but does not work.

Help for me??

Thx

MarkFL
11-29-2016, 10:13 PM
Hi Mark,
Excellent work has long i was looking for an updated plugin.
The problem, for me at least, that i can not hide link in the posts. I put the URL term but does not work.

Help for me??

Thx

Did you test it with an internal or external link?

Gn_Snake
11-30-2016, 10:45 AM
Did you test it with an internal or external link?

I ran the test with a link pointing to a .rar file inside my domain.

MarkFL
11-30-2016, 12:43 PM
I ran the test with a link pointing to a .rar file inside my domain.

Okay, it is only external links that are hidden when you include the URL BBCode to the list. :)

Gn_Snake
11-30-2016, 06:05 PM
Okay, it is only external links that are hidden when you include the URL BBCode to the list. :)

Okay understood. And 'possible to think that it will include the function of "hide" for internal links?

MarkFL
11-30-2016, 07:17 PM
Update - Version 1.6:


Added setting to allow for internal links to be hidden.

Gn_Snake
12-01-2016, 08:39 AM
Update - Version 1.6:


Added setting to allow for internal links to be hidden.


Simply P E R F E C T !!!
Thanks very much!

creative-friend
12-02-2016, 02:44 AM
great job MarkFL

Gn_Snake
12-28-2016, 07:51 AM
Hi MarkFL,
Occasionally i noticed that your plugin comes into conflict with this i installed: https://vborg.vbsupport.ru/showthread.php?t=269048

If a guest connects to my forum you are unable to view the list but the code added by me to activate it. Only registered users can see properly the alphabetical list.
You can see the effect at this address: http://www.hardwaregame.it/forum/lista-trucchi-cheats-trainer-giochi-pc-aggiornata-tempo-reale-10334/

Disabling this plugin it works

MarkFL
12-28-2016, 12:12 PM
Hi MarkFL,
Occasionally i noticed that your plugin comes into conflict with this i installed: https://vborg.vbsupport.ru/showthread.php?t=269048

If a guest connects to my forum you are unable to view the list but the code added by me to activate it. Only registered users can see properly the alphabetical list.
You can see the effect at this address: http://www.hardwaregame.it/forum/lista-trucchi-cheats-trainer-giochi-pc-aggiornata-tempo-reale-10334/

Disabling this plugin it works

Okay, let's try this...go to the plugin associated with this product titled "Determine If User Has Replied To Thread (If Applicable)" and locate the line near the top:

if ($vbulletin->options['markfl_hbfg_active'] AND array_intersect(explode(',', $foruminfo['parentlist']), explode(',', $vbulletin->options['markfl_hbfg_forums'])))

Change this line to read:

if ($vbulletin->options['markfl_hbfg_active'] AND array_intersect(explode(',', $foruminfo['parentlist']), explode(',', $vbulletin->options['markfl_hbfg_forums'])) AND !in_array($threadinfo['threadid'], array(XXXXX, YYYYY, ...)))

Change the part "XXXXX, YYYYY, ..." to a comma-delimited list of the threadids of any threads for which you wish to disable my product.

Gn_Snake
12-28-2016, 12:36 PM
Okay, let's try this...go to the plugin associated with this product titled "Determine If User Has Replied To Thread (If Applicable)" and locate the line near the top:

if ($vbulletin->options['markfl_hbfg_active'] AND array_intersect(explode(',', $foruminfo['parentlist']), explode(',', $vbulletin->options['markfl_hbfg_forums'])))

Change this line to read:

if ($vbulletin->options['markfl_hbfg_active'] AND array_intersect(explode(',', $foruminfo['parentlist']), explode(',', $vbulletin->options['markfl_hbfg_forums'])) AND !in_array($threadinfo['threadid'], array(XXXXX, YYYYY, ...)))

Change the part "XXXXX, YYYYY, ..." to a comma-delimited list of the threadids of any threads for which you wish to disable my product.

Okay, little problem. How do I find the ID of a thread?

MarkFL
12-28-2016, 12:42 PM
Go to the forum in which the thread resides and hover your mouse over the thread title in the thread listing, and your browser should show you something like:

.../showthread.php?1820-Thread-Titles-Final-Testing

It might be different depending on your SEO settings, but you should see the threadid embedded somewhere in the link.

Gn_Snake
12-28-2016, 12:45 PM
Go to the forum in which the thread resides and hover your mouse over the thread title in the thread listing, and your browser should show you something like:

.../showthread.php?1820-Thread-Titles-Final-Testing

It might be different depending on your SEO settings, but you should see the threadid embedded somewhere in the link.

Found ... thank you very much

Tried it and it works perfectly. As i mentioned in a post above ..perfect! :up:

MarkFL
12-30-2016, 11:09 AM
Update - Version 1.7:


Added settings to allow individual threads/posts to be ignored by product.

creative-friend
01-27-2017, 05:01 PM
@MarkFL
I found a problem. When i want to hide any bb code then images cannot embed. only image link shown

155745

MarkFL
01-27-2017, 05:16 PM
@MarkFL
I found a problem. When i want to hide any bb code then images cannot embed. only image link shown

155745

I've used this product at MHB for a long time and never had any issue with images, using vB 4.2.1 - 4.2.5 Beta 1. :)

creative-friend
01-27-2017, 05:48 PM
I've used this product at MHB for a long time and never had any issue with images, using vB 4.2.1 - 4.2.5 Beta 1. :)

I use this product on 4.2.2. What will be the possible reason of this problem?

MarkFL
01-27-2017, 07:24 PM
I use this product on 4.2.2. What will be the possible reason of this problem?

Can you post a screenshot of the product settings (in English)?

creative-friend
01-28-2017, 03:39 PM
I tried to disable different BB codes. In all cases images (both attachment and external) do not embed
155748
155746
155747

MarkFL
01-28-2017, 03:48 PM
What about your "Message Attachment Options" settings?

creative-friend
01-28-2017, 04:06 PM
What about your "Message Attachment Options" settings?

155751
155750
155749

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
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
155758

MarkFL
01-29-2017, 05:49 PM
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
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
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
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
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
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
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

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
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
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
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()"):

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
Okay, try updating with the attacched .XML file and let me know if that works.

mchll9898
11-02-2017, 02:44 AM
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
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
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:
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:
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:
This content is reserved for premium members only. Please obtain a premium subscription (/forum/payments.php) 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:

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.php?p=2590897&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.php/mithali-raj-becomes-first-indian-2000-t20i-runs-68509.html

MarkFL
06-07-2018, 01:56 PM
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.php/mithali-raj-becomes-first-indian-2000-t20i-runs-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
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

MarkFL
01-03-2019, 04:14 PM
it is about data attachments that are displayed

Please get the latest version here:

Hide BBCodes/Signatures From Guests/Users (https://mathhelpboards.com/vbulletin-products-61/hide-bbcodes-signatures-guests-users-22030.html)

And then describe exactly what the issue is. At present I don't know what you're asking.

gnrx
01-03-2019, 04:34 PM
Like indicate MarkFL, I use this version on vb 4.2.5 and PHP 7.1 and work perfect.

gnrx
01-28-2019, 07:27 PM
Yesterday, a user indicate that, in some posts (only some posts) appear a error, in the first time I was think that are for other problem, because I don't view all code error that indicate this user to me.
In chrome (in my chrome) not appear, in chrome of the user, yes.
But appears always in Firefox.
This is the error code:
PHP Warning: Creating default object from empty value in ..../includes/class_bbcode.php on line 277
Call to a member function query_read_slave() on null on line 279 in /home/myuser/public_html/foro/includes/class_bbcode.php
#0 /home/myuser/public_html/foro/includes/class_bbcode.php(241): vB_BbCodeParser->append_custom_tags()
#1 /home/myuser/public_html/foro/includes/class_postbit.php(345) : eval()'d code(65): vB_BbCodeParser->__construct(Object(stdClass), Array)
#2 /home/myuser/public_html/foro/includes/class_postbit.php(345): eval()
#3 /home/myuser/public_html/foro/showthread.php(1096): vB_Postbit->construct_postbit(Array)
#4 {main}


Fatal User Error: Call to a member function query_read_slave() on null on line 279 in ..../includes/class_bbcode.php in ..../vb/vb.php on line 286
I view this because, when disable all plugins, not appears, I enable all, and disable one at one, when disable this, then, the post/thread with error appears well.

Regards!

MarkFL
01-28-2019, 07:41 PM
Do you have your attachments in the database or in the file system?

gnrx
01-28-2019, 08:31 PM
Do you have your attachments in the database or in the file system?

I have set the avatars in database, attachments I don't remember that I have but after post thsi reply, I go to view.

For me its strange because, only I view this problem in one thread (but in one page of this thread) I don't know if appears in more threads.
I review all page of this thread, I don't view any strange.

Also, I view this problem: https://vborg.vbsupport.ru/showthread.php?t=327059 Just in the same page of the same thread.

A few days ago I convert the tables that I can convert in my database to innodb (I don't think this is the cause).

But with this 2 problems, if disable de plugin hide bbcodes and ibproarcade dissapears the error, but like indicate, at the moment only view in this page of this thread, others pages of the same thread any problem.

gnrx
01-28-2019, 09:46 PM
Sorry for the confusion.
I reupload all files from https://mathhelpboards.com/vbulletin-products-61/hide-bbcodes-signatures-guests-users-22030.html and reinstall product.
Now, work fine.
Strange because, is the same version that I was have.
Only think that, a few days ago I migrate my site to another server...in the migration some corrupt file...? Is the only that I think.
Continue with the problem with ibproarcade, but this product, now, work fine.

Sorrys.

MarkFL
01-29-2019, 12:20 AM
Well, I'm glad reuploading the product seems to have fixed the issue. I've never had any such issue from this product. :)

gnrx
02-05-2019, 06:04 PM
Hello (again :) )
Today I view some, that I think its normal, but question this for its possible change/edit or similar.
All work fine but today I view that, in archive forum (www.domain.com/archive.php) appears all hidde content.

I think that, isn't possible edit for work in archive forum, but if its possible, its good option.
At the moment, I disable archive forum.
If isn't possible work this mod in archive forum, its possible disable some forums in archive? (I know this last question aren't about this mod :) )

Thanks and regards!

MarkFL
02-05-2019, 06:14 PM
Hello (again :) )
Today I view some, that I think its normal, but question this for its possible change/edit or similar.
All work fine but today I view that, in archive forum (www.domain.com/archive.php) appears all hidde content.

I think that, isn't possible edit for work in archive forum, but if its possible, its good option.
At the moment, I disable archive forum.
If isn't possible work this mod in archive forum, its possible disable some forums in archive? (I know this last question aren't about this mod :) )

Thanks and regards!

I've never archived any content, and so I know nothing about how that works. :)

gnrx
02-05-2019, 07:22 PM
I've never archived any content, and so I know nothing about how that works. :)

Yes, at the moment, I disable archive function. For the info that I search in google, the archive its good for index of google, for example, but...I'm not sure about this... :)

Regards!

scotty
02-21-2019, 01:47 PM
after activating the following error:
Call to a member function query_read_slave() on null on line 279 in /path-to-forum/includes/class_bbcode.php
#0 /path-to-forum/includes/class_bbcode.php(241): vB_BbCodeParser->append_custom_tags()
#1 /path-to-forum/includes/class_postbit.php(345) : eval()'d code(13): vB_BbCodeParser->__construct(Object(stdClass), Array)
#2 /path-to-forum/includes/class_postbit.php(345): eval()
#3 /path-to-forum/showthread.php(1097): vB_Postbit->construct_postbit(Array)
#4 {main}
version 1.8.3 installed - where can I search for an error? Thanks!

MarkFL
02-21-2019, 03:27 PM
What version of PHP are you running?

scotty
02-21-2019, 03:34 PM
What version of PHP are you running?

PHP Version 7.1.25

MarkFL
02-21-2019, 04:01 PM
Where are you storing your attachments?

scotty
02-21-2019, 04:28 PM
hm. in the filesystem. but I have only activated the "IMG" tag.

MarkFL
02-21-2019, 04:35 PM
When you upgraded to 1.8.3 did you also upload the new external script?

scotty
02-21-2019, 04:48 PM
yepp - but just re-oploaded it. Same effekt.

the filedate is 29.1.2017

MarkFL
02-21-2019, 04:58 PM
yepp - but just re-oploaded it. Same effekt.

the filedate is 29.1.2017

Okay, try this script (upload it to the same place and overwrite)...

scotty
02-21-2019, 05:10 PM
thanks! but sorry, same result.

i try to deinstall and reinstall...

scotty
02-21-2019, 05:15 PM
i try to deinstall and reinstall...
same result:

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

MarkFL
02-21-2019, 05:33 PM
I'm all out of ideas...I've run this on many sites without issue.

scotty
02-21-2019, 05:38 PM
Thank you for your efforts!

I'll try to eliminate site-effects by disabling other plugins within the next days...

MarkFL
02-21-2019, 06:30 PM
Thank you for your efforts!

I'll try to eliminate site-effects by disabling other plugins within the next days...

If you want, PM the credentials to a temporary admin account on your site, and I can try to see if I can figure it out. :)

I don't want to just leave you hanging on this.

oortega
03-16-2019, 05:11 PM
If you want, PM the credentials to a temporary admin account on your site, and I can try to see if I can figure it out. :)

I don't want to just leave you hanging on this.
do you solve issue? i have the same problem on v 4.2.5 php 7.
do you want access to my site?.

Regards

isuez.com
02-25-2022, 03:47 PM
iam test it

Bulent Tekcan
08-30-2022, 07:01 AM
Okay, try this script (upload it to the same place and overwrite)...


Hello,


This script not work on Archive mode and also Print view. How can I enable Archive ? Every guest see all links with Archive and print view mode.


Regards