Jump to content

Search the Community

Showing results for tags 'comments'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

  1. Hi, I want to replace the comment output classes with custom classes. Because I need the output formatted for Bootstrap, with a few other tweaks. I'm rendering the template with this code: <?= $page->comments->renderAll() ?> How can I replace the default classes CommentForm and CommentList with custom classes before the instance got created? Thanks.
  2. Hi all, I duplicated the FieldtypeComments module by adding it in site/modules to get the Uikit3 html output. Problem: I can't post a comment. Where am I doing wrong? <?php echo $page->commenti->renderForm(); ?>
  3. I'm trying to install comments on two of my clients' websites. In both cases, I'm able to display the comment submission form, but the form submissions are not being saved or display. Once I click the submit button, I'm directed to the homepage where #CommentForm is appended to the end of the URL. I have looked through countless forums and Google searches, but I can't find any advice that has fixed this issue. I have followed the instructions from https://processwire.com/docs/modules/guides/comments/ exactly as described, and I'm getting no where. Like I said, this is set up on two different websites and I'm seeing the same issues with both. I assume it's some issue with connecting with a database, but I don't see anything in the instructions on PW's website that says I need to do anything there.
  4. I'm working on the threaded comments on my website and for this I need to include the comments.js When I do this it keeps on giving me the "Uncaught ReferenceRrror: jQuery is not defined". Whatever I do it keeps giving me this error message. It's the last javascript file that I load in. So how do I fix it?
  5. Hi Guys, I am running a page template that contains a filter form that allows users to display results based on number of comments. Here is what I am thinking about doing: -add new field called total_comments -somehow populate this field every time a new comment is added or removed by admin with count($page->comments) -use form filter to display results that the selector form has found. Example: $selector = “total_comments>=$q”; My question to everyone: Is this a good approach? If so how do I get another field to update based on the comment module adding or removing a comment?
  6. Hey Guys, I am using the https://processwire.com/api/fieldtypes/comments/ to allow users to comment and rate. Whats the best approach to get an average of all the star ratings for the page? Any direction is greatly appreciated!
  7. Hi, I am wondering if someone can help me out with getting the count of the comments of a page? I am using Ryan's comments module as a reviews system for my site and would like to display the count of the comments per page, as below The shops part that you see above is something similar to this <?php $set_page = $page->title; $count = $pages->count("template=prices, title=$set_page"); echo $count; ?>
  8. The "Comments" core module has been activated locally with its four associated parts, including an Akismet API key, and has been rendered as per instruction via http://processwire.com/api/fieldtypes/comments/. Testing the comment form continues to render errors after this manner in the 3.0.96 version. Error: Exception: Invalid email address (processwire@localhost:8888) (in ... /wire/core/WireMail.php line 130) After an exhaustive attempt on my part to overcome this error (with limited knowledge), I considered that maybe a corrupt file might be the cause. However, after updating from 3.0.62 to 3.0.96, the same error persists. Below is the particular section/line of code mentioned. /** * Sanitize an email address or throw WireException if invalid * * @param string $email * @return string * @throws WireException * */ protected function sanitizeEmail($email) { $email = strtolower(trim($email)); $clean = $this->wire('sanitizer')->email($email); if($email != $clean) { $clean = $this->wire('sanitizer')->entities($email); throw new WireException("Invalid email address ($clean)"); //<--- this is the line } return $clean; } Inasmuch as this is the final element that needs to be addressed for this particular site, your assistance in helping me understand the issue and the remedy regarding this matter would be greatly appreciated. Good day!
  9. Hi all, help needed with comments here. I see that there is a star rating system and possibility to upvote or downvote specific comments. Page on comments still does not go into details, especially about displaying them. I followed other things on that page, including the styling, to the letter. If you include custom code {stars}, stars are displayed but not properly (it shows 5 star only regardless of the rating). Also {votes} does show the arrows but they do not do anything. While in the backend things do work as expected (ie. stars can be set and votes changed). Am I missing something, like custom JavaScript or similar? Anyone else using these features in their comments?
  10. Hi there! I need to gather a list of all comments, regardless of the parent page of each comment. Is there a global $comments object, which can do this? Something like: foreach($comments->find('sort=-created') as $comment) { // show comment } I did not find anything similar in the forums. Can someone help me?
  11. Hi all, Happy New Year! Is there a setting to control the amount of Kb of comment text? One of my clients tried to reply to a comment posted and his reply got cut off. I checked it and it's only 2,351 characters. I noticed that maxComment is set to 80K in the module so this did not exceed the max yet. Thx Rudy
  12. Hi, I wanted to use Comments module in my project and stumbled upon a problem. Whenever I submit comment with a star rating, it redirects me to unknown page as #CommentForm and my websites preloader is keep turning but nothing is actually happening. Can you please give me a hand on this. What should I do in order to fix this. On my template I added comments field, but submitted comments are not shown. Is there anyway to make comments work on my page? Than you in advance
  13. Hello, I recently started making a blog using Processwire and since i'm completely new, I struggle with a few things. I'm trying to make a comment section in my blog post, so I followed the tutorial and pasted the two code lines in my template. 18 echo $page->comments->render(); 19 echo $page->comments->renderForm(); but now I have this error on my page : Error: Call to a member function render() on null (line 18 of C:\wamp64\www\processwire\site\assets\cache\FileCompiler\site\templates\Post.php) Am I missing something? Thanks for your help.
  14. Hi! I'm testing a news site, build on Processwire. We use standard comments system, provided by PW. I found out, that user can easily crash the whole makeup just with a veeery looong wooord comment. What is the best approach (except pre-moderation of comments) to deal with this problem?
  15. Hello! I've finally learned enough to be dangerous...or maybe I knew that much all along. Anyway, I prepared a site to help us do some non-profit work...but... Comment Dates: The directions with dates seem clear enough and I've read them and tried all the following <?php echo date("D M j G:i:s T Y"); ?> echo date("D M j G:i:s T Y"); date("D M j G:i:s T Y") "D M j G:i:s T Y" D M j G:i:s T Y Yet, when I save the Comments field and refresh the page, I still get a relative date (such as "8 seconds ago.") Can someone help (please)? = = = = = = Comments Render Array: Using the directions at Comments, I can safely use $content .= $page->comment->render(array()); and my comments will show up. However, I get an error if I add something like the very first example $page->comment->render(array('headline' => '<h2>Read Comments</h2>',)); The error in this case was Parse Error: syntax error, unexpected ''headline'' (T_CONSTANT_ENCAPSED_STRING), expecting ')' (line 11 of C:\0\www\pwlimit\site\templates\member.php) I've tried a variety of things... Usually, I get an error with no explanation. Can someone help (please)? = = = = = = Comments Email: When I check Allow Commenter Email Notifications, i don't get an email. Can someone help (please)? Thank you in advance for your help! Especially, thank you for your patience!
  16. Hey Guys, Hope everyone is doing well! It's been quite some time since I have had to reach out for some help. So far, I have launched over 20 ProcessWire sites in the last couple of months. I ran into an issue this morning. I have upgraded a ProcessWire site from 2.6 to 3.0.42 and have updated all the plugins. The error I am getting now is related to the comments manager that resides outside of the pages, under Setup. The error I see is the following: Error: Call to a member function showInHeader() on a non-object (line 586 of /wire/modules/Process/ProcessCommentsManager/ProcessCommentsManager.module I have never seen this error. Any thought on this guys?
  17. Hello, thanks for the help the other day. I continued to configure/code my page like I want it. Now i was going to add comments. I installed the Comments Manager Module under "processwire/module/edit?name=ProcessCommentsManager". It got installed and I can see the menuoption under "setup", called: Comments. Problem: It does not matter what link I press. Everyone shows the following error. Even uninstalling shows this error. Page: /processwire/setup/comments/ Error: Fatal error: Class 'Comment' not found in /var/www/testsite/wire/modules/Process/ProcessCommentsManager/ProcessCommentsManager.module on line 80 I am using Processwire 2.7.2. Is anyone here who can help me sorting this problem out? Best regards EDIT: I just realized that this might be the wrong section of the forum. If so, please move this thread. Thanks!
  18. I thought I'd list a few suggestions that I feel could be useful additions to the comments field. I know most of this can be done via the API, but these additions would make it easier Moderation: It would be nice if we could have role-based moderation settings. In other words, the ability to set up stricter moderation settings for less trusted user roles (roles created for new members etc), and more lenient settings for trusted members (moderators, editors). The same could be applied to the spam settings. That way comments made by trusted user roles could be automatically posted, while other roles could be checked for spam etc. Text Formatters and Inputfield Types Although I'm aware of the security implications, it would be nice to have the option to choose text formatters and the type of field, i.e plain text area or CKEditor etc for the text field. Again this could also be based on role-based settings - trusted users could use CKEditor while untrusted users could be limited to the standard plain text editor. Comments form Easier form customisation, i.e to be able to choose which fields are displayed. If members are logged in, do we need the e-mail address field showing? A simple comment box and submit button would be fine. Also, the additions made to FormBuilder regarding CSS Frameworks were great, and I'd love to see it extended to the comments form. // prepare a form for output $form = $forms->render('comments'); // in your document <head> echo $form->styles; echo $form->scripts; // somewhere in your document <body> echo $form; And voila, a UIKit comment form.
  19. Hi, it's possible to set the id of a comment?? I'm using: $c = new Comment(); $c->id = $post['id']; but it's not working. I'm importing comments and I need to set the id to add comments replies. Thanks EDIT: Definitely is not working, I tried to create a new comment with id and it's not working. Any ideas?
  20. Hi all, I thought I'd take this opportunity to announce a module I've been working on for a private project. Although it's not yet complete, I thought I'd take the time out to see if anyone would be interested in it. I only have the module locally on a test site, so if there is any interest, I can upload it somewhere suitable and maybe others can add to it, provide feedback etc. What is HermodBB? Hermod (messenger of the Norse gods) BB (Bulletin Board) is a module that installs a selection of templates and fields that you'd expect for a frontend forum. It also provides some methods to easily save topics and comments. All topics and comments (replies) are simply pages, and are organised like can be seen in the following image. Each forum has checkbox permissions for viewing, posting, pinning etc (see image below). These permissions can then be verified with some simple code (see below). // Use the helper method to pull a list of forum pages $forums = $hbb->forumsRender(); foreach ($forums as $forum) { // Only show the forums to those that are allowed to view them $rolesForumView = $forum->hbb_forum_view; if ($rolesForumView->has('id=' . $user->roles)) { // User has view access for the forum } } HermodBB also makes it easy to add comments to other pages, i.e articles, blogs etc. Comments are added as sub-pages, just like they are for topics. What HermodBB doesn't do HermodBB does not dictate any markup or sanitization. Any sanitization method can be used, and each topic and comment can easily be rendered as required. I'm currently using UIkit and CKEditor, but this can easily be changed to Bootstrap/Foundation etc. It keeps everything simple so that Processwire can do all the heavy lifting. Note: I am aware that there is the excellent comments module by Ryan, and also the Discussions module by Apeisa, but I needed something a little different for my current project, so I decided to have a bash myself. I am by no means on the same level of coding as the majority of members on here, so please be gentle I'd also like to thank Ryan personally for such an excellent framework. Any questions etc, please feel free to ask.
  21. I added a star rating system and a title field to the comments fieldtype. So a user on the frontend can use a nice star rating like on Google Play (done with a pure CSS solution inspired by Lea Verou). The rating in the backend is displayed as a number in a text field. You can download the module from https://jensmartsch.de/FieldtypeCommentsRating.zip I will add it to the modules directory when I have more time. After downloading extract it to your site/modules/FieldtypeCommentsRating directory. Then install the modules "FieldtypeCommentsRating" and "FieldtypeCommentsRatingAdmin" via ProcessWire -> Modules -> Page -> New. After that create two new fields "ratingTitle" and "rating" or use your own naming. Then add them to a template. To get it working on the frontend, copy the code of the file rating.php where you want the output to appear. After that add rating.css and FontAwesome (or your own icon-font) to your website. After that you can use the module. Have fun!
  22. I am looking for a developer who can extend the comments fieldtype for me. I need two additional fields: add a field "title" add a star rating field (in backend and frontend) the rating field in the backend can be an input field and does not have to display as stars, but would be nice. The frontend needs to display the rating as stars. There are two Star Rating modules already available, one is a rating for pages https://processwire.com/talk/topic/7871-page-ratings/ the other https://processwire.com/talk/topic/10107-fieldtypestarrating/ is a fieldtype. I need a solution that has the ability to be rendered as average ratings (so half stars are possible, you can find the code in the first module I mentioned, the second one just handles integers). There are two types of output. One is for amazon.de products and will show average ratings (see attached screenshot) and the other one is for a comment and only shows full stars. Pls provide me an offer/estimate. After we agreed, I provide you with FTP and Backend access and you tell me which files changed. Work needs to be done until 21. August 2015.
  23. I'm trying to find all comments for a small group of pages using the API. The pages, in this case, all have the same author. I'm extending ProcessCommentsManager to accomplish this, by adding the following code at line 167 of ProcessCommentsManager.module (inside ___executeList()): $posts = $this->pages->find("template=post,author=" . $this->author); $selector .= ", pages_id=" . $posts; $selector, at this point, has the following value: start=0, limit=10, sort=-created, status=1, pages_id=4287|4304|4307|4314 And then we resume with the existing code at line 168: $comments = $field->type->find($field, $selector); However, I'm only getting comments for page #4287, the first one in the list. I've tried this with several data sets and it's always the same. Is there something about pages_id that doesn't like the usual pipe format for multiple values? Is there a better way to solve this problem? I'd also welcome feedback about whether this is generally a good approach to displaying comments only for certain pages.
  24. I have been working on a considerably large project for a while which involves, amongst other things, importing quite a considerable amount of data from a wordpress site. Alas, through the means I have been given (CSV reading loops/ Direct SQL manipulation / The processwire wordpress import module, btw THANK YOU) I have managed to get most of it working and the site is nearly done... except for one thing. All of my comment's dates are set as the one in which they were created... on the new site. Now I do happen to have a CSV that contains all of the data I need to work with, and have even set up a quick test on a sample page with only a single comment. So, the problem here is that no matter how many times I save the field, the created time doesn't seem to change at all. Just to verify. $article = $pages->get("template=article,name=health-care-and-neighborhood-watch"); echo $article->title."__WPID: ".$article->post_id."<br>"; if (($handle = fopen("comments.csv", "r")) !== FALSE) { $article->of(false); while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { //$data[1] is the article id; //$data[7] is the approval date, we're using that as created. if($data[1]==$article->post_id){ foreach($article->comments as $c){ if($c->cite==$data[2]&&$c->text=$data[8]){ echo "Previous date: ".date("Y-m-d",$c->created); $c->created=strtotime($data[7]); echo "<br>"."New and Improved date: ".date("Y-m-d",$c->created); } } } } if($article->save()){ echo "<br> SAVED! :)"; } fclose($handle); }else{ echo "File not found"; } I am targeting the right page. Output formatting is off. The page is supposedly even getting saved, but the created value for that comment does not seem to change in between different loops. Is there something I am missing to make my import happen? Or is there another way in which I can get my comments imported differently? I would very much appreciate this help.
  25. When using the Comments Module i get Errors at all actions that have to do whith comments, for example editing the field settings. Session: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'upvotes' FieldtypeComments: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'upvotes' ProcessWire 2.5.28 dev Right now there are no comments posted on the page yet!
×
×
  • Create New...