Commit graph

101 commits

Author SHA1 Message Date
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
d9fb8f1ae7 merged changes done in antville_1_0 branch 2003-07-22 12:01:41 +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
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
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
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
ea63ce509a changed "react" to "comment" in commentlink_macro() 2003-03-25 16:07:19 +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
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
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
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
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
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
2c21b69597 re-enabled caching of backlinks 2003-02-06 19:17:32 +00:00
Robert Gaggl
50f84bb12c changed content_macro():
- autoresponse is now only executed if param.autoresponse == "true" (before any value, even "false", would turn autoresponse on)
- removed form-encoding of value for input type text, this is now done in renderInputText()
2003-02-04 12:19:50 +00:00
Robert Gaggl
23de93fde1 changed commentlink_macro(): if discussions are disabled in site-preferences, this macro will not render a link to comment.hac (fixes http://helma.org/bugs/show_bug.cgi?id=183) 2003-01-23 21:11:24 +00:00
8b42344a48 moved modifytime_macro() to hopobject prototype 2003-01-07 10:57:31 +00:00
806918f853 added unescape function for form values retrieved via request.data object 2003-01-05 16:59:58 +00:00
d0d0a3d031 changed the default behaviour how "RE:" is prepended to the title of a subsequent comment; added interface for posting a new story from other locations (e.g. bookmarklets) 2003-01-05 16:38:02 +00:00
Robert Gaggl
ff01391d37 securityFunctions now need the membership-level of a user as second argument 2003-01-02 19:05:03 +00:00
Robert Gaggl
a259f484b7 createtime_macro() now only appears as link if the story was published in site (stories that are published only in a topic are not accessible via days-collection) 2002-12-23 14:58:26 +00:00
Robert Gaggl
153a015ea9 backport from antville.org: topic_macro now retrieves the topic of a story from the site-object to get the correct href() 2002-12-17 21:15:23 +00:00
Robert Gaggl
0e70216db3 changed createtime_macro(): if the optional attribute as="link" is given the createtime of the story is rendered as link to the frontpage of the day. 2002-12-08 17:10:09 +00:00
Robert Gaggl
13ac02c8b1 rewrote backlinks_macro() again:
- added optional attribute "exclude": users can now list servers that should not appear in backlinks-list (comma-delimited strings)
- enabled caching also for empty backlinks to reduce db-traffic
2002-12-08 15:37:03 +00:00
Robert Gaggl
491f429c93 rewrote backlinks_macro():
- backlinks are now limited to 100 (if attribute limit is not set in macro-call)
- changed to java.lang.StringBuffer() instead of using a JS-String
- rendered backlinks are now cached since they won't change until the next scheduler-run
2002-12-08 13:49:33 +00:00
Robert Gaggl
42e0f21580 merged need_for_speed branch 2002-12-01 19:26:40 +00:00
Hannes Wallnöfer
75f41e986e do the format() directly in story.getRenderedContentPart(). This lets <code></code>
work as advertised (i.e. everything within, including macros, is encoded).
Didn't notice any adverse side effects on the history bar or other elements so far.
2002-10-15 18:08:41 +00:00
Hannes Wallnöfer
cb4c493157 Fixed bug that res.data.action was not set in comment forms. 2002-10-05 16:09:56 +00:00
Robert Gaggl
798be2a159 backport from changes on antville.org: added prefetching of comments in comments_macro() 2002-10-01 11:34:59 +00:00
Robert Gaggl
0ee4bc46ef quick fix: manually escaping topic-names in topic-links because topic names containing spaces lead to a 404 2002-10-01 11:17:16 +00:00
Hannes Wallnöfer
87b5cf0558 Backport of antville.org changes:
- Render links to comments directly as stories/storyid#commentid instead of
  doing a redirect via comment/main.hac
- Render name anchor as <a name="..."></a>, since some browsers have problems
  with the empty element representation.
- Select only those columns which are actually used in backlinks macro.
2002-09-20 16:11:17 +00:00
Robert Gaggl
4ec0075410 - removed creator_macro() since that's a hopobject-macro now 2002-09-02 20:25:46 +00:00
a6a09daf3e added imgprefix to topic_macro() to define a prefix when topic is linked as image (default is "topic_") 2002-08-22 15:45:44 +00:00
Robert Gaggl
6e3d1d7563 using encodeForm only when param.value is *not* null ... 2002-08-21 16:31:50 +00:00
Robert Gaggl
9371aaf119 now using encodeForm() for input type=text 2002-08-21 16:10:08 +00:00
Robert Gaggl
a899ed611a fixed a bug that would result in an error when story-comments are displayed on the frontpage of a site (and therefor no story is in path) 2002-08-21 13:21:05 +00:00
259352c995 splitted renderTextPreview() into clipText() and softwrap() 2002-08-14 17:36:14 +00:00
Robert Gaggl
765058116c changed discussions_macro(): now this macro renders a checkbox plus a hidden input. this is needed to be able to check if the checkbox was embedded in story/edit.skin or not). 2002-08-09 11:53:32 +00:00
5d52401789 commented out two lines in content_macro() to prevent titles from not being displayed (we can be sure that the story will be transformed into the new model, anyway) 2002-08-01 20:00:53 +00:00
aeb6e84173 modified commentcounter_macro() again. added "as" parameter.
if set to "link" *every* amount of comments will be displayed as link.
if set to "text" only the amount of comments is displayed.
without param.as a link is displayed only if the amount is > 0.
2002-07-29 16:00:47 +00:00
6ac428114e modified commentcounter_macro() to display nothing for a zero set of comments except param.no is not null 2002-07-29 15:29:27 +00:00
fc4b22ebf2 fixed bug in commentcounter_macro() that caused invalid markup to be output 2002-07-29 13:04:45 +00:00
efabd4ac2c extended topic_macro() to display the topic as link, image (if available) or plain text. 2002-07-26 17:09:40 +00:00
f692940b3a now autotitles work also in (1+n)-th level comments 2002-07-26 13:32:22 +00:00
824dde41f8 fixed a bug that prevented titles from being saved in content_macro() 2002-07-26 13:21:50 +00:00
427abe44dd added first trial to output a title like "Re: title of previous posting" to a new posting 2002-07-26 12:44:25 +00:00