-
Notifications
You must be signed in to change notification settings - Fork 45
Informations #249
Comments
Hi, The CSS is generated from the SASS files in resources/sass. Please edit these files rather than the CSS, then run the Gulp tool. For more information, please see the wiki associated with this repository.
|
Thank you for the response euantorano :) The currect path is resources/assets/sass |
@euantorano I never used sass, is it correct? Style
}` |
Looks right to me, but I'll need to test it once you create a pull request 😄
|
You have to wait for the pull request, it is an hard edit for me :o never used laravel too |
Not a problem, any help is appreciated!
|
Ok I used |
Interesting. I've maybe broken that one at some point. If you just commit your changed files and make a Pull Request I can fix it.
|
The problem is in the file gulfile.js at line 51 The file rtl.scss doen't exists, it was changed to main.rtl.css |
Yeah, the file should exist, unless it's been removed recently. It provides right to left support for text in the ACP. I'll look into it, but feel free to just submit a PR with the sass.
|
How ho I set a default value to form_select if a variable doesn't exists?
Solved |
Hi, the third parameter is the default value (as seen here). I'm not sure what it is that you're trying to do, but the |
I meant if role was null, but now I know how to do that:
|
When I commit the changes, do I have to update admin.css, admin.css.map, admin_rtl.css and admin_rtl.css.map? |
Hi, Gulp will do that, but it's broken at the minute. If you just commit the SASS, I can generate the CSS and map files. |
I'm trying to send a pull request but it select my past commit and devilshakerz commit too. How could I send only my last commit of my fork? |
Hi, Did you create a new branch before starting doing your work? That's the way that we recommend doing things. |
No, I didn't. I didn't know that |
I revert changes and create a new brach |
Ah, we should probably make our recommendations a bit more obvious, perhaps in the README file.
|
Finally I've done it :) Now how do I update my master with edits? |
Hi, If you push your branch, then you should be able to create a pull request from that branch to |
Ok. I've done the pull request |
For validation do I have to do something like the page below? |
Yep, something like that. For some more information, see here: https://laravel.com/docs/5.3/validation#form-request-validation https://laravel.com/docs/5.3/validation#form-request-validation
|
@euantorano can you help me updating my fork with latest edits? I tried many times but it adds a new commit: |
Hi, You need to do a We need to really document this stuff properly. I'll try and put out a dev post on our blog about our recommended workflow this week. |
@eyabtirabi how do I use Request validation for this? I need the id
|
Hi, Is the user the current logged in user, or the user being edited? If it's the latter, you can use to IoC container to inject the user repository or model and look the user up. If you want, I can do it for you tomorrow. |
user being edited. |
Hi, There are none in the core, I would just leave it as it is for now and I'll fix it later and show you what I mean 😄 |
Maybe I know how to do that or maybe not xD I'll let you know |
It show me this error when i post edit user form :( In UserController I inserted this: SaveUserRequest.php:
|
Hi, Did you run |
There was a problem in rules function, I fixed it before send the pull request. |
Looks good to me. We did notice that editing a user will set their password to an empty string though if you don't include one. This line: https://github.com/mybb/mybb2/blob/master/app/Http/Controllers/Admin/Users/UserController.php#L94 Should be: $password = '';
if ($request->has('password')) {
$password = $request->input('password');
}
$values = $request->only('name', 'email', 'usertitle');
if (!empty($password)) {
$values['password'] = bcrypt($password);
}
$values['updated_at'] = $user->freshTimestamp();
$user->update($values); Or something like that, anyway. I haven't tested it yet 😄 |
I forgot to test it. |
Nice one, thanks! |
Hei @euantorano |
Hi @chack1172 use |
Hi @Matslom thank you, I saw now that updated_at isn't in fillable array |
I updated mybb2 in my local website and now in console there's this error: I tried to use the command |
Hi, yeah that's a known issue (see the I'm looking at the best way to use modernizr. We don't need the whole modernizr library (if at all? Paging @justinsoltesz and @Eric-Jackson...), only some of the components. |
There's something that I can do to help you? I don't have ideas... |
There's not much you can do to help with the modernizr issue, I'm not sure what your strengths are? Obviously you know at least a bit of PHP, are you any good with JS? There's always work to do, if I know what you're best at, we can guide you to the right place 😄 |
Maybe it's better that I focus on php xD |
Fair enough, there's plenty to do there too! One of the big jobs I will be doing soon is the move to Laravel 5.3, which I need to do. Other than that, there are a couple of big things that could be worked on:
There's a lot more, but those pop into my head. You can also look at the suggestions forum on the forums too to get an idea of what's planned (I need to make this clearer at some point...). If you choose something to work on, we can discuss it together and get a plan set so that you know what you're doing. I'm also usually available if you have any questions - either PM me on the forums (Euan T) or contact me on Discord (details on the forums, here). |
Ok, thank you. |
I believe you also have my email if you prefer that to talk and get things planned - GitHub notifications aren't very good for me (they don't always show up until a long time after something is commented). |
All my staff use discord, it's ok :) |
Sorry guys this is not a issue but a question.
I'm changing admin.css file and then I have to do a pull request.
Do I have to change admin.css.map too? Do I have to change it manually?
The text was updated successfully, but these errors were encountered: