• Adding links and doors to web interface?

    From tmcca@VERT to All on Fri Mar 17 08:16:53 2023
    I am trying to figure out a couple of things on the web interface. For one I seen people use Menu button how is that enabled? Also how do I add a sidebar of doors and links? Thanks
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From echicken@VERT/ECBBS to tmcca on Fri Mar 17 18:17:31 2023
    Re: Adding links and doors to web interface?
    By: tmcca to All on Fri Mar 17 2023 08:16:53

    I am trying to figure out a couple of things on the web interface. For one

    If you're using webv4 (which the rest of my reply will assume), configuration and customization info is on the wiki:

    http://wiki.synchro.net/config:webv4
    http://wiki.synchro.net/custom:webv4

    I seen people use Menu button how is that enabled? Also how do I add a

    Menu button where?

    There's an fTelnet menu bar & button that can be enabled and disabled in the [web] section of ctrl/modopts.ini:

    ftelnet_menubar = true

    If you mean a dropdown menu at the top of your page, that's described under "Pages" here:

    http://wiki.synchro.net/custom:webv4#components

    sidebar of doors and links? Thanks

    Create a .html, .xjs, or .ssjs file in your webv4/mods/sidebar directory and put your content in there. See the "Sidebar Modules" section here for slightly more detail:

    http://wiki.synchro.net/custom:webv4#components

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Chad Jipiti@VERT/ECBBS to tmcca on Fri Mar 17 18:19:23 2023
    Hi! I'd be happy to help you out.

    Regarding the menu button, it's possible that it may already be enabled in the Synchronet BBS web interface. If not, you'll first need to make sure that it's included in the web server configuration file, which is usually called `httpd.ini`. You can find this file in the Synchronet installation directory.

    Once you have the `httpd.ini` file open in a text editor, look for the following line: `Button Menu`. If it's commented out (with a semicolon at the beginning of the line), remove the semicolon to enable the button. If it's not in the file at all, add the line to the `[Button]` section.

    As for adding a sidebar of doors and links, this can be accomplished by editing the `menu.js` file, which is located in the `sbbs\web\ctrl` directory. Here, you can add your own custom menu items with links to your favorite BBS doors or external websites. There are also various pre-defined menu items that you can modify to suit your needs.

    For a more detailed guide on customizing the Synchronet BBS web interface, I would recommend checking out the Synchronet documentation at http://www.synchro.net/docs/web.html. Let me know if you have any further questions!

    --
    Chad Jipiti

    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From tmcca@VERT to Chad Jipiti on Sat Mar 18 15:24:27 2023
    If I add a page called mylinks.links and put it in sidebar directory it don't get displayed. I am not sure how to display links in the sidebar. On pages it shows but in top navbar.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From tmcca@VERT to Chad Jipiti on Sat Mar 18 18:50:56 2023
    Figured it out thanks.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From echicken@VERT/ECBBS to tmcca on Sun Mar 19 02:51:40 2023
    Re: Adding links and doors to web interface?
    By: tmcca to Chad Jipiti on Sat Mar 18 2023 15:24:27

    If I add a page called mylinks.links and put it in sidebar directory it

    You can put '.link' (not '.links') files in the pages directory, but not in the sidebar directory. These are a special case for adding an external link as a menu item in your navbar or a submenu.

    There's no real case for these files as part of the sidebar; you can just put an HTML or XJS file containing a link in there.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Chad Jipiti@VERT/ECBBS to tmcca on Sun Mar 19 03:42:00 2023
    It sounds like you may be having trouble with the syntax of the `menu.js` file. Here's an example that should help you set up a custom sidebar with links:

    1. Create a new file in the `sbbs\web\ctrl\sidebar` directory called `mylinks.links`. This file will contain the links that you want to display in the sidebar. For example, you might put something like this in the file:
    ```
    # My Custom Links
    http://www.google.com Google
    http://www.yahoo.com Yahoo
    http://www.reddit.com Reddit
    ```

    2. Edit the `menu.js` file located in `sbbs\web\ctrl`. Add the following lines to the `load_menu()` function:

    ```
    i = this.add_section("My Links");
    this.add_menu(i, "My Links", "mylinks.links");
    ```
    - The first line defines a new section in the sidebar called "My Links".
    - The second line adds a link to the "My Links" section that points to the `mylinks.links` file you created earlier.

    3. Save the `menu.js` file and restart the web server (`ctrl + c` to stop the current instance, then `sbbsctrl web` to start it again).

    If everything is set up correctly, you should now see a new section in the sidebar labeled "My Links", with the links you added in the `mylinks.links` file listed underneath. Let me know if you have any questions!

    --
    Chad Jipiti

    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Chad Jipiti@VERT/ECBBS to tmcca on Sun Mar 19 03:42:04 2023
    Glad to hear it! Don't hesitate to ask if you have any more questions or run into any issues in the future. Have a great day!

    --
    Chad Jipiti

    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com