• template.ssjs

    From Time Warrior@VERT to Chronos on Wednesday, March 09, 2005 17:49:35
    From Newsgroup: alt.bbs.synchronet

    To: Chronos
    Re: template.ssjs
    By: Chronos to Deuce on Tue Mar 08 2005 05:19 pm

    To: Deuce
    Re: template.ssjs By: Deuce to Chronos on Fri Mar 04 2005 07:18 pm

    Then you would want the first example. ie: in nescafe.ssjs,
    you would set the value of template.rom to whateve wanted...
    then in nescafe.inc, use @@rom@@ You'd probobly also wan template.romname or something to use @@romname@@ it: <a href="someurl?rom=%%rom%%">Play @@romname@@</a>

    Ok, I have tried it and it works for that one only. I am trying to get multi games to do the same thing. I have a script that is in a .inc file that is loaded before everything in nescafe.ssjs. All it does is find the variable passed after the ? in the url, and creates a variable. even though it displa the value using the document.write in either both inc files I am using, I cannot make the template.rom file in nescafe.ssjs. Is there a way to be able configure the template.rom in the inc file? Or is there a way to pass it bac to the ssjs file after it creates the variable in the inc file?

    I'm no expert at this JS shit, but from what he said, couldn't you make like.....

    <a href="someurl/roms.ssjs?rom=%%SMB2%%"> Play
    @@romname@@</a>

    ??

    The Rom's list would be in roms.ssjs

    Like....

    SMB2 = "Super Mario Brothers 2"

    So then...

    <a href="someurl/roms.ssjs?rom=%%SMB2%%">

    would translate to...

    Play Super Mario Brothers 2

    ??

    Something like that?

    .--------------------------------------------------------------------.
    | [TiME WaRRiOR] aka [Dave Kelso] AIM: Twar782 | ICQ: 25055930 |
    | Websites owned / administered: xpresit.net - malkaviabbs.com |
    | ssn.xpresit.org - josephsjewelersonline.com - preferedinsurance.com |
    | weightloss.malkaviabbs.com - as well as others... |
    | XpRESit NET - The ORIGINAL Synchronet Support Net - Malkavia BBS |
    | Email: time.warrior(at)malkaviabbs.com - xpresitnet(at)theramp.net |
    \____________________________________________________________________/
    --- Synchronet 3.12a-Win32 NewsLink 1.76
    * Malkavia - Chicago, IL - telnet://malkaviabbs.com
    --- Synchronet 3.17a-Win32 NewsLink 1.108
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Time Warrior@VERT to Angus Mcleod on Wednesday, March 09, 2005 17:52:03
    From Newsgroup: alt.bbs.synchronet

    To: Angus Mcleod
    Re: template.ssjs
    By: Angus Mcleod to Deuce on Tue Mar 08 2005 07:25 pm

    To: Deuce
    Re: template.ssjs By: Deuce to Chronos on Tue Mar 08 2005 12:42:00

    Oh! So you want something like:
    template.rom=http_request.query.rom[0]; before you display the
    template.

    With that, when you call nescafe.ssjs?rom=blahblah.zip %%rom%% would be blahblah.zip

    :-) *DON'T* get a job writing documentation, OK?


    --- * Synchronet * Synchronet Track-and-field: Discus event at The
    ANJO BBS
    --- Synchronet 3.12b-Win32 NewsLink 1.81
    * Vertrauen - Anaheim Hills, California - telnet://vert.synchro.net
    --- Synchronet 3.12a-Win32 NewsLink 1.76


    ---------------------------------------
    DEUCE'S SYNCHWEB OFFICIAL DOCUMENTATION
    ---------------------------------------

    I. ssjs stuff and ummm yeah
    II. Themes and blah blah whatever
    III. How to do um... neat stuff.
    IIII. Getting ssjs to read synchronet crap and blah
    V. Editing html stuff in the inc files and bleh bleh ya know
    VI. The new web file section thing and blah you get the idea



    :-)

    .--------------------------------------------------------------------.
    | [TiME WaRRiOR] aka [Dave Kelso] AIM: Twar782 | ICQ: 25055930 |
    | Websites owned / administered: xpresit.net - malkaviabbs.com |
    | ssn.xpresit.org - josephsjewelersonline.com - preferedinsurance.com |
    | weightloss.malkaviabbs.com - as well as others... |
    | XpRESit NET - The ORIGINAL Synchronet Support Net - Malkavia BBS |
    | Email: time.warrior(at)malkaviabbs.com - xpresitnet(at)theramp.net |
    \____________________________________________________________________/
    --- Synchronet 3.12a-Win32 NewsLink 1.76
    * Malkavia - Chicago, IL - telnet://malkaviabbs.com
    --- Synchronet 3.17a-Win32 NewsLink 1.108
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net