Commit graph

76 commits

Author SHA1 Message Date
94cb4c0a22 * check for param.as == "url" and/or param.as == "link" wherevery it (hopefully) makes sense
* cleaned up a little bit (code, comments)
2004-07-30 13:34:13 +00:00
Robert Gaggl
ceee8bcbdb modified getRenderedContentPart(): use the story's site in res.handlers.site during
rendering, otherwise global macros (eg. image) won't work correctly (fixes bug 270)
2004-05-08 15:37:33 +00:00
0d993df71c temporarily fixed topic feature with a quick hack 2004-04-28 10:10:43 +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
c5e89b3e11 modified getRenderedContentPart(): it now accepts a second parameter defining any special formatting of the content part (currently "plaintext" and "alttext") 2004-02-29 16:16:37 +00:00
Robert Gaggl
fabe74b211 - changed removal of comments: use comment.remove() instead of calling the parent's remove method (which is deprecated in helma)
- "notify" all comment collections with removeChild() because of aggressive cachemode (otherwise they won't be reloaded)
2004-01-16 11:47:42 +00:00
32323abe65 cleaned up code 2004-01-12 16:44:25 +00:00
54878c2e4a check if topic name is already reserved word (e.g. action or function name) and display error message if so 2004-01-03 17:06:39 +00:00
Robert Gaggl
d24ec09b93 use constant for editableby value which makes things more readable 2004-01-02 10:43:30 +00:00
Hannes Wallnöfer
31041ab383 Make sure rawcontent field is set on stories and comments when the content is updated.
This fixes the bug that search doesn't work on Antville 1.1
2003-12-01 16:03:13 +00:00
Robert Gaggl
4d2d82ef63 bugfix in evalStory(): assign this._id instead of this.id to result object 2003-10-30 12:39:53 +00:00
Robert Gaggl
b2f57212f5 check if notification is enabled for a site by calling isNotificationEnabled() 2003-10-11 10:41:16 +00:00
7102df3f18 all notification e-mails are now sent via site/sendNotification function
(ie. story/sendNotification was removed.)
2003-10-08 16:17:22 +00:00
9bc0fa1502 * added queue method to Mail prototype for sending e-mail notifications via scheduler
* added flushMailQueue to send mail objects contained in the mail queue (ie. app.data.mailqueue)
* added call for flushMailQueue from the scheduler function
* changed mail.send() to mail.queue() in sendNotification functions
2003-10-07 14:44:44 +00:00
9cd4aa4b7d implemented first version of e-mail notification using kris' contribution (with slight modifications):
* since site preferences are stored as xml the corresponding code had to be adjusted
* currently, no notification is sent if a story's status changes from offline to online (abuse factor is too high)
* there's only one global notification skin used for the mail body
* the sender is always set to sys_email to avoid the bounce problem we already had with registration mails
2003-10-06 16:28:03 +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
Hannes Wallnöfer
112d619958 Replace FESI tryEval with real try statements. 2003-07-08 15:04:08 +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
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
Robert Gaggl
bb9758c1b4 simplified evalStory(): use the second parameter onlinedefault if param.online is null 2003-04-07 21:01:28 +00:00
50aa0db455 added conditions in evalStory() to provide backwards compatibility between justintopic and addtofront macros 2003-03-25 15:59:28 +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
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
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
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
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
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
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
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
42e0f21580 merged need_for_speed branch 2002-12-01 19:26:40 +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
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
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
189de5db26 arranged setting of majorUpdate to new content model in evalStory() -- hope it works... 2002-08-20 08:46:45 +00:00
Robert Gaggl
b279adab3a changed checking if comments should be enabled or not 2002-08-09 11:51:24 +00:00
e8949c7029 setting this.discussions to 1 by default (ie. if number cannot be parsed) in function evalStory().
otherwise weblogs with custom skins suddenly get their comment features disabled.
2002-07-29 16:16:52 +00:00
f692940b3a now autotitles work also in (1+n)-th level comments 2002-07-26 13:32:22 +00:00
b817e8ae0a result of merge with helmaville 2002-07-26 12:55:35 +00:00
Robert Gaggl
132b0de808 - added function hasDiscussions()
- removed format() at end of getRenderedContentPart(): this is now done right before it's rendered because it lead to some problems in site-historylist (when <wbr>-tags were inserted in the middle of an html-entity)
2002-07-19 08:54:40 +00:00
Robert Gaggl
819624d1a2 changed getRenderedContentPart() so that format() is done at the end before returning the string. this should reenable the wiki-functionality (before a wiki-style tag was encoded and therefore not found by doWikiStuff-function) and solve the problem that a macro-tag like <%story (mind the missing space between % and "story") would be encoded too (see http://helma.org/bugs/show_bug.cgi?id=98) 2002-07-14 15:10:56 +00:00
Hannes Wallnöfer
c8df8ac3de merged xml_content branch. 2002-07-01 16:36:27 +00:00
Robert Gaggl
c882d3d7e6 changed because the prototype weblog was renamed to site 2002-06-26 17:29:39 +00:00