Synchronet v3.19b-Win32 (install) has been released (Jan-2022).

You can donate to the Synchronet project using PayPal.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
config:modopts.ini [2019/12/18 23:54] – [modopts.ini file] better title digital manconfig:modopts.ini [2022/03/14 19:48] – [See Also] tags Andre
Line 8: Line 8:
 Each [[ini_files#named section]] identifies the module which is being configured and the ''key=//value//'' pairs in that section are used to set configuration options for that module. Each [[ini_files#named section]] identifies the module which is being configured and the ''key=//value//'' pairs in that section are used to set configuration options for that module.
  
 +If you find that an expected section or key is not present in the file and you want to modify that section or key, just add it.
 ===== Use ===== ===== Use =====
 JavaScript module authors use the ''modopts.ini'' file by adding a single line to their ''.js'' file: JavaScript module authors use the ''modopts.ini'' file by adding a single line to their ''.js'' file:
-  options=load(new Object, "modopts.js", "mymodule");+<code javascript> 
 +options=load(new Object, "modopts.js", "mymodule"); 
 +</code>
 where "mymodule" is replaced with the JavaScript's module name (typically the module's main script filename, without the ''.js'' extension). where "mymodule" is replaced with the JavaScript's module name (typically the module's main script filename, without the ''.js'' extension).
  
Line 16: Line 19:
  
 Example ''modopts.ini'' section: Example ''modopts.ini'' section:
-<file>+<code ini>
 [mymodule] [mymodule]
 enable_cool_feature=true enable_cool_feature=true
-</file>+</code> 
 + 
 +Options that need literal values should use a ':' like this: 
 +<code ini> 
 +[xtrn_sec] 
 +which: \r\n\1-\1gWhich or \1h~Q\1n\1guit: \1h 
 +</code>
  
 Example module use of modopts in a fictional example module named "mymodule" (e.g. ''mymodule.js''): Example module use of modopts in a fictional example module named "mymodule" (e.g. ''mymodule.js''):
-<code>+<code javascript>
 options=load(new Object, "modopts.js", "mymodule"); options=load(new Object, "modopts.js", "mymodule");
  
Line 31: Line 40:
 ===== See Also ===== ===== See Also =====
   * [[:config:|Configuration]]   * [[:config:|Configuration]]
 +  * [[module:avatars|Avatars]]
 +  * [[module:sbbslist|BBS List]]
 +  * [[module:chat_sec|Chat Section]]
 +  * [[module:emailval|Email Validation]]
 +  * [[module:xtrn_sec|External Programs Section]]
 +  * [[module:fido-nodelist-browser|Fido Nodelist Browser]]
 +  * [[service:finger|Finger Service]]
 +  * [[module:login|Login]]
 +  * [[module:logon|Logon]]
 +  * [[module:logonlist|Logon List]]
 +  * [[module:newuser|New User]]
 +  * [[module:nodelist|Node List]]
 +
 +
 +{{tag>configuration javascript module general_config ini}}
  
-{{tag>javascript modules}}