Forum Replies Created

Viewing 15 replies - 1 through 15 (of 51 total)
  • This is also a problem for me. I just helped myself closing the if-condition half-way and commenting out the rest. Would be glad about a real fix, though. I guess, the only negative implication of my work-around is, that one cannot switch the mobile layout in the backend anymore.

    Line 68 in plugin.php reads
    if ($hefo_is_mobile ) { // && $hefo_options['mobile_body_enabled']) {
    now. If you wanted to have no mobile layout, you’d probably go for
    if (false) { // $hefo_is_mobile && $hefo_options['mobile_body_enabled']) {

    ditler

    (@ditler)

    In exec-php.php, includes/admin.php, includes/ajax.php, includes/cache.php, includes/config_ui.php, includes/const.php replace any =& new by = new. And the plugin works like a charm again.

    Thank you! I needed that, too. The file can be found as seen here:
    https://ww.wp.xz.cn/support/topic/minify-and-multiviews?replies=4

    Thank you, I needed that too. Hope it will be patched in the next version.

    I have patched lines 569ff as follows:

    .
    		$search .= "{$searchand}( (m.meta_value LIKE '{$n}{$term}{$n}') AND NOT (m.meta_key LIKE 'content%') )";
    	} else {
    		$search .= "{$searchand}( (meta_value LIKE '{$n}{$term}{$n}') AND NOT (meta_key LIKE 'content%') )";
    	}
    	$searchand = ' AND ';
    }
    $sentence_term = esc_sql( $s );
    if ( count( $search_terms ) > 1 && $search_terms[0] != $sentence_term ) {
    	if ( $this->wp_ver23 ) {
    		$search = "($search) OR (m.meta_value LIKE '{$n}{$sentence_term}{$n}') AND NOT (m.meta_key LIKE 'content%') )";
    	} else {
    		$search = "($search) OR ( (meta_value LIKE '{$n}{$sentence_term}{$n}') AND NOT (meta_key LIKE 'content%') ) ";

    The AND NOT parts are where the exclusion comes into play.

    I would also be glad if there is a patch, though.

    Thread Starter ditler

    (@ditler)

    I have manually recreated the subdir in uploads and copied my images in there. No errors now.
    Never had similar trouble before though.

    Thread Starter ditler

    (@ditler)

    If that was not the case, I could hardly have a functioning media library, right?

    Thread Starter ditler

    (@ditler)

    Mailing list
    This is where the idea is from
    EDIT:
    Looks like I have been mistaken. I investigate further what the problem is in my case.

    Thread Starter ditler

    (@ditler)

    Nobody says it should default to false. Rather it does default to false. For backward-compatibility, you can put the abs path. For forward compatibility, AFAIK, you should put the same as in the third argument. But that is just what I say; what are you trying to say? The localization is not broken?

    Same problem here, no solution so far

    Thread Starter ditler

    (@ditler)

    For whatever reason, the problems seems solved. I get back at you if it appears again.

    Thread Starter ditler

    (@ditler)

    Thanks for the fix!

    Thread Starter ditler

    (@ditler)

    I have the problem since I have SSL.

    Fixed it it: amr-ical-events-list-main.php, line 349
    from
    else $icalstyleurl = ICALLISTPLUGINURL.’css/’.$amr_options[‘cssfile’];
    to
    else $icalstyleurl = ICALLISTPLUGINURL.stristr($amr_options[‘cssfile’],’css/’);

    That did it, though I guess this is not a real fix.

    Best
    Andy

    Thank you! This should be incorporated into an update

    Thread Starter ditler

    (@ditler)

    After all, it seems to have something to do with my pluggable plugin:

    <?php
    /*
    Plugin Name: amr_test_pluggable
    Author: anmari
    Author URI: http://anmari.com/
    Plugin URI: http://icalevents.com
    Version: 1.0
    Text Domain: amr_test_pluggable
    Domain Path:  /lang
    
    Description: test the amr-events and amr-ical-events-list pluggable functions.
    */
    
    function amr_list_events ($events,  $id, $class, $show_views=true) {
    global $amr_listtype;
    	$htmlo = '';
    	$no_events = count($events);
    
    if(!function_exists('spalte')) {
    function spalte ($von, $bis_exkl, $events, $doppelt, $monat=1) {
    	setlocale(LC_ALL, 'de_DE');
    
    	$spalteo = '<div>';
    	for ($i=$von; $i<$bis_exkl; $i++) {
    		$event = $events[$i];
    		// DESIGN ANFANG
    	if($event['URL'][0]!='') {
    			$spalteo .= '<a href="';
    			$spalteo .= $event['URL'][0];
    			$spalteo .= '#">';
    	}
    			$spalteo .= '<div class="eventbox" title="';
    			$spalteo .= $event['LOCATION'];
    			$spalteo .= '"><span class="eventbadge">';
    			$spalteo .= substr($monat,0,3);
    			$spalteo .= '<strong>';
    			$spalteo .= strftime('%d',$event['EventDate']->format('U'));
    			$spalteo .= '</strong></span><span class="eventtime">';
    			$spalteo .= strftime('%H:%M',$event['EventDate']->format('U'));
    			$spalteo .= '</span><span class="eventname">';
    			$spalteo .= $event['SUMMARY'][0];
    			$spalteo .= '</span></div>';
    	if($event['URL'][0]!=='')
    			$spalteo .= '</a>';
    			// DESIGN ENDE
    			if($doppelt) $i++;
    	}
    	$spalteo .= '</div>';
    
    	return($spalteo);
    }}
    
    // In die Monate aufteilen.
    $monatsname = array(1=>"Januar",
                    2=>"Februar",
                    3=>"März",
                    4=>"April",
                    5=>"Mai",
                    6=>"Juni",
                    7=>"Juli",
                    8=>"August",
                    9=>"September",
                    10=>"Oktober",
                    11=>"November",
                    12=>"Dezember");
    if(!function_exists('add_1_to')) {
    function  add_1_to ($monat) {
    	$ret = $monat+1;
    	if ($monat==12) $ret=1;
    	return $ret;
    }}
    
    $month[0]=(int)strftime('%m',$events[0]['EventDate']->format('U'));
    $starts[$month[0]]=0;
    for ($j=1;$j<$no_events;$j++) {
    	$month[$j] = (int)strftime('%m',$events[$j]['EventDate']->format('U'));
    	if ($month[$j] != $month[$j-1]) $starts[$month[$j]]=$j;
    }
    $starts[add_1_to($month[$no_events - 1])]=$no_events;
    // Hier entscheidet sich, welcher Listentyp gefragt ist.
    
    //  Zweispaltige Liste
    if ($amr_listtype=='1') {
    	foreach ($starts as $monat => $erstesElement) {
    		$htmlo .= '<h3></h3>';
    		$htmlo .= '<div style="float:left; width:49%;" class="eventm'.$monat.'">';
    		$htmlo .= spalte($erstesElement, $starts[add_1_to($monat)], $events, true, $monatsname[$monat]);
    		$htmlo .= '</div><div style="float:right; width:49%;" class="eventm'.$monat.'">';
    		$htmlo .= spalte($erstesElement+1, $starts[add_1_to($monat)], $events, true, $monatsname[$monat]);
    		$htmlo .= '</div>';
    	}
    }
    
    // Einspaltige kurze Liste
    elseif ($amr_listtype=='2') {
    	foreach ($starts as $monat => $erstesElement) {
    		$htmlo .= '<div class="eventm'.$monat.'">';
    		$htmlo .= spalte($erstesElement, $starts[add_1_to($monat)], $events, false, $monatsname[$monat]);
    		$htmlo .= '</div>';
    		}
    }
    
    // Widget
    elseif ($amr_listtype=='3')  {
    	$htmlo .= '<ul>';
    	foreach ($events as $i=>$event) {
    		$htmlo .= '<li style="white-space:nowrap;">'.strftime('%d.%m.',$event['EventDate']->format('U'));
    		$htmlo .= ' <strong>'.$event['SUMMARY'][0].'</strong></li>';
    	}
    	$htmlo .= '</ul>';
    }
    return($htmlo);
    }

    I do not expect you to debug it for me; as said, for me the problem is pretty much solved now. This is just for your help, in case you are interested.

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