Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 15 Jan 2015, 06:51
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Real name: Len Kaiser
How do I hide the code box from guests?

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?
Reply With Quote
  #2  
Old 15 Jan 2015, 07:29
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
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.


Last edited by MarkFL; 15 Jan 2015 at 07:41.
Reply With Quote
  #3  
Old 15 Jan 2015, 09:06
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Real name: Len Kaiser
Yeah gotcha will give that a try later on after some sleep

--------------- Added 16 Jan 2015 at 03: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.

Reply With Quote
  #4  
Old 29 Feb 2016, 11:25
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Real name: Len Kaiser
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.
Attached Images
File Type: png codescreen.png (5.9 KB, 5 views)
Reply With Quote
  #5  
Old 29 Feb 2016, 12:53
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
I would guess the CSS might have to be adjusted for the CMS.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #6  
Old 29 Feb 2016, 19:15
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Real name: Len Kaiser
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*
Reply With Quote
  #7  
Old 29 Feb 2016, 20:01
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
If you can post a link to a page where it occurs, I will see if I can figure out a solution.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #8  
Old 29 Feb 2016, 21:54
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Real name: Len Kaiser
I would but now it seems to not be doing it. Maybe one of the things I did worked.....eventually LOL.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 08:36.

Layout Options | Width: Wide Color: