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
Next revisionBoth sides next revision
custom:ssjs_template [2021/01/27 21:30] – "Footer" is apparently a special word in Dokuwiki, so we'll use some wacky cyrillic o's to get around that fuckery with some other fuckery. ecbbscustom:ssjs_template [2021/02/19 10:03] – [The SSJS Template Scheme] mortifis
Line 78: Line 78:
 be displayed at the bottom of each page. be displayed at the bottom of each page.
  
 +=== Custom .inc ===
  
 +To Add a custom link to the left side navigation list **using the nightshade theme** edit ''../web/lib/nightshade/leftnav_html.ssjs''
 +and add the link to the list. \\
 +note: the link expects an html tag "<li><a href="some-script.ssjs">My Link</a></li>"
 +
 +<code left_nav>
 +template.leftnav.push({html: '<li><a href="/members/externals.ssjs">External Programs</a></li><li><a href="/bbs/bbses.ssjs">BBS Links</a></li><li><a href="/members/lastcallers.ssjs">Last Callers</a></li><li><a href="/members/info.ssjs">Information</a></li><li><a href="/members/newpw.ssjs">Change Password</a></li><li><a href="/logout.ssjs">Logout</a></li><li><a href="/msgs/msgs.ssjs?msg_sub=mail">E-mail</a></li>' });  
 +</code>
 +
 +Here we added the link BBS Links to the left side navigation that points to bbses.ssjs.
 +Now create the script called ''../web/root/bbs/bbses.ssjs''
 +
 +<code bbs>
 +load("../web/lib/template.ssjs");
 +
 +template.title= system.name + " - BBS Connect";
 +
 +template.whatever = "<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Some kind of stuff will go here, eventually!"
 +
 +var sub = ''; /* Do not delete/change this */
 +
 +/* below values are set in ../web/lib/html_themes.ssjs  */
 +if(do_header) 
 + write_template("header.inc");
 +if(do_topnav)
 + load(topnav_html);
 +if(do_leftnav)
 +load(leftnav_html);
 +
 +if(do_rightnav)
 + write_template("rightnav.inc");
 +
 +write_template("bbses.inc");
 +
 +if(do_footer)
 + write_template("footer.inc");
 +</code>
 + 
 +Now you need a corresponding ../web/root/templates/nightshade/bbbes.inc 
 +
 +<code inc>
 +<!-- $Id: bbses.inc,v 0.1 2021/02/18 02:19:55 lamer Exp $ -->
 +
 +<!-- Begin BBS Connect Content -->
 +
 +@@whatever@@
 +
 +<!-- End Main Content -->
 +</code>
 ==== SSJS Theme Support ==== ==== SSJS Theme Support ====