Giter Club home page Giter Club logo

yii2-comments's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

yii2-comments's Issues

Trying to get property 'urlCacheSessionKey' of non-object

I am getting this error I have configured comment widget in this way.

<?=  Comments::widget();
    ?>

Everything worked the widget is showing the comment section to logged in users also user is able to post comment the comments are getting stored in Db as well but after posting the comment this error is showing to the user.

After save event

Hi,

I would like to hook afterSave event, how can I do that?

Thank you.

Suggestions - getAuthorAvatar, getAuthorUrl, getAuthorName

Hi,

It seems to me that the methods getAuthorAvatar(), getAuthorName(), getAuthorUrl() should be located in the the comments model rather than the attached model.

Currently, they look like methods in the attached model however the attached model doesn't know anything about each any comment (unless you decide to call the methods with created_by as parameter).

What do you think, am I smoking the wrong thing?

How to set action urls?

How to set correct routes to comment create, thumbs-up and thumbs-down actions, because default values are related to page, where widget is called?

infinite scroll

hi ! thank you for your module, seems perfect..
maybe for table prefix in comments model
public static function tableName() { return '{{%comments}}'; }

and in
_form.php 'action' => Url::to( '/comments/default/create'
and validation url 'validationUrl' => Url::to(['/comments/default/validate']),

i have add a slash for my configuration.

my problem:
i have a page with multi item and infinite scroll pagination.
i've seen in code the register asset output

jQuery('#w0-comments').comment({"wrapperId":"#w0-comments","formSelector":"#w0-comment-form","showCommentsId":"#w0-show-comments","fullCommentsId":"#w0-comments-full","pjaxContainerId":"#w0-comments-container","formContainerId":"#w0-comments-container-form","submitButtonId":"#w0-submitButton","postButtonName":"Post","replyButtonName":"Reply","ratingUrl":"/it/user/comments/default/rate"}); | jQuery('#w0-comment-form').yiiActiveForm([{"id":"comments-content","name":"content","container":".field-comments-content","input":"#comments-content","validateOnChange":false,"validateOnBlur":false,"validate":function (attribute, value, messages, deferred, $form) {yii.validation.required(value, messages, {"message":"Share your thoughts... non può essere vuoto."});yii.validation.string(value, messages, {"message":"Share your thoughts... deve essere una stringa.","min":4,"tooShort":"Share your thoughts... dovrebbe contenere almeno 4 caratteri.","skipOnEmpty":1});}}], {"validationUrl":"/it/comments/validate"}); | jQuery(document).pjax("#w0-comments-container a", {"push":true,"replace":false,"timeout":1000,"scrollTo":false,"container":"#w0-comments-container"}); | jQuery(document).on("submit", "#w0-comments-container form[data-pjax]", function (event) {jQuery.pjax.submit(event, {"push":true,"replace":false,"timeout":1000,"scrollTo":false,"container":"#w0-comments-container"});});

how can i make your code working with the ias option running?
any suggestions?
thank you very much!

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.