Brad Dutton
8a5a326386
Merge pull request #1 from trasher/short_tags
...
Drop short_tags
2020-10-10 20:27:00 -07:00
bwdutton
761de1b42f
get the CI tests fully working again
2020-02-01 14:17:33 -08:00
bwdutton
9c6259b7bd
fix broken admin comment nav links https://github.com/bwdutton/gallery3/issues/2
2019-09-11 14:27:49 -07:00
Johan Cwiklinski
6746792bdf
Drop short_tags
2018-05-19 17:01:37 +02:00
Bharat Mediratta
9e0631ab0d
Provide a "default moderate" option for comments. The default behavior
...
is unchanged, but you now have the option to set all new comments to
be unpublished and then moderate them through the Admin > Content >
Comments interface.
Fixes #2126 .
2014-05-28 14:54:02 -04:00
Bharat Mediratta
743e2f88d8
Overhaul the Admin > Content > Comments page. Use a tabbed interface
...
for consistency with other parts of the admin UI (ie: G2 import).
The UI is now Ajax driven because that's how jQuery tabs works best in
this case. This requires a little finagling in JS to get the
paginator links to load properly. While I'm in there, add a paginator
at the top of the table, make the buttons in the delete tab sane and
smooth scroll back to the top of the tab when switching pages.
Fixes #1702
2011-04-26 21:02:43 -07:00
Bharat Mediratta
5cf38ed816
Stop using Pagination() and instead use $theme->pager() in views.
...
Move the pager() function up to Gallery_View and replace
themes/admin_wind/views/pager.html.php (Pagination based) with a
modified version from the wind theme in
themes/admin_wind/views/paginator.html.php. Fixes #1718 .
2011-04-26 09:48:21 -07:00
Bharat Mediratta
2dda8e22a7
Use the gallery helper date/time functions wherever we format date
...
time for the browser. Fixes ticket #1278 .
2010-08-08 16:54:31 -07:00
Bharat Mediratta
74e821b03e
Rename the feed variable from "children" to "comments" since that
...
makes more semantic sense.
2010-06-20 17:21:25 -07:00
Bharat Mediratta
f0a99ffc27
Undo "else" clause -- we should keep the logic simple and easy to
...
follow, even if it's redundant.
Expand a <ul> to multiple lines.
2010-06-18 14:31:04 -07:00
Tim Almdal
70f56ba43a
Fix for ticket #1163 . Don't all guests to a comment when there are no comments and the comment access permission is register users.
2010-06-17 14:22:35 -07:00
Bharat Mediratta
87fde3f360
Create a UI under Admin > Settings > Comments where you can limit
...
comments only to registered users. It's simplistic, but is better
than adding a permission since generally this setting will be used
Gallery-wide.
Fixes ticket #1002
2010-06-05 23:35:32 -07:00
Bharat Mediratta
ab204d2720
Rename the admin_comments view to admin_manage_comments to match the controller.
2010-05-16 23:01:57 -07:00
Bharat Mediratta
2157285d9b
Rename admin/comments to admin/manage_comments to make room for
...
admin/comments to be a settings page.
2010-05-16 22:53:19 -07:00
Chad Kieffer
39818dd29f
Comment updates. Add empty <li> to empty <ul> for HTML validation, fixes #1066 . Minor CSS/JS fixes. Add scrollTo effect when clicking on 'Add a Comment'.
2010-04-21 22:36:52 -06:00
Chad Kieffer
b103306f3d
Don't need 'right' class here. Positioning is absolute to the right.
2010-02-18 19:26:07 -07:00
Andy Staudacher
64e5d438c7
HTML validation, avoid empty <ul>
2010-02-14 07:15:58 -08:00
Tim Almdal
f943a2deef
Don't show a link to the user profile for the guest user
2010-01-28 08:14:33 -08:00
Tim Almdal
7c06e21ec4
Refactor creating the user profile page content into the the event module. The show_user_profile is used to provide content to the user profile page. Add the list of the users comments to the profile page.
2010-01-24 15:27:33 -08:00
Tim Almdal
ed5b07b335
Create a user profile page that is used as a landing page when referencing a user in messages or pages.
...
Partial fix for ticket #889 and a fix for #931 .
2010-01-23 21:38:01 -08:00
Tim Almdal
4c3b9e363a
Refactor the comment module as part of ticket: #917 "Remove Rest Controller"
...
* Remove the methods create, update, delete, get_edit_form as there are not used
* Change the return when a comment is created to return the html for the new comment.
This saves a second get request to down load the comment.
2009-11-25 08:12:50 -08:00
Chad Kieffer
e232c39fe5
Rename g-pager to g-paginator after the recent pagination update.
2009-11-18 18:51:18 -07:00
Bharat Mediratta
e0f4e6500d
Use text::alternate() instead of hand-rolled even/odd code.
2009-11-15 19:34:44 -08:00
Bharat Mediratta
4f8728029d
Call render() on the $menu, since we no longer use its __string()
...
function to do implicit conversion.
2009-11-08 22:35:14 -08:00
Tim Almdal
45a7eb0248
Remove an extra trailing bracket.
2009-11-02 10:02:34 -08:00
Tim Almdal
7ea13b3869
Normalize capitalization ticket #596
2009-10-28 12:15:52 -07:00
Chad Kieffer
5f56cbf997
Wrap all admin views in g-block and g-block content. This provides the means to visually separate the view's title and description from everything else. Primary admin view title should always be h1, and only one h1 per view. Removed some unused admin CSS id's.
2009-10-18 20:22:10 -06:00
Chad Kieffer
ad0497a8d2
Drop our g-clearfix in favor of using jQuery UI's ui-helper-clearfix.
2009-10-17 12:58:31 -06:00
Chad Kieffer
121fcab5c8
Replaced most clear fix hacks with generic class.
2009-10-07 00:46:02 -06:00
Chad Kieffer
d581bbbd1e
Renamed more CSS selectors from gName to g-name.
2009-10-04 15:53:00 -06:00
Chad Kieffer
3e6ba7acc3
Renamed most, if not all css selectors from gName to g-name. Moved a few shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
2009-10-04 00:27:22 -06:00
Chad Kieffer
9145331fd4
Renamed and moved gOdd/gEven CSS classes.
2009-10-03 12:33:53 -06:00
Chad Kieffer
72672bda39
Replaced gButtonLink with g-button.
2009-09-30 08:04:49 -06:00
Chad Kieffer
daa3a2b43c
First round of CSS refactor updates. Added calls to gallery.common.css from wind and admin_wind. Replaced basic text align and block float classes. Removed section #2 from both themes screen styles.
2009-09-30 00:32:52 -06:00
Tim Almdal
b310fab1f8
Change the link on the "Be first to comment" link to do a request to the server to get the comment add form. Fixes ticket #699 .
2009-09-22 07:59:26 -07:00
Andy Staudacher
1d30691452
Add missing mark_clean() for t() calls with %attr parameter.
2009-09-01 12:14:23 -07:00
Andy Staudacher
53711225ac
XSS / style fixes for newly detected issues (after fixing XSS scanner)
2009-09-01 01:28:52 -07:00
Andy Staudacher
2bc73e2e36
Fix XSS vectors in HTML attributes (mostly t() calls)
2009-08-31 21:51:57 -07:00
Andy Staudacher
fc294c2777
XSS fixes in admin_comments.html.php
2009-08-30 21:26:23 -07:00
Andy Staudacher
b9bd1681a3
Update all code to use helper method html::clean(), html::purify(), ... instead of SafeString directly.
2009-08-29 22:54:20 -07:00
Andy Staudacher
a5dfc81a8f
Merge commit 'upstream/master'
...
Conflicts:
modules/akismet/views/admin_akismet.html.php
modules/comment/helpers/comment_rss.php
modules/gallery/helpers/gallery_rss.php
modules/gallery/libraries/I18n.php
modules/gallery/views/permissions_browse.html.php
modules/gallery/views/simple_uploader.html.php
modules/info/views/info_block.html.php
modules/organize/controllers/organize.php
modules/organize/views/organize.html.php
modules/organize/views/organize_album.html.php
themes/default/views/album.html.php
themes/default/views/movie.html.php
themes/default/views/photo.html.php
2009-08-29 14:17:48 -07:00
Chad Kieffer
5db0b68a70
Update status message styles. Lighten backgrounds, don't show background on Admin Maintenance rows, and added gModuleStatus class.
2009-08-29 14:01:04 -06:00
Andy Staudacher
c01ac42c46
Refactor all calls of p::clean() to SafeString::of() and p::purify() to SafeString::purify().
...
Removing any p::clean() calls for arguments to t() and t2() since their args are wrapped in a SafeString anyway.
2009-08-29 12:48:40 -07:00
Tim Almdal
1d5262f9c3
Fix ticket #591 : reCaptcha always on the page.
...
1) move creating the "Add a comment" button into the comments.html.php
2) use $.get() to retrieve the comment add form
2009-08-28 13:44:01 -07:00
Bharat Mediratta
41b8f943a6
Convert instances of theme_url() to just url() to match the API change
...
made in dbeadc1407
2009-07-23 10:20:49 -07:00
Tim Almdal
b59e94e7dc
Change references to Gallery 2 and Gallery 3 to consistently refer to
...
Gallery n as opposed any variants of this.
2009-07-07 07:32:36 -07:00
Tim Almdal
4f0b4469f9
Forgot this file when i was fixing #477
2009-07-04 17:33:10 -07:00
Tim Almdal
d6648c0aff
Fix for ticket #477 . Use nl2br method when rendering comment::text and
...
item::description. In addition add p::clean or p::purify to places that
xss cleaning had missed (i.e. rss feeds)
2009-07-04 08:17:12 -07:00
Tim Almdal
54ffea2419
Split the clean method into two clean and purify. clean is a light weight
...
approach using html::specialchars and purify uses HTMLPurifier to intelligently
cleanse the output fields. Use purifier for text and title fields where it is
likely that a user would enter html to format their data.
2009-07-03 21:44:10 -07:00
Bharat Mediratta
6e8a8c53e6
Rename $theme->url() to $theme->theme_url() for consistency wiht
...
$theme->theme_script().
2009-06-28 19:49:48 -07:00