Marcin Kurczewski
2bac28a553
More capable privilege system
...
Following privileges for post actions can now understand different settings for
everyone and for uploader:
* Scoring posts
* Featuring posts
* Flagging posts
* Favoriting posts
Additionally, privilege for flagging users can now understand different
settings for everyone and for the user that is currently logged in.
In other words: with this update admin can configure privileges so that scoring
own posts or flagging oneself will be prohibited, while scoring other people's
posts or flagging others will be okay.
2014-02-21 20:24:37 +01:00
Marcin Kurczewski
28037af029
Registered users can mass tag their own posts
2014-02-21 20:24:37 +01:00
Marcin Kurczewski
4420fa588d
Post list errors are shown in nicer way
2014-02-21 20:24:37 +01:00
Marcin Kurczewski
db8e13ec35
Merging and renaming tags yields status messages
...
Previously, it just redirected back to tag list without any kind of
notification about success.
2014-02-21 20:24:37 +01:00
Marcin Kurczewski
2bad17ebdb
Fixed extension in saved posts
2014-02-18 18:35:58 +01:00
Marcin Kurczewski
1352aba438
Fixed saving post original file name to DB
2014-02-18 18:35:58 +01:00
Marcin Kurczewski
532fe9f7e6
Added pagination to tag list
2014-02-16 20:10:38 +01:00
Marcin Kurczewski
0c5fc7e03f
Fixed useless arguments
2014-02-16 20:10:38 +01:00
Marcin Kurczewski
c99596d12b
Added last login date to users
2014-02-13 09:10:24 +01:00
Marcin Kurczewski
b22e74c0e9
Closed #72
2014-02-05 08:35:24 +01:00
Marcin Kurczewski
35cdc0cf3a
Refactored scripts and stylesheets
...
Styles, scripts and page titles are no longer set from controllers level.
Changed because it was breaking MVC pattern and led to spaghetti code.
Also, optimized JS/CSS inclusions a bit.
2014-02-01 11:24:03 +01:00
Marcin Kurczewski
d170e3b526
Closed #68
2014-02-01 11:23:59 +01:00
Marcin Kurczewski
36e2e5827c
Closed #69
2014-01-27 09:17:36 +01:00
Marcin Kurczewski
752cbbd016
Fixed undefined method
2014-01-26 13:35:47 +01:00
Marcin Kurczewski
a869c1da1e
Slightly changed comment edit log message
2014-01-25 16:44:37 +01:00
Marcin Kurczewski
100303173e
Added comment editing support
...
In other news, editing a post doesn't reload page anymore
(yay for editing tags for Youtube posts)
2014-01-25 16:39:09 +01:00
Marcin Kurczewski
fd9433a2e3
Edit tokens moved to model
2014-01-25 15:09:20 +01:00
Marcin Kurczewski
6905ad047d
Fixed changing access rank
2013-12-18 16:11:20 +01:00
Marcin Kurczewski
5607cfc353
Models rewrite; removed RedBeanPHP; misc changes
...
Pages load 1.5-2x faster
Exception trace in JSON is now represented as an array
Fixed pagination of default favorites page in user pages
Fixed thumbnail size validation for non-square thumbnails
2013-12-18 15:17:49 +01:00
Marcin Kurczewski
95961fe7d5
Added tag sorting here and there
...
- Title attribute in post thumbnail
- Page title in post view
- Footer in featured post
2013-12-14 16:55:07 +01:00
Marcin Kurczewski
5b25250209
Optimalizations
2013-12-14 14:50:30 +01:00
Marcin Kurczewski
5d45d6da2c
Support for MySQL
2013-12-14 12:51:08 +01:00
Marcin Kurczewski
40e70c4305
User settings: new option to hide disliked posts
2013-12-05 22:21:15 +01:00
Marcin Kurczewski
4c1bb44e59
Fixed rare bug in prev/next post
...
If tag/user/whatever from last search was deleted after viewing a post,
refreshing the page with that post would yield "Invalid tag/user/whatever"
error.
I changed it so that when retrieving previous/next post for latest search query
throws any errors, saved search query gets resetted to empty one.
2013-12-01 14:47:35 +01:00
Marcin Kurczewski
4285aff671
Fixes to preloading
2013-11-30 16:19:48 +01:00
Marcin Kurczewski
01c54d4d83
Optimalization: simplified selectors
...
Squash
2013-11-30 14:23:46 +01:00
Marcin Kurczewski
d7cb024f24
Refactored pagination queries
2013-11-30 13:59:29 +01:00
Marcin Kurczewski
c9a8f99f6a
Optimization: preloading moved back to controllers
...
- Nearly twice faster page load
- Query count greatly dropped
2013-11-30 01:10:58 +01:00
Marcin Kurczewski
1e954bb815
Optimalization: faster but dirty row retrieval
2013-11-30 01:10:55 +01:00
Marcin Kurczewski
5e58488f3e
Optimalization: simplified tabs structure
2013-11-30 00:05:03 +01:00
Marcin Kurczewski
c683fa3b0f
User settings: added opt-in tags in post thumbs
2013-11-25 22:23:48 +01:00
Marcin Kurczewski
505fe1bac3
Mass tag: fixed concurrent tag toggling
2013-11-25 22:23:48 +01:00
Marcin Kurczewski
20022ea4ab
Next/prev links are bound to latest search query
2013-11-25 22:23:45 +01:00
Marcin Kurczewski
0ef5f1b46d
Absolute paths used where necessary
...
- No random chdir() calls
- No more exceptions when executing scripts from dirs other than root
- find-posts.php prints absolute paths making piping more useful
2013-11-23 20:52:41 +01:00
Marcin Kurczewski
0b22f2621e
Markdown tweaks
...
- Faster log rendering
- New transform kind: simpleTransform()
2013-11-23 20:00:02 +01:00
Marcin Kurczewski
3b532532d1
Post edit: post content can now be replaced
2013-11-23 17:27:56 +01:00
Marcin Kurczewski
d274f1c044
Fixed featured post quirks
...
- fixes for empty database
- when post was deleted, new one is selected automatically
2013-11-23 16:03:40 +01:00
Marcin Kurczewski
fdd49d783a
Compressed logs from uploads
2013-11-23 15:39:19 +01:00
Marcin Kurczewski
81017e18cb
Logging: improved grammar a little
2013-11-23 15:39:19 +01:00
Marcin Kurczewski
676c3a41e2
Logging: removed logEvent() and log prefixes
...
This looked ugly.
2013-11-23 15:39:19 +01:00
Marcin Kurczewski
db602f08d3
Better handling of anonymous user names
2013-11-23 15:39:19 +01:00
Marcin Kurczewski
d8997edc57
Refactor of controllers and models
...
- Most of model-related code moved from controllers to model classes, much
fewer calls to R::whatever() in controllers
- Post editing and uploading shares the same code, thus making implementing
stuff easier in the future
- Added support for default bean wiring, no more calls to R::preload() all over
the place
- More robust concurrent post editing detection
2013-11-23 15:39:13 +01:00
Marcin Kurczewski
0bbeb4604f
Introducing tag list sort styles
...
Also, increased margin in /users
2013-11-23 13:54:13 +01:00
Marcin Kurczewski
909026ae0f
User names: removed case sensitivity
2013-11-22 00:26:05 +01:00
Marcin Kurczewski
6549237dda
Mass tag: fixed tag case sensitiveness bug
2013-11-22 00:25:59 +01:00
Marcin Kurczewski
1f2ce725ff
Mass tag redirection from /tags accepts empty tag
...
User was already able to enter masstag mode without specifying what they want
to tag with, through "mass tag" tab.
2013-11-21 22:44:28 +01:00
Marcin Kurczewski
cab63895c2
Fixed "tag already exists" when only changing case
2013-11-21 22:44:28 +01:00
Marcin Kurczewski
a98c61ebf3
Closed #67
2013-11-21 22:44:28 +01:00
Marcin Kurczewski
fb5e851a13
Closed #66
2013-11-21 22:44:28 +01:00
Marcin Kurczewski
e336d04347
Logging minifix
2013-11-18 23:23:56 +01:00