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

  1. ; NOTIONS.DAT   Create/edit notions section
  2. [AddToNotions]
  3. ;called from NEW_SITE and MODSTART for adding family notions section
  4. ;called from NWMEMBER for adding personal notions
  5.  
  6. SETTEMP notionTypeVar = notionVarRoot,"notionType",1
  7. SET eval( notionTypeVar ) = "Humor"
  8. SETTEMP notionTypeVar = notionVarRoot,"notionType",2
  9. SET eval( notionTypeVar ) = "Political"
  10. SETTEMP notionTypeVar = notionVarRoot,"notionType",3
  11. SET eval( notionTypeVar ) = "Generic"
  12.  
  13. IF notionVarRoot = ""
  14.   SETTEMP wizPic = "wizpics\wiznotn.gif"
  15. ELSE
  16.   SETTEMP wizPic = "wizpics\wizpnotn.gif"
  17. ENDIF
  18.  
  19. GOSUB GetNewNotionsData
  20. SETTEMP sectionCompleted = 1
  21.  
  22.     ; only build if these are family notions
  23. IF notionVarRoot = ""
  24.   BUSY 1
  25.   ARGUMENT "Please be patient now while the wizard adds the new family notion pages to your site."
  26.   GOSUB BuildFamNotionPages
  27.   IF NotnSectnExists = NN || dummyNotions = YY
  28.    GOSUB BuildHomePage
  29.   ENDIF
  30.   IF dummyNotions = YY
  31.     SET dummy_sections = subtract(dummy_sections 1)
  32.     SET dummyNotions = ""
  33.   ENDIF
  34.   BUILDLINKS
  35.   BUSY 0
  36.   SET hasNotions = 1
  37. ENDIF
  38.  
  39.  
  40. ;xxxxxxxxxxxxxxxxxxxxx REPLACE A NOTION PAGE xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  41. [ReplaceANotion]
  42. IF beenOnce <> 1
  43.   SETTEMP inpL2 = 1
  44. ELSE
  45.   SETTEMP inpL2 = 4
  46. ENDIF
  47.  
  48. SETTEMP base = notionVarRoot,"notionTitle"
  49.  
  50. SETTEMP notionTitle1Var = base,"1"
  51. SETTEMP notionTitle2Var = base,"2"
  52. SETTEMP notionTitle3Var = base,"3"
  53.  
  54. IF pers_fam_mode = "personal"
  55.   SETTEMP pxq = " news items or stories"
  56.   SETTEMP wizPic = "wizpics\wizpnotn.gif"
  57. ELSE
  58.   SETTEMP pxq = " notions (opinions or stories)"
  59.   SETTEMP wizPic = "wizpics\wiznotn.gif"
  60. ENDIF
  61.  
  62. BACKSTOP LastTop
  63. PAGE
  64. TYPE RADIOBUTTONS
  65. WIZPIC_RE wizPic
  66. NAME inpL2
  67. DESCRIPTION_RE "PICK ONE TO REPLACE\nYou can replace one of these ",pers_fam_mode,pxq," from the list below with a new one of the same type, or a new one of a different type.\n\nSelect one of the",pxq," from the list below to replace."
  68. ARGUMENT "&1. ",eval( notionTitle1Var )@1
  69. ARGUMENT "&2. ",eval( notionTitle2Var )@2
  70. ARGUMENT "&3. ",eval( notionTitle3Var )@3
  71. ARGUMENT "&Done changing the notions."@4
  72. NOPREVIOUS
  73.  
  74. SETTEMP notnRplc = 1
  75. IF inpL2 <> 4
  76.   SETTEMP nNotion = inpL2
  77.   ; get data for notion to replace
  78.   BACKSTOP
  79.   GOSUB GetNotionData
  80.   SETBACKSTOP LastTop
  81.  
  82.   IF notionVarRoot = ""
  83.     SETTEMP NotionBuild = YY
  84.   ELSE
  85.     SETTEMP doBuild = YY
  86.   ENDIF
  87.  
  88.   SETTEMP beenOnce = 1
  89.   GOTO ReplaceANotion    ;do another
  90. ENDIF
  91. SETTEMP notnRplc = 0
  92. SETTEMP beenOnce = 0
  93.  
  94.  
  95. ;xxxxxxxxxxxxxxxxxxxxxxx INPUT NEW NOTIONS SECTION xxxxxxxxxxxxxxxxxxxxxxx
  96. [GetNewNotionsData]    ;called from above for Family
  97.             ;and from NWMEMBER for personal news/views
  98. ;      set   notionVarRoot   before coming here
  99.  
  100. IF skipExplanations = NN
  101.   SETTEMP wlc_notn = "WELCOME TO THE "
  102.   SETTEMP wlc_notn1 = "\n\nOne of the sections on your "
  103.   IF pers_fam_mode = "personal"
  104.     SETTEMP notPart1 = " part of the Web site is for Personal News and Views.\n\nYou can use this section to spread news of any type and"
  105.     SETTEMP now_prompt = wlc_notn,"PERSONAL NEWS AND VIEWS",wlc_notn1,pers_fam_mode,notPart1
  106.   ELSE
  107.     SETTEMP notPart1 = " Web site is for the 'Family Notions' --  a forum to tell stories, express opinions, or just share.\n\nThis section is where you get"
  108.     SETTEMP now_prompt = wlc_notn,"FAMILY NOTIONS SECTION",wlc_notn1,pers_fam_mode,notPart1
  109.   ENDIF
  110.   SETTEMP now_prompt = now_prompt," to share some of your views (political and otherwise) and outlooks with others.  It's an open form of expression.  You can write anything you like.\n\nThis section will contain three items.\n\nEach of the three items can be chosen from a category, such as 'Humor', 'Political' and 'Generic'.  The category helps the wizard select the proper page decorations.\n\nYou can change these later by modifying what you wrote or by simply replacing an entire item."
  111.  
  112.   BACKSTOP
  113.   PAGE
  114.   WIZPIC_RE wizPic
  115.   TYPE DESCRIPTION
  116.   DESCRIPTION_RE now_prompt
  117. ENDIF
  118.  
  119. SETTEMP passageVar = "nNotion"
  120. SETTEMP lastPassage = 0
  121.  
  122. ; get data for each notion
  123. BACKSTOP Last1
  124. SETTEMP nNotion = 1
  125. GOSUB AdvancePassage
  126. GOSUB GetNotionData
  127. SETBACKSTOP Last1
  128.  
  129. BACKSTOP Last2
  130. SETTEMP nNotion = 2
  131. GOSUB AdvancePassage
  132. GOSUB GetNotionData
  133. SETBACKSTOP Last2
  134.  
  135. BACKSTOP Last3
  136. SETTEMP nNotion = 3
  137. GOSUB AdvancePassage
  138. GOSUB GetNotionData
  139. SETBACKSTOP Last3
  140.  
  141.  
  142.  
  143. ;xxxxxxxxxxxxxxxxxx INPUT A SINGLE NOTION xxxxxxxxxxxxxxxxxxxxxxxx
  144. [GetNotionData]
  145. GOSUB GetNotionTempVars
  146.  
  147. SETTEMP notionType = eval( notionTypeVar )
  148. SETTEMP notionTitle = eval( notionTitleVar )
  149. SETTEMP notionLine = eval( notionLineVar )
  150. SETTEMP notionText = eval( notionTextVar )
  151. SETTEMP notionLink = eval( notionLinkVar )
  152. SETTYPE eval( notionPictureVar ) = normal
  153. SETTEMP notionPicture = eval( notionPictureVar )
  154.  
  155. SETTEMP oldType = notionType
  156.  
  157. SETTEMP nNumber = nNotion
  158. GOSUB Ordinal
  159.  
  160. IF notnRplc = 1
  161.   SETTEMP txt1n = "\n\nPick a category for the item that will replace this "
  162.   SETTEMP txt1nA = "REPLACE A NOTION.   You are now replacing the ",ordinal," of your ",pers_fam_mode," notions."
  163. ELSE
  164.   SETTEMP txt1n = "\n\nSelect the category for this "
  165.   SETTEMP txt1nA = "ADD A NOTION.   You are now entering the ",ordinal," of three items."
  166. ENDIF
  167. SETTEMP txt2n = ".  The type you choose is used to determine how the page for this item on the Web site is styled and what questions you will be asked to complete this item."
  168. IF pers_fam_mode = "personal"
  169.   SETTEMP txt3n = pers_fam_mode," news and views item"
  170. ELSE
  171.   SETTEMP txt3n = pers_fam_mode," notion item"
  172. ENDIF
  173. SETTEMP notnPrmpt = txt1nA,txt1n,txt3n,txt2n
  174.  
  175. ; get a new type for the notion
  176. IF notionType == ""
  177.   SETTEMP notionType = "Humor"
  178. ENDIF
  179.  
  180. PAGE
  181. WIZPIC_RE wizPic
  182. TYPE RADIOBUTTONSWITHTEXT
  183. NAME notionType
  184. DESCRIPTION_RE notnPrmpt
  185. ARGUMENT "&Humor"@Humor@"\nGot a funny story or a joke you would like to share?\n\nChoose this category for this item to have the page created with a style that will work with your funny story."
  186. ARGUMENT "P&olitical"@Political@"\nIf you want this item styled like a political comment, choose this item.\n\nThis choice only affects the look of the page on the Web site, not your opinion."
  187. ARGUMENT "&Generic"@Generic@"\nOK.  So it's not a joke or a political opinion!\n\nChoose this category for anything else that you want to express yourself about.  It creates a page with the look of an essay."
  188.  
  189. IF notionType <> oldType && oldType <> ""
  190.   SETTEMP notionTitle = ""
  191.   SETTEMP notionLine = ""
  192.   SETTEMP notionText = ""
  193.   SETTEMP notionLink = ""
  194.   SETTEMP notionPicture = ""
  195. ENDIF
  196.  
  197. IF notionVarRoot <> "" && notionLine = ""     ;supply by-line for personal
  198.   SETTEMP notionLine = name," ",familyLastName
  199. ENDIF
  200.  
  201. IF notionType = "Humor"
  202.   GOSUB GetJoke
  203. ENDIF
  204.  
  205. IF notionType = "Political"
  206.   GOSUB GetPoliticalComment
  207. ENDIF
  208.  
  209. IF notiontype = "Generic"
  210.  GOSUB GetGenericComment
  211. ENDIF
  212.  
  213. SET eval( notionTypeVar ) = notionType
  214. SET eval( notionLineVar ) = notionLine
  215. SET eval( notionTitleVar ) = notionTitle
  216. SET eval( notionTextVar ) = notionText
  217. SET eval( notionLinkVar ) = notionLink
  218. COPY eval( notionPictureVar ) = notionPicture
  219.  
  220.  
  221. ;xxxxxxxxxxxxxxxx INPUTS FOR SPECIFIC NOTION TYPES xxxxxxxxxxxxxxxxx
  222. [GetJoke] ;xxxxxxxxxxxxxx JOKE xxxxxxxxxxx
  223. BACKSTOP
  224. PAGE
  225. TYPE MULTIAND2EDITS
  226. WIZPIC wizpics\wizhumor.gif
  227. DESCRIPTION Start by entering a title for your joke, humorous anecdote, or observation.  A catchy title (without giving away any punchlines) will get your readers' attention quickly.\n\nEnter the title, the name of the person contributing this one, and the text of the joke or story.
  228. ARGUMENT &Title:@notionTitle
  229. ARGUMENT &By:@notionLine
  230. ARGUMENT &The text:@notionText
  231.  
  232. IF notionTitle = "" || notionTitle = not_humor
  233.  SET notionTitle = not_humor
  234.  SET notionLink = not_humor
  235. ELSE
  236.  SET notionLink = not_humor,": ",notionTitle
  237. ENDIF
  238.  
  239. SETTYPE notionPicture = normal
  240. IF notionPicture = ""
  241.   SET notionPicture = modulepath( "clip_art\hobbies\joker.gif" )
  242. ENDIF
  243.  
  244. BACKSTOP
  245. PAGE
  246. NOSPELLCHECK
  247. WIZPIC wizpics\wizhumor.gif
  248. TYPE PICTUREANDCAPTION
  249. NAME notionPicture
  250. PROMPT Pi&cture:
  251. DESCRIPTION_RE notion_p2
  252. ARGUMENT &Title:@notionTitle
  253.  
  254.  
  255. [GetPoliticalComment] ;xxxxxxxxxxxxxx POLITICS xxxxxxxxxxx
  256. BACKSTOP
  257. PAGE
  258. TYPE MULTIAND2EDITS
  259. WIZPIC wizpics\wizpoltc.gif
  260. DESCRIPTION Start by entering a title for your political opinion or observation.  A catchy title helps to get people's attention.\n\nFill in the title, the name of the person contributing this, and the text of the opinion or story.
  261. ARGUMENT &Title:@notionTitle
  262. ARGUMENT &Observed by:@notionLine
  263. ARGUMENT &Anecdote information:@notionText
  264.  
  265. IF notionTitle = "" || notionTitle = not_pol
  266.  SET notionTitle = not_pol
  267.  SET notionLink = not_pol
  268. ELSE
  269.  SET notionLink = not_pol,": ",notionTitle
  270. ENDIF
  271.  
  272. SETTYPE notionPicture = normal
  273. IF notionPicture = ""
  274.  SET notionPicture = modulepath( "clip_art\hobbies\chess.gif" )
  275. ENDIF
  276.  
  277. BACKSTOP
  278. PAGE
  279. NOSPELLCHECK
  280. TYPE PICTUREANDCAPTION
  281. WIZPIC wizpics\wizpoltc.gif
  282. NAME notionPicture
  283. DESCRIPTION_RE notion_p2
  284. PROMPT P&icture:
  285. ARGUMENT &Title:@notionTitle
  286.  
  287.  
  288.  
  289. [GetGenericComment] ;xxxxxxxxxxxxxx STORY xxxxxxxxxxx
  290. BACKSTOP
  291. PAGE
  292. TYPE MULTIAND2EDITS
  293. WIZPIC wizpics\wizgnric.gif
  294. DESCRIPTION Start by entering a title for your anecdote or observation.  Do you have a catchy title?\n\nFill in the title, the name of the person contributing this story, and the text of the opinion, viewpoint, or story you want to share.
  295. ARGUMENT Ane&cdote:@notionTitle
  296. ARGUMENT &Observed by:@notionLine
  297. ARGUMENT &Anecdote information:@notionText
  298.  
  299. IF notionTitle = "" || notionTitle = not_gen
  300.  SET notionTitle = not_gen
  301.  SET notionLink = not_gen
  302. ELSE
  303.  SET notionLink = not_gen,": ",notionTitle
  304. ENDIF
  305.  
  306. SETTYPE notionPicture = normal
  307. IF notionPicture = ""
  308.   SET notionPicture = modulepath( "clip_art\designer\faces.gif" )
  309. ENDIF
  310.  
  311. BACKSTOP
  312. PAGE
  313. NOSPELLCHECK
  314. WIZPIC wizpics\wizgnric.gif
  315. TYPE PICTUREANDCAPTION
  316. NAME notionPicture
  317. DESCRIPTION_RE notion_p2
  318. PROMPT P&icture:
  319. ARGUMENT &Title:@notionTitle
  320.  
  321. ;xxxxxxxxxxxxxxxxx  END OF NOTION INPUTS xxxxxxxxxxxxxxxxxxxxxxxxx
  322.  
  323.  
  324. ;xxxxxxxxxxxxxxxxxxx BUILD THE NOTION PAGES xxxxxxxxxxxxxxxxxxxxxx
  325. [BuildFamNotionPages]           ;xxxxxxFAMILY NOTIONS LINK PAGE xx
  326. SETPARENTTOPIC pageContents
  327. SETTEMP pageNameVar = "pageNotions"
  328. SETTEMP caption = "The ",familyLastName," Family Notions"
  329. SETTEMP notionVarRoot = ""
  330. SETTEMP pageName = "##NotionsLinkPage"
  331. SETTEMP photo = ""
  332. COPY photo = familyPhoto
  333. SETTEMP main_template = "Notions"
  334. GOSUB BuildNotionPages
  335.  
  336.  
  337. [BuildPersNotionPages]         ;xxxxxPERSONAL NOTION LINK PAGE xx
  338.         ;called only from NWMEMBER.DAT
  339. SETPARENTTOPIC memberLinkPage
  340. SETTEMP caption = "News and Views of ",name," ",familyLastName
  341. SETTEMP notionVarRoot = "member",nSel
  342. SETTEMP pageName = "##PersNewsMember",nSel
  343. SETTEMP photoVar = "memberPhoto",nSel
  344. COPY photo = eval( photoVar )
  345. SETTEMP main_template = "Personal News and Views"
  346. GOSUB BuildNotionPages
  347.  
  348.  
  349.  
  350. [BuildNotionPages]  ;xxxxxxxx INDIVIDUAL NOTION PAGESxxx
  351.  
  352. SETTEMP notionLinkTextVarRoot = notionVarRoot,"notionLink"
  353. SETTEMP notionLinkTextVar1 = notionLinkTextVarRoot,1
  354. SETTEMP notionLinkTextVar2 = notionLinkTextVarRoot,2
  355. SETTEMP notionLinkTextVar3 = notionLinkTextVarRoot,3
  356.  
  357. SETTEMP notionPageVarRoot = notionVarRoot,"notionPage"
  358. SETTEMP notionPageVar1 = notionPageVarRoot,1
  359. SETTEMP notionPageVar2 = notionPageVarRoot,2
  360. SETTEMP notionPageVar3 = notionPageVarRoot,3
  361.  
  362. IF notionVarRoot = ""      ;not a personal notion
  363.   COPY temp_placard = not_pix
  364.   SETTEMP name_field = familyLastName
  365. ELSE
  366.   SETTEMP temp_placard = pnot_pix
  367.   SETTEMP name_field = name
  368. ENDIF
  369. SETTYPE temp_placard = picture
  370. SETTYPE photo = picture
  371.  
  372. ; build the notions link page first
  373. BUILDTOPIC pageName
  374. REPLACE eval( pageNameVar )
  375. main_template
  376. none         ; backdrop
  377. 1           ; level
  378. 3            ; links
  379. eval( notionPageVar1 )
  380. eval( notionPageVar2 )
  381. eval( notionPageVar3 )
  382. 7            ; # of fields
  383. caption
  384. eval( notionLinkTextVar1 )
  385. eval( notionLinkTextVar2 )
  386. eval( notionLinkTextVar3 )
  387. photo
  388. temp_placard
  389. name_field
  390.  
  391. SET eval( pageNameVar ) = topicfromsymbolic( pageName )
  392.  
  393. SETTEMP notionParent = topicfromsymbolic( pageName )
  394.  
  395. ; build the three linked notion pages
  396. SETTEMP nNotion = 1
  397. GOSUB BuildANotionPage
  398.  
  399. SETTEMP nNotion = 2
  400. GOSUB BuildANotionPage
  401.  
  402. SETTEMP nNotion = 3
  403. GOSUB BuildANotionPage
  404.  
  405.  
  406.  
  407. [BuildANotionPage]
  408. GOSUB GetNotionTempVars
  409.  
  410. SETTEMP pageName = "##Notion",nNotion,notionVarRoot
  411. SETTEMP notionTemplate = "Notions - ",eval( notionTypeVar )
  412. SETTYPE eval( notionPictureVar ) = picture
  413. SETSCALE eval( notionPictureVar ) = 200 150
  414.  
  415. SETPARENTTOPIC notionParent
  416.  
  417. BUILDTOPIC pageName
  418. REPLACE eval( notionPageVar )
  419. notionTemplate    ;template
  420. none        ;backdrop
  421. 1           ;level
  422. 0           ;# links
  423. 4           ;# fields
  424. eval( notionTitleVar )
  425. eval( notionLineVar )
  426. eval( notionTextVar )
  427. eval( notionPictureVar )
  428.  
  429. SET eval( notionPageVar ) = topicFromSymbolic( pageName )
  430.  
  431. ;xxxxxxxxxxxxxxxxx END OF BUILD NOTION PAGES xxxxxxxxxxxxxxxxxx
  432.  
  433.  
  434. [InitNotnVars]
  435. SETTEMP not_humor = "A Funny Thought"
  436. SETTEMP not_pol = "A Political Comment"
  437. SETTEMP not_gen = "Something to Share"
  438. SETTEMP notion_p2 = "Do you have a picture you would like to include with this page?  If you do, select one to use now.  If you don't have one available now (in digital format), you can add it later."
  439.  
  440. [ClearNotnVars]
  441. SETTEMP nNotion = ""
  442. SETTEMP notionType = ""
  443. SETTEMP notionTitle = ""
  444. SETTEMP notionLine = ""
  445. SETTEMP notionText = ""
  446. SETTEMP notionPicture = ""
  447.  
  448. [GetNotionTempVars]
  449. SETTEMP notionTypeVar = notionVarRoot,"notionType",nNotion
  450. SETTEMP notionTitleVar = notionVarRoot,"notionTitle",nNotion
  451. SETTEMP notionLineVar = notionVarRoot,"notionLine",nNotion
  452. SETTEMP notionTextVar = notionVarRoot,"notionText",nNotion
  453. SETTEMP notionLinkVar = notionVarRoot,"notionLink",nNotion
  454. SETTEMP notionPictureVar = notionVarRoot,"notionPicture",nNotion
  455. SETTEMP notionPageVar = notionVarRoot,"notionPage",nNotion
  456.