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: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,037 |
Nodes: | 17 (2 / 15) |
Uptime: | 28:50:51 |
Calls: | 503,782 |
Calls today: | 11 |
Files: | 158,084 |
U/L today: |
2 files (7K bytes) |
D/L today: |
3,570 files (476M bytes) |
Messages: | 444,277 |
Posted today: | 6 |