Alex Kuimov
Forum Replies Created
-
Forum: Plugins
In reply to: [DL Yandex Metrika] Новое АПИ Метрикиfunction curl_file_get_contents($url)
{
$authToken = ‘**************************’;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, [‘Content-Type: application/x-yametrika+json’, ‘Authorization: OAuth’ . $authToken]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$obj = curl_exec($ch);
curl_close($ch);
return $obj;
}
$url = ‘https://api-metrika.yandex.ru/stat/v1/data’;
$params = array(
‘ids’ => ‘*******’,
‘metrics’ => ‘ym:s:visits’,
‘dimensions’ => ‘ym:s:externalRefererPathLevel1’,
‘date1’ => ‘7daysAgo’,
‘date2’ => ‘yesterday’
);
$obj = curl_file_get_contents($url . ‘?’ . http_build_query($params));
$obj = json_decode($obj, true);for ($i = 0;$i < count($obj[‘data’]);$i++)
{
echo ‘[‘, “‘”, $obj[‘data’][$i][‘dimensions’][0][‘name’], “‘”, ‘, ‘, $obj[‘data’][$i][‘metrics’][‘0’], ‘],’;
}
?>The problem was in the cache. I cleaned it and it all worked.
Thanks for the helpI’ll try to disable the cache. And create the field. I will tell about the result
Thanks.
I used different names. Example: some_field_name.
Field name does not repeat, but still an error.Can caching other fields cause this error?
I use: ‘cache_results’ => true,
And :set_transient(‘led_size’, $posts, DAY_IN_SECONDS);
Thanks
Forum: Reviews
In reply to: [Cude Blog] Awesome Themethanks)
Forum: Reviews
In reply to: [Форма обратного звонка] Спасибо Алекс за плагинИ Вам спасибо!
Forum: Reviews
In reply to: [SP RTL (RusToLat)] Не работает в версии 4.9.4А конкретней?
Если что, плагин автоматически не переводит посты который уже на кириллице, в латиницу.
Forum: Reviews
In reply to: [Форма обратного звонка] Отличный плагинСпасибо) Со временем конечно добавлю.))
Forum: Reviews
In reply to: [Форма обратного звонка] Отличный плагинСпасибо))
Forum: Plugins
In reply to: [Обратный звонок] Отправка email уведомленийДоброго времени суток. Попробуйте версию 2.6.
Forum: Plugins
In reply to: [Обратный звонок] Small improvementHello. Thank you. It’s good idea. I will fix these errors in the new version.
Forum: Plugins
In reply to: [Обратный звонок] Not workingI need to look at your site to say exactly. Maybe you have a problem with CSS. See rules for #spwp86_msg. And maybe you have a problem with jQuery. Use last version.
Forum: Plugins
In reply to: [Обратный звонок] Not workingCan I look it? Show me your site ??
Forum: Plugins
In reply to: [Обратный звонок] Not workingHello! Thank you!
1.
What do you mean by “confirmation message”??
This (https://www.dropbox.com/s/0cwtajzfk0uiudr/1.png?dl=0) ??2.
You can change 18, 22 strings in file spwp86-ajax.phpForum: Plugins
In reply to: [Обратный звонок] Shortcode to show Call me Spoot Frontend?Hello! This function active in the Pro version.