Forum Replies Created

Viewing 15 replies - 1 through 15 (of 19 total)
  • Thread Starter Sgracia

    (@sgracia)

    Warning: Invalid argument supplied for foreach() in /home/inrunews/public_html/wp-content/plugins/global-content-blocks/global-content-blocks.php(322) : eval()’d code on line 112

    after the images i have this error

    Good night and ty

    Thread Starter Sgracia

    (@sgracia)

    oopss forget it it’s works i’m too tired xd

    Ty very much for your time !!!

    And is there a way to have easy the first image ?

    or i break the foreach

    Thread Starter Sgracia

    (@sgracia)

    why this ? in the html source
    <img class=”avisImages” src=”. get_entry_files( $entry) .”>

    Thread Starter Sgracia

    (@sgracia)

    Thread Starter Sgracia

    (@sgracia)

    test
    View File #1 (.jpg), View File #2 (.jpg), View File #3 (.jpg), View File #4 (.jpg),

    they are pictures

    array(47) { [“id”]=> string(2) “15” [“form_id”]=> string(1) “1” [“date_created”]=> string(19) “2015-08-28 21:22:21” [“is_starred”]=> int(0) [“is_read”]=> int(0) [“ip”]=> string(12) “90.15.234.72” [“source_url”]=> string(47) “https://www.inrunews.com/en/add-obituary-notice/&#8221; [“post_id”]=> NULL [“currency”]=> string(3) “CHF” [“payment_status”]=> string(4) “Paid” [“payment_date”]=> string(19) “2015-08-28 21:22:40” [“transaction_id”]=> string(17) “36T17855A99669710” [“payment_amount”]=> string(4) “1.00” [“payment_method”]=> string(6) “PayPal” [“is_fulfilled”]=> string(1) “1” [“created_by”]=> string(1) “1” [“transaction_type”]=> string(1) “1” [“user_agent”]=> string(110) “Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36” [“status”]=> string(6) “active” [4]=> string(10) “2015-08-12” [“6.3”]=> string(4) “test” [“6.6”]=> string(4) “test” [11]=> string(5) “paris” [12]=> string(10) “2015-08-10” [13]=> string(5) “paris” [17]=> string(1) “1” [“18.1”]=> string(36) “Publish Obituary notice CHF 1 / day” [“18.2”]=> string(8) “CHF 1.00” [21]=> string(10) “2015-08-28” [22]=> string(10) “2015-08-28” [23]=> string(1) “1” [36]=> string(50) “a:4:{i:0;i:6181;i:1;i:6182;i:2;i:6183;i:3;i:6184;}” [“6.2”]=> string(0) “” [“6.4”]=> string(0) “” [“6.8”]=> string(0) “” [35]=> string(0) “” [29]=> string(0) “” [30]=> string(0) “” [33]=> string(0) “” [25]=> string(0) “” [24]=> string(0) “” [26]=> string(0) “” [34]=> string(0) “” [“18.3”]=> string(0) “” [31]=> string(0) “” [32]=> string(0) “” [28]=> string(0) “” }
    test test (Age:-1)

    Thread Starter Sgracia

    (@sgracia)

    array(47) { [“id”]=> string(2) “14” [“form_id”]=> string(1) “1” [“date_created”]=> string(19) “2015-08-28 19:47:30” [“is_starred”]=> int(0) [“is_read”]=> int(1) [“ip”]=> string(12) “90.15.234.72” [“source_url”]=> string(47) “https://www.inrunews.com/en/add-obituary-notice/&#8221; [“post_id”]=> NULL [“currency”]=> string(3) “CHF” [“payment_status”]=> string(4) “Paid” [“payment_date”]=> string(19) “2015-08-28 19:47:51” [“transaction_id”]=> string(17) “28H01656FU8655025” [“payment_amount”]=> string(5) “65.00” [“payment_method”]=> string(6) “PayPal” [“is_fulfilled”]=> string(1) “1” [“created_by”]=> string(1) “1” [“transaction_type”]=> string(1) “1” [“user_agent”]=> string(110) “Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36” [“status”]=> string(6) “active” [4]=> string(10) “2000-08-03” [“6.3”]=> string(7) “Camelle” [“6.6”]=> string(5) “Brian” [11]=> string(5) “Paris” [12]=> string(10) “2015-08-28” [13]=> string(5) “Paris” [17]=> string(2) “65” [“18.1”]=> string(36) “Publish Obituary notice CHF 1 / day” [“18.2”]=> string(8) “CHF 1.00” [21]=> string(10) “2015-08-27” [22]=> string(10) “2015-08-27” [23]=> string(2) “65” [24]=> string(150) “a:1:{i:0;a:5:{s:4:”Name”;s:6:”yanick”;s:4:”Link”;s:4:”fils”;s:8:”Location”;s:5:”Paris”;s:5:”Phone”;s:9:”063265987″;s:5:”Email”;s:13:”[email protected]”;}}” [25]=> string(116) “a:1:{i:0;a:3:{s:4:”Type”;s:11:”Cérémonie”;s:14:”Date and hours”;s:15:”21 oct 18 h 21h”;s:6:”Adress”;s:5:”paris”;}}” [26]=> string(60) “
    bonjour

    voici le texte

    merci

    ” [“6.2”]=> string(0) “” [“6.4”]=> string(0) “” [“6.8”]=> string(0) “” [35]=> string(0) “” [36]=> string(0) “” [29]=> string(0) “” [30]=> string(0) “” [33]=> string(0) “” [34]=> string(0) “” [“18.3”]=> string(0) “” [31]=> string(0) “” [32]=> string(0) “” [28]=> string(0) “” }

    Thread Starter Sgracia

    (@sgracia)

    don’t work ??

    Thread Starter Sgracia

    (@sgracia)

    function calculateAge($dob, $date=null) {

    $dob = strtotime($dob);

    $date = $date ? strtotime($date) : time();

    // Calculate the age
    $age = date(‘Y’, $date)-date(‘Y’, $dob);

    // Correct age for leap year
    return (date(‘md’, date(‘U’, $dob)) > date(‘md’, date(‘U’, $date)))
    ? $age-1 : $age;

    }

    //Choix du formulaire
    $form_id = 1;

    $search_criteria = array(
    ‘status’ => ‘active’,
    ‘field_filters’ => array(
    ‘mode’ => ‘any’,
    array(
    ‘key’ => ‘payment_status’,
    ‘value’ => ‘Paid’
    ),
    array(
    ‘key’ => ’22’,
    ‘operator’ => ‘<=’,
    ‘value’ => ‘NOW()’
    ),
    array(
    ‘key’ => ’21’,
    ‘operator’ => ‘>=’,
    ‘value’ => ‘NOW()’
    )
    )
    );

    $my_param = $_GET[‘urlparams’];
    $perPage = 10;
    $total_count= GFAPI::count_entries( $form_id, $search_criteria );

    // Nombre total de page
    $nbPage = ceil($total_count/$perPage);

    if (isset($my_param) && $my_param>0 && $my_param <=$nbPage) {
    $sPage = $my_param ;
    }
    else{
    $sPage = 1;
    }

    $sorting = array( ‘key’ => ‘date_created’, ‘direction’ => ‘DESC’ );

    $paging = array( ‘offset’ => (($sPage-1)*$perPage) , ‘page_size’ => $perPage );

    $entries = GFAPI::get_entries( $form_id, $search_criteria, $sorting, $paging, $total_count );

    echo ‘<table style=”width: 100%; background-color: #2e2e2e;”><tbody>’;

    foreach($entries as $entry) {
    echo ‘<tr>’;
    echo ‘<td colspan=”4″><span style=”color: #ffffff;”>’ . rgar( $entry,’6.3′) . ‘ ‘ . rgar( $entry,’6.6′) .’ (Age:’.calculateAge(rgar( $entry,’4′),rgar( $entry,’12’)).’)</span></td>’;
    echo ‘</tr><tr>’;

    $file_id = maybe_unserialize( $entries[0][36]);

    echo ‘<td style=”width: 150px; text-align: center; vertical-align: middle;” rowspan=”3″><img class=”avisImages” src=”‘.wp_get_attachment_url( $file_id).'” /></td>’;
    echo ‘<td style=”width: 30%; text-align: right; background-color: #a6a6a6;”>?Place of Birth:</td>’ ;
    echo ‘<td style=”width: 50%; background-color: #a6a6a6;” colspan=”2″>’ . rgar( $entry,’11’) . ‘ </td>’;
    echo ‘</tr><tr>’;
    echo ‘<td style=”width: 30%; text-align: right; background-color: #a6a6a6;”>?Place of Death:</td>’;
    echo ‘<td style=”width: 50%; background-color: #a6a6a6;” colspan=”2″> ‘ . rgar( $entry,’13’) . ‘ ?</td>’;
    echo ‘</tr><tr>’;
    echo ‘<td style=”width: 30%; text-align: right; background-color: #a6a6a6;”>?Date of death:</td>’;
    echo ‘<td style=”width: 50%; background-color: #a6a6a6;” colspan=”2″>’ . rgar( $entry,’12’) . ‘ ?</td></tr>’;
    echo ‘<tr><td style=”height:2px; background-color:#ffffff;”><td colspan=”2″ style=”height:5px; background-color:#ffffff;”></td></tr>’;
    }

    echo ‘</tbody></table>’;

    if(!empty($my_param) AND intval($my_param)>0 AND intval($my_param)<=$nbPage ){$page=$my_param;}else{$sPage=1;}
    if($sPage>1){
    // echo “Première page “;
    $precedent=$sPage-1;
    echo “ << “;
    }

    if($sPage<$nbPage){
    $suivant=$sPage+1;
    echo “ >> “;
    // echo “Dernière page “;
    }

    Thread Starter Sgracia

    (@sgracia)

    I update the plugin

    i did :
    $entries = GFAPI::get_entries( $form_id, $search_criteria, $sorting, $paging, $total_count );
    foreach($entries as $entry) {
    $file_id = maybe_unserialize( $entries[0][36]);
    <img class=”avisImages” src=”‘.wp_get_attachment_url( $file_id).'” />
    }

    don’t work ??

    maybe i don’t understand something

    Sorry ??

    Thread Starter Sgracia

    (@sgracia)

    yes
    $entries = GFAPI::get_entries( $form_id, $search_criteria, $sorting, $paging, $total_count );

    Thread Starter Sgracia

    (@sgracia)

    no it’s not for a post it’s for custom

    my form :
    https://www.inrunews.com/en/add-obituary-notice/

    where it’s display
    https://www.inrunews.com/en/obituary-notice/

    je l’ai fait en modifiant le php /views/popup.php

    <div class=”modal-body”> ‘. do_shortcode(‘[wysija_form id=”2″]’) .’ </div>

    Thread Starter Sgracia

    (@sgracia)

    i’m sorry but i don’t find where
    in setting you can change the name of a slug url

    Exemple : if i change : Courses in Formations

    in the breadcrumb i have always

    MyWebsite > Courses
    and not
    MyWebsite > Formations

    cause the title of the page always “Courses”

    Thread Starter Sgracia

    (@sgracia)

    works ^^ need just the link to the course

    Thread Starter Sgracia

    (@sgracia)

    i find the problem

    i install a new wordpress website, courses works

    I install Avada Themes 3.7 courses doesn’t work

    Maybe conflict with words maybe ‘content’
    this line is the problem
    <?php get_template_part( ‘content’, get_post_format() ); ?>

    how can we fix this ? contentEductor or something like this ?

Viewing 15 replies - 1 through 15 (of 19 total)