tmrender.jpg - 18514 Bytes

Thumbnail Keyword homepage.

  1. Thumbnail Keyword
  2. How to configure script
  3. License terms

The script sould not be too difficult to configure. It has a section that looks like the section below.

You need to have a Mysql database, and you would fill in the variables under. You change the value inside the quotation marks.

You need to change the allowed server. This is to stop hotlinking. And you type in the base url of your server. It has to include https:// . If you need more servers just add them inside the array. Remember to add all the possible version of the base url, such as the www version of your server if you use that.

Change the $alternate_image_url and $hotlinkimg to something on your server.

Change the $editorsip to the ip address where you are editing from.

         
//configure it below this line 
//#####################################################


//redirect url of the picture you want - when nothing is found in bing image 
//search for that keyword
//should be a jpg file since we send http jpg headers
$alternate_image_url = "https://turtlemeat.com/thumbnail-keyword/default.jpg"; 
//fill in your mysql information
$mysql_user = "mysqluser"; //the username for the mysql server
$mysql_password = "mysqlpass";	//the password for the mysql server
$mysql_server = "localhost"; //hostname or ipaddress for the mysqlserver
$mysql_database = "mysqldbkeyimg";  //database to use on the mysqlserver

//list of servers that are allowed to use script 
//include www.server.com and server.com if you allow with and without www in the 
//domain name.
$allowedserver = array('https://turtlemeat.com/', 'https://tubegator.com/');  
//the image that is displayed if image is hotlinked, not in the list in above line
$hotlinkimg = 'https://turtlemeat.com/thumbnail-keyword/hotlink.jpg'; 

//if you are concerned about abuser and vandals filling up the database
// with random keywords then
//basically fill in the start of your ip address. The ip address of the machine 
//you are browsing with.
//Not the address of the server.
//Google 'what is my ip' to find out if you don't know your ip address.
//so to be able to create a new image it must be accessed from an ip-address 
//starting with this.
//you will typically browse the page after you have created edited it, 
//and then the image will be 
//created in the database.
//if set to '' it will accept creating image from all ip-addresses
//if set to '84.215' only requests from browsers starting with this 
//ip-address will create the image in db.
$editorsip = ''; 

//no need to edit anything futher down from here 
//###################################################################################

          

 

HOME

© TURTLEMEAT 2011, ALL RIGHTS RESERVED FOREVER.