• Adding links

    From JahLuv@VERT/CREATI0N to All on Sun Mar 9 06:37:00 2008
    Hello everyone'ãã I'm trying to add a link to the web portion of synchronet. I've added a link ãã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>'});ããWhen I click on the link I get a blank page with a text box?ããBy no means am I a wiz at programming(guess I gotta add it to my to-do-list)ããCan some one help me out here? Thanks....ãã---ã þ Synchronet þ JAHLUV - jahmancreationz.kicks-ass.netã
  • From Angus McLeod@VERT/ANJO to JahLuv on Sun Mar 9 10:29:00 2008
    Re: Adding linksã By: JahLuv to All on Sun Mar 09 2008 06:37:00ãã > 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...ããAny more info as to the specific nature pf the syntax error available?ãã > So I adjusted it to this:ã > ã > ã > if(http_request.virtual_path=="/tiddly/crap.html")ã > template.leftnav.push({html: '</span>'});ããYou just eliminated the opening tag to (and contents of) the SPAN? What ãwere yiu trying to achieve?ãã---ãPlaying loud: "Do That To Me One More Time" by "Captain & Tenille".ã þ Synchronet þ Where we BAJA Rob into writing our modules. The ANJO BBSã
  • From JahLuv@VERT/CREATI0N to Angus McLeod on Sun Mar 9 15:26:00 2008
    > > if(http_request.virtual_path=="/tiddly/crap.html")ã > template.leftnav.push({html: '<span class="tlink">ã Crap</span>'});ãã > But I keep getting a syntax error...ãã >Any more info as to the specific nature pf the syntax error available?ã ã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">ãããJAhLuvãã---ã þ Synchronet þ JAHLUV - jahmancreationz.kicks-ass.netã
  • From Angus McLeod@VERT/ANJO to JahLuv on Sun Mar 9 22:08:00 2008
    Re: Re: Adding linksã By: JahLuv to Angus McLeod on Sun Mar 09 2008 15:26:00ãã > > > 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">ããTry joining that, and the next line like so:ãã template.leftnav.push({html: '<span class="tlink"> Crap</span>'});ã ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ãI'm not sure if you can break the string across two lines. Some languages ãare OK with it; some complain. ãã---ãPlaying loud: "I Can't Tell You Why" by "Eagles".ã þ Synchronet þ Where we BAJA Rob into writing our modules. The ANJO BBSã
  • From JahLuv@VERT/CREATI0N to Angus McLeod on Mon Mar 10 00:35:00 2008
    > Try joining that, and the next line like so:ã > ã template.leftnav.push({html: '<span class="tlink"> Crap</span>'});ã ãThanks for the reply Angus, I actually noticed that after I posted. It solved ãthe syntax error.. But I still cannot connect to the html page I'm wanting, it ãsends me to my 404.htm. I have no clue why.ãThis is what I actually have in both files.ããleftnav.incãã<a href="/test/empty.htm">Info</a>ããleftnav_html.ssjsããif(http_request.virtual_path=="/test/empty.html")ã template.leftnav.push({html: '<span class="tlink">Info</span>'});ãAny clues??ãã ڿ Â Â Â Ú ¿ Ú ¿ã Jahmancreationz.kicks-ass.netã ÀÄÙ À Ù Á Á ÁÄÙ ÀÄÙ ÀÙãã---ã þ Synchronet þ JAHLUV - jahmancreationz.kicks-ass.netã
  • From JahLuv@VERT/CREATI0N to All on Mon Mar 10 20:41:00 2008
    Oh Snap!!!ããI just realized what the hell i was doing wrong... ãI had my <a href="/test/empty.htm">Info</a> correct. I just didn't have my ãfolder in the root directory. I was thinking that /web was the root.ããJAhLuvãã ã ڿ Â Â Â Ú ¿ Ú ¿ã Jahmancreationz.kicks-ass.netã ÀÄÙ À Ù Á Á ÁÄÙ ÀÄÙ ÀÙãã---ã þ Synchronet þ JAHLUV - jahmancreationz.kicks-ass.netã