vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=316679

How do I hide the code box from guests?
by HM666
15 Jan 2015 07:51

Hello how do I make it where you HAVE to be registered in order to view the html, php, quote & code boxes like it is here on vb.org? Is there a setting i can set or a mod out there already?

MarkFL 15 Jan 2015 08:29

One way would be to use a vb conditional in the respective templates. For example in the template "bbcode_code" replace:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

edit: I now realize you perhaps want to hide the entire boxes, rather than the content. If so then wrap all of the HTML in the templates with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


HM666 15 Jan 2015 10:06

Yeah gotcha will give that a try later on after some sleep :)

--------------- Added 16 Jan 2015 at 04:01 ---------------

Hmmmmmm did not work. It shows this message to everyone not just guests. And there was one that it did not work on at all. One thread/post it worked too well and will not show it to anyone and another thread/post ir did not do anything at all. :( Here's my code for the bbcode_code template please see if I missed something.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


HM666 29 Feb 2016 12:25

1 Attachment(s)
Revisiting this, I have noticed that on the CMS I have a problem. The code shows fine elsewhere but on the CMS the "CODE:" part is missing.

The code for my code box is...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Any ideas why this is happening only in the CMS? On the forums, the posts are just fine and there are no problems.

MarkFL 29 Feb 2016 13:53

I would guess the CSS might have to be adjusted for the CMS.

HM666 29 Feb 2016 20:15

Yeah I tried a few adjustments. Its kinda weird and only happens in a few areas of the CMS I noticed upon more inspection. *SIGH*

MarkFL 29 Feb 2016 21:01

If you can post a link to a page where it occurs, I will see if I can figure out a solution. :)

HM666 29 Feb 2016 22:54

I would but now it seems to not be doing it. Maybe one of the things I did worked.....eventually LOL.


All times are GMT. The time now is 18:19.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.