User Tools

Site Tools


mbbsemu:configuration:text_variables

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
mbbsemu:configuration:text_variables [2021/02/07 17:28] – [Using Notepad++] tudaymbbsemu:configuration:text_variables [2023/10/06 23:41] (current) – external edit 127.0.0.1
Line 3: Line 3:
 MBBSEmu / MajorBBS have several text variables that you can embed into menus or text blocks. A text variable is a field that your systems fills automatically every time it is output to a user -- for example, if you use the text variable ''DATE'' to stand for today's date, users always will see the current date in that field. This sections tells you how to use a text variable and what text variables are available with the basic platform for MBBSEmu. MBBSEmu / MajorBBS have several text variables that you can embed into menus or text blocks. A text variable is a field that your systems fills automatically every time it is output to a user -- for example, if you use the text variable ''DATE'' to stand for today's date, users always will see the current date in that field. This sections tells you how to use a text variable and what text variables are available with the basic platform for MBBSEmu.
  
-**(Note: Text Variables in menus currently supported, text blocks in .msg file blocks support coming soon)**+**(Note: Text Variables can be used in menus and also in .msg file blocks)**
  
 ===== Using BBSDRAW.EXE ===== ===== Using BBSDRAW.EXE =====
Line 17: Line 17:
 ===== Using Notepad++ ===== ===== Using Notepad++ =====
  
-[[https://notepad-plus-plus.org/downloads/ | Notepad++]] can be used to embed Text Variables into your existing ANSI menus. +[[https://notepad-plus-plus.org/downloads/ | Notepad++]] can be used to embed Text Variables into your existing ANSI menus or MSG files
  
 First let's break down the basic format of a Text Variable in MBBSEmu / MajorBBS: First let's break down the basic format of a Text Variable in MBBSEmu / MajorBBS:
  
-<SOH> <JUSTIFICATION> <PADDING> <VARIABLE NAME> <SOH>+''**<SOH><JUSTIFICATION><PADDING><TEXT_VARIABLE_NAME><SOH>**''
  
   * **(1 Byte)** ''SOH'' = ASCII Byte 0x1 or "Start of Header"   * **(1 Byte)** ''SOH'' = ASCII Byte 0x1 or "Start of Header"
   * **(1 Byte)** ''JUSTIFICATION''   * **(1 Byte)** ''JUSTIFICATION''
-    * N = None, and will also ignore padding+    * N = None, and will ignore padding value
     * C = Center     * C = Center
     * L = Left     * L = Left
     * R = Right     * R = Right
-  * **(1 Byte)** ''PADDING''+  * **(1 Byte)** ''PADDING'' = ASCII value that represents the # of characters to pad 
 +    * # of spaces to pad is ASCII value of character minus 32 
 +    * Example 1: ''*'' ASCII value is 42, subtract 32 = **10** character padding 
 +    * Example 2: ''4'' ASCII value is 52, subtract 32 = **20** character padding 
 +    * Example 3: ''9'' ASCII value is 57, subtract 32 = **25** character padding 
 +    * If the padding # is greater then the length of the replaced text variable it will be ignored 
 +    * [[https://simple.wikipedia.org/wiki/ASCII | ASCII Chart for reference]]
   * **(X Bytes)** ''NAME_OF_TEXT_VARIABLE''   * **(X Bytes)** ''NAME_OF_TEXT_VARIABLE''
   * **(1 Byte)** ''SOH'' = ASCII Byte 0x1 or "Start of Header"   * **(1 Byte)** ''SOH'' = ASCII Byte 0x1 or "Start of Header"
  
 +**To add a Text Variable:**
 +  - Insert SOH byte (''Edit->Character Panel'') and select ''SOH'' from the character panel 
 +  - Enter your Justification (N,C,L,R)
 +  - Enter your padding character (Unless you picked "N" for justification, can just put ".")
 +  - Enter the name of your Text Variable (List below)
 +  - Insert SOH byte
  
-Example in Notepad++: {{:mbbsemu:configuration:notepad_example.jpg?nolink|}}+**Example:** {{:mbbsemu:configuration:notepad_example.jpg?nolink|Example Text Variable in Notepad++}} 
 + 
 +**Character Panel for Reference:** {{:mbbsemu:configuration:notepad_insertsoh.jpg?nolink|Character Panel in Notepad++}}
  
-To add a Text Variable you will need  
 ===== Text Variable List ===== ===== Text Variable List =====
  
Line 48: Line 61:
 |  ''SYSTEM_ADDRESS2''  |Internal Value "Fort Lauderdale, FL 33314"  | |  ''SYSTEM_ADDRESS2''  |Internal Value "Fort Lauderdale, FL 33314"  |
 |  ''SYSTEM_PHONE''  |Internal Value "(305) 583-7808"  | |  ''SYSTEM_PHONE''  |Internal Value "(305) 583-7808"  |
-|  ''REG_NUMBER''  |*COMING SOON* [[mbbsemu:configuration:appsettings.json|appsettings.json]] config option ''GSBL.BTURNO''  |+|  ''REG_NUMBER''  |[[mbbsemu:configuration:appsettings.json|appsettings.json]] config option ''GSBL.BTURNO''  |
 |  ''NUMBER_OF_LINES''  |[[mbbsemu:configuration:appsettings.json|appsettings.json]] config option ''BBS.Channels''  | |  ''NUMBER_OF_LINES''  |[[mbbsemu:configuration:appsettings.json|appsettings.json]] config option ''BBS.Channels''  |
 |  ''OTHERS_ONLINE''  |Number of Other Users Online  | |  ''OTHERS_ONLINE''  |Number of Other Users Online  |
 |  ''TOTAL_CALLS''  |*COMING SOON* Total Number of Sessions Ever  | |  ''TOTAL_CALLS''  |*COMING SOON* Total Number of Sessions Ever  |
 |  ''TOTAL_ACCOUNTS''  |Total Number of Accounts  | |  ''TOTAL_ACCOUNTS''  |Total Number of Accounts  |
-|  ''BAUD''  |*COMING SOON* Current Users Baud Rate, always 38400  | +|  ''BAUD''  |Current Users Baud Rate, always 38400  | 
-|  ''PAGE''  |*COMING SOON* Current Module/Menu  |+|  ''PAGE''  |Current Module/Menu  |
 |  ''USERID''  |Current Users User-Id  | |  ''USERID''  |Current Users User-Id  |
-|  ''CREATION_DATE''  |*COMING SOON* Date User Signed Up  |+|  ''CREATION_DATE''  |Date User Signed Up  |
 |  ''LAST_ON''  |*COMING SOON* Date User Last Logged In  | |  ''LAST_ON''  |*COMING SOON* Date User Last Logged In  |
-|  ''CLASS''  |*COMING SOON* Current Users Class  | +|  ''CREDITS''  |Total Number of Credits, always 31337  | 
-|  ''TIME_ONLINE''  |*COMING SOON* Number of minutes user has been online  |+|  ''TIME_ONLINE''  |Number of hours/mins/secs user has been online  |
  
  
  
mbbsemu/configuration/text_variables.1612718914.txt · Last modified: 2023/10/06 23:40 (external edit)