Working "No group" poll option

Last updated by Pala Comments (6)

Hi to all,

I would realy like to have a working poll plugin for new elgg site. No Group Polls just add polls for the site.

 

Best regards,

Pala

  • where to get it ? I like have it ..

  • Look inside the start.php of your polls plugin. You can read through the code and remove the unwanted parts like add_group_tool_option() and the owner_block menu creation.

    It wont be possible to give the complete instructions here.

  • Is it possible to make a new one ? I am no developer.

     

    I know why I get the error but cant solve it. 

     

    Deprecated in 1.7: get_entities() was deprecated by elgg_get_entities(). 

     

    Its because of Latest poll Widged.

     

    Best regards,

    Pala

  • I think I configured out if I dont use that Widged but how I can make from this code make visiable userpicture too ? In same style like Comments on action wall.

     

    Vote.php:

    <?php

    $performed_by = get_entity($vars['item']->subject_guid); 
    $object = get_entity($vars['item']->object_guid);

    $url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
    $string = sprintf(elgg_echo('polls:river:voted'),$url) . " ";
    $string .= elgg_echo('polls:river:vote')."<p><p> <a href=\"" . $object->getURL() . "\">" . $object->title . "</a><p><p>";

    ?>

    <?php echo $string; ?>

     

    Publish.php

    <?php

    $performed_by = get_entity($vars['item']->subject_guid); 
    $object = get_entity($vars['item']->object_guid);

    $url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
    $string = sprintf(elgg_echo('polls:river:created'),$url) . " ";
    $string .= elgg_echo('polls:river:create')." <p><p><a href=\"" . $object->getURL() . "\">" . $object->title . "</a><p><p>";

    ?>

    <?php echo $string; ?>

     

    Best regards,

    Pala

  • Just found out that on /polls/all Style is OK but on the Activity page not looking good ;( 

     

    I also dont have an option to delete them like thne other actions on the activity page... 

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking

Navigation