Delete button in the river: Revision

Last updated by mariano

Delete button in the river

INGLES

delete button in the river is very ordered and that users would be easier to delete themdirectly from there
I bring a solution here I did not very big but worth a try

----------------------------------------------------------------------------------------------------------------------------------------------------------------

ESPAÑOL

el boton eliminar en el rio es algo muy pedido ya que a los usuarios les seria mas comodo borrarlos directamente desde hay antes que en el plugin thewire 

yo aca les traigo una solucion quisa no muy grande pero valdria la pena intentarlo 

 

1= OPEN FILE  MOD/THEWIRE/VIEWS/DEFAULT/RIVER/OBJECT/THEWIRE/CREATE.PHP

Y COPIAR LAS SIGUIENTES LINEAS 

<span id="delete" style="float:right;">

<?php

 

 

// if the user looking at thewire post can edit, show the delete link

        if ($object->canEdit()){

        echo "<div class='delete_note'>" . elgg_view("output/confirmlink",array(

'href' => $vars['url'] . "action/thewire/delete?thewirepost=" . $vars['item']->object_guid,

'text' => elgg_echo('delete'),

'confirm' => elgg_echo('deleteconfirm'),

)) . "</div>";

}

//end of can edit if statement

?>  

</span>

 

History