Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
[vB4] Unfinished Settings - fix to work
Coroner
Join Date: Feb 2008
Posts: 797

I start for about 25 years with an TI and learned Basic. Next was an Commodere 64, Amiga. On Amiga I learned Assembler and wrote some Games. Many years later again, I learned myself (without book ...) php,html and javascript. Then I wrote some small

Germany
by Coroner Coroner is offline 17 Jan 2010

Since vB4 is out, there are 2 new unfinished settings. At this moment those settings aren't used by vB4. I've asked in the bugtracker, but get no answer 'bout this.
I wrote my own solution to finish up those 2 settings and hope that this will be implemented in one of the next versions. I've attached a image to, see what I mean.

Ok, let's start (remember: this is a beta solution).

1st extend the database
  • ALTER TABLE `vb4_setting` CHANGE `datatype` `datatype` ENUM( 'free', 'number', 'boolean', 'bitfield', 'username', 'integer', 'posint', 'arrayinteger', 'arrayfree' ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'free'
2nd create two new GLOBAL phrases
  • title = datatype_arrayinteger
    phrase = Array Integer
  • title = datatype_arrayfree
    phrase = Array Free

The next parts is to change 3 files:
open admincp/options.php
search for:

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

add below:

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

search for:

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

add below:

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

search for:

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

and change it into:

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

search for:

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

and add below:

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

next is to open includes/adminfunctions_options.php
search for:

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

and change it into:

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

search for:

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

and change those lines into:

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

next, open includes/adminfunctions_plugin.php
search for:

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

and add above:

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

Ok, with this changes you can have those settings working now.

How to use those options ?
In your product (under the settingsgroup) you can now have two more options:
This is example one:
<setting varname="multiinput_choose" displayorder="20">
<datatype>arrayfree</datatype>
<optioncode>multiinput</optioncode>
<defaultvalue>Hello up there,where on the air,it's hockey night tonight</defaultvalue>
</setting>
The optioncode is only multiinput and the datatype MUST be arrayfree or arrayinteger.

The next example is selectmulti:eval
<setting varname="multiselect_choose" displayorder="10">
<datatype>arrayinteger</datatype>
<optioncode>selectmulti:eval
$options = array (
'0' => 'you can choose what you want',
'1' => 'this is a multiselect field',
'2' => 'choose one or more',
'3' => 'option if you like',
'4' => 'this option wont work',
'5' => 'in a standard',
'6' => 'vBulletin 4.0.1',
); </optioncode>
<defaultvalue>1,3,4</defaultvalue>
</setting>
Here also you have to use arrayfree or arrayinteger. Others won't work !

I really hope, that those options are available in a further version of vB4.

Regards
Coroner
Attached Images
File Type: jpg Bild 1.jpg (43.5 KB, 359 views)
Views: 2708
Reply With Quote
Comments
  #2  
Old 18 Jan 2010, 05:29
Coroner Coroner is offline
 
Join Date: Feb 2008
Real name: Stefan
I forgott to tell you, how to use those settings in you mod.

For both options, you will get back an array (serialized). First unserialized the value

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

And next is to check the array.

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

Reply With Quote
  #3  
Old 30 Jun 2010, 19:58
wpeloquin wpeloquin is offline
 
Join Date: May 2006
What exactly would this be for?
__________________
Owner/Admin of DDO Raiders (http://ddoraiders.net) - A DDO Gaming Alliance.
Reply With Quote
  #4  
Old 30 Jul 2011, 18:03
vbresults's Avatar
vbresults vbresults is offline
 
Join Date: Apr 2009
This is to finish an incomplete implementation of the 'arrayinteger' and 'arrayfree' option data types. It's vB 4.1.5 now and this still is not finished in the core. Absolutely ridiculous.
Reply With Quote
  #5  
Old 31 Jul 2011, 16:02
Buray Savas ANI Buray Savas ANI is offline
 
Join Date: Jul 2011
Thank you for job, but i dont understand, if we have vbseo this is good or not good?
Reply With Quote
  #6  
Old 26 Sep 2011, 11:10
Badshah93's Avatar
Badshah93 Badshah93 is offline
 
Join Date: Jun 2010
i was going to post this bug, but found ur thread..
its disappointing that it is not fix yet in main core files. have to create now a new admincp page for one setting.
Reply With Quote
  #7  
Old 17 Jan 2012, 17:24
grasshoper grasshoper is offline
 
Join Date: Nov 2011
Is it fixed by now in 4.10?
Reply With Quote
Reply


Similar Article
Article Author Type Replies Last Post
Hide Threads with unfinished Polls Andreas vBulletin 3.5 Add-ons 23 08 Dec 2010 05:57

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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 21:20.

Layout Options | Width: Wide Color: