Commit graph

383 commits

Author SHA1 Message Date
Robert Gaggl
6f5616c362 changed layout (instead of using a table to create the link use the new css class "pagelinkBottom") 2003-12-08 21:17:12 +00:00
Robert Gaggl
56d5afc7a0 - modified logo_macro(): use new object DEFAULTIMAGES to render any of them
- modified image_macro(): use new object DEFAULTIMAGES to render any of the former "root images"
- fixed a bug in colorpicker_macro(): use res.push()/res.pop(), otherwise the macro would render the input directly to response
2003-12-08 20:55:42 +00:00
Robert Gaggl
3fc7ce5329 - added constant object DEFAULTIMAGES that contains the metadata of all default images (logos, pixel, marquee)
- added constant SKINSETS that contains the structure of the skinmgr (for both root- and site skinmanager)
- added constructor for Skinset objects (used for constructing the SKINSETS constant)
2003-12-08 20:44:57 +00:00
Robert Gaggl
9d0e77b66b pixel.gif is no longer part of layout but of standard images (therefor using global image macro instead of layout.image) 2003-12-08 20:43:02 +00:00
Robert Gaggl
60d3356cf5 stylesheet action is now called stylesheet.css 2003-12-08 20:41:47 +00:00
Hannes Wallnöfer
256ab22b4b Open extended colorpicker popup with the right size.
Resizing popup windows is not implemented very well on Mozilla/Linux.
2003-12-04 10:02:29 +00:00
Hannes Wallnöfer
1ff51d9382 Make colorpicker scripts work on mozilla by adding a
parseColor() function that converts different color notations
(such as rgb(r, g, b)) into a canonical six-figure hexadecimal
number notation.
2003-12-03 17:57:24 +00:00
Robert Gaggl
3557c3e5c6 bugfix: can't use res.handlers.context since it's assigned after autoLogin is called 2003-11-23 19:59:54 +00:00
Robert Gaggl
9d01ab146f - modified image_macro(): replaced if/else if with switch
- minor code formattings
2003-11-23 19:21:35 +00:00
Robert Gaggl
f3c2af07bb - replaced calls of global image macro with layout.image 2003-11-23 19:19:52 +00:00
Robert Gaggl
9c54305c51 image.getStaticUrl() was renamed to image.getUrl() 2003-11-23 18:55:17 +00:00
Robert Gaggl
64aa51aaca - replaced any calls of global image macro with layout.image (since layout images are now handled by layout objects) 2003-11-23 18:53:52 +00:00
Robert Gaggl
df31ba8574 - moved the former image-method evalImgType() to global
- use res.handlers.context now (which contains either root or a site object)
2003-11-23 18:37:08 +00:00
Robert Gaggl
7f7e078fa0 replaced calls of global image.macro with layout.image (since layout images are now handled by layout objects) 2003-11-23 18:32:03 +00:00
Robert Gaggl
71a3a4b260 - renamed constant MAY_EDIT_SKINS to MAY_EDIT_LAYOUTS
- removed DISPLAY.skinset, added some more properties to constant for new prototypes (used in linkedpath_macro())
2003-11-23 18:02:41 +00:00
Robert Gaggl
e53d95f2d8 replaced calls of global image-macro with calls of layout.image (res.handlers.layout contains the activated layout object) 2003-11-23 18:00:58 +00:00
73ca975e42 restored and fixed colorpicker to regain flexible functionality and way-backwards-compatibility
* fixed bug that prevented colorpicker from working at all
* fixed bug that prevented display of colors that are changed but not saved
* <% colorpicker name="xyz" %> now renders the default colorpicker
* <% colorpicker name="xyz" skin="colorpickerExt" %> renders the extended version (or any other depending on the skin)
* modified site's edit.skin to open the extended version
* put client-side scripts and functionality into global Antville object to define a strict namespace
* updated AntvilleLib
NOTE: THIS IS STILL WORK IN PROGRESS
2003-11-14 10:47:51 +00:00
9db89cb465 enabled username_macro to display a link only if param.as is set to "link" in the macro call.
(ie. by default username_macro only renders the username as text.)
2003-11-11 14:57:01 +00:00
Michael Platzer
22c1e4c5ef (finally) merged imagetopics branch to HEAD 2003-11-01 15:24:07 +00:00
a036ee7912 * modified file_macro to accept a custom text, too (FIXME: this is a hack)
* added return statement where missing
* removed deprecated macros
* introduced randomize_macro
2003-10-30 14:50:16 +00:00
Robert Gaggl
0688407c09 modified story_macro(): the macro now returns nothing if the site containing the requested story is offline (should fix bug 299: http://helma.org/bugs/show_bug.cgi?id=299) 2003-10-30 09:57:11 +00:00
Michael Platzer
c985d686eb fixed bug in linkedpath macro which occured when using this on a site, which is the front site of an antville installation; i.e. if no path.site exist 2003-10-29 16:26:38 +00:00
Robert Gaggl
a878d0b2f2 initial check-in: used for rendering the page navigation bar in mgr-mountpoints 2003-10-15 20:02:17 +00:00
Robert Gaggl
bd5eabe5ae added methods renderList(), renderPageNavigation() and renderPageNavItem() that are used for rendering lists in mgr-mountpoints and rendering the page navigation 2003-10-15 19:58:26 +00:00
Robert Gaggl
772c53d17f modified debug output of flushMailQueue() 2003-10-11 10:41:45 +00:00
cdbf273d0a * app.data.mailQueue (now with capital Q) is defined in onStart function
* modified sendMail function to add multiple recipients via addBCC method
2003-10-08 16:20:54 +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
86061433f4 * modified sendMail function to queue mails instead of immediately sending them
* fixed a small bug that caused an error message due to an undefined mail queue array
2003-10-07 16:12:47 +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
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
Hannes Wallnöfer
8e1506b766 Remove font-size definition from local style 2003-10-07 14:29:43 +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
cd24d55c20 reduced and simplified conditional checks in evalURL() 2003-10-06 09:44:36 +00:00
Michael Platzer
b40d567c13 fixed evalURL, so that web addresses with @ are possible 2003-09-21 16:59:42 +00:00
Robert Gaggl
8aef63cce5 added support for fallback image (http://grazia.helma.at/pipermail/antville-dev/2003-September/000160.html) 2003-09-11 20:04:11 +00:00
Hannes Wallnöfer
0497b10bf3 Tentative code to set the colorpicker to the color of the selected textclass
(works only if the color matches one in the color raster 100%)
2003-09-09 17:57:56 +00:00
Hannes Wallnöfer
f381b7fa46 Make colorpicker.skin XHTML complient 2003-09-09 17:30:43 +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
71363fa9d3 added constants ONEMINUTE, ONEHOUR and ONEDAY 2003-09-07 21:10:53 +00:00
Robert Gaggl
5e669e2a8d modified poll_macro(): display an embedded poll in any case (even if the user isn't logged in) 2003-09-07 21:07:17 +00:00
Robert Gaggl
f7f81a2512 added constructor for DenyException objects 2003-09-07 21:03:12 +00:00
Robert Gaggl
2e74e482a3 use constant ONEHOUR in renderTimeZoneChooser() 2003-09-07 21:02:56 +00:00
Robert Gaggl
e839d7e343 removed 2003-08-02 12:22:00 +00:00
Robert Gaggl
c7d5c20578 initial check-in 2003-08-02 12:21:28 +00:00
Robert Gaggl
53bb019886 - changed to use AntvilleLib methods
- removed nearly all html code rendering methods because of AntvilleLib
- added global renderDateFormatChooser()
2003-08-02 11:57:12 +00:00
Robert Gaggl
aa4f525b47 - changed to use AntvilleLib methods
- moved constant definitions into separate file constants.js
- renamed checkEmail() to evalEmail()
- removed string check functions since they are replaced with AntvilleLib methods
- modified formatTimestamp to use AntvilleLib, site preferences are xml-encoded now
- added constructor functions for Message, Exception and MailException objects, changed interface of getMessage()
- added Method buildAlias() which is called by buildAliasFromFile(), now gets the destination collection as second argument
- modified getRole: use switch() instead of if/else if
- added method extractContent that extracts submitted story/comment content from req.data
- added method sendMail()
2003-08-02 11:25:37 +00:00
Robert Gaggl
7dca7c680a - changed to use AntvilleLib methods
- rewrote input_macro(): using switch instead of if/else if
2003-08-02 10:49:52 +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
b6c60e032d removed accidentally committed .cvsignore files 2003-06-05 15:15:24 +00:00