-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhancement showcase (ajax, gravatar, nested, delete) #65
base: develop
Are you sure you want to change the base?
Conversation
add data files to page folder
This appears to also help with #51 by moving the comments to the page folder. |
This is epic. Thank you @codeshell for this, I was looking for something like this for a long time and I'm not skilled enough to write my own. |
add recent comments widget as twig function add save authentication and admin status with comments
Thanks for your kind words. Anybody experimenting with the code feel free to notify me of any issues you run into. Meanwhile I will update this PR from time to time as I see fit for my current use case. It might help as an alternative to #60 and seems to tackle #51 indeed. I really like the suggestions #48 and #49 by Salvatos so I added variants of them to the backend with the recent commit to be used in twig templates as needed. Example usage: |
super nice ! thanks for that ! i'm gonna take a look right away. Why no merge from the author ? @codeshell i tried to clone your git and put it in plugin, it does not render as what i can see on your picture. Also i only have the comment box and not mail name |
Hi @foufrix, sorry for the delay. Somehow I missed the reply. Would you mind posting a screenshot with the wrong rendering - here or over there? I am running this enhancement on my site for several months now and haven't had any problems so far. |
Shot in the dark: Maybe the theme you are using does not include FontAwesome by default? I use FontAwesome v4 to render all the symbols within my preconfigured templates and css. |
Hi all, I haven't seen any commit including a good admin for comments, based ont codeshell enhancements to the backend. I just added my code modification to following files to get something in the backend Admin : \user\plugins\comments\admin\templates\comments.html.twig
` Hopefully it helps. Cheers, |
Nice changes! I was working on my own branch when I saw your changes. So I merged them, and am still testing them out. I started to update your stuff to look more like Reddit comments, and it's looking promising. I'm still working on changes, and evaluating. But it looks good so far. Commenting currently disabled for testing, which is something I added in my own (would be cool to add support per post), so I haven't updated add/delete visuals and ajax version. Sample here. Time link is broken with horizontal scroll, not sure when that happened. [Update] Removing your comment-body width: 10000px; fixed that issue for me. I was considering making threads collapsable with javascript, but I'll probably not spend any time on that, I just want it to look nice for now and be basically functional. What you can't see here is that people can enter their website/social link and clicking on name when provided will redirect to where you can find that person online. Also I added support for spam detection with Akismet. Big thing I'm not a fan of is switch to YAML for storing comments. I don't think it adds anything, and I'm trying to make sure my site does as little processing as possible on my server. YAML is useful for human authored files, in this case comments are all processed with script, there's no reason not to pick the fastest most convenient serialization format; which is not YAML. JSON works well. [Edit] I've been trying to figure out how to get new field in comments.yaml to show up for entering website, but I haven't been able to get it to work. Any ideas? Starting to dig through docs to see if I find out any reason why it's not showing up. |
Hi |
If you're talking to me, abook23, my files are here. |
thanks! |
Hi |
if you use leetNightshades code, stats in my PR are different and can be used with |
You were right that YAML is a difficult choice. However I don't think, I changed it from JSON to YAML. It has always been YAML. What I did was changing from use Grav\Common\File\CompiledJsonFile;
use Grav\Common\File\CompiledYamlFile;
use RocketTheme\Toolbox\File\File; That means encoding and decoding/parsing is done behind the scenes. Just replace As for the locations: Have a look at e8417c6 To add additional fields just look at Performance shouldn't be too much of an issue for the per-page-comment-files. Index files on the other hand are convenience and can be ditched. |
Hi
render count post comment in blog-list-item.twig,
|
Ajax inline reply doesn't work, idk if I broke that or if it was already like that. It's something I've had to fix. Sorry I didn't mention it. It's why my websites comments are displayed, and commenting is disabled. I haven't found the time to fix it. o.o; |
thanks |
Comments and Ajax are still working for me. Using my adjustments with grav v1.6.10. |
BTW, this is very cool, but because it changes some default stuff, including the location of comments, I can't merge as folks will lose their comments. I suggest you fork, and release your own version? |
Hi there,
added some functionality for my own use. Since some of it is listed in #22 you might be able to reuse some of it, namely:
Two things to be aware of:
Should be seen as WIP as it is not heavily tested.
Regards,
Thorsten
Screenshot 1:
Screenshot 2: