Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Set List
Set List
0
Comments
The idea is that other extensions rely on Set List only to display the settings form. Without Set List, extension settings can still be changed by directly editing the conf/settings.php file, if you like that sort of thing. So the extension works normally, but without the settings form.
As for the elements, it's only the ones listed in the readme. Others might make it into a future release.
(spam) I've released a new version of ShowParticipants and I've used SetList for the settings form (/spam)
and it works very very well!!
well done squirrel
Order doesn't matter. Set List will pick up on any extension's form regardless of where each extension appears in extensions.php. No more hand-editing your settings files!
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /home/thescot2/public_html/forums/extensions/SetList/default.php on line 80
looks pretty great otherwise, any tips?
Thank you SO MUCH, I can't tell you how much I've been waiting for something like this. IMNSHO this really *should* be added to the core of Vanilla - or at least something as simple as it. I just never got time to learning how to do it the Vanilla way because it was anything but simple to a layman - this is easy
Thank you once again squirrel, this is brilliant!
Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' in /var/www/vhost/skytime.info/home/html/foro/extensions/SetList/default.php on line 80
These errors are happening because I used references in some foreach() loops, not realizing that PHP 4 does not support this. It should be fixed now. I'll upload the new version in just a minute.
language support, so people can write config forms in many languages, each with format SetList_MYLANGHERE.ini
// get active language $XMLLang = $this->Context->GetDefinition('XMLLang'); $SetList = "SetList_{$XMLLang}.ini"; // Parse any SetList.ini files for enabled extensions. $extensions = DefineExtensions($this->Context); foreach ($extensions as $key => $ext) { $iniFile = $this->Context->Configuration['EXTENSIONS_PATH'].substr($ext->FileName, 0, -11).$SetList; if (!file_exists($iniFile)) $iniFile = $this->Context->Configuration['EXTENSIONS_PATH'].substr($ext->FileName, 0, -11).'SetList.ini'; if ( $ext->Enabled ) { $this->parseIniFile($key, $iniFile); } }
the second is to use encoding with htmlspecialchars, cos national character got messy without it
(its frst line of RenderLabel function)
$label = htmlentities($this->formData['elements'][$element]['label'], ENT_QUOTES, 'UTF-8');
The htmlentities() thing is a bug. That shouldn't be there at all. Vanilla assumes that labels in the dictionary are always in encoded form.
When I change the days inactive (in order to close a post after x days) it returns the following error msg at the top of the screen:
Notice: Use of undefined constant IgnoreWhispers - assumed 'IgnoreWhispers' in /home/content/n/a/m/namasteweb/html/tradingboard/extensions/Expire/default.php on line 43
Help! (Happy Holidays)
Uploaded all files (4 of them) to this directory (includes default.php and settings_setlist_form.php)
Enabled SetList at tab "settings", page "extensions", by clicking radio button ... checkmark
appears.
Under heading ExtensionOptions (one word) I see reCAPTCHA (which I also installed) but no SetList!
SetList directory attributes are 777
What have I missed?
Thanks,
Roger