in the leftnav.inc & used the example from the webserver doc in the leftnav.ssjs
if(http_request.virtual_path=="tiddly/crap.html")
template.leftnav.push({html: '<span class="tlink">
Crap</span>'});
But I keep getting a syntax error...
So I adjusted it to this:
if(http_request.virtual_path=="/tiddly/crap.html")
template.leftnav.push({html: '</span>'});
template.leftnav.push({html: '<span class="tlink">Crap</span>'});
But I keep getting a syntax error...
> > if(http_request.virtual_path=="/tiddly/crap.html")
template.leftnav.push({html: '<span class="tlink">Crap</span>'});
I get this error:
!JavaScript c:\sbbs\mods\../web/lib/leftnav_html.ssjs line 102: SyntaxError: unterminated string literal
line 102 is the :
template.leftnav.push({html: '<span class="tlink">
Sysop: | Eric Oulashin |
---|---|
Location: | Beaverton, Oregon, USA |
Users: | 89 |
Nodes: | 16 (0 / 16) |
Uptime: | 01:24:21 |
Calls: | 6,561 |
Calls today: | 5 |
Files: | 8,478 |
U/L today: |
1 files (14K bytes) |
D/L today: |
131 files (30,988K bytes) |
Messages: | 359,204 |
Posted today: | 3 |