Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
[How-To]Using Array conditionals with $vboptions
Deaths
Join Date: Oct 2004
Posts: 679

Europe, Belgium
by Deaths Deaths is offline 26 Mar 2005

I've seen a couple of people making this mistake (including me a couple of months ago), so I though I'd make a How-To.

Here we go:

Add a new setting (and optionally a new settinggroup).
You may choose which settings you use, aslong as you remember the variable you use. (In this case we're using $pmembergroups).

After you're added the setting, you can add this code as your conditional:


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

That's it!

EDIT: If you want a guide on how to add a setting, just ask.

Last edited by Deaths; 26 Mar 2005 at 14:54.. Reason: Automerged Doublepost
Views: 3943
Reply With Quote
Comments
  #2  
Old 29 Sep 2006, 19:34
Muellmann's Avatar
Muellmann Muellmann is offline
 
Join Date: Jun 2006
Location: near keyboard
Yes, this is what I search for: How to add a Custom Settinggroup and a Setting
Could you please make such Howto?

If you want a guide on how to add a setting, just ask.
Reply With Quote
  #3  
Old 29 Sep 2006, 20:44
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Real name: Erik
Originally Posted by Muellmann
Yes, this is what I search for: How to add a Custom Settinggroup and a Setting
Could you please make such Howto?
that's easy but you only see that options if debug mode is enabled.To enable debug mode edit /includes/config.php


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

right after the <?php

then goto admincp vbulletin options and there will be a link to add a new settingsgroup each with it's own settings if so desired
Reply With Quote
  #4  
Old 19 Mar 2008, 23:48
TCattitude's Avatar
TCattitude TCattitude is offline
 
Join Date: Oct 2004
Thanks... really.
Reply With Quote
Reply



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

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:13.

Layout Options | Width: Wide Color: