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. 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) ?
  2. 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?
  3. 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.
  4. 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.
  5. 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!
  6. Hi guys, I have a little issue I debugged as far as I could for the moment. I have a simple page (title, a checkbox, a textarea and the comments field) working as a guestbook page. Initially there were no problems with creating the page and setting the content of title and the textarea field. Currently some comments have been made on the page. Now I want to change the content of the textarea field, but sadly nothing is happening in the administration area. The green bar saying "successful saved" (or something like that) does not appear. I checked the mysql log file, and also reassured my of the normal behavior on a different page without comments, how the log must be look like. So I found, that really nothing is happening. No insert statement. I don't think this is the expected behaviour, but I'm not sure how to fix this issue or debug this some more. Hope you can help me out here. My environment installation looks like the following: ProcessWire Core (Stable/Master) 2.5.3 JqueryDataTables 1.9.4 ModulesManager 2.1.6 ProcessDatabaseBackups 0.0.3 ProcessLatestComments 0.0.3 ProcessWireUpgrade 0.0.3 TemplateDataProviders 1.1.0 TemplateTwigReplace 1.0.9
  7. The current default for the Comments module seems to be... 1.) User enters name, email and comments 2.) User hits submit 3.) Page is refreshed 4.) Thank-you message or error message returned How do we avoid step 3, the page refresh? Is it possible with the standard commenting system? Some sort of AJAX must be involved, but I don't know if it's possible to modify the current comments system to accommodate this. Any pointers much appreciated.
  8. I was just wondering if there are any future plans to extend the comments field slightly? Obviously I know it should remain lightweight as it's a part of the core, but I'll chip in with my personal wishlist for it. Basically my number one wish is for the ability to link comments to member accounts. This would enable us to output their profile picture next to their comments, link their name to their profile, and basically output any information stored within their profile page (gender, age, location) alongside their comment, if desired. The ability to use permissions, roles / dynamic roles to determine who can can edit / post / delete their comments. An option to enable comment quoting on reply (like you can do with this forum). We could then use our own markup to style it etc. Finally, an easy way to determine what page comments are connected to. This would allow us to create a new page and loop through all the pages with comments, thus creating a very basic forum-style page. The latest version of muut follows along those lines by utilising comments to create a central hub or basic forum. Personally I reckon with these additions we will be able to use PW to easily create something like you see on the Muut page above. Thanks.
  9. Wondering if anyone has made a way of displaying filed content of pages on the page list (or another admin page / sidebar). For example: an indication of new page comments displayed on the page list. a count of the number of photos for each page that hows photos. Mock up:
  10. Hi, im starting kind of a social website, and im looking for a good way to enable comments on my site. i need comments to be editable, deletable for admin, and also for user within 10 minutes after posting it. Users can replay to other comments, and comments are also avaible to guests (posting anonymous). I was searching for a good tool to do this and i found this http://posativ.org/isso/. Thing is that im begginer with php, and i get confused after reading 1st line of instalation guide. Did any one did this before and can help me aout a bit ? or is there any other good solution for comments that u recommend. Cheers.
  11. hi everyone:) i stumpled across ProcessWire on my way to learn ModX. It draws my attention because of it's fast backend, and the chance for me to connect it with my big wish to learn php (atm i know just very basic stuff :- ). PW seems to enable me to use some php-funktions with an easier layer on top of it. so, i can be productive at the beginning here are some questions, that i came up with at my exploration of the PW-wonderland in the last days: search: afaik there is the possibility to integrate a search function to the website. is it possible to combine a searchfield with checkbox filters to search and filter pages in a specific branche of the page tree? blogging: it's possible to build a tag-cloud for a blogging sections with PW. this hole filter possiblities-thing is somewhat unclear for me atm comments-module: the comments containing a name and an e-mail field, but i like to extend it with a "twitter" and "your website" field. is this possible without a lot of complicated "core hacking" ? forms: from what i have understand, it's possible to create a front-end form that collects data for the content of a page. are ther possibilities to get form entries per mail with csv-file attached or csv-styled text inside? demo page: maybe i've just overlooked it, but i was not able to find the skyscraper siteprofil on the download page. i realy like to have a look at it, to learn from the api usage there. does someone have experience with forums and newslettersystems, that go well along with PW ?(same userbase/passwords) (i hope my english was understandable, since i normaly don't write a lot in english myself. but i'm able to perfectly read and understand it). greetings, chris EDIT: a questions to the modx users in this his forum: is PW now your primary cms and modx a fallback for some special usecases? - PW made me desinterested to learn modx, but maybe i miss something
  12. If you want to integrate Google+ Comments in your ProcessWire website, just follow the instructions from an article on Browsing the Net. In summary, insert the following HTML code into your template: <script src="https://apis.google.com/js/plusone.js"></script> <g:comments href="<?=$page->httpUrl?>" width="642" first_party_property="BLOGGER" view_type="FILTERED_POSTMOD"></g:comments> Change the width accordingly and in case you have a Google+ profile, link your page with Google+ profile to enable moderation features.
  13. So I just want to do comments. I read http://processwire.com/api/fieldtypes/comments/ and this was a good starting point. I want full control of my markup and so <?php echo $page->comments->render();?> is not an option. So I tried <ol id="singlecomments" class="commentlist"> <?php foreach($page->comments as $comment) { if($comment->status < 1) continue; // skip unapproved or spam comments $cite = htmlentities($comment->cite); // make sure output is entity encoded $text = htmlentities($comment->text); $date = date('d.m.Y', $comment->created); // format the date ?> <li class="clearfix"> <div class="message"> <div class="info"> <h2><a href=''><?=$cite?></a></h2> <div class="meta"><?=$date?></div><!-- /.meta --> </div><!-- /.info --> <p><?=$text?></p> </div><!-- /.message --> </li> <?} ?> </ol> And it's working finde. But: 1. I want to add Gravatars, how is the best practice? 2. I want to link $cite to the users website, but how can I achieve this? 3. I want at least paragraphs within $text, in a perfect world ul/ol and links, too.
  14. I’d like to have an input field for the commenter’s web address in my comment forms. Is there a way to extend the form and the comments output without hacking the module?
  15. Hi, I'm gonna try and build an ajax powered comments system and was planning to build the whole thing on a one comment == one page basis. The comment page having a textfield for the actual comment, a page field with the user page of the commenter (it will require registration) and a page field for the page that was commented on. Since Ryan's comments module uses simple DB entries I was wondering if this is a good plan and what the benefits of not having one page per comment are? Will I experience problems if a million people comment stuff on my site? Thanks for hints an ideas! thomas
×
×
  • Create New...