ditler
Forum Replies Created
-
Forum: Plugins
In reply to: [Head, Footer and Post Injections] Undefined index: mobile_body_enabledThis 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']) {Forum: Plugins
In reply to: [Exec-PHP] The plugin doesn't work on PHP version 7In exec-php.php, includes/admin.php, includes/ajax.php, includes/cache.php, includes/config_ui.php, includes/const.php replace any
=& newby= 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=4Forum: Plugins
In reply to: [W3 Total Cache] Getting error message when using W3 Total Cache with SSLThank you, I needed that too. Hope it will be patched in the next version.
Forum: Plugins
In reply to: [Search Everything] Exclude Specific Custom FieldsI 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.
Forum: Plugins
In reply to: [OS Integration] Problem with square and wide image uploadI have manually recreated the subdir in uploads and copied my images in there. No errors now.
Never had similar trouble before though.Forum: Plugins
In reply to: [OS Integration] Problem with square and wide image uploadIf that was not the case, I could hardly have a functioning media library, right?
Forum: Plugins
In reply to: [Subscribe2 - Form, Email Subscribers & Newsletters] L10n brokenMailing 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.Forum: Plugins
In reply to: [Subscribe2 - Form, Email Subscribers & Newsletters] L10n brokenNobody 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?
Forum: Plugins
In reply to: [WordPress Social Login] Not getting user emailSame problem here, no solution so far
For whatever reason, the problems seems solved. I get back at you if it appears again.
Forum: Plugins
In reply to: [amr ical events lists] CSS URL invalidThanks for the fix!
Forum: Plugins
In reply to: [amr ical events lists] CSS URL invalidI 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
AndyForum: Plugins
In reply to: [ReOrder Posts within Categories] get_queried_object() throwing errorsThank you! This should be incorporated into an update
Forum: Plugins
In reply to: [amr ical events lists] Uncaught exception: DateTime::__construct()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.