Tim Almdal
bfb5c42124
Adding Recaptcha to the comment module. Recaptcha integration consists of a Form_Recaptcha class derived from Form_Input that can be added to any class that requires Recaptcha verfication.
2009-01-26 16:12:57 +00:00
Chad Kieffer
57f5cdeb30
Use url:site() on add user link, change user list from class to id to make it unique, changed gFirstRow to gHeaderRow to make more semantically meaningful. Fixed closing span that I broke after Bharat fixed it last night.
2009-01-25 21:17:04 +00:00
Tim Almdal
09e7f63d73
Removed all the complex code to locate the forms. Now the admin
...
screen just has the public and private keys and if the public key is
provided a recaptcha box shows up which is used to validate the public
private key pair.
2009-01-25 17:34:27 +00:00
Tim Almdal
4bb2c53c8f
Added the ability to identify and present the defined forms to the
...
adminstrator. The forms are presented as a checklist, I would have
preferred a selection list, but Forge doesn't have one. The generated
html to contain the recaptcha challenge is defined as <ul> as that was
the only way to force itto line up.
2009-01-25 16:35:25 +00:00
Chad Kieffer
ffa1fa45f6
Admin theme style cleanup. Merged separate selected, available, unavailable into a single set of reusable classes. Applied alternating row bg colors. Removed inline CSS from admin views. Moved user admin css into admin_default theme style sheet.
2009-01-25 06:55:24 +00:00
Tim Almdal
a8233ed979
Undo the adding underscores to the id on forge generated forms
2009-01-25 06:28:04 +00:00
Bharat Mediratta
b0ad4e0222
Fix all 'add' links and make them open in a dialog
2009-01-25 02:29:01 +00:00
Bharat Mediratta
7c317fa6f2
Fix indentation which helped me to find an extra </span>. Simplified
...
some of the logic.
2009-01-25 02:21:53 +00:00
Bharat Mediratta
70c050d995
Delete the rearrange module; it's been subsumed by the move controller
2009-01-25 01:44:26 +00:00
Chad Kieffer
55cd2afde5
Admin theme style cleanup. Merged separate selected, available, unavailable into a single set of reusable classes. Applied alternating row bg colors. Removed inline CSS from admin views. Moved user admin css into admin_default theme style sheet.
2009-01-24 20:06:13 +00:00
Tim Almdal
cbff78daa8
Supply a form id on all forms. This id can be used by modules other
...
than the originating module to provide additional functionality to the form.
2009-01-24 17:26:47 +00:00
Tim Almdal
3438bf7b3d
The adminstration portion of the recaptcha module. I haven't figured out how to integrate it with the other module forms.
2009-01-23 17:05:20 +00:00
Chad Kieffer
6941af664f
Ajaxified user edit forms. They're populated, but don't submit yet.
2009-01-23 06:19:19 +00:00
Jakob Hilden
1cc5d36657
toggling of user edit panel works now.
...
added groups to the admin_user view, so you will eventually be able to edit users, groups and memberships on one admin page.
2009-01-22 08:37:58 +00:00
Chad Kieffer
ddb995eaf6
Added new UI element, gPanel, which is a similar mechanism to gDialog. Panels are hidden inline elements that can be revealed within list items, tables cells, etc. Still need to add the toggle off and ajaxify content.
2009-01-22 06:35:55 +00:00
Jakob Hilden
6d99c29172
totally incomplete version of user admin UI.
2009-01-20 22:16:25 +00:00
Bharat Mediratta
f2cfd9798e
Use xxx_test as the default database name. This means that we no
...
longer have to manually tweak database.php, yay!
2009-01-20 09:40:14 +00:00
Bharat Mediratta
1cc7b3f4be
Don't force validation anymore; we're clearing the form properly in
...
the controller on successful add.
2009-01-18 23:27:26 +00:00
Bharat Mediratta
b39be71a4e
We don't need to reset the form anymore, since it's reset on the server side.
2009-01-18 23:26:53 +00:00
Bharat Mediratta
f0eb8cb641
Reset the form before sending it back on success so that we clear the values.
2009-01-18 23:25:42 +00:00
Tim Almdal
9275742ef9
Change the event handlers for maintaining the search index to update
...
the index when items change.
2009-01-18 23:23:12 +00:00
Tim Almdal
dd5be1ece0
Remove blank line at the top of the file
2009-01-18 16:55:55 +00:00
Bharat Mediratta
883db822f1
Update the index right away if there are only < 10 items
2009-01-18 09:08:51 +00:00
Bharat Mediratta
7b68ca9946
Refactor dashboard -> block_manager since it'll manage blocks site
...
wide, not just in the dashboard.
2009-01-18 06:55:04 +00:00
Bharat Mediratta
3d1ea2904d
Rename theme callback helpers from xxx_block to xxx_theme to make room
...
for us to rename the dashboard helper to be a block helper since
sidebar blocks are not just in the dashboard.
2009-01-18 05:01:00 +00:00
Bharat Mediratta
58402f6fbf
Fix typo.. rebuild_index -> update_index
2009-01-17 05:27:15 +00:00
Bharat Mediratta
ccff396fae
Fix a silly bug in item_created()
2009-01-17 05:22:07 +00:00
Bharat Mediratta
d568a1e9fd
Implement relevance ranked boolean searching on a full text index of
...
item and comment data. Whew!
It's not pretty yet. And you have to manually update the index
currently in admin/maintenance. But it works.
2009-01-17 00:52:50 +00:00
Bharat Mediratta
91be7a38f8
Clear the "akismet is not configured" message on uninstall.
2009-01-17 00:39:38 +00:00
Bharat Mediratta
2920640c2b
Fix validation when adding new comments.
...
Fire off the appropriate item_related_update events as appropriate.
2009-01-16 04:06:03 +00:00
Bharat Mediratta
23b0ee3628
Don't try to check comments if Akismet lacks an API key
2009-01-16 03:50:51 +00:00
Andy Staudacher
e4a9b19bf9
Changing t() placeholder syntax from {{replace_me}} to %replace_me.
2009-01-15 10:02:41 +00:00
Andy Staudacher
e53916dd06
Simplifying the way t() is called. Refactoring localization function t($message, $options=array()) into 2 separate functions:
...
- the new t($message, $options=array()) is for simple strings, optionally with placeholder interpolation.
- t2($singular, $plural, $count, $options=array()) is for plurals.
2009-01-15 09:30:15 +00:00
Bharat Mediratta
5bfde5ceb8
Rename 'xxx_changed' events to 'xxx_updated'
2009-01-15 02:53:13 +00:00
Bharat Mediratta
034f30190e
Rename 'xxx_changed' events to 'xxx_updated'
2009-01-15 02:52:42 +00:00
Bharat Mediratta
f3ba69c1d6
Make sure that helper functions are all static. Add new
...
File_Structure_Test to make sure we don't regress.
According to the PHP docs, the "public" keyword is implied on static
functions, so remove it. Also, require private static functions to
start with an _.
http://php.net/manual/en/language.oop5.visibility.php
2009-01-14 04:12:02 +00:00
Bharat Mediratta
c5f77510a7
Refactor dashboard block handling out into a dashboard helper so that
...
module installers don't have to know the grotty details of how it works.
2009-01-12 08:51:54 +00:00
Bharat Mediratta
bc421a615a
Implement deleting dashboard blocks.
...
* Refactor blocks so that they have a separate id vs css_id. This way
we can have a unique identifier for each visual block.
* Store blocks with a random id as their unique identifier
* Add Admin_Dashboard::remove_block() and modify
themes/admin_default/views/block.html.php to call it when you click the
remove box.
2009-01-12 08:26:38 +00:00
Bharat Mediratta
f4d5681faa
Update to Forge r172
2009-01-12 07:54:13 +00:00
Bharat Mediratta
ae73ef3d57
Updated for new Form_Submit API.
...
OLD:
$form->submit("Foo") --> <input type="submit" value="Foo">
New:
$form->submit("foo_button")->("Foo") --> <input type="submit" name="foo_button" value="Foo">
Mostly we don't care what the button is so we leave the name blank.
2009-01-12 07:50:04 +00:00
Bharat Mediratta
b19729435c
Dashboard blocks are now data driven, and you can add new blocks to
...
both the sidebar and the center content area from a dropdown at the
top of the dashboard sidebar.
2009-01-12 07:39:53 +00:00
Bharat Mediratta
66abb6624e
Update to Forge r171
2009-01-12 07:37:34 +00:00
Bharat Mediratta
af992a9739
Update forge to r170
2009-01-12 07:17:24 +00:00
Bharat Mediratta
66fe884cb5
Use the author's avatar, not the logged in user's one.
2009-01-11 22:47:54 +00:00
Andy Staudacher
3df7889128
Increase length for user-agent and accept fields in comments table.
...
And truncate strings before passing them to MySQL.
2009-01-11 05:36:31 +00:00
Andy Staudacher
bdf2e9f698
Fix Aksimet tests for MySQL strict mode. Not sure how this would pass on linux, since the given value for server_remote_port is longer than 16 chars, the actual length of the DB field.
...
Removed the leading "server_" part of the test values to ensure that all values are small enough to be stored in the DB.
2009-01-11 04:45:11 +00:00
Andy Staudacher
bf67d7cabc
Fix User_Group tests for MySQL strict mode (can't omit full_name and password in inserts due to missing default values).
2009-01-11 03:53:29 +00:00
Bharat Mediratta
431a831f48
Update tests to match the way that we store server variables in the
...
comment. Get rid of comment::update tests since, comment::update is
gone.
Found a bug in comment::create() in the process.. yay unit tests!
2009-01-11 02:58:32 +00:00
Bharat Mediratta
a53b2d85c7
Set all the server_xxx values to known quanities, and demonstrate that
...
they're actually getting sent to Akismet. It looks like this code was
broken in the past, since it wasn't sending any of this extra info.
2009-01-11 02:40:09 +00:00
Bharat Mediratta
01666c5579
Fix all file structure issues (tabs, bad preambles, etc).
...
Note: installer/install.php is now on the "direct access" list.
2009-01-11 02:27:00 +00:00