Coder Social home page Coder Social logo

yellow-comment's People

Contributors

annaesvensson avatar giovannisalmeri avatar markseuffert avatar newtonhonk avatar nibl avatar nibreh avatar schulle4u avatar wunderfeyd avatar

Stargazers

 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

yellow-comment's Issues

Use shared content folder for new comment template

In the upcoming 0.8.1 Yellow release, content templates such as page-new-*.md are stored in a new shared content folder (/content/shared by default). The Yellow updater moves all these files from the config folder to the new location, which partially breaks the comments template. Re-uploading page-new-comments.md to the config folder solves this.
I suggest to make use of the new shared content folder.

Steffen

User Icon

I get this error with the new user icon:

Plugin installation / execution fails

Hi Giovanni!
I added your plugin to my dev stage and it seems that i't was'nt installed correctly, as I can't find the files in my extension directory after putting the zip file there. So I added the files manually and also added the parameters to the yellow-system.ini. But when I access a blog post, I always see the following error (debugging enabled). How can I solve this?

Fatal error: Uncaught Error: Call to undefined method YellowToolbox::getTextArgs() in /usr/www/users/gaehna/flow/new2/system/extensions/comments.php:61 Stack trace: #0 /usr/www/users/gaehna/flow/new2/system/extensions/comments.php(142): YellowComments->onParseContentShortcut(Object(YellowPage), 'comments', '', true) #1 /usr/www/users/gaehna/flow/new2/system/extensions/core.php(855): YellowComments->onParsePageExtra(Object(YellowPage), 'comments') #2 /usr/www/users/gaehna/flow/new2/system/layouts/blog.html(18): YellowPage->getExtra('comments') #3 /usr/www/users/gaehna/flow/new2/system/extensions/core.php(685): require('/usr/www/users/...') #4 /usr/www/users/gaehna/flow/new2/system/extensions/core.php(667): YellowPage->includeLayout('blog') #5 /usr/www/users/gaehna/flow/new2/system/extensions/core.php(618): YellowPage->parsePageLayout('blog') #6 /usr/www/users/gaehna/flow/new2/system/extensions/core.php(214): YellowPage->parsePage() #7 /usr/www/users/gaehna/flow/new2/system/extensions/core.php(149): YellowCore->sendPage() # in /usr/www/users/gaehna/flow/new2/system/extensions/comments.php on line 61

Can you help to solve this problem?
Thanks in advance
René

How to use this?

I really do not understand this:


The plugin adds a comments section on blog pages.

To add comments on other pages create a [comments] shortcut. The following optional argument is available:

opening = overrides commentsOpening setting (see below); only the values 0 and -1 work unless the metadata of the page contain the published setting.

Can you do 1:1 clean and clear documentation how to use this plugin?

Comments disappear after being published

I get an email and with the email link publish a comment, which takes me to the page with the comment published. Great.

But when I go to that page on my blog again, there is no comment there, just the 'submit a comment' form.

Localizing

How can I start to translate it? I don't know anything about php. How hard is it to add the feature of language files like in the other plugins?

Regards,
Chris

Great work so far and an error!

Hi wunderfeyd,

I just updated to your last chance. Everytime I write a test comment, I just get a "An error occured. Please try again later." Is there a way to debug?

How to customise the text

Hi - I've just installed the comments extension on my website and it is working fine - thank you!

I have a question about how to customise the text which is used in the form (for example, "Interested to discuss? Leave a comment."). I can see that you have a file in the code 'comments-language.txt' with the default text for different languages, but I can't see where that is installed on my website. I've looked in 'text.ini', and 'english-language.txt', but the text is not in there.

Can you let me know where the default text is installed?

Dom

Error with append and autopublished

When I turn append and auto published on. I get this error:

Warning: flock() expects parameter 1 to be resource, string given in /www/htdocs/w0080f53/nasendackel/blog/system/plugins/comments.php on line 180

Warning: flock() expects parameter 1 to be resource, string given in /www/htdocs/w0080f53/nasendackel/blog/system/plugins/comments.php on line 184

Blog and blogpage snippets not compatible with Yello 0.7.1

Hello,

as it seems the content-blog and content-blogpages snippet files provided with the comments plugin are not compatible with latest version of Yellow.

  • The blog sidebar is not shown because the appropriate php snippet is missing.
  • When clicking on a blog post in the overview, I'm being redirected to the wrong location and an error 404 is given. This only happens when Yellow is installed in a subdirectory, e.g. /yellow/blog/post points to /blog/post instead.

Hope this can be fixed and this nice idea is still under development, I'd like to test this after switching from WordPress.

Steffen

foreach() argument must be of type array|object

Hello,
with PHP 8.1 there is an error in th PHP script:

Warning: foreach() argument must be of type array|object, null given in /var/www/html/system/extensions/comments.php on line 314
Warning: foreach() argument must be of type array|object, null given in /var/www/html/system/extensions/comments.php on line 50

In each of the lines you can prevent this warning with
foreach ($this->comments ?? [] as $comment)

Best regards
Guenther

Comments: 0 Comments are closed.

Can't make this work, using Yellow 0.7.x:
Alawys getting:

Comments: 0

Comments are closed.

What's missing?

If want to use it within
system/themes/templates/default.html

But I can only use:
<?php echo $yellow->page->getExtra("comments") ?>

How can I give comments an argument like [comments 0]?

If I use [comments 0] the form is displayed but only on that page, and nothing happens, commenting is not possible, does not work.

Task list

We'll keep the task list up to date.

Near future:

  • lock the comment file from read to write
  • timeout for unpublished/not approved comments
  • blacklist
  • link highlightning / image loading (whitelisted origins) inside the comments (or better Markdown)
  • Emoticons (reuse emoji plugin) emoji plugin still lacks some settings/features
  • icons for each individual user (created by hash of the mail address like mine on github :) ) and gravatar
  • Approve mail with website authentication (for more security)
  • installation and settings documentation

Beyond:

  • threaded comments (reponses to specific comments already written)
  • user mail validation
  • user accounts / upload or select individual graphics
  • comment count (how much has each user commented)

Rename repository

YellowComments should be renamed to yellow-comments and the yellow-extension zzz-more list has to be updated after that. Reason is the plugin naming convention for yellow.

[Error] Deprecated: Creation of dynamic property YellowComment::$comments

Hi Giovanni,

I get the following error message when I am in CoreDebugMode: 1:

Deprecated: Creation of dynamic property YellowComment::$comments is deprecated in /www/htdocs/w01e3007/frittiert.es/system/extensions/comment.php on line 229

When I exit the DebugMode, no error message appears and the extension seems to work so far. The only bug then: I do not receive a notification e-mail.

Rename page setting

Comments: no should be changed to Comment: exclude and the README should be updated after that. Reason is the naming convention for extensions and settings, a key is typically singular, a value for exclusion is typically exclude. For a similar use case see command extension.

seek warning in latest version

Warning: fseek() expects parameter 1 to be resource, null given in comments.php on line 167
Warning: ftell() expects parameter 1 to be resource, null given in comments.php on line 168
Warning: fseek() expects parameter 1 to be resource, null given in comments.php on line 169
Warning: fread() expects parameter 1 to be resource, null given in comments.php on line 170

No Idea what this means, but I get this error.

language text file issue

Hiya,
I just downloaded the zip file into my extensions folder and restarted apache (by habit).
The form does show up, but the correct labels are missing.
"[commentsComments] : 0"
was shown, instead of Kommentare: 0

By the looks of it, the file comments.txt was missing, which I plainly copied over from the zip file.

Cheers
JK

Comments order

Hi, Is it possible to set comments to appear in ascending or descending order? Kind regards

Comment count

Hi, Would it be possible to add a "comment count" function? In "blog-start" template I've put a link to the comment form on single post and I think it would be useful to add also the number of comments just next to that link.

I tried to use the "getCommentCount" function from your extension, but without success :)

I would appreciate your help.

Names of developers

@nasendackel @wunderfeyd In the readme and code templates there is a place for the developers. Now I have written "Authors", but it isn't very informative... I think I should write your (real?) names, shouldn't I? And also my name? And other contributors'? Thank you!

All comments are filed twice

I tested the comment function again today and noticed that all comments are stored twice in the same location. But as already mentioned, I don't need comments at the moment, but it would be nice to be able to offer them at some point.

If you need help then, feel free to contact me.

Comment showing under main Blog page

Hi. Thank you for the Comment addon.
I have an issue with comments showing in the main Blog page. Comment fields shows simply under blog post headlines.
I've tried to add Comment: exclude in the main Blog page, but it still shows comment field.
What do I do wrong?
Thank you.

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.