Commit graph

316 commits

Author SHA1 Message Date
Hannes Wallnöfer
c40865a458 Do not set checked to 1 in the parameter for addToFront macro, since this will
result in a checkbox that is always checked. When we get a form submission,
always use the values from the form.
2003-09-04 15:13:08 +00:00
Robert Gaggl
1bb142aa57 initial check-in: merged former .hac files into single actions.js files 2003-08-02 12:20:05 +00:00
Robert Gaggl
282261b81d added property "content_xml" plus the mountpoint "content" that manages the xml encoded content of stories/comments 2003-08-02 12:18:55 +00:00
Robert Gaggl
4dc576c5e0 - added checkAccess() that is called by onRequest() to check if a user is allowed to request a certain action
- modified permission check methods: they now return an Exception object in case a certain action is denied
2003-08-02 12:12:34 +00:00
Robert Gaggl
91ed3e0746 now calling content_macro instead of title/text_macro 2003-08-02 12:01:33 +00:00
Robert Gaggl
0ce6a49299 - changed to use AntvilleLib methods
- added constructor function
- modified evalStory() and evalComment(): now call extractContent to get the submitted content, content is now handled by propertymgr (mountpoint "content")
- removed methods getContent(), setContent(), getContentPart(), setContentPart() since content is now handled by propertymgr
- methods now throw an Exception object in case something went wrong or a Message object as positive result
2003-08-02 11:44:47 +00:00
Robert Gaggl
ef4fe87262 now using story.content_macro() as link 2003-08-02 11:14:51 +00:00
Robert Gaggl
192de4e187 - changed to use AntvilleLib methods
rewrote content_macro():
- the content of a story/comment is now handled by mountpoint "content" (propertymgr).
- removed autoresponse functionality: this should be done in a separate macro (if needed)

- changed some macros because site preferences are now xml-encoded
- removed author_macro(), image_macro() and thumbnail_macro() which were only left for backwards-compatibility
- removed id_macro() since this is part of AntvilleLib now
- removed justintopic_macro()
2003-08-02 11:08:09 +00:00
Robert Gaggl
81acf4307b use story.content_macro() instead of story.title, story.text 2003-08-02 10:44:44 +00:00
Robert Gaggl
0ff833ada3 - changed from input type="button" to type="submit"
- changed attribute names to html-conform ones (with -> cols, height -> rows)
- now using attribute "class" instead of attribute style where it defines a css class
2003-08-02 10:42:16 +00:00
Robert Gaggl
81f0c559e7 removed because .hac-files were merged into single actions.js files 2003-08-02 10:24:52 +00:00
Robert Gaggl
d9fb8f1ae7 merged changes done in antville_1_0 branch 2003-07-22 12:01:41 +00:00
Hannes Wallnöfer
112d619958 Replace FESI tryEval with real try statements. 2003-07-08 15:04:08 +00:00
Hannes Wallnöfer
bdcda3369d Changed RegExp constructors to include the global ("g")
and ignoreCase ("i") flags as required by Rhino.
2003-07-08 14:53:57 +00:00
Hannes Wallnöfer
fdeb78e7ff Check if partLastRendered is defined before comparing it.
Otherwise, Rhino will always evaluate this condition to false.
2003-07-08 14:38:08 +00:00
88bc7dbf53 added support for day header (ie. date will only be displayed once each day) 2003-06-05 14:31:34 +00:00
41920cf416 put everything inside <dc:rights> tags into prefix/suffix to ensure xml encoding of copy sign (c) 2003-05-29 16:09:07 +00:00
Hannes Wallnöfer
afee833bcb Allow for text parameters in story.onlinelink and topic.addstory macros 2003-05-09 14:12:06 +00:00
Hannes Wallnöfer
3b6043d50e Allow for stories with online-status 1 not to have a topic. (see log msg for
story/objectFunctions.js and storymgr/objectFunctions.js)
2003-04-14 14:23:33 +00:00
Hannes Wallnöfer
0b7ea305ae Do not complain about missing topic when editing or creating a story,
even if its onlinestatus is 1. This error isn't right anymore because
there isn't a "add to topic" anymore, just a "add to front page" which
the user has deselected. Also, there are enough cases where an author
would want a story to be neither on the frontpage nor in a topic.
2003-04-14 14:15:08 +00:00
Hannes Wallnöfer
8dfc94c560 Redirect to comment anchor (#comment-id) after creating a comment 2003-04-14 14:10:01 +00:00
Hannes Wallnöfer
629b8b8524 Check for exsistence of this.creator to make script more stable. 2003-04-11 12:51:07 +00:00
7a8576a912 trimmed part variable if the story text is used as linked title in content_macro() 2003-04-10 15:26:57 +00:00
Robert Gaggl
6becf4b3bc modified content_macro(): display three dots if title should appear as link and both title and text are empty after stripping tags 2003-04-10 14:58:15 +00:00
Robert Gaggl
bb9758c1b4 simplified evalStory(): use the second parameter onlinedefault if param.online is null 2003-04-07 21:01:28 +00:00
Robert Gaggl
0ef65de9de changed justintopic_macro() and addtofront_macro(): both now render a checkbox plus a hidden input ("onlinedefault") so that the editor "remembers" the users selection in case of a redirect back into editing form 2003-04-07 21:00:41 +00:00
be2107265c tweake with the "link" link and &nbsp; as macro prefix 2003-03-25 16:11:21 +00:00
ea63ce509a changed "react" to "comment" in commentlink_macro() 2003-03-25 16:07:19 +00:00
46cfd039f3 moved commentlink macro back in the skin 2003-03-25 16:06:30 +00:00
50aa0db455 added conditions in evalStory() to provide backwards compatibility between justintopic and addtofront macros 2003-03-25 15:59:28 +00:00
5f2cefe81b added conditions in justintopic_macro() and addtofront_macro() to provide backwards compatibility (ie. old skins using justintopic macro will continue to work) 2003-03-25 15:56:07 +00:00
31f954a4d5 replaced "display" with "show" 2003-03-25 15:54:09 +00:00
21d4a28959 added trim() function also where content parts of comments are set 2003-03-21 16:45:39 +00:00
d863af23e0 added trim() function wherever content parts are set 2003-03-21 16:13:34 +00:00
5432cbe5b2 * modified story editor according to hannes' screenshot at http://help.antville.org/images/hns-editor
* added addtofront_macro() to display a checkbox that works vice versa to justintopic_macro()
* always set this.status in storymgr/create_action() to let the checkbox "know" whether it has to be checked
(known bugs: when editing a story neither this nor the "comments allowed" checkbox memorize their state when an error occurs.)
2003-03-20 18:53:55 +00:00
Robert Gaggl
03ca624456 removed debugging output 2003-03-18 10:03:49 +00:00
Robert Gaggl
366531fada rescueText() is now also called if the publish-button was pressed 2003-03-17 19:28:56 +00:00
Robert Gaggl
f664dc64d6 changed content_macro(): properties of req.data (if existing) now override the storys property values. this change was necessary because otherwise the rescue mechanism for stories/comments wouldn't work propertly (see http://project.antville.org/stories/318015/#318478) 2003-03-17 19:27:29 +00:00
Robert Gaggl
fc8583502c restructured evalStory(): now the submitted values are stored only after all checks have been passed. although the code is harder to read now it prevents changes to story-content being saved even if the user cancelled the editing process later on. together with the caching of story-contents this also might have lead to a difference between display and actual content. 2003-03-17 19:22:12 +00:00
Hannes Wallnöfer
8d2e78643e Reworked basic inner story and comment skins.
Spacing should be better now.
Skins should be easier to understand and customize.
Used <div> tags wherever possibe instead of <span><br>
Checked for XHTML 1.0 Transitional validity.
2003-03-14 10:59:00 +00:00
524d7a38a3 still fixed html where necessary to achieve maximum xhtml conformance; furthermore i tried to find a more expressive title for every page output (most of them were set to the site title only which does not help a lot when navigating with the browser history); last but not least many editor forms where adapted to gain a concistent general layout. 2003-03-07 19:27:48 +00:00
8de1505fda fixed bug in onlinelink_macro() that caused invalid html attribute (mode="toggle") to appear;
changed "link me" to "link", "place your comment" and "post your answer" to "react";
changed some cases of some words;
added id_macro() to get the id of a story (to display the code for the story macro)
2003-03-05 18:50:32 +00:00
50890759ad validated almost every page (at least apart from the system management stuff) with the w3c validator at http://validator.w3.org and modified the skins where necessary. furthermore i tried to arrange some layouts (files, images, polls) to better and more consistently harmonize with the general antville appearance. 2003-03-05 18:39:37 +00:00
073b72fb84 changed story editor text to lowercase to be more consistent 2003-03-03 13:58:53 +00:00
Robert Gaggl
2d20fb21c5 - fixed a bug in content_macro(): fetching a value from req.data didn't work because the properties are prefixed with "content_"
- removed url_macro() - this is a hopobject-macro now
2003-03-03 12:17:18 +00:00
Robert Gaggl
6cea6bc0d0 edit-action now fits the needs of the new story-editor 2003-02-14 13:48:39 +00:00
Robert Gaggl
7d524ed576 implemented new story-editor (as done on twoday.net) 2003-02-14 13:48:10 +00:00
Robert Gaggl
82cba4c688 - changed editableby_macro(): it now produces three radio-buttons instead of one dropdown-box
- implemented justintopic_macro()
(contributed by michi platzer)
2003-02-14 13:46:52 +00:00
Robert Gaggl
9a305be588 modified evalStory because story/edit.skin changed, but it's still backwards-compatible to the old story-editor 2003-02-14 13:44:40 +00:00
b458c2cab1 removed shortcuts from antville. support of shortcut is now optional via zip module 2003-02-11 16:54:07 +00:00