Suggestion for the website: only allow down votes with a comment

It’s common to see extensions with down votes but without any comments supporting it.

I believe that comments are essential to make a proper contribution to the community in this case. Without it, no criticism is constructive.

Reference: http://www.yiiframework.com/extension/noscript/

I suggest that a comment should be made mandatory for any down vote.

I agree with you, but I don’t think you’re going to force any changes here.

Take a look at StackOverflow. They’ve had the same issue there and all ended up with suggesting a downvoting user, that he or she should consider adding a comment aside his or her downvote. No obligatory was ever introduced.

One solution to the problem of down voting might be removing it at all. Probably we can do without it.

As you may agree, our forum has been much more comfortable since the down voting functionality had been removed.

I truly hate the way StackOverflow works with regards to downvoting.

The forums at Coursera allows that too…

However, I’ve got my secret weapon. :)

Stylish Chrome Extension!

I added a small script which turns the red downvotes into green :D

Hello

First. I think the using of jQuery is the reason you have down votes for http://www.yiiframework.com/extension/noscript/

This is the same solution

[html]

<script type="text/javascript"><!–

document.write(’<!’ + ‘–’);

//–></script>

<noscript>

&lt;div id=&quot;js-info&quot;&gt;


	Javascript is off


&lt;/div&gt;

</noscript>

<script type="text/javascript"><!–

document.write(’–’+’>’);

//–></script>

[/html]

Explanation:

If the javascript if OFF, visitor will get message

[html]

<noscript>

&lt;div id=&quot;js-info&quot;&gt;


	Javascript is off


&lt;/div&gt;

</noscript>

[/html]

If the javascript if ON, visitor will not get message, because Javascript will write comments around message

[html]

<!–<noscript>

&lt;div id=&quot;js-info&quot;&gt;


	Javascript is off


&lt;/div&gt;

</noscript>–>

[/html]

Second. Your CSS file has .noscript { … } rule that not used

And some browsers could not apply rule noscript div#js-info { … }, Opera < 10 for example

protected/extensions/noscript/assets/XNoScriptMessage.css




/* 

    Document   : jgui-noscript

    Created on : 07.09.2010, 10:34:42

    Author     : bk016474

    Description:

        styling for noscript tag.

*/


div#no-javascript {

    display:block;

    padding: 10px 20px;

    background: #fee;

    color: #800;

    margin: 0 0 10px 0;

    border-top:3px solid #c30;

    border-bottom:3px solid #c30;

    font-weight:bold;

}



protected/extensions/noscript/XNoScriptMessage.php




<?php

/**

 * XNoScriptMessage class file.

 *

 * @author Stefan Volkmar <volkmar_yii@email.de>

 * @version 1.0

 * @license BSD

 */


/** 

 *

 * This widget create a message if javascript isn't enabled in the browser

 *

 * @author Stefan Volkmar <volkmar_yii@email.de>

 */


class XNoScriptMessage extends CWidget

{

	/**

	 * @var mixed the CSS file used for the widget.

	 * If false, the default CSS file will be used. Otherwise, the specified CSS file

	 * will be included when using this widget.

	 */

	public $cssFile=false;


	/**

	 * Initializes the widget.

	 * This method registers all needed client scripts 

	 */

	public function init()

	{

		$baseUrl = CHtml::asset(dirname(__FILE__).DIRECTORY_SEPARATOR.'assets');

		$cssUrl = ($this->cssFile!==false) ? $this->cssFile : $baseUrl.'/XNoScriptMessage.css';

		Yii::app()->getClientScript()->registerCssFile($cssUrl);

		echo <<<HTML

<script type="text/javascript"><!--

document.write('<!' + '--');

//--></script>

<noscript>

	<div id="no-javascript">

HTML;

	}


	/**

	 * Renders the close tag of the element.

	 */

	public function run()

	{

		echo <<<HTML

	</div>

</noscript>

<script type="text/javascript"><!--

document.write('--'+'>');

//--></script>

HTML;

	}

}



Here my version of extension

4797

noscript_1.1.zip