Search the Community

Showing results for tags 'comments'.



More search options

  • 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

  • ProDrafts
  • ListerPro
  • ProFields
  • ProCache
  • Form Builder
  • Likes
  • ProDevTools
  • Custom Development

Categories

There are no results to display.


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

Found 36 results

  1. 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?
  2. 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?
  3. 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!
  4. 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; ?>
  5. 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!
  6. gerritvanaaken

    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?
  7. Rudy

    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
  8. 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
  9. 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.
  10. 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?
  11. Hi! I'm new to ProcessWire and i need a "little" help with my family's website. What i want: The website of my family contains a gallery, where photos are shown in several albums. The current tree looks like this: ---photos ------ New Year 2013 ------ Going to the zoo ------ Dad's 60th birthday ------ Our Pug ------ ... Showing all pictures on one page is no problem for me, i got that working. But the photos should be Instagram-like "commentable" and "likeable". So i have to create a page for every single image, right? My questions are now: what's "the best" way to do this? Is it possible to automate this process? And how? I hope you understand, what i'm trying to do... my english is not that good, school is a few days ago... paulbrause
  12. 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.
  13. 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!
  14. I am relatively new to processwire. I also started learning html and css just this year. I have basic understanding of concepts but am still at a loss on the technical language but I am excited to learn a lot more. I'm working on starting a website that is along the lines of fmylife.com. I have my design down and I understand the basics of processwire. What I can't figure out is how to create the main component of this website. I need to be able to allow any user without creating an account or even inputting an email address to post directly on the main page. Obviously without allowing them to touch anything else on the page except for their individual post. Maybe using individual IP addresses and cookies. These posts will resemble that of posting on facebook. I need to be able to have a backlog of these in order to create categories for the "best posts" etc. and the capability of deleting any content that I see fit. The furthest I've gotten is the idea of creating one continuous thread. Also, I know wordpress has the capability of a similar way but requires buying into the premium. At this point I am not set up to spend money but if there is a better way that I will have to pay for I can be open to that down the road. For now though I'm trying for the free route. I'm wondering if anyone has some great pointers or tips for making this a possibility. Thanks for the help in advance! KFlare
  15. quickjeff

    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?
  16. 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!
  17. 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.
  18. 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.
  19. 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!
  20. Nicole Bardales

    Hello again everyone, I'm creating a template with an easy-to-use front-end adminbar (basically says: "Edit Page", "New Page", "Add News", "Add Product") and to make it more "user-friendly" it has the editor avatar and name as well as the options for "Profile, Help and Logout". I wanted to use PW's Comments Fieldtype and found that it's possible to display comment count here: http://processwire.c...rns-odd-number/ and I also found that it's possible to check comments since the last visit here: http://processwire.c...nce-last-visit/ I am now wondering *if* it's possible to display the total comment *count* from all pages containing the 'comments' field. Basically like this: "Welcome Back admin, there are {$comment-count} new comments." and that would redirect to the Comments Manager module. I've looked around the forum but didn't find anything similar, and I'm not really good with PHP so I might've overlooked a function. Thanks in advance. EDIT: Can I use something like: $count = count($comment) ?
  21. blacksrv

    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?
  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. Hello, First off, ProcessWire looks excellent, thank you for creating this. I discovered this CMS a couple days ago and I am spending the day learning it today. I have an important project for a client that requires the feature of allowing surfers to make comments on products. In addition to the normal comment, they will also be able to rate the product in the same comment form. Here is an example of what the form may look like: Name: Email: Comment: Ease of use rating (0 - 5): Price rating (0 - 5): Product design rating (0 - 5): Is this possible to add additional fields like this into comments with ProcessWire? I would ideally like to use the rating data in other places on the website as well, for example, if ten people give ratings for that product, then I would take the average of all of them and display the average surfer rating on the main page or anywhere. Any information or a point in the right direction if this is possible would be greatly appreciated! Thank you, Chris
  24. Orlando Hamsho

    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!