Commit graph

119 commits

Author SHA1 Message Date
d07a749608 removed invalid "as" html attribute from param2 in commentcounter_macro 2004-04-22 13:16:01 +00:00
ee5a969fc2 renamed prototypes to uppercase first letter names; this implied renaming of file to Asset and of image to Picture to prevent clashes with helma's internal Image and File prototypes (including management mountpoints) 2004-03-20 18:13:50 +00:00
Robert Gaggl
ff26a78f66 changed content_macro(): use images.get(), otherwise an image whose name is a number (eg. 1001) won't be found
(fixes http://helma.org/bugs/show_bug.cgi?id=328)
2004-02-29 16:53:56 +00:00
Robert Gaggl
db341b6b52 modified content_macro(): pass param.as to getRenderedContentPart() since the latter now accepts different text formats (plaintext, alttext ...) 2004-02-29 16:15:14 +00:00
Robert Gaggl
588927e333 committed matthias platzer's language patch
(see http://grazia.helma.at/pipermail/antville-dev/2004-February/000489.html)
2004-02-16 17:51:26 +00:00
67427f2a37 added missing semicolon 2004-02-02 16:18:11 +00:00
b6ec95973b backlinks_macro:
* removed obsolete code
* updated for using antville library
2004-02-02 16:14:18 +00:00
32323abe65 cleaned up code 2004-01-12 16:44:25 +00:00
00add30ef2 replaced all occurences of "weblog" with "site" 2004-01-12 13:16:37 +00:00
11290106d3 removed deprecated or outdated code by enhancing the macro calls in the skin 2004-01-07 15:04:28 +00:00
83040bd931 * added location_macro
* reduced online_macro to binary output (either "online" or "offline", resp. param settings)
2004-01-02 22:30:39 +00:00
Robert Gaggl
3ee00ed75d - clone is now a method of Object instead of the deprecated ObjectLib object
- modified checkbox rendering: use createCheckBoxParam() instead of createInputParam(),  checkboxes now preserve their status even if the user is redirected back to the form
- use constants for editableby values which makes things more readable
2004-01-02 10:45:01 +00:00
Robert Gaggl
74520e5738 changed since the signatures of some AntvilleLib methods have changed:
- Html.dropDown (first argument must be an object containing all attributes of the opening select tag).
- Html.openLink(only argument is now an object containing all attributes of the a tag).
- Html.link and Html.linkAsString (first argument must be an object containing all attributes of the a tag).
2003-12-17 22:05:52 +00:00
Robert Gaggl
e4d3d20a93 modified backlinks_macro(): use res.push()/res.pop() instead of populating a StringBuffer (for performance reasons) 2003-12-08 21:06:50 +00:00
Robert Gaggl
f8f3f7759f - removed modifier_macro() since it's now a hopobject macro
- removed some trailing spaces
2003-11-23 18:24:44 +00:00
Hannes Wallnöfer
26a436396c Interpret no="" in commentcounter macro as to simply print out nothing
if there are no comments.
2003-09-18 15:49:21 +00:00
Robert Gaggl
fd7fb4989e modified editlink_macro(), deletelink_macro(), onlinelink_macro() and viewlink_macro() since checkXxx methods now throw an exception 2003-09-07 21:09:57 +00:00
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
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