Hi,
In this case you simply should edit the “/wp-content/plugins/photoshow/modules/06_Google/google.clss.php” file, specifically the line of code:
$response = wp_remote_get( “https://www.googleapis.com/customsearch/v1?q=”.urlencode( $terms ).”&cx=”.urlencode($cx).”&start=”.$from.”&key=”.$api_key, array(‘timeout’ => 120) );
To include the new parameters.
Best regards.
Hi I am trying to use the basic features but I am confused how to do this. I read the example in the settings area of the plugin:
dogs site:facebook.com
And for searching “Dogs” pictures in Picasa, use the searching term:
dogs site:picasaweb.google.com
Coding is not my expertise. I was expecting a shortcode or something. I went to the demo site and did a search for “site:” in the code but it wasn’t used in any of the pages.
If I want to insert a picture of a dog from sitexwz.com (for this example lets say it does not require an api) What code should I paste on my page as an example?
Thanks!!
Hi,
If you want to insert an specific picture from a website, and you know its URL, you simply should insert an img tag in the page’s content, for example, if the URL to the image is:
http://www.sitexwz.com/images/dog.jpg
The tag to insert would be:
<img src="http://www.sitexwz.com/images/dog.jpg" />
About your first question. Our plugin does not insert a shortcode, it inserts the code of the gallery directly into the page’s content. The use of term “site:” in the search criteria, when the Google API is enabled, indicates to Google that you want search in a determined website, however, if you have included the website when the search context was defined in Google, you simply should enter the terms for searching without the “site:” part.
Best regards.