Commit graph

647 commits

Author SHA1 Message Date
Robert Gaggl
45fd91573a - added method isNotificationEnabled() that does a basic check if email notification is enabled for a site
- simplified level checks in sendNotification(), removed commented out code
2003-10-11 10:40:03 +00:00
Hannes Wallnöfer
6e147b0e32 Forgot to commit when checking in skinsets: displays a dropdown chooser for
skinsets on the preferences page. I don't know if this is a good idea, but with the
current code in site/edit_action it's required, otherwise the site's skinset will be
when saving preferences.
2003-10-10 17:12:59 +00:00
7bad3bf9ac * all notification e-mails are now sent via site/sendNotification function
* removed option to get notifications only for new comments
* added check if receipient is identical with the creator/modifier of the modified object
* made use of sendMail function
2003-10-08 16:54:20 +00:00
e4df22eef5 simplified notification_macro and adjusted wording 2003-10-08 16:49:55 +00:00
cfed1de438 moved skin for notification mail body from global/notification.skin to site/notificationMail.skin 2003-10-08 16:09:13 +00:00
Hannes Wallnöfer
e8adb95a2c Added support for skinsets:
* Skins are attached to skinset rather than site objects
 * Each site can have multiple skinsets
 * Skinsets can inherit from each other
 * Added subclasses of imagemgr and skinmgr that mount on root/manage
2003-10-07 15:14:47 +00:00
Hannes Wallnöfer
89d9085e1e Make text inputs for font names 40 chars wide 2003-10-07 14:47:36 +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
22be972fa2 redirect to the site's edit mask after preferences were saved 2003-10-06 16:29:24 +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
Hannes Wallnöfer
b962e7f9a9 Add a preview area to the colorpicker and make it possible
to edit all colors at once.
2003-09-09 14:41:09 +00:00
Robert Gaggl
ebc67d1a33 - modified history_macro() since checkView throws an exception
- use constant ONEDAY in age_macro()
2003-09-07 21:09:08 +00:00
Robert Gaggl
97829ace68 - rewrote permission framework: renamed isXxxDenied() to checkXxx(), all check-methods now throw a DenyException object instead of returning an Exception object
- added call of checkIfLoggedIn() in case the site is private
2003-09-07 21:01:19 +00:00
Hannes Wallnöfer
93d2334431 Remove experimental permissions code 2003-09-04 09:11:39 +00:00
Hannes Wallnöfer
ed74132c9e Fix logical bug in site access check. 2003-09-04 08:26:23 +00:00
Hannes Wallnöfer
bfaf59c778 Adapt to the fact that Helma now registers indirect prototypes in the path object
so topics are registered as days and we need to check if a day is actually a day
before making it today.
2003-08-29 13:54:25 +00:00
Robert Gaggl
c7d5c20578 initial check-in 2003-08-02 12:21:28 +00:00
Robert Gaggl
a9f3e62c2e switched from input type="submit" to type="button" 2003-08-02 12:19:30 +00:00
Robert Gaggl
9fc496a266 added property "preferences_xml" plus the mountpoint "preferences" that manages the xml encoded prefs 2003-08-02 12:18:26 +00:00
Robert Gaggl
65701dc949 - changed to use AntvilleLib methods 2003-08-02 12:17:26 +00:00
Robert Gaggl
4dc576c5e0 - added checkAccess() that is called by onRequest() to check if a user is allowed to request a certain action
- modified permission check methods: they now return an Exception object in case a certain action is denied
2003-08-02 12:12:34 +00:00
Robert Gaggl
b8872f65cd switched from input type="submit" to type="button" 2003-08-02 12:00:52 +00:00
Robert Gaggl
0d5d6fc8c1 minor code reformatting 2003-08-02 11:59:56 +00:00
Robert Gaggl
dbec15b593 - added constructor function
- site preferences are now xml-encoded in one property called preferences_xml which is handled by propertymgr
- removed function createImgDirectory() since directories are created on the fly by helma
2003-08-02 11:40:35 +00:00
Robert Gaggl
f3d757c996 - changed to use AntvilleLib methods
- changed all preferences related macros since the site preferences are xml-encoded now
- discussions_macro() and addtofront_macro() now don't need an input type hidden anymore to preserve the submitted state
2003-08-02 11:00:26 +00:00
Robert Gaggl
eee0bf7f5d changed from input type="button" to type="submit" 2003-08-02 10:41:03 +00:00
Robert Gaggl
14f50d76a1 - merged .hac files into this file
- removed permission checks, this is done in checkAccess() now
- removed checks for req.data.submit, use named submit buttons in skins now
- added try/catch blocks since most objectFunctions will throw an Exception now instead of returning an Error object
2003-08-02 10:33:16 +00:00
Robert Gaggl
6884da6362 moved to root 2003-08-02 10:28:22 +00:00
Robert Gaggl
02fd442979 removed 2003-08-02 10:26:14 +00:00
Robert Gaggl
81f0c559e7 removed because .hac-files were merged into single actions.js files 2003-08-02 10:24:52 +00:00
Robert Gaggl
d9fb8f1ae7 merged changes done in antville_1_0 branch 2003-07-22 12:01:41 +00:00
093b50670b initial check-in of internet explorer "post it" context menu;
(instructions: download and install /sitename/menuext.reg)
2003-06-30 08:25:28 +00:00
d89c34963e use item's createtime rather than its modifytime 2003-06-06 14:40:45 +00:00
88bc7dbf53 added support for day header (ie. date will only be displayed once each day) 2003-06-05 14:31:34 +00:00
41920cf416 put everything inside <dc:rights> tags into prefix/suffix to ensure xml encoding of copy sign (c) 2003-05-29 16:09:07 +00:00
82979f666f had to move "last update on" prefix from skin to lastupdate_macro() in site/macros.js to avoid redundant output 2003-04-11 13:35:28 +00:00
Hannes Wallnöfer
9371ce4704 Introduce defaultHost property for virtual server setup. 2003-04-11 12:48:44 +00:00
Hannes Wallnöfer
389359cbc5 imgWindow.focus() causes strange bug on mozilla where the image
is loaded in the main window. Since the image is newly created
anyway, calling focus() shouldn't be necessary anyhow.
2003-04-04 09:35:26 +00:00
a6e59d8879 improved output of items w/o title 2003-04-01 12:13:08 +00:00
af2f318cc7 remove page title and replaced <p /> with <br /> 2003-03-25 16:12:14 +00:00
799a7faade changed "frontpage" to "front page" 2003-03-21 16:50:34 +00:00
279fb17764 wrapped &quot; around site title in welcome message 2003-03-21 16:48:58 +00:00
710cfce37e changed site title color to link color 2003-03-21 16:47:41 +00:00
84c7e5e01c added link to site title (href is site url) 2003-03-21 16:46:25 +00:00
2bae74b1a3 changed case of E-mail to e-mail. it simply looks the best, imho. 2003-03-20 17:16:45 +00:00
Hannes Wallnöfer
8d2e78643e Reworked basic inner story and comment skins.
Spacing should be better now.
Skins should be easier to understand and customize.
Used <div> tags wherever possibe instead of <span><br>
Checked for XHTML 1.0 Transitional validity.
2003-03-14 10:59:00 +00:00
8bf0ea15ff added trailing linebreak to achieve more readable html code 2003-03-11 13:20:10 +00:00
923c997a29 message should only be inside a span tag 2003-03-10 16:50:52 +00:00
978d0d91a3 changed .message class to tell it apart from body text (still looking for a decent color: it should not be the link color as it was before, though) 2003-03-10 16:49:26 +00:00
Hannes Wallnöfer
edc4d1f013 Added href postprocessor function. 2003-03-10 12:12:06 +00:00