Commit Graph

68 Commits

Author SHA1 Message Date
HDVinnie
3c87845e54 (Update) Namespace models under App\Models 🚀 2019-02-22 08:15:41 -05:00
Laravel Shift
12397c9e6a Adopt PSR-2 coding style
The Laravel framework adopts the PSR-2 coding style in version 5.1.
Laravel apps *should* adopt this coding style as well. Read the
[PSR-2 coding style guide][1] for more details and check out [PHPCS][2]
to use as a code formatting tool.

[1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
[2]: https://github.com/squizlabs/PHP_CodeSniffer
2019-02-22 03:22:51 +00:00
singularity43
df8c1d84c7 (Update) ForumController
Remove robot icon.
2019-02-09 14:59:05 -05:00
singularity43
578f671ff2 (Update) ForumController
Send user back to correct topic on post delete.
2019-02-01 15:27:39 -05:00
singularity43
a452a1281c (Update) ForumController
Pass topic.
2019-01-31 17:47:32 -05:00
HDVinnie
adc6494012 Apply fixes from StyleCI 2019-01-31 04:04:04 +00:00
HDVinnie
71d6f396e0 Merge branch 'master' into now-start-twitterization 2019-01-30 23:02:01 -05:00
singularity43
38c18a52d7 (Update) ForumController
Remove topics,posts by users.
Update notify routines.
2019-01-30 21:39:34 -05:00
HDVinnie
0471bc2ccb (Update) Permission Checks 🚀
- remove if else statements in favor for cleaner abort_unless and abort_if helpers
2019-01-27 11:17:51 -05:00
singularity43
c39f0dfc10 (Update) Forum Addon / (Update) User History
Fix the last reply pull.

Yes, the form fields don't match but I kept it this way for code clarity (IE: you know update_at needs to be ordered by insertion timeline).
-
Pass forum attribute as  type to Post (which may be extended)
-
As requested by user.
2019-01-24 21:55:16 -05:00
HDVinnie
e2a85b2755 Apply fixes from StyleCI 2019-01-25 02:14:36 +00:00
singularity43
a402ab12d4 (Update) Forum View
Change default ordering of topics/posts.
2019-01-24 21:03:04 -05:00
singularity43
2dac99dd27 (Fix) Forum Addon Bugs
Multi file commit because all changes at once.
2019-01-24 20:33:48 -05:00
singularity43
5390026bfc Merge branch 'Forums-Addons' of https://github.com/HDInnovations/UNIT3D into Forums-Addons
Need This Done.
2019-01-23 22:51:31 -05:00
singularity43
21c7c46630 (Update) ForumController
Fix to work with new notification system.
2019-01-23 22:04:16 -05:00
singularity43
8994bf480b (Update) ForumController
1: Add latest topics
2: Add latest posts
3: Add subscriptions overview
4: Add advanced search
5: Add/fix category view
6: Add post tipping
7: Add ability for OP to close topic.
8: Fix security for labels.
9: Change mentions to notifications from PMs.
2019-01-23 15:24:21 -05:00
HDVinnie
7f943bb710 (Fix) Forum Post Edit/Delete 🐛 2019-01-16 22:09:59 -05:00
HDVinnie
c0ccbf0e87 (Fix) Forum Post Deletions 🐛 2019-01-14 09:40:38 -05:00
HDVinnie
aef4d38c9e (Update) Forums System 🚀
- pull like/dislike function out of ForumController and into its own.
- refactor perm checks
- fix redirects to point to the permalink of the specific post
- ref #398
- TODO: clean routes
2019-01-11 14:00:04 -05:00
HDVinnie
0850390860 (Update) Standardize Where Expressions 🚀
- using `Model::where('download', '=', 1)` over`Model::where('download', 1)`
- decided is easier for new devs to understand.
- thanks to @werrpy for helping with the regex to mass update.
2018-12-16 18:32:58 -05:00
HDVinnie
2f2c52328b Apply fixes from StyleCI 2018-12-06 22:57:41 +00:00
HDVinnie
00bb324053 Apply fixes from StyleCI 2018-12-06 14:42:13 +00:00
HDVinnie
f6d3a1fabc (Update) Code Cleanup
- replace unauthorized if else checks with a much cleaner approach using the abort_unless() helper.
2018-11-29 17:41:14 -05:00
HDVinnie
87563a2473 (Update) Refator Toastr Notifications 2018-11-12 11:14:41 -05:00
HDVinnie
895bbb66e3 (Update) Optimize Many Queries
- reduce load
2018-10-16 21:27:47 -04:00
HDVinnie
85b5633a32 (Update) Automated System Chat Messages 2018-09-29 23:04:15 -04:00
Laravel Shift
5c1c56d2ca Adopt PSR-2 coding style
The Laravel framework adopts the PSR-2 coding style in version 5.1.
Laravel apps *should* adopt this coding style as well. Read the
[PSR-2 coding style guide][1] for more details and check out [PHPCS][2]
to use as a code formatting tool.

[1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
[2]: https://github.com/squizlabs/PHP_CodeSniffer
2018-07-18 20:13:14 +00:00
HDVinnie
ed37cd9745 Merge pull request #314 from HDInnovations/Forum-Topic-Subcriptions
Forum Topic Subscription System:

Topic creators will no longer receive a email when a new post hits there topic. Instead now there is a new subscribe/unsubscribe button. If subscribed you will receive a site notification. Emails are no longer part of the picture.

- closed #295
2018-06-12 19:48:53 -04:00
HDVinnie
82a4df7417 (Update) Refactor How Subscriber Notifications Are Sent
- closes #295
2018-06-11 22:39:26 -04:00
HDVinnie
53e51e306c (Update) Forum Controller 2018-06-11 21:41:21 -04:00
HDVinnie
d24045acba (Update) Aborts
Replace `abort(403, 'Unauthorized action.’);` use with a graceful
toastr error.
2018-06-09 21:29:44 -04:00
HDVinnie
6441ca7fb7 (Update) Mass Controllers Cleanup 2018-06-06 23:49:27 -04:00
HDVinnie
aa13bc6b93 (Fix) Forum Controller Spacing 2018-06-06 21:57:06 -04:00
HDVinnie
3a7ea16165 (Update) Cleanup Forums System 2018-06-06 21:48:28 -04:00
Poppabear
16ed00ca6e (Update) remove the word 'User' from system message 2018-05-09 18:35:22 -04:00
poppabear8883
8f4b96ec95 (Update)[Chat 2.0] More refactoring 2018-05-08 10:20:02 -04:00
poppabear8883
e01fcb8855 (Update)[Chat 2.0] Add repository
Also updated some other stuff ...
2018-05-07 16:35:24 -04:00
HDVinnie
7728d26913 (Update) Change System Announcements To Use New Chat 2018-04-29 16:47:06 -04:00
HDVinnie
2e6cfd470d (Update) General Cleanup Of Controllers
- remove unused “use” statements
2018-04-25 15:15:41 -04:00
poppabear8883
fdc5d50fbb (Feature) Staff "here" tag
Now staff members can use the "@here" tag to notify all users that
have made previous posts or comments on the specific topic.

Also strips out "@here" from quotes to avoid tagging all users again
unintentionally.

This is useful for things like notifications of updates and/or
announcements.

Supports posts/comments in Forums, Torrents, Articles and Requests

(Reworked) repository and added a ton of new api
2018-04-24 21:26:50 -04:00
poppabear8883
e41a82bc4c (Update) Removed left behind debug code 2018-04-24 10:07:55 -04:00
poppabear8883
9b27fd7da5 (Feature) Auto tagging users in quotes and more
Will now tag users when they have been quoted by another user.

Refactored regex to only alpha-numeric characters, as well as dashes
and underscores.

Added debugging options to repository:
 1: Allows you to tag yourself while testing

 code:
 ```php
 $this->tag->setDebug(true);
 $this->tag->messageTaggedUsers($content, $subject, $message);
 ```
2018-04-24 10:06:20 -04:00
poppabear8883
4ef10042c3 (Feature) Tagging users in comments
Supports comments made in Torrents, Articles and Requests

Created new repositry for this as it may be used throughout the
code base

(Update) ForumController to use new repository
2018-04-24 00:13:04 -04:00
poppabear8883
e40324e6c4 (Fix) Tagging yourself is not allowed
Thats right, a simple oversignt on my end!
2018-04-23 23:11:21 -04:00
poppabear8883
fcc810e9b6 (Update) Link to forum post in tagged PM
This makes the link in your PM go directly to the post you where
tagged in!
2018-04-23 22:57:03 -04:00
poppabear8883
5bbc910d12 (Feature) Tagging users in forum posts
You can now tag a user in a forum post by simply prefixing the username
with an "@" symbol.

For example: @UNIT3D
2018-04-23 22:36:59 -04:00
HDVinnie
32e8b1c62b (Update) Controller + Commands Query Syntax
- using shorter and more readable syntax
- remove “=“ in where clauses
- uses oldest() / latest() instead of like orderBy('created_at', 'DESC')
2018-03-24 16:42:59 -04:00
HDVinnie
e3e21896e2 (Update) Controllers Syntax
- use shorter and more readable syntax
- replace orderBy('created_at', 'DESC') with latest()
2018-03-24 15:56:39 -04:00
HDVinnie
2da7207d2b (Update) Refactor General and Staff Controllers
- Remove all facades use besides mail
- Use Dependency Injection for Illuminate\Http\Request
- use helpers for auth, cache, validator, and more to rid of facades use
- use $request->input() over $request->get()
- use $request->isMethod('POST') over $request->getMethod('POST')
- general cleanup
2018-03-15 12:32:40 -04:00
HDVinnie
a3b7f76b92 (Update) Post Rules 2018-03-01 22:21:47 -05:00