1) Variables to edit:
Go to your mytube folder and Edit the config.php file with notepad or any text editor. (In a html editor like dreamweaver you will see the things to edit in red)
Enter the informations asked on each line.
$flickr_id = "35283995@N00"; //Enter your flickr ID, should look someting like: 35283995@N00 - if you want images with a choosen keyword, leave this empty and go to the next step
$keyword = ""; //If you don't enter your Flickr id and want to choose a default keyword for Flickr photos to start with. (you can't enter your flickr ID and a keyword, chose one or the other)
$number = "20"; //Numbers of images you want to display (Max is 20)
$searchflickr = "yes"; //If you want the Flickr search engine to show, enter yes if not enter no
$size = "75"; //Set the thumbnails size in pixel (default is 75).
flickr_id
Enter your flickr ID if you want your own photos to appear on the default page when there is no search, should be something like: "35283325@N00" - if you want to choose a keyword for default videos let's this empty and fill the next option.
Default is empty:
keyword
If you don't enter or doesn't have a Flickr id and want to choose a default keyword instead to load photos with a keyword.
enter one or more keyword as follow.
Default is: iphone mac
size
Choose the photos thumbnails size to perfectly fit your website template.
Default is: 75 (value in pixels)
searchflickr
Display or not the flirck search box over the videos thumbnails, enter "yes" or "no":
Default is: yes
mysearch
If you want that Myflickr search script to be connected with your own website search engin enter your search query (Ex: mywebsite.com?searchresults=) for this example enter searchresults (default is photosearch)
Default is: photosearch
number
Number of photos to display, enter the desired number "10": (max is 10)
Default is: 10
bigpics
for copyright reason, you have the choice to show the full sized picture or not - default is no (enter yes or no)
2) Upload
Upload all the files in the myflickr folder to your server.
To work, myflickr folder should be installed in the root on your server, not in another folder
if this is already done just upload the config.php file into the myflickr folder
3) Including the video.php file
to be sure the script will be included in every page of your website enter the absolute link to this file
<?php include('http://www.mysite.com/myflickr/myflickr.php'); ?>
Place this code where you want to display photos from the myflickr.php file everywhere in the mainresults.php file.
4) chmod 777 the cache folder in your mytube folder
Make sure that the cache folder is writable to chmod 777 (you can do it with your FTP program, usually, right click the cache folder to modify it)
--------------------------------------------------------------------------------
Other things
- You can create direct link to flickr search
Exemple: http://www.mysite.com/index.php?photosearch=iphone
Explanation
index.php - Exemple page where the videos search results appear on your website
photosearch - the search query you chose from the config.php file
iphone - the keyword you want to search |