Go!
 
 
How can I allow users to comment on polls

This is not possible without a core modification, but it's not a hard one.

Open /components/com_poll/poll.html.php

Find:

    ?>
    </form>
    <?php

Replace with:

    ?>
    </form>
    <?php
    define('EC_LITE', true);
    global $mainframe;
    require_once($mainframe->getPath('class', 'com_easycomment'));
    $xajax->registerFunction(array("showComments", "items", "showComments"), XAJAX_POST);
    
    echo $xajax->getJavascript($mainframe->getCfg('live_site') . '/components/com_easycomment/xajax');
    echo '<div id="comments"></div>' . "\n";
    echo '<script type="text/javascript">' . "\n";
    echo '<!--' . "\n";
    echo 'ec_showComments(' . $poll->id . ', \'polls\');' . "\n";
    echo '//-->' . "\n";
    echo '</script>' . "\n";

That will add the comment field below the poll results.

Tags
42,86% of 7 voters found this FAQ useful,  I found this FAQ  useful useful  not useful not useful
< Prev   Next >

Powered by EasyFAQ © 2006 Joomla-addons.org
Would you like to receive updates of new releases or other news? Enter your details below:
Joomla-addons.org © 2006 | www.bandhosting.nl | JCD-A Member | Newsletter | Sitemap |