I need to call the Zabbix API to a WordPress Website.
Is this possible?
Does anyone ever tried to do this kind of stuff?
Is there a plugin to call APIs?
I really need an answer to know if it is possible to do this type of things or if I need to look for another type of CMS’s.
Thanks and good work!
]]>->$result = $wpdb->get_results("SELECT * FROM Table1");
{
"status": "ok",
"count": 1,
"result": [
{
"id": "1",
"field1": "Name"
}
]
}
but i want it to return like this
{
"status": "ok",
"count": 1,
"result": [
{
"id": "1",
"field1": "Team",
"Player": [
{
"other_table_id": "1",
"other_table_name1": "PlayerName",
}
]
}
]
}
is this possible using wordpress?
]]>I’m developing a webservice integrating Oracle Database to the WordPress Database, this code isn’t in the same wordpress server so I can’t use the wp_functions in general.
My code is pure SQL/PHP and i’m inserting posts with pure SQL queries, these posts have images that I scan a folder and insert them in the database.
I’m having trouble with the images metadata that I’ve insert previosly with pure SQL, in wordpress dashboard they apper with kind a noimage thumnail in Media section and I can’t regenerate the thumbnails.
The query I’m executing to include the metadata is:
"INSERT INTO wb_postmeta (post_id, meta_key, meta_value) VALUES ({$idPostImagens}, '_wp_attachment_metadata', 'a:5:{s:5:\"width\";i:{$imgWidth};s:6:\"height\";i:{$imgHeight};s:4:\"file\";s:24:\"produtos/{$SKU}/{$imgProduto}\";s:5:\"sizes\";a:20:{s:9:\"thumbnail\";a:4:{s:4:\"file\";s:17:\"{$filename}-150x150.{$fileExtension}\";s:5:\"width\";i:150;s:6:\"height\";i:150;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";}s:6:\"medium\";a:4:{s:4:\"file\";s:13:\"{$filename}-300x169.{$fileExtension}\";s:5:\"width\";i:300;s:6:\"height\";i:169;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";}s:12:\"medium_large\";a:4:{s:4:\"file\";s:13:\"{$filename}-768x432.{$fileExtension}\";s:5:\"width\";i:768;s:6:\"height\";i:432;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";}s:14:\"post-thumbnail\";a:4:{s:4:\"file\";s:13:\"{$filename}-420x338.{$fileExtension}\";s:5:\"width\";i:420;s:6:\"height\";i:338;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";}s:18:\"woostroid-thumb-xs\";a:4:{s:4:\"file\";s:11:\"{$filename}-81x65.{$fileExtension}\";s:5:\"width\";i:81;s:6:\"height\";i:65;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";}s:17:\"woostroid-thumb-s\";a:4:{s:4:\"file\";s:13:\"{$filename}-150x150.{$fileExtension}\";s:5:\"width\";i:150;s:6:\"height\";i:150;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";}s:22:\"woostroid-slider-thumb\";a:4:{s:4:\"file\";s:12:\"{$filename}-158x88.{$fileExtension}\";s:5:\"width\";i:158;s:6:\"height\";i:88;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";}s:17:\"woostroid-thumb-m\";a:4:{s:4:\"file\";s:13:\"{$filename}-400x400.{$fileExtension}\";s:5:\"width\";i:400;s:6:\"height\";i:400;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";}s:19:\"woostroid-thumb-m-2\";a:4:{s:4:\"file\";s:13:\"{$filename}-420x340.{$fileExtension}\";s:5:\"width\";i:420;s:6:\"height\";i:340;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";}s:19:\"woostroid-thumb-m-3\";a:4:{s:4:\"file\";s:13:\"{$filename}-530x432.{$fileExtension}\";s:5:\"width\";i:530;s:6:\"height\";i:432;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";}s:23:\"woostroid-thumb-masonry\";a:4:{s:4:\"file\";s:13:\"{$filename}-420x236.{$fileExtension}\";s:5:\"width\";i:420;s:6:\"height\";i:236;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";}s:19:\"woostroid-thumb-l-2\";a:4:{s:4:\"file\";s:13:\"{$filename}-768x315.{$fileExtension}\";s:5:\"width\";i:768;s:6:\"height\";i:315;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";}s:23:\"woostroid-author-avatar\";a:4:{s:4:\"file\";s:13:\"{$filename}-190x190.{$fileExtension}\";s:5:\"width\";i:190;s:6:\"height\";i:190;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";}s:32:\"woostroid-woo-cart-product-thumb\";a:4:{s:4:\"file\";s:13:\"{$filename}-191x237.{$fileExtension}\";s:5:\"width\";i:191;s:6:\"height\";i:237;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";}s:41:\"woostroid-thumb-products-smart-box-widget\";a:4:{s:4:\"file\";s:13:\"{$filename}-317x393.{$fileExtension}\";s:5:\"width\";i:317;s:6:\"height\";i:393;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";}s:36:\"woostroid-thumb-listing-line-product\";a:4:{s:4:\"file\";s:13:\"{$filename}-672x432.{$fileExtension}\";s:5:\"width\";i:672;s:6:\"height\";i:432;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";}s:32:\"woostroid-thumb-product-category\";a:4:{s:4:\"file\";s:13:\"{$filename}-436x432.{$fileExtension}\";s:5:\"width\";i:436;s:6:\"height\";i:432;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";}s:21:\"woocommerce_thumbnail\";a:5:{s:4:\"file\";s:13:\"{$filename}-300x300.{$fileExtension}\";s:5:\"width\";i:300;s:6:\"height\";i:300;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";s:9:\"uncropped\";b:1;}s:18:\"woocommerce_single\";a:4:{s:4:\"file\";s:13:\"{$filename}-600x338.{$fileExtension}\";s:5:\"width\";i:600;s:6:\"height\";i:338;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";}s:29:\"woocommerce_gallery_thumbnail\";a:4:{s:4:\"file\";s:13:\"{$filename}-317x393.{$fileExtension}\";s:5:\"width\";i:317;s:6:\"height\";i:393;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";}s:12:\"shop_catalog\";a:4:{s:4:\"file\";s:13:\"{$filename}-300x300.{$fileExtension}\";s:5:\"width\";i:300;s:6:\"height\";i:300;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";}s:11:\"shop_single\";a:4:{s:4:\"file\";s:13:\"{$filename}-600x338.{$fileExtension}\";s:5:\"width\";i:600;s:6:\"height\";i:338;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";}s:14:\"shop_thumbnail\";a:4:{s:4:\"file\";s:13:\"{$filename}-317x393.{$fileExtension}\";s:5:\"width\";i:317;s:6:\"height\";i:393;s:9:\"mime-type\";s:10:\"{$imageMimeType}\";}}s:10:\"image_meta\";a:12:{s:8:\"aperture\";s:1:\"0\";s:6:\"credit\";s:0:\"\";s:6:\"camera\";s:0:\"\";s:7:\"caption\";s:0:\"\";s:17:\"created_timestamp\";s:1:\"0\";s:9:\"copyright\";s:0:\"\";s:12:\"focal_length\";s:1:\"0\";s:3:\"iso\";s:1:\"0\";s:13:\"shutter_speed\";s:1:\"0\";s:5:\"title\";s:0:\"\";s:11:\"orientation\";s:1:\"0\";s:8:\"keywords\";a:0:{}}}')"
Someone can help me? I’m stuck.
]]>Now, a menu of the site will be : Check –> where clients can see the status of their device through their unique data which is : Name, Surname, Device ID.
All i know is that the company Use Dynamic Nav.
How can i get the status of the a specific Client device and show them the result?
How to connect MYSQL database of Website with MSSQL of NAV?
I the link provided i have the the schema of work:https://i.imgur.com/HDdjGXJ.png%5B^]
How to do all this step by step.
Where should i start, what do i need to do this?
How do cronjobs work on wordpress? Is that possible that cron takes data directly from NAV so i can avoid the webservice part?
Thank you in advance!!!
i am amazed bout the options of the plugins – see the following:
see some Plugins /& Extensions that allow Amazon-Web-Services
for example WPZonbuilder: it allows Amazon-Reviews in Wordpreess
here: https://www.wpzonbuilder.com/features/
Add Amazon Products To Any Post
Add Amazon products to any standard post using the inline product feature. You can display just a single product, or multiple products. When displaying multiple products, the results will always be pulled live from Amazon, so you can enter a specific search query, and if the results for that query change on Amazon, the changes will be reflected on your site as well.
Customer Reviews In Your Product Posts Or Pages
You can choose to display user reviews of Amazon products on your site in an iFrame. People are much more likely to buy a product after reading customer feedback.
Amazon does an excellent job of showing the most helpful reviews.
question: is this possible – well ithought that this was disabled by amazon
love to hear from you
say
]]>my code is as following
require("/Applications/MAMP/htdocs/wordpress/wp-load.php");
$Addr = "https://www.xxx.com" . $Addr;
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 0);
curl_setopt($ch, CURLOPT_URL, $Addr);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec($ch);
curl_close($ch);
ini_set( 'display_errors', TRUE );
error_reporting( E_ALL );
$upload_dir = wp_upload_dir();
$location= $upload_dir['basedir']. "/" . "a.jpg";
file_put_contents($location, $output);
echo 'Photo is uploaded';
]]>I need your ideas on my new project in word press. How should i approach that.
what i want to achieve is that Client will have library of word press themes called wps themes on his server.
I need to create a plugin which when install 1)- The plugin will search for a wps themes, if does not find any wps theme installed on the client server, it will search and display all wps themes that are available. and it will advise the user that api is required to activate the full functiality of the theme. but if dont want to use api, user still can install any wps theme but in degrade mode (without plugins). 2)- if he uses the api and then all the plug ins related to particular themes will be installed.
My main concern is here how to search the themes and how to copy the files from there?
Any ideas?
Thanks in advance. -Naveen
]]>