emkowale
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
WOW! 2 weeks and 2 days without a single reply. I guess I just write my own. Wonderful support.
Forum: Fixing WordPress
In reply to: Uploading image by base64 format to WordPress by Rest APII wrote a sweet way to in PHP to take base64 image data from fishbowl and pop it into a remote WP site via the REST API (wp_remote_post). I extracted and uploaded tens of thousands of products and base64 images. The thing I’d like to do is add caption, title and description data programatically. Hit me up. Let’s work together.
$image=''; $image=$row['image']; if($image=='') $image="no image"; else { //create a temp image file first replacing any spaces with - $fileName=str_replace(" ","-",$productId)."-by-Patriot-Fluid-Power.".$extension; $handle=fopen("temp/".$fileName, 'wb'); fwrite($handle, base64_decode($image)); fclose($handle); //copy the image to the /temp directory on LW $connection = ssh2_connect('remote_host', 22); ssh2_auth_password($connection, 'root', 'password'); ssh2_scp_send($connection, "temp/".$fileName, "/home/example/public_html/temp/".$fileName, 0644); $stream = ssh2_exec($connection, "chown user.group /home/example/public_html/temp/".$fileName); //delete the local temp image on betsy unlink("temp/".$fileName); $image="<img style=max-width:300px; src='https://example.com/temp/".$fileName."'>"; $imageSrc="https://example.com/temp/".$fileName; }Forum: Plugins
In reply to: [Ninja Tables – Easy Data Table Builder] Jquery targetingWe put in a ticket on 6/22 as requested and haven’t heard anything.
Forum: Plugins
In reply to: [Ninja Tables – Easy Data Table Builder] Jquery targetingbump. Can we get some help on this?
Forum: Plugins
In reply to: [Ninja Tables – Easy Data Table Builder] Jquery targetingI tried that exact code and can’t get it to work. I need to do the same thing.
Viewing 5 replies - 1 through 5 (of 5 total)