home *** CD-ROM | disk | FTP | other *** search
/ Your Web Site Creator / Your Web Site Creator.iso / WebSite / data1.cab / Program_Executable_Files / scripts / New_site.dat < prev    next >
Encoding:
Text File  |  1999-01-13  |  24.7 KB  |  721 lines

  1. ; NEW_SITE.DAT   Main script for creating a new family Web site
  2. [Start]
  3. BACKSTOP Top
  4.  
  5. SAVEVARIABLES
  6. ARGUMENT modulepath( "LASTSTRT.VAR" )
  7.  
  8. GOSUB InitializeVariables
  9.  
  10. STARTWIZARD
  11. TITLE Homepage Expert - Make a New Family Web Site
  12. ; bump # times run
  13. LOADVARIABLES
  14. ARGUMENT modulepath( "WWDATA.VAR" )
  15. ARGUMENT nLoads
  16. ARGUMENT nFamilies
  17. ARGUMENT skipExplanations
  18.  
  19. SETTEMP nLoads = add( nLoads 1 )
  20.  
  21. SAVEVARIABLES
  22. ARGUMENT modulepath( "WWDATA.VAR" )
  23. ARGUMENT nLoads
  24.  
  25. SET dummy_sections = 0
  26.  
  27. ;xxxxxxxxxxxxxxxxxxxxxxxx THE WELCOME SCREENS xxxxxxxxxxxxxxxxxxxxxxxxxxxx
  28. IF skipExplanations = ""
  29.   SET skipExplanations = NN
  30. ENDIF
  31.  
  32. IF nFamilies > 2 && nLoads > 4  && skipExplanations <> YY
  33.  BACKSTOP
  34.  PAGE
  35.  DESCRIPTION_RE "WOW!  You are really becoming experienced.  You have built a new site ",nFamilies," times already with ",nLoads," times into the program.  If you would like, we can start skipping a couple of the welcome screens.\n\nWould you like to skip extra screens that provide you with the `why' kind of information so that you can go faster?"
  36.  TYPE RADIOBUTTONS
  37.  WIZPIC wizpics\wizmagic.gif
  38.  NAME skipExplanations
  39.  ARGUMENT "&Yes. Skip the explanation screens."@Yes
  40.  ARGUMENT "N&o. They may still help me."@No
  41.  
  42.  SAVEVARIABLES
  43.  ARGUMENT modulepath( "WWDATA.VAR" )
  44.  ARGUMENT skipExplanations
  45.  IF skipExplanations = YY
  46.   BACKSTOP
  47.   PAGE
  48.   WIZPIC wizpics\wizmagic.gif
  49.   TYPE DESCRIPTION
  50.   DESCRIPTION \nNOW YOU'RE AN EXPERT!\n\nYou have just said YES to "expert mode", and told the wizard he can skip a few screens here and there that provide extra information.\n\nYou can change your mind about this.  You can change now, by pressing the Previous button and making the change.  But, you can also change your mind later.\n\nWhen you get the first wizard screen each time you start the program, there is a choice called "Wizard Settings".  If you choose this, you can switch "expert mode" off an on.\n\nSo congratulations on your new status!  May you have many happy hits on the Web!
  51.  ENDIF
  52. ENDIF
  53.  
  54. IF skipExplanations = NN
  55.  
  56.  IF nLoads < 6
  57.   BACKSTOP
  58.   PAGE
  59.   WIZPIC wizpics\welcome1.gif
  60.   TYPE DESCRIPTION
  61.   DESCRIPTION WELCOME to WEB SITE CREATOR!\nThis software is designed to  create and publish a customized Web site for your family, requiring you to do little more than point and click and fill in the blanks.  But, the software is also a powerful Web site development tool that can be used to create custom sites for any business or organization.\n\nTo automatically create a site for your family, click on the Next button to continue, and you will be guided through the steps to making a great looking family Web site.\n\nOr, to work on your own, and build a professional, results-oriented site, press the Cancel button and then select File-New from the menu to begin your own Web site project. If you choose this method, it will be up to you to design and create each page, and to link them together yourself.\n\nYou can refer to the tutorial for more information and there is also action-specific on-line help available any time.
  62.  ENDIF ;nLoads<3
  63.  
  64.   BACKSTOP
  65.   PAGE
  66.   WIZPIC wizpics\welcome1.gif
  67.   TYPE DESCRIPTION
  68.   DESCRIPTION \nWELCOME!\n\nWelcome to the Homepage Expert, your very own Web Site Wizard!  Using this process, your answers to a few questions about your family will result in the construction of a complete, customized, multiple-page family Web site.\n\nIf this is what you came for, press the Next button to continue.  Otherwise, press the Cancel button and try something else.\n\nDuring this process, you can press the Next button to advance to the next screen and press the Previous button one or more times to go back to any earlier screen.
  69.  
  70.   BACKSTOP
  71.   PAGE
  72.   WIZPIC wizpics\welcome2.gif
  73.   TYPE DESCRIPTION
  74.   DESCRIPTION \nGATHER `ROUND\nThis process will ask you some questions about the family.  The software uses the answers to automatically build you a wonderful, customized, multiple-page Web site.  For the most fun, and the best results, you should gather the entire family to participate in the process.\n\nPHOTOGRAPHS\nTo really add flair to your family Web site, you should have some photos of each family member to include in your family Web site.  The pictures must be stored on your hard disk in digital format.  That is, photos that were taken with a digital camera or scanned and saved as picture files.\n\nIf you don't have the electronic versions of your family's photographs, you can make them using any scanner.  If you don't have access to a scanner, see the online documentation that came with this software to learn about scanning and how to obtain photos on disk so that they can then be used in your Web site.
  75.  
  76.   BACKSTOP
  77.   PAGE
  78.   WIZPIC wizpics\welcome3.gif
  79.   TYPE DESCRIPTION
  80.   DESCRIPTION \nWORKING ON YOUR SITE\n\nBEING COMPLETE\nIn order for this program to build a customized family Web site, you will be asked a number of questions about your family.  Don't worry if you can't supply all of the answers right now.  You can always make changes later.\n\nSTARTING and STOPPING\nAs you proceed through the various sections of the Web site questionnaire, you will be given the opportunity to stop or to pause and preview the work you have done so far. If you find you must stop before you finish the whole Web site, don't worry!  You can pick up where you left off and go to work on the parts you skipped.\n\nSo, let's get started!
  81. ENDIF           ;skipExplanations = no
  82.  
  83.  
  84. GOTO NewSitePart2        ;xxxxxxxxxxxxxxxxx JUST TO BREAK FLOW FOR PROGRESS BAR xxxxxxx
  85.  
  86.  
  87. #INCLUDE scripts\favorite.dat
  88.  
  89.  
  90. [NewSitePart2]
  91. ;xxxxxxxxxxxxxxxxxxxxxxxxxxxx GET FAMILY NAME xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  92. SET familyLastName = ""
  93. BACKSTOP Last
  94. PAGE
  95. NOSPELLCHECK
  96. WIZPIC wizpics\wizfm128.gif
  97. NAME familyLastName
  98. TYPE EDIT
  99. DESCRIPTION Enter your family's last name.  Please type the name using initial capitals and any other capital letters that make the name appear correctly.\n\nFor example, type Tolson, or McCracken or LaRoche.  Do Not type TOLSON, MCCRACKEN, and do not type tolson, mccracken, etc.
  100. PROMPT &Last name:
  101.  
  102. IF familyLastName = ""
  103.   MESSAGEBOX "You must supply your family's last name before continuing."
  104.   ARGUMENT temp,1,0 ; Exclamation icon with Ok button
  105.  
  106.   UNWIND Last
  107. ENDIF
  108.  
  109. ;xxxxxxxxxxxxxxxxxxxxxxxx  ASK ABOUT PHOTOS xxxxxxxxxxxxxxxxxxxxxxxxxxx
  110. ; do they have photos available?
  111. SET havePhotographs = NN
  112. BACKSTOP
  113. PAGE
  114. DESCRIPTION_RE "To really add flair to your family Web site, you should have a photo of each family member to include in your Family Site.  Do you have photographs of one or all of the members of the ",familyLastName," family stored on your hard disk in digital format?  That is, files that were taken with a digital camera or scanned and saved as picture files."
  115. TYPE RADIOBUTTONSWITHTEXT
  116. WIZPIC wizpics\wiztheme.gif
  117. NAME havePhotographs
  118. ARGUMENT "&Yes. We have at least one digital photograph."@Yes@"\nChoose this one if you have photographs in electronic format.\n\nAs you proceed to fill out your family Web site, you will be prompted to browse for them to include."
  119. ARGUMENT "N&o. We do not have digital photographs."@No@"\nChoose this item if you don't have any photographs in digital form right now.\n\nYou can always add the photos to the Web site later."
  120.  
  121. ;xxxxxxxxxxxxxxxxxxxx  GET THE FAMILY PHOTO  xxxxxxxxxxxxxxxxxxxxxxxxxxx
  122.  
  123. BACKSTOP LastPhoto
  124.  
  125. IF havePhotographs = YY
  126.   SETTEMP fampix_prompt = "The first picture we need for your Web site is one showing your entire family.  Press the browse button and locate a picture that shows all of the family members, or select any picture to use as a decoration in place of the family picture.\n\nYou can easily change this later to a different picture."
  127.   COPY newPhoto = familyPhoto
  128.  
  129.   PAGE
  130.   WIZPIC wizpics\wizphoto.gif
  131.   TYPE PICTURE
  132.   NOSPELLCHECK
  133.   DESCRIPTION_RE fampix_prompt
  134.   NAME newPhoto
  135.   PROMPT &Family picture:
  136. ELSE
  137.   GOSUB GetFamPlaceholderPix ;in UTIL.DAT
  138. ENDIF
  139. COPY familyPhoto = newPhoto
  140.  
  141. ;xxxxxxxxxxxxxxxxxxxxxx CHOOSE STYLING, GET EMAIL xxxxxxxxxxxxxxx
  142. GOSUB InitProjectVars
  143.  
  144. SET currentStyle = 1
  145. GOSUB ChangeSiteStyle  ;and set linkage pix
  146.  
  147. GOSUB GetEMail    ;ask for family Email address
  148.  
  149. ;set defaults for text pictures
  150. SET textPixColor = "128,0,0"              ;maroon
  151. SET textPixBGColor = "192,192,192"        ;silver
  152. SET textPixFont = "Times New Roman,32,1"  ; 32 point bold
  153.  
  154.  
  155. ;xxxxxxxxxxxxxxxxxxxxxxx ASK FOR SECTIONS TO INCLUDE xxxxxxxxxxxxxxxxxxxx
  156. ; ask what sections they intend to have
  157. SET hasFavorites = 0
  158. SET hasPastimes = 0
  159. SET hasNotions = 0
  160. SET hasNews = 0
  161. SET hasMailBook = 0
  162.  
  163. BACKSTOP
  164. PAGE
  165. WIZPIC wizpics\wizhome.gif
  166. TYPE CHECKBOXES
  167. DESCRIPTION In addition to information about each family member, you can include any or all of the following sections in your family's Web site.  Each item below represents an additional section to add to your customized Web site.  Check the boxes for sections you would like to include.  If you choose them now, the wizard will create an `UNDER CONSTRUCTION' page to mark their place until you build them.
  168. ARGUMENT "Family P&astimes (how you have fun)"@hasPastimes@1,0@
  169. ARGUMENT "Family &Favorites (things you like)"@hasFavorites@1,0@
  170. ARGUMENT "Family N&otions (views, outlooks, humor)"@hasNotions@1,0@
  171. ARGUMENT "Family Ne&wsletter and Announcements"@hasNews@1,0@
  172. ARGUMENT "Family and Friends &E-Mail Directory"@hasMailBook@1,0@
  173.  
  174.  
  175. ;xxxxxxxxxxxxxxxxx GET NUMBER OF FAMILY MEMBERS  xxxxxxxxxxxxxxxxxx
  176. SET nMembers = ""
  177. BACKSTOP BeginMembers
  178. PAGE
  179. WIZPIC wizpics\wizfm128.gif
  180. TYPE EDIT
  181. PROMPT Number of &members (1-11 using digits only):
  182. DESCRIPTION_RE "How many family members will be included in the ",familyLastName," family Web site?  Usually this is only the family members that live together, but you could include extended family members.  Also, many families have a pet that is treated like a family member or simply a 'special friend'.  You can include a page for your pet (or pets) on the Web site if you like.  So enter the total number of family members, including pets."
  183. NAME nMembers
  184.  
  185. IF nMembers < 1 || nMembers > 11
  186.   MESSAGEBOX "You have entered an invalid number or no number at all.  The number of family members must be between 1 and 11."
  187.   ARGUMENT temp,1,0
  188.   UNWIND BeginMembers
  189. ENDIF
  190.  
  191. SETTEMP StartMembers = 1
  192.  
  193. ;xxxxxxxxxxxxxxxxx GET NAMES/TYPES OF FAMILY MEMBERS  xxxxxxxxxxxxxxxxxx
  194.  
  195. IF nMembers <> 1
  196.  SETTEMP nNumber = nMembers
  197.  GOSUB Ordinal
  198.  
  199.  BACKSTOP
  200.  PAGE
  201.  WIZPIC wizpics\welcome3.gif
  202.  TYPE DESCRIPTION
  203.  DESCRIPTION_RE "                           ENTER FAMILY MEMBER NAMES\n\nTo reserve places for the ",numeral," ",familyLastName," family members, you will now be asked to supply their names and gender.\n\nThe order in which you provide the names determines the order they are listed on the `Meet the Family' page.\n\nSo you might want to list the parents first.  Or, maybe you want to list the children first.\n\nBut think about it for a moment and then go!"
  204. ENDIF
  205.  
  206. SETTEMP passageVar = "nextMember"
  207. SETTEMP lastPassage = 0
  208.  
  209. ;     for each member, get the name, gender, type, and photo
  210. BACKSTOP InputMember1
  211. SETTEMP nextMember = 1
  212. GOSUB AdvancePassage
  213. GOSUB GetInitMemberInfo
  214. SETBACKSTOP InputMember1
  215.  
  216. IF nMembers > 1
  217.   BACKSTOP InputMember2
  218.   SETTEMP nextMember = 2
  219.   GOSUB AdvancePassage
  220.   GOSUB GetInitMemberInfo
  221.  
  222.   SETBACKSTOP InputMember2
  223.  IF nMembers > 2
  224.  
  225.   BACKSTOP InputMember3
  226.   SETTEMP nextMember = 3
  227.   GOSUB AdvancePassage
  228.   GOSUB GetInitMemberInfo
  229.  
  230.   SETBACKSTOP InputMember3
  231.  ENDIF ; >2
  232. ENDIF ; >1
  233.  
  234. IF nMembers > 3
  235.   BACKSTOP InputMember4
  236.   SETTEMP nextMember = 4
  237.   GOSUB AdvancePassage
  238.   GOSUB GetInitMemberInfo
  239.  
  240.   SETBACKSTOP InputMember4
  241.  
  242.  IF nMembers > 4
  243.   BACKSTOP InputMember5
  244.   SETTEMP nextMember = 5
  245.   GOSUB AdvancePassage
  246.   GOSUB GetInitMemberInfo
  247.  
  248.   SETBACKSTOP InputMember5
  249.  
  250.   IF nMembers > 5
  251.    BACKSTOP InputMember6
  252.    SETTEMP nextMember = 6
  253.    GOSUB AdvancePassage
  254.    GOSUB GetInitMemberInfo
  255.    SETBACKSTOP InputMember6
  256.   ENDIF ; >5
  257.  ENDIF ; >4
  258. ENDIF ; >3
  259.  
  260. IF nMembers > 6
  261.   BACKSTOP InputMember7
  262.   SETTEMP nextMember = 7
  263.   GOSUB AdvancePassage
  264.   GOSUB GetInitMemberInfo
  265.  
  266.   SETBACKSTOP InputMember7
  267.  
  268.  IF nMembers > 7
  269.   BACKSTOP InputMember8
  270.   SETTEMP nextMember = 8
  271.   GOSUB AdvancePassage
  272.   GOSUB GetInitMemberInfo
  273.  
  274.   SETBACKSTOP InputMember8
  275.  
  276.   IF nMembers > 8
  277.     BACKSTOP InputMember9
  278.     SETTEMP nextMember = 9
  279.     GOSUB AdvancePassage
  280.     GOSUB GetInitMemberInfo
  281.  
  282.     SETBACKSTOP InputMember9
  283.   ENDIF ; >8
  284.  ENDIF ; >7
  285. ENDIF ; >6
  286.  
  287. IF nMembers > 9
  288.   BACKSTOP InputMember10
  289.   SETTEMP nextMember = 10
  290.   GOSUB AdvancePassage
  291.   GOSUB GetInitMemberInfo
  292.  
  293.   SETBACKSTOP InputMember10
  294.  
  295.  IF nMembers > 10
  296.   BACKSTOP InputMember11
  297.   SETTEMP nextMember = 11
  298.   GOSUB AdvancePassage
  299.   GOSUB GetInitMemberInfo
  300.  
  301.   SETBACKSTOP InputMember11
  302.  ENDIF ; >10
  303. ENDIF ; >9
  304.  
  305. SETTEMP StartMembers = 0
  306. ;xxxxxxxxxxxxxxxxxx END OF INPUT MEMBER NAMES/TYPES xxxxxxxxxxxxxxxxxxxxxx
  307.  
  308.  
  309.  
  310. ;xxxxxxxxxxxxxxxxx MAKE THE TOPICS FOR THE SITE & MEET FAMILY xxxxxxxxxxxx
  311.  
  312. GOSUB MakeSiteProject    ;HPJ & dummy homepage
  313.  
  314. GOSUB MakeFamilyPages
  315.  
  316. GOSUB MakeSectPlchldrs
  317.  
  318. IF hasFavorites = 1 && hasNotions = 1 && hasNews = 1 && hasPastimes = 1 && hasMailBook = 1 && dummy_sections < 1
  319.   SET allSections = 1
  320. ELSE
  321.   SET allSections = 0
  322. ENDIF
  323.  
  324. BUSY 1
  325. ARGUMENT "Please wait a moment longer while the wizard adds the fun links and updates the home page."
  326. GOSUB MakeLinksPage ;in UTIL.DAT
  327.  
  328. GOSUB BuildHomePage  ;in HOMEPAGE.DAT
  329.  
  330. BUILDLINKS
  331. BUSY 0
  332.  
  333.  
  334. ;xxxxxxxxxxxxxxxxxx FILL OUT the Meet the Family section xxxxxxxxxxxxxxxxxxxx
  335. SET infoRetrievedArray = ""
  336.  
  337. IF skipExplanations = NN
  338.   BACKSTOP
  339.   PAGE
  340.   TYPE DESCRIPTION
  341.   WIZPIC wizpics\wizfm128.gif
  342.   DESCRIPTION GET READY ...\nIn the screens that follow you will be asked to supply information about each of the members in your family.\n\nFor the most fun, and the best results, you should gather the entire family to participate in the process.  It's lots of fun to share like this!\n\nBut, at a minimum, you should have each person come to the computer one at a time when their own pages are being built.
  343. ENDIF
  344.  
  345. BACKSTOP
  346. PAGE
  347. WIZPIC wizpics\wizchooz.gif
  348. NAME temp
  349. TYPE RADIOBUTTONS
  350. DESCRIPTION At this time, the wizard has made basic pages for each family member.  You can proceed and enter the remaining information for each family member now if you like.  Or you can move on to something else and do that later.\n\nDo you want to fill in the remaining family member information now?
  351. ARGUMENT "&Enter family member information"@Yes
  352. ARGUMENT "&Skip this for now"@No
  353.  
  354. IF temp = YY
  355.   GOSUB GetAndBuildFamilyMember   ;pick members, input detail info; write a page
  356.   GOSUB OfferToPreview
  357. ELSE
  358.   MESSAGEBOX "OK.  You can skip entering the family member details.  The next time you start the Homepage Expert, you will be reminded that the family members are incomplete."
  359.   ARGUMENT temp,0,0
  360. ENDIF
  361.  
  362. ;xxxxxxxxxxxxxxxxxxxxx OFFER TO MAKE OTHER SITE SECTIONS xxxxxxxxxx
  363.  
  364. IF hasFavorites = 1
  365.  BACKSTOP BeforeMakingFavorites
  366.  GOSUB OfferToMakeFavorites
  367.  SETBACKSTOP BeforeMakingFavorites
  368. ENDIF
  369.  
  370. IF hasPastimes = 1
  371.  BACKSTOP BeforeMakingPastimes
  372.  GOSUB OfferToMakePastimes
  373.  SETBACKSTOP BeforeMakingPastimes
  374. ENDIF
  375.  
  376. IF hasNotions = 1
  377.  BACKSTOP BeforeMakingNotions
  378.  GOSUB OfferToMakeNotions
  379.  SETBACKSTOP BeforeMakingNotions
  380. ENDIF
  381.  
  382. IF hasNews = 1
  383.  BACKSTOP BeforeMakingNews
  384.  GOSUB OfferToMakeNews
  385.  SETBACKSTOP BeforeMakingNews
  386. ENDIF
  387.  
  388. IF hasMailBook = 1
  389.  BACKSTOP BeforeMakingMailBook
  390.  GOSUB OfferToMakeMailBook
  391.  SETBACKSTOP BeforeMakingMailBook
  392. ENDIF
  393.  
  394.  
  395. ;xxxxxxxxxxxxxxxxx GET / VERIFY SERVER INFORMATION xxxxxxxxxxxxxxxxxxxxxxxx
  396. GOSUB ServerBegin     ; in SERVER.DAT - get FTP server info
  397.  
  398.  
  399. GOSUB SaveVariables
  400.  
  401. SETTEMP nNumber = dummy_sections
  402. GOSUB Ordinal
  403.  
  404. SETTEMP don_prmpt = "CONGRATULATIONS\nYou have completed the site building process.  "
  405. IF dummy_sections > 0
  406.   IF dummy_sections > 1
  407.     SETTEMP plural = "s"
  408.   ELSE
  409.     SETTEMP plural = ""
  410.   ENDIF
  411.   SETTEMP don_prmpt = don_prmpt,"You did leave ",numeral," section",plural," of the site to fill in later."
  412. ENDIF
  413. SETTEMP don_prmpt = don_prmpt,"\n\nYou can add more sections, or add to sections you have already started, any time.  And, of course, you can make changes to your site any time at all."
  414. SETTEMP don_prmpt = don_prmpt,"\n\nYou can now publish your site (upload the files to the Internet) or you can just call it a day.  When you press the Next button, there will be a brief pause, and then you will be given some choices which include previewing your site, publishing your site, or making changes."
  415. IF havePhotographs = NN
  416.   SETTEMP don_prmpt = don_prmpt,"\n\nWhen you are able to obtain digital photographs of your family, be sure to use the choices from the Homepage Expert to add these pictures to your site.  Then the wizard can make sure they fit just right!"
  417. ELSE
  418.   SETTEMP don_prmpt = don_prmpt,"\n\nIf you decide to change the family photo or the photos for any of the family members, be sure to use the choices from the Homepage Expert to add these pictures to your site.  Then the wizard can make sure they fit just right!"
  419. ENDIF
  420.  
  421. PAGE
  422. TYPE DESCRIPTION
  423. WIZPIC wizpics\wiztheme.gif
  424. DESCRIPTION_RE don_prmpt
  425. NOPREVIOUS
  426. CLOSE
  427.  
  428. STOPWIZARD
  429. RUNSCRIPT "scripts\modify.dat"
  430. ARGUMENT callPosition
  431. ;xxxxxxxxxxxxxxxxxxxxxxxxx  END OF NEW SITE CREATION xxxxxxxxxxxxxxxxxxxx
  432.  
  433.  
  434. #INCLUDE scripts\nwmember.dat
  435. #INCLUDE scripts\mem_pix.dat
  436.  
  437.  
  438. ;xxxxxxxxxxxxxxxxxxxx  GET BASIC MEMBER's INFO xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  439. [GetInitMemberInfo]  ; following routines in NWMEMBER.DAT
  440. SETTEMP nSel = nextMember
  441.  
  442. SETTEMP nNumber = nSel
  443. GOSUB Ordinal
  444. IF nSel = 1
  445.   SETTEMP caption = "Now it's time to enter the ",ordinal," family member into the site.  You begin by entering their first name.\n\n"
  446. ELSE
  447.   SETTEMP caption = "ENTER FAMILY MEMBER ",nSel,"\nAs we continue, you are now going to enter information for the ",ordinal," family member, starting with their first name.\n\n"
  448. ENDIF
  449.  
  450. GOSUB InputBasicMemberInfo    ;name, gender, type, photo
  451.  
  452. GOSUB SaveVariables
  453.  
  454.  
  455. ;xxxxxxxxxxxxxx INPUT ONE OR ALL FAMILY MEMBERS' INFO IN A LOOP xxxxxxxxxxxx
  456. [GetAndBuildFamilyMember]
  457.  
  458. SETTEMP caption = fill_caption
  459.  
  460. ; pick a family member to do
  461. GOSUB PickAFamilyMemberWithNoInfo ; nSel = index of family member to get
  462. GOSUB SetMemberTempVars         ;set the vars we do have
  463.  
  464. GOSUB InputMemberDetails
  465.  
  466. ; build page for this member
  467. IF PageOrSite = "page"
  468.   SETTEMP plural = ""
  469. ELSE
  470.   SETTEMP plural = "s"
  471. ENDIF
  472.  
  473. BUSY 1
  474. ARGUMENT "The wizard will now build the page",plural," for ",name,".  Please be patient for a moment."
  475.  
  476. GOSUB BuildNthFamilyMember
  477. BUSY 0
  478.  
  479. ; sed if all members have info
  480. GOSUB AllFamilyMembersEntered
  481. IF temp <> YY
  482.   SETTEMP temp = YY
  483.  
  484.   BACKSTOP
  485.   PAGE
  486.   WIZPIC wizpics\wizchooz.gif
  487.   NAME temp
  488.   TYPE RADIOBUTTONS
  489.   DESCRIPTION_RE "You can enter the information for another family member now, or skip the remainder of this section and return to it another time."
  490.   ARGUMENT "&Enter information for another member"@Yes
  491.   ARGUMENT "&Skip the remainder of this section"@No
  492.  
  493.   IF temp = YY
  494.     GOTO GetAndBuildFamilyMember    ;loop back for another
  495.   ENDIF
  496. ENDIF
  497.  
  498.  
  499.  
  500. ;xxxxxxxxxxxxxxxxx  MAKE THE MEET THE FAMILY SECTION AND PAGES xxxxxxxxxxxxxxx
  501. [MakeFamilyPages]
  502. SETTEMP nNumber = nMembers
  503. GOSUB Ordinal
  504. BUSY 1
  505. ARGUMENT "The wizard is now adding pages to your Web site for each of the ",numeral," family members you just specified.  Please wait patiently."
  506.  
  507. IF istopic( pageMeetFamily ) = NN
  508.   GOSUB MakeMeetFamilyPage
  509. ENDIF
  510.  
  511. SETTEMP nextMember = 1
  512. GOSUB BuildAllMembersOfFamily
  513.  
  514. GOSUB MakeMeetFamilyPage
  515.  
  516. ; finish building personal list items  Must be called after BUILDLINKS
  517. ;GOSUB FinishBuildingListOfTitlesAndText
  518. BUSY 0
  519.  
  520.  
  521.  
  522. #INCLUDE scripts\offers.dat
  523.  
  524. #INCLUDE scripts\newspage.dat
  525.  
  526. #INCLUDE scripts\picture.dat
  527.  
  528. #INCLUDE scripts\pastimes.dat
  529.  
  530. #INCLUDE scripts\notions.dat
  531.  
  532.  
  533. ;xxxxxxxxxxxxxxxxx  BUILD AND LINK "UNDER CONSTRUCTION" TOPICS xxxxxxxxxxxx
  534. [MakeSectPlchldrs]
  535. BUSY 1
  536. ARGUMENT "The wizard is making 'Under Construction' pages for the sections that you will enter later.  Please stand by!"
  537. SETTEMP prelude = "The ",familyLastName," "
  538. IF hasFavorites = 1 && istopic( pageFavorites ) = NN
  539.   SETPARENTTOPIC pageContents
  540.   SETTEMP pageName = "##Famfavorites"
  541.   SETTEMP pageVar = "pageFavorites"
  542.   SETTEMP pageTitle = prelude,"Family Favorites"
  543.   GOSUB BuildConstructionSite
  544.   SET dummyFavorites = YY
  545.   SET dummy_sections = add(dummy_sections 1)
  546. ENDIF
  547.  
  548. IF hasPastimes = 1 && istopic( pagePastimes ) = NN
  549.   SETPARENTTOPIC pageContents
  550.   SETTEMP pageName = "##Pastimes"
  551.   SETTEMP pageVar = "pagePastimes"
  552.   SETTEMP pageTitle = prelude,"Family Pastimes"
  553.   GOSUB BuildConstructionSite
  554.   SET dummyPastimes = YY
  555.   SET dummy_sections = add(dummy_sections 1)
  556. ENDIF
  557.  
  558. IF hasNotions = 1 && istopic( pageNotions ) = NN
  559.   SETPARENTTOPIC pageContents
  560.   SETTEMP pageName = "##NotionsLinkPage"
  561.   SETTEMP pageVar = "pageNotions"
  562.   SETTEMP pageTitle = prelude,"Family Notions"
  563.   GOSUB BuildConstructionSite
  564.   SET dummyNotions = YY
  565.   SET dummy_sections = add(dummy_sections 1)
  566. ENDIF
  567.  
  568. IF hasNews = 1 && istopic( pageNews ) = NN
  569.   SETPARENTTOPIC pageContents
  570.   SETTEMP pageName = "##FamNewsLinkPage"
  571.   SETTEMP pageVar = "pageNews"
  572.   SETTEMP pageTitle = prelude,"Family News"
  573.   GOSUB BuildConstructionSite
  574.   SET dummyNews = YY
  575.   SET dummy_sections = add(dummy_sections 1)
  576. ENDIF
  577.  
  578. IF hasMailBook = 1 && istopic( pageMailBook ) = NN
  579.   SETPARENTTOPIC pageContents
  580.   SETTEMP pageName = "##FamMailBookPage"
  581.   SETTEMP pageVar = "pageMailBook"
  582.   SETTEMP pageTitle = prelude,"Family and Friends E-Mail Directory"
  583.   GOSUB BuildConstructionSite
  584.   SET dummyMailBook = YY
  585.   SET dummy_sections = add(dummy_sections 1)
  586. ENDIF
  587.  
  588. BUSY 0
  589.  
  590.  
  591.  
  592. #INCLUDE scripts\homepage.dat
  593. #INCLUDE scripts\server.dat
  594.  
  595.  
  596. ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  597. [BuildConstructionSite]
  598. BUILDTOPIC pageName
  599. REPLACE eval( pageVar )
  600. "Under Construction"
  601. none
  602. 1
  603. 0
  604. 1
  605. pageTitle," - Under Construction!"
  606. 0
  607.  
  608. SET eval( pageVar ) = topicfromsymbolic( pageName )
  609.  
  610.  
  611. ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  612. [InitializeVariables]
  613. SETTEMP StartMembers = 0
  614. SETTEMP callPosition = "NewSite"
  615. SET familyPhoto = ""
  616.  
  617. GOSUB CommonInit
  618. GOSUB InitAddMem
  619. GOSUB InitFavVars
  620. GOSUB InitNotnVars
  621. GOSUB ClearNotnVars
  622. GOSUB InitActsVars
  623. GOSUB InitNewsVars
  624. GOSUB InitPixVars
  625.  
  626. [InitProjectVars]
  627. SET pageContents = ""    ; homepage topic id
  628. SET pageLinks = ""    ; links page
  629. SET pageMeetFamily = ""    ; meet family page
  630.  
  631. SET hasGatheredFTPInfo = NN
  632.  
  633. SET assignStyle = ""
  634. SET nMembers = 1
  635. GOSUB InitStyleVars 
  636. SET nMembers = ""
  637.  
  638. [InitStyleVars]
  639. IF nMembers < 12
  640.   SET arrayelement( assignStyle nMembers) = 1
  641.   SET nMembers = add( nMembers 1 )
  642.   GOTO InitStyleVars
  643. ENDIF
  644.  
  645. #INCLUDE scripts\util.dat
  646.  
  647. ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  648. ;xxxxxxxxxxxxxxxxxxxxx  SETUP PROJECT NAME and FILES xxxxxxxxxxxxxxxxxxxxxxxx
  649. [MakeSiteProject]
  650. BUSY 1
  651. ARGUMENT "Please be patient for a few moments.  The wizard is making the disk files for the Web site and building the ",familyLastName," family's home page!"
  652.  
  653. ; HPJ derived from family name
  654. MAKEDIR modulepath( "sites" )
  655. SETTEMP filen = "sites\",familyLastName,".HPJ"
  656. SETTEMP filen = modulepath( filen )
  657. SETTEMP filen = uniquefile( filen )
  658. SETTEMP hpjFile = filen
  659.  
  660. SETTEMP doBackdrop = YY
  661. SET Themecolor = ""
  662. SET backdropColor = ""
  663. SET activeLinkColor = ""
  664. SET visitedLinkColor = ""
  665. SET linkColor = ""
  666. SET Style = "Web Site"
  667.  
  668.  
  669. ;    make the project file
  670. CREATEPROJECT hpjFile
  671. PROJECTSETTINGS
  672. BACKDROP          backdrop
  673. BACKDROPCOLOR     backdropColor
  674. ACTIVELINKCOLOR   activeLinkColor
  675. LINKCOLOR         linkColor
  676. VISITEDLINKCOLOR  visitedLinkColor
  677. EMAIL             email
  678. BACKDROPCOLOR     backdropColor
  679. STYLE             Style
  680. THEMECOLOR        Themecolor
  681. BMROOT            ""
  682.  
  683. ; build a temporary home page to place other topics under it in hierarchy
  684. SETPARENTTOPIC ""
  685. BUILDTOPIC "##DummyContents"
  686. REPLACE pageContents
  687. ""
  688. none                 ; backdrop
  689. 0                    ; level
  690. 0                    ; links
  691. 0                      ; # of fields in template
  692.  
  693. SET pageContents = topicfromsymbolic( "##DummyContents" )
  694. BUILDLINKS
  695.  
  696. ;xxxxxx SAVE DETAILS OF FAMILY SITE CREATED xxxxx
  697. LOADVARIABLES
  698. ARGUMENT modulepath( "WWDATA.VAR" )
  699. ARGUMENT nFamilies
  700. ARGUMENT FamNameList
  701. ARGUMENT ProjNameList
  702. ARGUMENT FamPhotoList
  703.  
  704. SETTEMP nFamilies = add( nFamilies 1 )
  705.  
  706. SETTEMP arrayelement( FamNameList nFamilies ) = familyLastName
  707. SETTEMP arrayelement( ProjNameList nFamilies ) = ProjectFile
  708.  
  709. SETTYPE familyPhoto = normal
  710. SETTEMP arrayelement( FamPhotoList nFamilies ) = familyPhoto
  711. SETTYPE familyPhoto = picture
  712.  
  713. SAVEVARIABLES
  714. ARGUMENT modulepath( "WWDATA.VAR" )
  715. ARGUMENT nFamilies
  716. ARGUMENT FamNameList
  717. ARGUMENT ProjNameList
  718. ARGUMENT FamPhotoList
  719.  
  720. BUSY 0
  721.