GithubHelp home page GithubHelp logo

thedevdojo / chatter Goto Github PK

View Code? Open in Web Editor NEW
897.0 897.0 295.0 2.28 MB

Chatter is a Simple Laravel Forum Package

Home Page: https://devdojo.com/forums

License: MIT License

PHP 49.82% CSS 25.43% JavaScript 4.06% HTML 20.70%
chatter discussion forum laravel-forum

chatter's People

Contributors

aaronranard avatar chrisbbreuer avatar cristianuibar avatar galdazbiz avatar gerbenjacobs avatar gggggggg avatar idbendriss avatar lucasleandro1204 avatar marktopper avatar mattlibera avatar mhanoglu avatar napestershine avatar putera avatar seanwhelan avatar steffen25 avatar thomasbs avatar timacdonald avatar tnylea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chatter's Issues

A few ideas :)

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?

SQLSTATE[HY000] on migration with sqlite

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) 

Great Forum

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

Views not publishing

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)

FatalErrorException in Model.php line 779:

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

New discussion category dropdown

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.

Mobile Improvements

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.

Unit test doesn't work

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.

Name the forums route

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.

Config not working as expected

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.

XSS Vulnerability

Hi there, I found a XSS vulnerability using your package.

  1. Create a new discussion with a title and description.
  2. Edit the post content to
    <embed src="data:image/svg+xml;base64,PHN2ZyB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjAiIHg9IjAiIHk9IjAiIHdpZHRoPSIxOTQiIGhlaWdodD0iMjAwIiBpZD0ieHNzIj48c2NyaXB0IHR5cGU9InRleHQvZWNtYXNjcmlwdCI+YWxlcnQoInN0ZWZmZW4yNSBYU1MiKTs8L3NjcmlwdD48L3N2Zz4=" type="image/svg+xml">
  3. Click the update response button
  4. Then once the post has been updated with the content above go to next step
  5. Click the edit button and then click the update response button again like the step 3.
  6. You can now see a popup box with the message "steffen25 XSS"
    You can do more nasty stuff this is just an example :)

I tried to capture it using Gyazo but I only had a few seconds to do it but here you go:
Preview

Failed to load resource: app.css

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)

MarkdownServiceProvider not found

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

Upgrading from version 0.1.22

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.

MarkdownServiceProvider not found on fresh install

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.

*IMPORTANT* Implement the views and answered field in the Chatter_Discussion table and TinyMCE error

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

1

# AFTER UPLOADING

2

# I CHECK CHROME CONSOLE
3

I EDIT IT FROM THE DISCUSSION

4

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.

Views

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

Installation problem in Laravel 5.3

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.

Problem with creating new discussion

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.

screenshot_2016-10-25_11-49-35

Discussion and Post not working in my chatter application

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

Editing a post strips the content.

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.

Example
When you create the post with few line breaks...
screen shot 2017-03-17 at 14 37 07

And then you only click edit & save...
screen shot 2017-03-17 at 14 37 17

Integrity constraint violation: 1048 Column 'color'

integrityconstr
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))

jQuery as a requirement?

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.

Integrate with Voyager?

Hello,

I'm just wondering if Chatter can be integrated with Voyager or is that still to come?

Thanks!

Seems abandoned

To be honest it seems like this package is abandoned for a long time, lots of PR and issues not even answered...

Override Routes

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 ?

No search functionality

Will this be added in later releases?

I tried using Laravel Scout in 5.4 and it worked beautifully.

[Suggest] use laravel localization

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.

Searchable Posts

Is it possible to utilise laravel scout to make forum posts searchable?

customise

How do i customise Chatter ? ie remove page header etc ?

Wrong Route

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

Nothing to migrate.

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!

CSS not showing

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 -->
@include('partials.navigation') @yield('content') <script type="text/javascript" src="http://localhost/cdn/js/jquery.min.js"></script> <script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

@yield('js')

![Uploading Capture.JPG…]() `

Exception for any POSTrequest

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.

JSON only views - using them?

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?

documentation for single install

any documentation available for the forum to be installed not in another project? just a single install without any other app

table errors

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)

tinymce app/css error loading

capture d ecran 4

hi, i can't load vendor asset file app.css , it required by tinymce ,
i have ingrate js and css in app.layout and , but this plugin file is nested , any solution and thanks.

Move views to vendor directory

Hello,

Based on this issue, it would be nice if the ChatterServiceProvidercould copy the views into the resources/views/vendor directory. Then, customization would be easier to handle.

If you agree, I can make a PR.

Bug: when delete post to end ,but the discussion still exist

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);

        }

Subcategories Indent in Categories List

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.

How to add more categories

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 :)

Fresh Install Error for Vendor Publish

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

Route not working with existing project

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.