Robert Gaggl
e49a0b37dd
removed one ending span tag ( http://project.antville.org/stories/289769 )
2003-02-10 23:41:50 +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
edd1ef1eb6
don't display user e-mail addresses in rss output if user.publishemail is set to false
2003-01-31 16:09:10 +00:00
Robert Gaggl
7ec367eb3e
fixed a bug in evalStory(): setting editableby-property only if modifier equals creator, before it was impossible to switch editablyby to null again
2003-01-28 16:46:25 +00:00
Robert Gaggl
45a09ebde6
fixed a bug in isEditDenied(): modified isEditDenied(): added check for level == null, otherwise a story that is editable for subscribers and contributors is editable for everybody.
2003-01-28 16:45:02 +00:00
Michael Platzer
c84c7d669b
bugfixing: if the story is edited by someoneelse than the creator of the story, then editableby was set to NULL, and therefore the story could only be edited by the creator in the following.
2003-01-24 16:28:22 +00:00
Robert Gaggl
16e068ca81
changed isPostDenied(): posting comments is disabled either if discussions are disabled in site-preferences or for a story (fixes http://helma.org/bugs/show_bug.cgi?id=183 )
2003-01-23 21:12:57 +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
Hannes Wallnöfer
c19d750354
Call activateLinks() after format() in getRenderedContentPart().
...
This is to fix the misbehaviour described here:
http://project.antville.org/stories/254238/
2003-01-13 16:59:01 +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
abf1276967
now using a java.lang.StringBuffer instead of a String-variable when creating the rawcontent of a story
2003-01-02 18:58:05 +00:00
Robert Gaggl
7dbd8cb9e3
renamed to securityFunctions.js
2003-01-02 18:55:12 +00:00
Robert Gaggl
5ce2b214bf
renamed file to securityFunctions.js
2003-01-02 18:51:36 +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
597f5bf86d
added function getNavigationName() that displays either the title of a story/comment or a standard string containing the id
2002-12-17 21:53:09 +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
578ae4537b
removed CDATA tags; added xml encoding parameters, instead
2002-11-28 13:42:18 +00:00
Robert Gaggl
44369d2c33
days are now calculated according to specified site-timezone by using global formatTimestamp()
2002-10-31 21:12:28 +00:00
Hannes Wallnöfer
4eeef5be97
reversed sequence of format() and activateLinks() in getRenderedContentPart(), otherwise link activation didn't work
2002-10-21 19:51:53 +00:00
Hannes Wallnöfer
bd7a120ba2
Directly return integer values in those functions which return a boolean based on
...
an integer flag. This works well and cuts a lot of code, especially the parseInt() which
should not be necessary (if a string was assigned to the integer flag somewhere in
the code, that would be a bug).
2002-10-18 15:51:01 +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
Robert Gaggl
dfe1c9335e
bugfix: replaced macro-handler "story" with "this" because if comments would appear in search-result the story would be displayed instead.
...
(see http://help.antville.org/stories/168518/ )
2002-10-07 16:20:13 +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
894698b91b
set comment collection(s) to cachemode aggressive so the index is only
...
refetched when an add() or remove() operation is performed on this specific
collection, not when any comment anywhere is modified.
2002-09-20 17:22:39 +00:00
Hannes Wallnöfer
73318022b1
Added add() and remove() statements to allow all comment containers to be
...
set to cachemode=aggressive.
2002-09-20 17:21:31 +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
Robert Gaggl
e56ad5cbec
marked reads-property as "private"
2002-08-30 13:38:43 +00:00
Robert Gaggl
014a26f141
allowed fakemail-macro in stories
2002-08-26 10:41:47 +00:00
643b89b5cc
still fiddling with the right conditions for majorUpdate in evalStory()
2002-08-23 15:29:59 +00:00
358a6d8105
fixed a bug that caused exceptions due to content parts that did not exist after creation of a story
2002-08-23 15:06: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
9dd7000fc4
modified dc:subject tag to be hidden if param.subject is null
2002-08-22 13:32:06 +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
e63b982199
replaced in clipping-attribute with a normal space (this was occationally crapped by inserting <wbr />)
2002-08-21 16:08:25 +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
189de5db26
arranged setting of majorUpdate to new content model in evalStory() -- hope it works...
2002-08-20 08:46:45 +00:00
259352c995
splitted renderTextPreview() into clipText() and softwrap()
2002-08-14 17:36:14 +00:00
b778a95a89
revamped rss output:
...
1. moved rss10Channel.skins from global to rss.skin in root and site
2. moved rss10Resource.skin from global to rssResource.skin in root and site
3. moved rss10Item.skin from global to rssItem.skin in root and site
4. moved contents of global/rssTextInput.skin into site/rss10Channel
5. renamd rss10.hac in root and site to rss.hac
2002-08-14 17:21:14 +00:00