Friday, August 12, 2016

3rd party integration for contact form 7 API style

I was requested to fix the issue permanently because every contact form 7 update would cause erasing of the custom code and I need to fix it everytime. Not good. So I did a quick search and found the plugin: forms-3rdparty-integration.

Once installed, the basic setup is binding your fields;
1. Input the fields you need to send to your application under "3rd party service: service 1"
2. Add your custom URL (try to include something very unique - I use a ?key=<randomkey>)
3. On your application, using the <randomkey> you can take in the values using $_POST


Let me know if you would like any expansion or anything is unclear, etc in the comments below.
Thank you

Thursday, June 30, 2016

How to embed google maps street view PHP based on latitude longitude programmatic

If you want to embed custom made google map street view based on programmatic dynamic PHP code first you must make a separate page for the map, like so THIS based on the google documentation at the time of this writing.

Second you can embed the code in your site like this:
$lat = $result['lat'];
$lng = $result['lng'];
echo '<iframe width="400" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="ADDRESS/TO/YOUR/streetmap&lat='.$lat.'&lng='.$lng.'"></iframe>';

The iframe will show the map in the size you indicate with the lat and lng given.

If you want to know how to get the lat and lng based on read address read google maps api.

Let me know in the comments below if anything is unclear or any feedback, or if you would like more tutorials/how-to on those or other topics.

Wednesday, June 29, 2016

George town and Penang Island Malaysia

After a great time in Koh Phangan I head to Penang leaving Thailand for the second time as the visa came to an end.

The boat ride was fun, and inspiring to get the wheels in motion again after such a relaxing time on that magical island.

Here I had some health troubles which led me down an interesting path. My motorbike injury in Pai has reopened yet again and infection persisted. Several days after arriving I went on some basic treks that could have been partially responsible for the worsted condition and I had a fever. I was admitted to Gleneagles hospital and two fellow travelers I met in Phangan as well as the hostel owner had been extremely kind and helpful for the situation.

The travelers brought me little sweets peanuts and even mango that brought up my emotion instantly. as well as their presence and finally when I got my laptop it helped a lot. The hostel owner had forgave one day and organized my stuff (which I was too weak to do myself before leaving for the hospital) and stored it under the stairs in a safe location.

The time alone and in the clean environment was great for my healing physically, mentally and even emotional disturbancce that helped push further my well being once I left the hospital. I spent more time at Love Lane Inn and eventually felt healthy enough to get to the national park in the north west side of the island with a girl I met from couchsurfing site that I decided to use when in the hospital. after the trek we did, I met a french guy that is raw and mostly fruitarian and showed me the guesthouse where i spent 3 nights. treked the second day and road trip on motor bike third day.

Finally returning to Love Lane Inn where I write this now, and this being my last night here, which makes for a good conclusive post. Next I will head to KL capital.

The lessons learned here, and collective wisdom: raw eating is the optimal human (or any animal) nutrition. Humans will do what they feel or like or want without always considering the best option for reasons of health or otherwise. The diversity of humans is large and so is the opinion.

The journey continues.