Commit Graph

942 Commits (a3b9b7e92d5c9b47793c7b0e619c45352472890b)

Author SHA1 Message Date
Dries Buytaert d397bbe935 This a rather large commit that needs a lot of fine-tuning. If you
update, you'll break your site as you need switching from structure
to index.module: so this can be considered an intermediate commit.

If you upgrade, and you are welcome to, just create a collection
called "section" (for now) and assign your nodes some attributes
in the described format.

Feedback and bugreports are welcomed.  Questions will be answered.

CHANGES:

- comment system:
   + when replying to a node (rather then to a comment), that
     node is displayed above the reply form.
   + when replying to a comment (rather then to a node), that
     comment is displayd above the reply form.

- removed structure.inc, removed structure.module.

- node.inc:
   + added 2 new node functions called 'node_attribute_edit()' and
     'node_attribute_save()' used to 'hook in' any indexing system
    including your home-brewed stuff if you'd want to.  Currently,
    index.module is the facto default index system.

    See story.module for usage.

- book.module, story.module, poll.module, page.module, forum.module:
   + added preview functionality to administration section (via node
     module).
   + removed all references to structure.inc (category, topic).

- moderate.module:
   + removed all references to structure.inc (category, topic).

- book.module, story.module, page.module, forum.module:
   + increased the sizes of some textareas.

- submit.php:
   + removed all references to structure.inc (category, topic).

- marvin.theme:
   + removed dead code: function story() was depricated.

- unconed.theme:
   + removed hardcoded references to drop.org.

- marvin.theme, unconed.theme, jeroen.theme, yaroon.theme, example.theme:
   + removed all references to structure.inc (category, topic).

TODO:

- file.module, trip_link.module:
   + update preview functionality:
       see story.module for example.
   + remove references to 'cid' and 'tid', use 'attribute' instead:
       see story.module for example.

- extend and build upon index.module as well as making it configurable
2001-06-10 15:01:20 +00:00
natrak 6b34310626 Changes
- created a BaseTheme class in theme.inc.
- added links($links = array(), $status = 0, $node = 0) to BaseTheme.
- modified all themes to extend from BaseTheme.
- modiefied theme_link() to take advantage of $theme->links().
- theme_morelink() does not require a $theme argument.

Todo
- add the other standard variables and functions to BaseTheme.
- some themes could use some more modifications.

Weird
- marvin.theme still has a story() function.
2001-06-10 13:53:45 +00:00
Kjartan Mannes 9e4984588c Changes
- created a BaseTheme class in theme.inc.
- added links($links = array(), $status = 0, $node = 0) to BaseTheme.
- modified all themes to extend from BaseTheme.
- modiefied theme_link() to take advantage of $theme->links().
- theme_morelink() does not require a $theme argument.

Todo
- add the other standard variables and functions to BaseTheme.
- some themes could use some more modifications.

Weird
- marvin.theme still has a story() function.
2001-06-10 13:53:44 +00:00
Steven Wittens 10c96ede0a Typo: "oparations". 2001-06-10 12:18:58 +00:00
Dries Buytaert 62615ce04e - page.module:
+ we no longer wrap the output in a $theme->box().  If you want it in
     a box, just use $theme->box().
   + increased the sizes of the main "body"-form to make editing larger
     pages easier.
2001-06-10 09:54:43 +00:00
Steven Wittens 959b77c3fa - Added $theme->foreground and $theme->background vars to provide some general usable colors outside of a theme.
- Updated poll.module to use the new $theme color variables
2001-06-09 19:31:34 +00:00
Kjartan Mannes 0e2fc70e3d no message 2001-06-09 18:12:50 +00:00
Dries Buytaert 2c0866eca6 - Added a 'remove items' feature to reset a feed.
- Slightly improved the parsing algorithm; in some cases, were tags
  have attributes, things went wrong.  We ignore attributes for now
  as we don't do anything with those.

  Example:
    <item rdf:about="http://foo.com"></item>
          ^^^^^^^^^^^^^^^^^^^^^^^^^
2001-06-09 11:05:13 +00:00
Steven Wittens a722a1fed7 Typoe 2001-06-08 20:17:00 +00:00
Steven Wittens d41c4f23f1 - Added "dirty" support for theming the poll-bars... uses $theme->pollfill and $theme->pollempty for now. 2001-06-08 20:11:11 +00:00
Dries Buytaert a37211cf82 - Revised the 'track sitename' feature: it should be more accurate now. 2001-06-08 19:49:20 +00:00
Dries Buytaert a616715ae2 - Revised the 'track sitename' feature: it should be more accurate now. 2001-06-08 19:43:42 +00:00
Dries Buytaert f92981251f - Fixed inconsistent behavior of 'node_save()' and simplified the
algorithm a bit. --> Needs testing!  I improved this last night
  and only got around to testing this rather briefly/quickly.  It
  was to late already. ;-)

  (This is part of a larger set of changes I'm slowly working on
  which I will feed to CVS in steps after more testing.)

- Added 2 new node functions called 'node_attribute_edit()' and
  'node_attribute_save()' used to 'hook in' any indexing system
  including your home-brewed stuff if you'd want to.
2001-06-07 16:33:55 +00:00
Dries Buytaert 1383729ec1 - Node filters: renamed 'Strip link tags' to 'Enable link tags'.
(Suggestion by Remco.)
2001-06-07 16:28:48 +00:00
Dries Buytaert 792de8c537 - Fixed problem with account.module listings.
(Reported by Remco.)
2001-06-07 16:28:16 +00:00
Steven Wittens 28e6fdfbf3 - Fixed block showing queued polls. Now only shows active, posted polls.
- Fixed votes being reset to zero when updating a poll
- Fixed that weird crashing bug on the poll form (Natrak)
2001-06-07 15:42:28 +00:00
Kjartan Mannes c94d9a063b - Updated the $themes array to include all the themes. 2001-06-07 10:57:41 +00:00
Dries Buytaert f9de04c93f - Fixed bug in node_search of node.module. 2001-06-07 07:16:11 +00:00
Steven Wittens 58d662907c - Fixed typo
- Changed dries_at_drop.org into an UnConeD-Magically-Anti-Spam-Formatted-Email-Address(tm)
2001-06-06 21:36:08 +00:00
Dries Buytaert 7d356df325 - Updated CHANGELOG 2001-06-06 20:58:11 +00:00
Dries Buytaert e521e5b6c2 - Increased the maximum length of the 'link'-textfield. 2001-06-06 20:33:25 +00:00
Dries Buytaert 67958d3d41 - Added 'help structure' for node.module. We still need documentation
for nodes ... anyone maybe?

- Improved help.module.
2001-06-06 20:26:12 +00:00
Dries Buytaert 208274f1f9 - Typo: 'timstamp' should have been 'timestamp'. 2001-06-06 19:53:19 +00:00
Dries Buytaert c09f60c2b4 - Fixed bug in cron function of import.module: headlines did not expire
properly.
2001-06-06 19:50:47 +00:00
Steven Wittens 445d821db5 Missing trailing space in the "[ extra@user.info | http://extra.user.info/ ]" for comments. 2001-06-06 19:40:39 +00:00
Steven Wittens cca16453ac Bugfix: there was still a "read more" link in the full view. 2001-06-06 19:39:17 +00:00
Steven Wittens 30703525fb - Update for new node format
- Added "read more" link for the block-version of a poll
- Added mini-docs :)
2001-06-06 19:35:32 +00:00
Dries Buytaert 4ba91a779a - Improved db_fetch_array() to return an associative array only:
passing around arrays should be less expensive.
2001-06-06 18:57:41 +00:00
Dries Buytaert c9e807a347 - Fixed permission problem in node.module.
Kristjan: this should fix the problem you reported on the mailing-list.
            We aim at providing a better solution in the long though.
2001-06-06 18:57:13 +00:00
Dries Buytaert a286e9dd2d - Fixed bug in 'attribute editor'. 2001-06-05 19:13:03 +00:00
Dries Buytaert f490fc26df - Improved node_query such that an 'illegal offset' is less likekely to
happen.
2001-06-05 18:32:04 +00:00
natrak ca908eb724 - Sorted by n.nid in account_track_comments/nodes() so users can see the
status on what they recently submitted. Will try and make this a little more
  configurable in the near future.
2001-06-04 22:09:16 +00:00
Kjartan Mannes 949d4d956a - Modified error_handler() to ignore errors when @function() is used to
suppress errors. If ya suppress them you normally have a good reason to do
  so :-)
2001-06-04 19:02:38 +00:00
Dries Buytaert d3de63cac5 - Fixed small bug in "search node" of node.module. 2001-06-04 16:24:15 +00:00
Dries Buytaert b86d6a2f8e - Patched book.module to work with the new node.module (which makes the
book.module quite a bit shorter/simpler).
2001-06-04 16:19:25 +00:00
Dries Buytaert 8fafe12188 CHANGES:
- Improvement to node listings.

- Patched story.module to work with new node.module!

NOTE:

- UnConeD: poll.module needs updating.  Let me know if you want me to do
           it as I assume you will update it unless otherwise mentioned.
2001-06-04 16:03:10 +00:00
Dries Buytaert c75057bb0f CHANGES:
- Added improved node scheduler:

   + Automatically post node at date 'xx/xx/xx, xx:xx'.

   + Automatically queue node at date 'xx/xx/xx, xx:xx'.

   + Automatically dump node at date 'xx/xx/xx, xx:xx'.

  Requires a database update, see ./updates/2.00-to-x.xx.sql!

- Refactored the admin interface of node.module.  It is only a start
  but it should show the direction we are going.

   + The new interface is easier to extend with new functionality
     and operations.  New "edit xxx" links can easily be added on
     our way.

   + The new interface tries to cover all content- or node-related
     functions.  Thus making a special admin interface for each new
     node type redundant.  To demonstrate this, I removed the admin
     hook from page.module and forum.module.  This removes quite a
     bit of logic from the invidual modules which is a good sign if
     you ask me.

     A centralized GUI or interface covering all node-related
     administration should make Drupal easier to administer.

TODO:

- All node-related nodes need updating.  This should be trivial and
  I'll hapilly tackle this later tonight.

- There will be bugs, and I'm still working on this but I would like
  to get some feedback (from Natrak et all) on both user-friendliness
  and usability of this new interface.  I'm still working on it as we
  speak ...
2001-06-04 15:40:39 +00:00
Kjartan Mannes 2ecc3e4c78 - Output disabled message when locale is disabled.
- If $languages is empty and locale is enabled output $na instead of script
  errors.
2001-06-04 15:17:10 +00:00
Kjartan Mannes 6563382974 - Changed form_select() to return NULL if called without $options. This should
not have any impact, and makes things look nicer imo.
2001-06-04 15:06:47 +00:00
natrak 691d8ba54f - Changed &nbsp; to a space (' '). The &nbsp; was not being converted to a
space.
2001-06-04 15:05:20 +00:00
Dries Buytaert 0c89ef1249 - Fixed bug in "delete node". 2001-06-04 06:26:53 +00:00
Dries Buytaert e58207f2e0 - Fixed another typo: node_default -> node_setting 2001-06-03 09:51:57 +00:00
Dries Buytaert 50a490d261 - Fixed typo: "Save defaults" -> "Save settings". 2001-06-03 09:32:14 +00:00
Dries Buytaert 735fe412db - Fixed timestamp problem in queue.module. 2001-06-03 09:22:45 +00:00
Dries Buytaert b0c349e247 - Moved most of the options in structure.module to node.module. The
structure.module either needs work, or replacement by index.module:
  see "admin > node > node settings".

  It will do for now and it can always made better when we can think
  of a better solution; it is the best I could think of.   Now what?
  index.module or structure.module?  I'm currently pro index.module.

- Drastically simplified "variable.inc".

- Removed most dependecies on structure.module from all content related
  modules.  Thus making our modules more modular.  ;)

- Fixed calculation glitch in queue.module.

- Fixed potential function name clash/conflict in rating.module, and
  simplified some code on my way.

- Started removing all global variables $status and $rstatus.  Global
  variables are "yucky" so in near future, we will replace all global
  $status variables by a call to node_status().  Originally, $status
  was only introduced as a temporary hack and nothing is as permanent
  as a temporary hack so I took it out when still possible.

- Changed the watchdog messages a bit.
2001-06-02 22:12:35 +00:00
Dries Buytaert 993f4d2ead - Took out the <description>-tags from the RSS export code untill we
figured out a proper way to make each content type communicate his
  content for this <description>-tag.  I did nothing but remove some
  dead code.
2001-06-02 12:45:00 +00:00
Kjartan Mannes 3d0875fade CHANGES
- Modified check_mail() to allow '+' characters in mail addresses.

TODO
- Extend the regular expression to allow addresses valid in the RFC's.
  Currently IP domains are banned, and so are many other extensions of RFC
  822. This is not a priority since we currently support 96% of all addresses.
2001-06-02 06:05:56 +00:00
Steven Wittens 4060a9ee80 Shrunk the poll output... it was rather big in full-view :) 2001-06-01 23:23:53 +00:00
Dries Buytaert 255c56cc2b - Made the code generated by include/common.inc XHTML 1.0 compliant: all
forms should now be XHTML compliant. Just trying to get used to XHTML:
  :).
2001-05-31 18:47:43 +00:00
Dries Buytaert 8111cd205b - Fixed bug in moderation queue. 2001-05-31 18:35:26 +00:00