Commit graph

1854 commits

Author SHA1 Message Date
Robert Gaggl
bf40bb5ae9 changed default memberlevel from 0 to null (because 0 is the level of a subscriber) 2003-01-23 21:30:43 +00:00
Robert Gaggl
8f26d191a2 changed history_macro(): comments are not displayed if discussions are disabled either in site-preferences or for the story they belong to 2003-01-23 21:29:32 +00:00
Robert Gaggl
35f383a97e deleted isPostDenied() - using story.isPostDenied() instead 2003-01-23 21:18:56 +00:00
Robert Gaggl
6da9d2e618 now calling isPostDenied() of story instead of the comment-method (which was deleted since it didn't do anything different than the story-method) 2003-01-23 21:18:08 +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
Robert Gaggl
bb140f18f0 removed senseless call of autologin() - this is already done by onRequest() 2003-01-23 19:53:53 +00:00
Hannes Wallnöfer
50892139de Removed the hardcoded encoding from the XML declaration. 2003-01-23 16:07:30 +00:00
Hannes Wallnöfer
355f988243 Add proper site URL in getUsersBlogs() - this may fail if href() doesn't return
absolute URLs.
2003-01-23 15:52:10 +00:00
Hannes Wallnöfer
0b818e2b05 Added support for extracting a post's title from <title></title> tags, which is
what w.bloggar and presumably other Blogger-API tools use to add titles
to a posting's content.
2003-01-23 15:45:31 +00:00
Hannes Wallnöfer
2c31f3cfc2 Use ts{} timestamp format instead of playin date. This is necessary to make
the recent referrers macro work with Mckoi database. It also works well with
MySQL.
2003-01-23 11:03:49 +00:00
Michael Platzer
070b3291b4 disabled the setting of the value of an input-tag to the request-object-value for buttons, since this does not make sense, and furthermore would lead to ugly values as soon as Umlauts are involved; 2003-01-21 10:09:00 +00:00
Michael Platzer
dd82c9a170 corrected confirm.welcomeSite to confirm.welcome 2003-01-21 10:03:17 +00:00
Michael Platzer
7d8476d706 removed incorrect quotation marks from confirm.imageDelete and confirm.fileCreate 2003-01-21 10:01:36 +00:00
Robert Gaggl
d03b3c112a changed deletePost() to return true in case the story was successfully deleted, false otherwise (by inverting result.error) 2003-01-20 20:58:25 +00:00
Robert Gaggl
369756abbd changed regex in activateLinks(): since format() is called before activateLinks() a plain text URL at the beginning of a line will actually have a <br /> before it 2003-01-14 10:56:03 +00:00
Robert Gaggl
287fa12100 changed scheduler-interval to 30 seconds (see http://helma.org/bugs/show_bug.cgi?id=201) 2003-01-14 10:44:23 +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
76b32c6598 added a missing quote in lastupdate-macrotag. 2003-01-10 13:12:00 +00:00
Robert Gaggl
ac9c0c73aa changed isNotPublic() because subscribers (level == 0) of a private weblog couln't access it, therefor they had to be granted a level >= contributor. Now isNotPublic() behaves in the same way as it did before the need_for_speed-branch. 2003-01-10 13:10:26 +00:00
c6331a81b5 any color output is processed by renderColorAsString() in colorpicker_macro() 2003-01-07 16:40:28 +00:00
a4c771c2db colorpicker scripts are now accessible via a site action to enable virtual hosted weblogs using it 2003-01-07 16:37:49 +00:00
8520c11785 revamped colorpicker to enable sites with virtual domain hosting (like antville.org) to use the colorpicker, too. currently, the colorpicker scripts are hosted at www.antville.org whily trying to access objects on documents hosted at a different virtual domain (e.g. project.antville.org) and thus violating a browser's security handlers to avoid cross-domain scripting. 2003-01-07 14:45:50 +00:00
8b42344a48 moved modifytime_macro() to hopobject prototype 2003-01-07 10:57:31 +00:00
Robert Gaggl
a5d7877485 corrected check for png-images (they can have image/png or image/x-png as content-type) 2003-01-05 22:57:15 +00:00
Robert Gaggl
c575fccdf7 choice-title is now rendered as skin to allow macros (eg. for image-polls) 2003-01-05 22:44:33 +00:00
Robert Gaggl
bb56037bfa choice-value is now form-encoded to enable using html-code in choice-text 2003-01-05 22:28:20 +00:00
Robert Gaggl
2ab5f3ae7c evalPoll doesn't require title anymore (since it isn't part of the edit-form anymore) 2003-01-05 22:27:19 +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
Michael Platzer
eaaf060747 fixed bug 192: corrected iisClean()-function, so that it does not allow the character ^ anymore 2003-01-05 14:42:05 +00:00
Robert Gaggl
58bf687f4d added new bloggerApi-functions 2003-01-02 19:16:32 +00:00
Robert Gaggl
5eea674ddc - removed checkAccessPermission (this is now done using the standard securityFunctions)
- implemented bloggerApi-functions:
getUsersBlogs (returns all sites that a user has subscribed and has write-permissions)
getRecentPosts (returns a list of max. 20 posts that are either created or editable by a user)
getPost (returns a single post of a user)
- added functions getUser() and getBlog() that are not callable via XmlRpc but used by bloggerApi-implementation
- rewrote the rest of the functions to use the standard securityFunctions
2003-01-02 19:09:57 +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
ab1538b801 collection storiesById now contains all stories (not just the ones that are online). this collection is only used by bloggerApi 2003-01-02 19:03:50 +00:00
Robert Gaggl
369efff253 - moved checkIfLoggedIn() to securityFunctions.js
- decreased interval of scheduler to 5 seconds (otherwise too many objects would be locked when scheduler is running)
2003-01-02 19:00:30 +00:00
Robert Gaggl
ca44f02034 added function getMembershipLevel() 2003-01-02 18:59:42 +00:00
Robert Gaggl
3c97aa4ef7 accessing user-property sysadmin directly instead of calling function isUserSysAdmin (removed) 2003-01-02 18:59:04 +00:00
Robert Gaggl
ccacd86b24 fixed comments 2003-01-02 18:58:25 +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
a71ad9d6e8 added function constructor() 2003-01-02 18:56:40 +00:00
Robert Gaggl
068a68f090 req.data.memberlevel is now passed as second argument to security-functions. with this they can also be used even when there's no request-object present (scheduler, bloggerApi) 2003-01-02 18:55:32 +00:00
Robert Gaggl
7dbd8cb9e3 renamed to securityFunctions.js 2003-01-02 18:55:12 +00:00
Robert Gaggl
c7e599b83e removed functions isUserTrusted() and isUserSysAdmin(), moved checkIfLoggedIn() from objectFunctions.js into this file 2003-01-02 18:54:48 +00:00
Robert Gaggl
c61985604c now calling new function getMembershipLevel() of membermgr to retrieve permission-level of user 2003-01-02 18:54:04 +00:00
Robert Gaggl
f1a9759aa5 - req.data.memberlevel is now passed as second argument to security-functions. with this they can also be used even when there's no request-object present (scheduler, bloggerApi)
- removed unused function isPostDenied()
2003-01-02 18:52:46 +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
4383149f88 changed image_macro():
- fixed a bug that lead to a thumbnail not being linked to the fullsize-image
- in case of a popup the onClick-handler is moved to the image-tag, the a-tag still contains just the link to the fullsize-image which should help those who have javascript disabled

changed linkedpath_macro() so that last item in breadcrumb-navigation is a link too if req.action != main and there is a main-action
2002-12-17 21:56:56 +00:00
Robert Gaggl
9dcde6723f added function getNavigationName() 2002-12-17 21:54:12 +00:00