comments

Limit posting to every 30 minutes

Hey. Thanks for looking. I'm trying to write a script to set a cookie after the user posts a comment, limiting them from posting again for 30 minutes. I'm so confused on where to start. Please, could you guys help me out on how I do this? I'm trying to use this jquery plugin – countdown timer. ...

Commenting Code to "Ramp Up"

I've just started at a new job. My manager and mentor suggested that I ramp up to the code base by documenting the code in comments. He intends for me to check in the documentation that I write, I believe. The writers of the code have left me a blank slate; there are only a few inline comments in really crucial places. I find that the c...

How do I hide the WordPress comments form?

I have a plugin that enables Facebook commenting on WordPress. Users have requested a feature that will hide the default WordPress comments form on posts where Facebook commenting is enabled. How do I go about hiding the WP comments form on the fly? I know I can comment out comment_form(); from the comments.php template, but I'd like to...

How to comment code in Rails views?

As I'm playing with Rails and developing views I often want to comment out code. Simple enough with classes & models but views are a bit more tricky. What's best way to comment code in a view so it's not interpreted by, well, anything... HTML gives us <!-- commented Rails code here --> though code enclosed here seems to get interprete...

Does Intense Debate query my database?

Hi, I'm thinking about implementing Intense Debate in my Wordpress site. I know that ID stores comments in its own database and in the wordpress database. I haven't understood if this software query my database for comments when a page are requested or if it query his own system. In the second case I could have some benefits on the serv...

How do I make comments posted to my site formatted to be separate from one another?

I'm working on some code for my blog that displays comments. This is the code that outputs comments from the database: $i = 0; while ($i < $num) { $name = mysql_result($result,$num - $i,"name"); $dream = mysql_result($result,$num - $i,"dream"); echo "$name<br>$dream<br>"; $i++; } I'm currently using CSS to apply a style to the enti...

Custom link on facebook comment field in facebook app

We have created a facebook-app which contains a fb:comment field. We have included the app on a fanpage. All works well so far, but when a user comments in the app on the fanpage and chooses to show comment on his/hers wall, the link that appears over the comment links to the app page and not to the fanpage. Is it possible to customize ...

How to read Android Market comments?

Reading the users' feedbacks about my apps is really important, but in my phone I can only read those written in the language of my phone (Italian). Is there a way to read all of them? A program for PC or a website could be a good solution. (Actually Cyrket and AndroLib read comments directly from the market, but sometimes they don't ...

Seeking open-source messaging, comments, and discussion library

We have a website that is like a social network and we already have our own messaging, comments, and forum modules. However, we would like to replace them with an opensource backend library that supports moderation, thumbs-up/down, threading, etc. We need to control the user interface and user authentication/registration ourselves. I ...

Commenting a ASP.NET MVC Controller

I am a big fan of Stylecop and I always follow it guidelines. I also follow the guideline that state that a comment should bring added value to the code and not repeat what the code is doing. I'm having a bit of trouble following the commenting guidelines concerning an ASP.NET MVC Controller and its related actions: I can't think about ...

Facebook Java API: how to get the comments of one photo?

Facebook Java API: how to get the comments of one photo? Maybe use this method: FacebookJsonRestClient.stream_getComments(String postId) ? I am not sure. I can get the id of one photo and I want get "who give what comments on that photo"? help me, thanks. ...

Vim: highlight latex comment using a differnt file type.

I am using vim to write latex. I would like to highlight the latex comments using a different file type. (For example I would like to highlight the latex comments using c++ formatting). Is there a way to do this? (Edit) Example: \section{Introduction} % This is a comment. I would like to higlight comments using the % synta...

Drupal - How to change input format for comments?

This issue irritates me much. Somehow after installing wysiwig editor my comment body form turned into rich.. bla bla area. I do not want this but I can not find the place where to turn back comment input format to the plain text (or filtered format). I know how to change filter options for different content types but turning back commen...

Controlling which comments are shown based on role in Drupal

This is a strange one and not ideal, but basically we have a Drupal site that has been using the core comments module to allow authenticated users to post and view comments for a node. We are now needing to extend this so that unauthenticated users can also post comments, but not view them. Authenticated users would only have access to ...

How to better submit a form?

So I started to make comments module and came to conclusion that I'm not sure how to better do the comment submitting. This is the code I've for comment submitting form. <form action="/rq/comment.php" method="post" id="pcomment" onsubmit="return rq('/rq/comment.php', 'pcomment');"> <input type="hidden" name="pid" value="<?=$id?>"> <div ...

Heading on first comment - Drupal comment list question

Hello! I'd like to have a header on the comment list. Is there a php if statement that I could use? Something like <php if $first : ?>. I can't find it. ...

Generating javadoc for a java project

Hi, Recently we planned to use checkstyle plug-in in our project. As a part of this exercise existing code has to be cleaned up to comply with checkstyle rules. We have found that close to 18K violations correspond to absence of javadoc comments in class files. My question is, is there any plugin or tool which i can use to generate java...

Javascript Comments are security risk?

During a recient PCI audit the auditor said that we had major security risks because It was possible to download static resources from our website such as images css and javascript without prior authentication. Our javascript had comments in it. Personally I think that this is not a security risk at all. The images css and javascri...

XSD for XML documentation generated for C#?

Does anyone know if there is an XSD file somewhere that can be used to validate the XML documentation that gets generated when you compile a C# project with the /doc option? I want to modify that file manually after it's been generated and I'm looking for an easy way to confirm that I haven't damaged the structure of the file. Thanks. ...

How to make Wordpress show only one post on the front page with comments, and comment form?

I did the following to display a single post in my home page: home.php: <?php get_header(); query_posts('posts_per_page=1'); //returns only the front page ?> <div id="content"> <?php /* Run the loop to output the posts. * If you want to overload this in a child theme then include a file * called loop-index.php and th...