also another question:
i understand that there is no problem if the extension using setlist is installed in an environment without the setlist extension, but then does the settings form work?
or then the extension works, but without the settings form?
sorry for the bugging :P
No worries mate, that's exactly the question I want to be clear on.
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.
Very nice, although there's one other thing I didn't make clear:
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!
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
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /home/pitbull/public_html/community/extensions/SetList/default.php on line 80
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');
Language support is meant to go into the Vanilla/languages/########/definitions.php file, like any other extension. Labels pulled from the SetList.ini file are registered with the Vanilla dictionary and will get replaced if another definition already exists. Check the README.html file for more details.
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.
Hello. I have a fresh install of 1.1.5 because I thought some previous customization caused this. The only extensions I have are Notify, Expire, and Set List. 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
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