Hi 401frankie,
To generate more easily all the polls you need edit inc/admin.php and in
view_all_polls_operations function where you have
if ( 'clone' == $action ) {
replace
foreach ( $bulkyoppolls as $yoppoll_id ) {
$yoppoll_id = ( int )$yoppoll_id;
$poll_author = Yop_Poll_Model::get_poll_field_from_database_by_id( 'poll_author', $yoppoll_id );
if ( ( $this->current_user_can( 'clone_own_polls' ) && $poll_author == $current_user->ID ) || ( $this->current_user_can( 'clone_polls' ) ) ){
Yop_Poll_Model::clone_poll( $yoppoll_id );
}
else {
$total_uncloned++;
}
}
with
foreach ( $bulkyoppolls as $yoppoll_id ) {
$yoppoll_id = ( int )$yoppoll_id;
$poll_author = Yop_Poll_Model::get_poll_field_from_database_by_id( 'poll_author', $yoppoll_id );
if ( ( $this->current_user_can( 'clone_own_polls' ) && $poll_author == $current_user->ID ) || ( $this->current_user_can( 'clone_polls' ) ) ){
for ( $i = 0; $i < 5; $i++ ) {
Yop_Poll_Model::clone_poll( $yoppoll_id );
}
}
else {
$total_uncloned++;
}
}
In for ( $i = 0; $i < 5; $i++ ) replace “5” wit the value you want.
We would recommend to start with a smaller value, maximum 50, as it may take a while until all 50 clones are generated.
To clone the poll go to “All Polls”, select the poll you want to clone and from the menu at the top, in Bulk Actions, choose Clone and click on Apply.
This should generate the number of clones you want.
Regards,
YOP Team