thedevdojo / chatter Goto Github PK
View Code? Open in Web Editor NEWChatter is a Simple Laravel Forum Package
Home Page: https://devdojo.com/forums
License: MIT License
Chatter is a Simple Laravel Forum Package
Home Page: https://devdojo.com/forums
License: MIT License
When you try to send a post, edit or delete a message receive the same exception:
ErrorException in AuthManager.php line 292:
call_user_func_array() expects parameter 1 to be a valid callback, class 'Illuminate\Auth\SessionGuard' does not have a method 'handle'
Laravel 5.2 and for auth use Sentinel.
Hello,
Based on this issue, it would be nice if the ChatterServiceProvider
could copy the views into the resources/views/vendor
directory. Then, customization would be easier to handle.
If you agree, I can make a PR.
To be honest it seems like this package is abandoned for a long time, lots of PR and issues not even answered...
I have installed chatter into my project however the config for user profile doesn't work.
If I have the config set to nothing, it still generates a link to /user
If I add something to the config, it takes no effect.
I am using laravel 5.3
My app.blade.php
`
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title> Open School </title>
<!-- Styles -->
@yield('css')
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" charset="utf-8">
<!-- Scripts -->
@yield('js')
![Uploading Capture.JPG…]() `Right now, you can designate a "parent" category for categories, but there should be a visual indication of subcategories in the categories list. It's possible that the CSS for subcategories could simply add some margin or padding on the left, so they are indented from the list.
When i used it i have some errors with routing so i edit some route in view to be more dynamic
in home view
@section(Config::get('chatter.yields.head')) <link href="{{url('public/vendor/devdojo/chatter/assets/vendor/spectrum/spectrum.css')}}" rel="stylesheet"> <link href="{{url('public/vendor/devdojo/chatter/assets/css/chatter.css')}}" rel="stylesheet"> @stop
any documentation available for the forum to be installed not in another project? just a single install without any other app
Is there anything on the roadmap that would improve the use of the forum on a mobile device? The creation and contributing to a discussion is a little clunky at the moment.
Is anyone using the JSON only views? There are no links to them in the app, but they are there. Are they for an API or something? Should we be removing them?
Is it possible to utilise laravel scout to make forum posts searchable?
How do i customise Chatter ? ie remove page header etc ?
i have installed on live server i am getting this error on /forums url only
FatalErrorException in Model.php line 779:
Class 'App\User' not found
in Model.php line 779
Can I use with sentinel. I have problem with Auth::user() method
I've installed chatter in laravel 5.3, at first i got error with Parse error: syntax error, unexpected ''Laravel'' so i commented out my app.blade.php at line 40
{{-- {{ config('app.name', add "Laravel") }} --}}
and everything went fine.
But after i tried to create new discussion i can't see any text like where to put title, categories etc.
I've followed the video tutorial but i got stuck in here while i trying to figure out what just happened.
ps: sorry for bad english.
I have noticed that on the new discussion popup, We have a big of a bug.
Edit - See comments below a temporary fix has been found
Until the package has been updated, you can fix this temporarily within your chatter by declaring the following CSS in your forum custom stylesheet
.col-md-7 .form-control {
padding: 25px 20px;
}
.col-md-4 .form-control {
padding: 0 !important;
}
Without this you cannot see the currently selected option in the dropdown.
I am able to install successfully in laravel 5.3. However, after that, no CSS and JS are working although I copied css and js yield.
None of the link in example post are working.
Hi i tried to install the chatter application in laravel 5.4, i got a error message when i create a new discussion and create the post. this is the error message. How can i fix it?
FatalThrowableError in ChatterBeforeNewDiscussion.php line 26:
Type error: Argument 2 passed to DevDojo\Chatter\Events\ChatterBeforeNewDiscussion::__construct() must be an instance of Illuminate\Support\Facades\Validator, instance of Illuminate\Validation\Validator given, called in /home/menan/www/fourm/vendor/devdojo/chatter/src/Controllers/ChatterDiscussionController.php on line 66
Hi there, I found a XSS vulnerability using your package.
<embed src="data:image/svg+xml;base64,PHN2ZyB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjAiIHk9IjAiIHdpZHRoPSIxOTQiIGhlaWdodD0iMjAwIiBpZD0ieHNzIj48c2NyaXB0IHR5cGU9InRleHQvZWNtYXNjcmlwdCI+YWxlcnQoInN0ZWZmZW4yNSBYU1MiKTs8L3NjcmlwdD48L3N2Zz4=" type="image/svg+xml">
I tried to capture it using Gyazo but I only had a few seconds to do it but here you go:
Preview
I installed Chatter into a fresh install just like the video and it worked like a charm. Confident, I then tried to install it into an existing project (5.3). Everything worked again without errors like the video except when I go to mysite/forums, my exisiting homepage reloads as if there is no /forums route.
Please suggest ways to debug since the forum is beautiful and very simple to administate.
Thanks,
Jon
Hi,
Thanks for your great package, I have installed the package and everything is well. How can I add more categories for forum discussions? Is there any simple way or we should add them manually to the database.
Thank's :)
Ignore, Fixed it myself. Was not a part of your package.
i followed your instructions word for word - but getting this error
SQLSTATE[HY000]: General error: 1 table chatter_discussion has no column named slug (SQL: insert into "chatter_discussion" ("title", "chatter_category_id", "user_id", "slug", "color", "updated_at", "created_at") values (Hello, 2, 1, hello, #b6d40d, 2016-09-19 11:20:27, 2016-09-19 11:20:27)
Will this be added in later releases?
I tried using Laravel Scout in 5.4 and it worked beautifully.
I got this error when i do php artisan vendor publish
[League\Flysystem\FileNotFoundException]
File not found at path: 016_07_29_171118_create_chatter_categories_table.php
Hi.
I really like this project, and at the moment I am working on some 5.3 stuff, but just wondering for the future...
thanks
Twitter: @symfonycoda
I want to be able to notify a user on when there is a comment in his discussion.
Also
When I input an image source in the TinyMCE editor, it shows the preview but after posting it doesn't display.
# WHEN I UPLOAD
# AFTER UPLOADING
Please can you tell me what part of the code to edit to fix this... I can try to find it myself but i still have a lot to do in a short period of time.
Thanks Mate. Good Job.
When I try to run migrations with sqlite I get this message:
[Illuminate\Database\QueryException]
SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL column with default value NULL (SQL: alter table "chat
ter_discussion" add column "slug" varchar not null)
Just an quick idea I got when I watched @ThomasBS ' stream on
https://www.liveedu.tv/thomasbs/
Laravel already ships with an event system. The chatter should register events there.
Hi,
I think it could be usefull for non english people to use langs resources instead of plain text, In this way, it will no longer be necessary to modify source code to change messages text.
Thanks,
Regards.
jquery.tinymce.min.js throws this error if app.css is not located in css/app.css
app.css Failed to load resource: the server responded with a status of 404 (Not Found)
Hey,
Thanks for the work on this package.
I was trying to integrate it with mine but after I do a php artisan vendor:publish
I do not get any migrations from the package.
When I run php artisan migrate
I get Nothing to migrate.
I am running Laravel 5.2.
Is it me doing something wrong? I am supposed to copy and paste the migrations manually?
Thanks!
Hello,
I'm just wondering if Chatter can be integrated with Voyager or is that still to come?
Thanks!
FatalThrowableError in Application.php line 606:
Class 'GrahamCampbell\Markdown\MarkdownServiceProvider' not found
because in Chatter's controllers it gets registered:
The composer.json
needs to be updated with:
{
"require": {
"graham-campbell/markdown": "^7.0"
}
}
or I prefer checking what the current editor is before registering.
I will send in a PR later.
What do you guys think to make jQuery a requirement for maybe 0.3? Would make some Javascript development on my part a little easier and much cleaner and opens up some more options as well.
edit: sorry it seems like it already is a requirement.
We have a problem with our unit tests, Laravel says "Cannot declare class Chatter, because the name is already in use in ../vendor/devdojo/chatter/src/Helpers/Chatter.php on line 3". The problem is that you include "/Helpers/Chatter.php"
My solution to fix this is to use "Facades". Now the developer can add this to the config/app.php
'Chatter' => DevDojo\Chatter\Helpers\Chatter::class,
. And add a namespace to the helper class "Chatter".
With this fix unit tests works again.
In my application, i would rather call a route my the name.... cos i have some other functions that depend on having the route named. The "/forums" is not a named route.
I followed the guide, and it's not publishing the views.
View [layouts.app] not found. (View: /Users/manshu/Documents/apps/thinkpmp/vendor/devdojo/chatter/src/Views/home.blade.php)
What would be the best way to customize the views of chatter?
Would be nice if you have a short tipp for me
Best Regards
Max
Hi,
We use chatter as our forum package. I was testing the new version on a clean laravel 5.4 installation and I get the following error. "Class 'GrahamCampbell\Markdown\MarkdownServiceProvider' not found". This is triggered by the ChatterController on line 27. I think you forget to add "graham-campbell/markdown" to the composer.json
When you create new discussion/post you only strip the content for validation. And you insert the unstripped variable to the creation of the object.
But when you edit and save it. You strip it for both, the validation and also for the update.
This results in that the html tags are not working after you edit a post. Only when you create one.
I would like to override some of the routing in my application’s routes folder from this chatter's routes. How do I do that ?
I was thinking about forking to achieve this, but i wanted your guys input.
I was thinking a few ways that this package could become the best/default forum package for laravel.
The ability to publish a few more things, for example the forum master layout so that you could customize it safely.
I think some way of having the routes defined in your routes file and defined in the chatter config could help for reasons explained in my next idea.
doing these things will mean quite allot in terms of people extending this forum safely, for example in a caffienated module. If you could publish the master layout, you could require a modified view into other views and make a view just for admins etc to moderate restricted by an outside model.
I think it could be done by simply publishing the master layout and then having the package config check for that first?
The reason i haven't forked is for i figure that the package creator/current code contributors/users are far better to put input on these things.
Any thoughts?
The title says it all.
I push "create disscation" and vualia:
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'color'
cannot be null (SQL: insert into chatter_discussion
(title
, chatter_category_id
, user_id
, slug
, color
, updated_at
, created_at
) values ({}fghgh, 3, 2, fghgh, , 2017-01-26 13:50:37, 2017-01-26 13:50:37))
I want to make people able to favourite dicussions, and then be able to see what dicussions they have favourited
When I upgraded from v0.1.22...
Normally when a user isnt logged in and tries to create a new disscussion they are redirected to the login page with ?redirect=Forums.
I have built my app around that so
Now it doesnt even do anything when the new discussion button is clicked.
is there a way around this.
i add some codes in ChatterPostController.php destroy funtcion
if(!Auth::guest() && (Auth::user()->id == $post->user_id)){
$post->delete();
$count_post = Post::where('chatter_discussion_id',$post->chatter_discussion_id)->count(); /*added*/
$discussion = Discussion::find($post->chatter_discussion_id);
$chatter_alert = array(
'chatter_alert_type' => 'success',
'chatter_alert' => 'Successfully deleted response from the ' . config('chatter.titles.discussion') . '.'
);
if($count_post<=0){
Discussion::find($post->chatter_discussion_id)->delete();
}/*added*/
return redirect('/' . config('chatter.routes.home') . '/' . config('chatter.routes.discussion') . '/' . $discussion->slug)->with($chatter_alert);
}
This is a great forum
However it really needs to be able to have the ability to edit the Main header / image so it becomes your own & plus i noticed you cant add Category unless you do this via Database which is a pain
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.