Pop-Up Thingie

The Horizon BBS
  • Home
  • Forum
  • Files
  • Register
  • Log in

  1. Forum
  2. DOVE-Net
  3. Synchronet Sysops
  • Feature Request: menu templates

    From Fernando Toledo@VERT to GitLab issue in main/sbbs on Thu Jan 27 01:13:56 2022
    open https://gitlab.synchro.net/main/sbbs/-/issues/329

    Just an idea:

    Support for custom template vars like @-codes for menu files (.msg, .asc, .ans, etc) using some character pairs: {} %% $$ &&

    example:

    {{VAR1}}

    {{TEXTO}}

    {{AVISO}}

    ![image](https://gitlab.synchro.net/main/sbbs/uploads/f1a65a3b25fe9c597f7e3d0742b197db/image.png)

    the you can use the js method bbs.menu() like this:
    ```
    var tpl_vars = {'VAR1': 'hola', 'TEXTO': 'blalbalb', 'AVISO': 'esto es un aviso'};
    bbs.menu("main", tpl_vars);
    ```

    The screen menu should render those variables to their respective values (replace text)

    ![image](https://gitlab.synchro.net/main/sbbs/uploads/c7427432a0994e37e5220e7f976e7fa7/image.png)

    NOTE: I use the INCLUDE @-code as workaround and create these included file on the fly. But this feature would be an easy way to do it

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Thu Jan 27 01:22:01 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/329#note_2238

    Have you tried making use of the JS:<property-name> @-code? It works pretty much as you've described.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Fernando Toledo@VERT to GitLab note in main/sbbs on Thu Jan 27 08:24:23 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/329#note_2241

    ohhh! I have overlooked this option, yeah! it is very similar and this covers my needs! thanks!

    (for these things, I love sbbs)

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Fernando Toledo@VERT to GitLab issue in main/sbbs on Thu Jan 27 08:24:23 2022
    close https://gitlab.synchro.net/main/sbbs/-/issues/329

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • Who's Online

  • Recent Visitors

    • Chewbacca
      Thu May 8 19:11:35 2025
      from Bhc, Az via Telnet
    • Chewbacca
      Thu May 8 18:27:46 2025
      from Bhc, Az via Telnet
    • NJMCdirect
      Thu May 8 04:46:43 2025
      from florida via HTTPS
    • STD267562
      Thu May 8 03:26:17 2025
      from Manchester via HTTPS
  • System Info

    Sysop: Chris Crash
    Location: Huntington Beach, CA.
    Users: 611
    Nodes: 8 (0 / 8)
    Uptime: 33:30:50
    Calls: 10,849
    Files: 5
    Messages: 505,108

© The Horizon BBS, 2025