1. What the OwnLinkSite system can do


 
The OwnLinkSite system allows you to automatically update both text links and picks. In this tutorial, we will go through all the steps necessary to create 5 different link sites - with picks and links updating themselves automatically every day.
 
 

2. Creating a simple template table with text links


The first step is to create a template. Lets say we want each link to consist of:

1. A date, say 31-10
2. An anchor text to serve as a short description of the site it points to
3 .The URL that the reader should be directed to when he clicks the link.

We would write it like this:

 


#date_0# <a href="#url_3_0#" target="_blank">#short_3_0#</a>

 

This is template-speak for:

#date_0# First, write today's date (the zero means the date is 0 days old.)
#url_3_0# URL for category 3 (teens) for today (0 days old)
#short_3_0# Use a short description as anchor text (3 to 30 characters)

The target="_blank"-command tells the browser that you want the page to open in a new window when the link is clicked, to avoid the reader loosing sight of your page. Just skip that command if you do not want a new window to open.

If you want 10 different links for this category (but pointing to different sites), just write that line 10 times. Add some other categories, and include a few links from previous days (just alter the 0 to 1, to 2 or whatever), and voila! You have your links.

You may want to put your links in a table and add some CSS (style sheet) lines:
 

<table style="Border-Style: Solid; Border-Width: 1; " cellSpacing="0" cellPadding="0" width="600px" border="0"><tr><td>
<table style="Font-Size: 18px; Color: #000000; Background-Color: #FFCC33; Border-Style: Solid; Border-Color: #003366; Text-Align: left; Border-Width: 1; Letter-Spacing: 4px; Padding-Left: 20px; Padding-Top: 6px; Padding-Bottom: 6px; Font-Family: Arial Black; " cellSpacing="0" cellPadding="0" width="100%" border="0"><tr><td>
Teens</td></tr>
</table>

<table style="Font-Size: 10px; Color: #000000; Background-Color: #FFFFCC; Border-Style: Solid; Border-Color: #000000; Text-Align: left; Border-Width: 1; Padding-Left: 10px; Font-Family: Arial; " cellSpacing="0" cellPadding="0" width="100%" border="0"><tr><td>
#date_0# <a href="#url_3_0#" target="_blank">#short_3_0#</a>
<br>#date_0# <a href="#url_3_0#" target="_blank">#short_3_0#</a>
<br>#date_0# <a href="#url_3_0#" target="_blank">#short_3_0#</a>
<br>#date_0# <a href="#url_3_0#" target="_blank">#short_3_0#</a>
<br>#date_0# <a href="#url_3_0#" target="_blank">#short_3_0#</a>
<br>#date_0# <a href="#url_3_0#" target="_blank">#short_3_0#</a>
<br>#date_0# <a href="#url_3_0#" target="_blank">#short_3_0#</a>
<br>#date_0# <a href="#url_3_0#" target="_blank">#short_3_0#</a>
<br>#date_0# <a href="#url_3_0#" target="_blank">#short_3_0#</a>
<br>#date_0# <a href="#url_3_0#" target="_blank">#short_3_0#</a>
</td><td>
#date_1# <a href="#url_3_1#" target="_blank">#short_3_1#</a>
<br>#date_1# <a href="#url_3_1#" target="_blank">#short_3_1#</a>
<br>#date_1# <a href="#url_3_1#" target="_blank">#short_3_1#</a>
<br>#date_1# <a href="#url_3_1#" target="_blank">#short_3_1#</a>
<br>#date_1# <a href="#url_3_1#" target="_blank">#short_3_1#</a>
<br>#date_1# <a href="#url_3_1#" target="_blank">#short_3_1#</a>
<br>#date_1# <a href="#url_3_1#" target="_blank">#short_3_1#</a>
<br>#date_1# <a href="#url_3_1#" target="_blank">#short_3_1#</a>
<br>#date_1# <a href="#url_3_1#" target="_blank">#short_3_1#</a>
<br>#date_1# <a href="#url_3_1#" target="_blank">#short_3_1#</a>
</td></tr>
</table>
</td></tr>
</table>

 
 

Creating the links may be done with the tool at http://ownlinksite.com/generate_table.php, or you may write it manually.


You can just copy and paste to make that table appear wherever you want in your page. Real easy!

If you have a closer look, you may notice see that the table is actually 3 different tables: One outer table, with 2 cells, one on top of the other. The top cell contains one inner table with all the styles necessary to create the heading, and the lower cell contains a table with the actual listings. If you are an expert, you can modify things manually. If you do not want your links to appear inside a table at all, just copy the links and paste them into whichever location you want them.

 

3. Creating a pick table template


Having only text links may be a bit dull. Fortunately, the OwnLinkSite system also allows you to include picks which will be automatically updated, too.

Pick links are just as easy to make as text links. They look like this:

 

<a target="_blank" href="#pickurl_1_0#">
<img width="80px" height="100px" src="#pick_1_0#" border="0"></a>

 

The only thing new compared to the text link is that you should specify the pick's size. In this example, it will be 80 pixels wide and 100 pixels high. That is a good choice. If you try to make it too large or small, the quality may suffer.

Again, you may use a tool for creating the table if you so whish - it is at http://ownlinksite.com/generate_pick_table.php.

Select "Teens" if you want to stick to the same category as for the text links. For simplicity, leave all other values as they are. The table will look like this:

Remember that this is a template, so the pick names used are "dummies", and the browser is unable to show the picks at this stage. But at least the size is right, so we get some impression of what it is going to look like.

The HTML looks like this:

 

<table cellSpacing="1" cellPadding="0" width="410" border="1" bordercolor="#000000">
<tr><td align="middle" width="82"><a target="_blank" href="#pickurl_3_0#">
<img width="80px" height="100px" src="#pick_3_0#" alt="#pspec_3_0#" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="#pickurl_3_0#">
<img width="80px" height="100px" src="#pick_3_0#" alt="#pspec_3_0#" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="#pickurl_3_1#">
<img width="80px" height="100px" src="#pick_3_1#" alt="#pspec_3_1#" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="#pickurl_3_1#">
<img width="80px" height="100px" src="#pick_3_1#" alt="#pspec_3_1#" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="#pickurl_3_2#">
<img width="80px" height="100px" src="#pick_3_2#" alt="#pspec_3_2#" border="0"></a></td>
</tr>
<tr><td align="middle" width="82"><a target="_blank" href="#pickurl_3_2#">
<img width="80px" height="100px" src="#pick_3_2#" alt="#pspec_3_2#" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="#pickurl_3_3#">
<img width="80px" height="100px" src="#pick_3_3#" alt="#pspec_3_3#" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="#pickurl_3_3#">
<img width="80px" height="100px" src="#pick_3_3#" alt="#pspec_3_3#" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="#pickurl_3_4#">
<img width="80px" height="100px" src="#pick_3_4#" alt="#pspec_3_4#" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="#pickurl_3_4#">
<img width="80px" height="100px" src="#pick_3_4#" alt="#pspec_3_4#" border="0"></a></td>
</tr>
</table>

 

The HTML may look a bit confusing, but you probably recognize the pickurl, for instance #pickurl_3_0#, meaning we look at category 3 (teens) for day 0 (0 days ago, i.e. today). There are also some previous days, for instance #pickurl_3_4#, so we use picks which are up to 4 days old, too (and picks from all days in-between).

The pspec, or pick-specification, contains a short description of the pick. That information is exclusively for search engines: It helps them understand what the picture contains. #pspec_3_4# will contain a description of a pick in category 3 for day 4.

 

4. A complete page template


Let's put the text table and the pick table we have created into a complete HTML-page on the form:

 

<html>
<head>

</head>
<body>

</body>
</html>

 

As explained in the last chapter, it is a good idea to put some meta-tags in the page's head, to assist search engines (Google!) in determining what the page contains. Start by giving the page a title:

 

<title>Links to nude teen pictures</title>

 

The next tag is a description. It should enhance and expand the information already in the name-tag:


 

<META name="description" content="Lots of links to nude young teen pictures and photos">

 


Not really necessary to use both the word picture and photo, any human reader knows that they are more or less the same, right? Yes, but tags are for machine readers, not humans. By including both words, we may get Google to understand that our page has something to do with both photos and pictures. The same goes for young and teens: Two words expressing essentially the same thing. Besides, some people may use both those words when they search with Google, and you are more likely to have your page listed first than would otherwise be the case.

The description cold have been made considerably longer, but let us keep it simple in this tutorial.

A keyword tag should also be included. It should underline and expand the information already given in the other two tags:

 

<META name="keywords" content="links, link, directory, nude, nudity, teens, teen, nude teens, young, girls, photos, girlie photos, nude females">

 

Including more keywords is even better, up to 250 is probably OK. Do not repeat the same keyword too many times, it may get you blacklisted (Google regards it as kind of keyword-spamming), and do not use keywords not related to the page content - for the same reason. Notice that a "keyword" may contain more than one word, like for instance "nude teens".

The body can in its simplest form contain only the 2 tables we created. The whole page would look like this:


 

<html>
<head>
(Put the 3 tags here)
</head>
<body>

<table><tr><td align="center">

(put the text link table HTML here)

</td></tr><tr><td align="center">

(put the pick table HTML here)

</td></tr></table>

</body>
</html>

 


In your own link page, you would want to add more text and decorations, and you may want to add more or larger tables - possibly with many different categories in the same link page. You also want to insert links to sites you want to promote, or links to affiliate programs. Selling StreamBull passwords is a good option - you may read about it here. Let's stick to this very simple template as we complete the first example.

The complete template-HTML is now:

 

<html>
<head>
<title>Links to nude teen pictures</title>
<META name="description" content="Lots of links to nude young teen pictures and photos">
<META name="keywords" content="links, link, directory, nude, nudity, teens, teen, nude teens, young, girls, photos, girlie photos, nude females">
</head>

<body>
<table><tr><td align="center">

<table style="Border-Style: Solid; Border-Width: 1; " cellSpacing="0" cellPadding="0" width="600px" border="0"><tr><td>
<table style="Font-Size: 18px; Color: #000000; Background-Color: #FFCC33; Border-Style: Solid; Border-Color: #003366; Text-Align: left; Border-Width: 1; Letter-Spacing: 4px; Padding-Left: 20px; Padding-Top: 6px; Padding-Bottom: 6px; Font-Family: Arial Black; " cellSpacing="0" cellPadding="0" width="100%" border="0"><tr><td>
Teens</td></tr>
</table>

<table style="Font-Size: 10px; Color: #000000; Background-Color: #FFFFCC; Border-Style: Solid; Border-Color: #000000; Text-Align: left; Border-Width: 1; Padding-Left: 10px; Font-Family: Arial; " cellSpacing="0" cellPadding="0" width="100%" border="0"><tr><td>
#date_0# <a href="#url_3_0#" target="_blank">#short_3_0#</a>
<br>#date_0# <a href="#url_3_0#" target="_blank">#short_3_0#</a>
<br>#date_0# <a href="#url_3_0#" target="_blank">#short_3_0#</a>
<br>#date_0# <a href="#url_3_0#" target="_blank">#short_3_0#</a>
<br>#date_0# <a href="#url_3_0#" target="_blank">#short_3_0#</a>
<br>#date_0# <a href="#url_3_0#" target="_blank">#short_3_0#</a>
<br>#date_0# <a href="#url_3_0#" target="_blank">#short_3_0#</a>
<br>#date_0# <a href="#url_3_0#" target="_blank">#short_3_0#</a>
<br>#date_0# <a href="#url_3_0#" target="_blank">#short_3_0#</a>
<br>#date_0# <a href="#url_3_0#" target="_blank">#short_3_0#</a>
</td><td>
#date_1# <a href="#url_3_1#" target="_blank">#short_3_1#</a>
<br>#date_1# <a href="#url_3_1#" target="_blank">#short_3_1#</a>
<br>#date_1# <a href="#url_3_1#" target="_blank">#short_3_1#</a>
<br>#date_1# <a href="#url_3_1#" target="_blank">#short_3_1#</a>
<br>#date_1# <a href="#url_3_1#" target="_blank">#short_3_1#</a>
<br>#date_1# <a href="#url_3_1#" target="_blank">#short_3_1#</a>
<br>#date_1# <a href="#url_3_1#" target="_blank">#short_3_1#</a>
<br>#date_1# <a href="#url_3_1#" target="_blank">#short_3_1#</a>
<br>#date_1# <a href="#url_3_1#" target="_blank">#short_3_1#</a>
<br>#date_1# <a href="#url_3_1#" target="_blank">#short_3_1#</a>
</td></tr>
</table>
</td></tr>
</table>

</td></tr><tr><td align="center">

<table cellSpacing="1" cellPadding="0" width="410" border="1" bordercolor="#000000">
<tr><td align="middle" width="82"><a target="_blank" href="#pickurl_3_0#">
<img width="80px" height="100px" src="#pick_3_0#" alt="#pspec_3_0#" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="#pickurl_3_0#">
<img width="80px" height="100px" src="#pick_3_0#" alt="#pspec_3_0#" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="#pickurl_3_1#">
<img width="80px" height="100px" src="#pick_3_1#" alt="#pspec_3_1#" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="#pickurl_3_1#">
<img width="80px" height="100px" src="#pick_3_1#" alt="#pspec_3_1#" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="#pickurl_3_2#">
<img width="80px" height="100px" src="#pick_3_2#" alt="#pspec_3_2#" border="0"></a></td>
</tr>
<tr><td align="middle" width="82"><a target="_blank" href="#pickurl_3_2#">
<img width="80px" height="100px" src="#pick_3_2#" alt="#pspec_3_2#" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="#pickurl_3_3#">
<img width="80px" height="100px" src="#pick_3_3#" alt="#pspec_3_3#" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="#pickurl_3_3#">
<img width="80px" height="100px" src="#pick_3_3#" alt="#pspec_3_3#" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="#pickurl_3_4#">
<img width="80px" height="100px" src="#pick_3_4#" alt="#pspec_3_4#" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="#pickurl_3_4#">
<img width="80px" height="100px" src="#pick_3_4#" alt="#pspec_3_4#" border="0"></a></td>
</tr>
</table>

</td></tr></table>

</body>
</html>

 


 

5. Installing the php-programs


To progress from here, it is necessary to install 3 php-programs on your server. You may have rented server capacity from a hosting company, or you may install php on you home computer to do the testing there. php is free, available from php.net. They also have links to tutorials if you want to learn more about it. You do not need that to complete this example, though.

The programs run best if you have php 4.0 or higher with the GD library installed. Do not let that frighten you, nearly all hosting companies offer that by default. If you are unsure what your server has, chances are it will work just fine.

The 3 programs you need, are:

pagetransform.php: A program which transforms your template into a real page. It also reads some key data from your page (number of links in each category, the date format you prefer and some others) and saves them on your server.

linkcollector.php: When this program is called, it contacts the OwnLinkSite server and downloads the necessary information to get today's new links up and running.

links.php: This program is in on top of your page. It reads the necessary data from files on your server and makes those data available as variables so they can be shown where they should be shown on your page.

The programs should be put in a sub-directory called ownlinksite. If your link page should reside on, say mydomain.com, you create subdirectory mydomain.com/ownlinksite and save them there. You may download all 3 in zipped form here.

The first time pagetranform.php is run, it will attempt to create 3 new sub-directories in ownlinksite: pagedata, links and picks. Since some servers may be set up to block scripts from creating directories (that depends on how your hosting company has set up their servers), that may fail - pagetranform.php shows you some warning messages if it does. If that happens, you'll want to create the directories manually. That can be done via the control panel many hosts offer, or you may do it with an FTP-program. One popular such program, WS-FTP, is available from Tucows - just search for WS-FTP. The free, LE-version does everything you need.

Once your directories are created, you want to make sure the permissions are right. The permission you want is called directory mode 0777 - pagetranform.php creates that if it is allowed to do its work. If not, you may use WS-FTP: Right-click on the directory after you have created it, select chmod, and check all the checkboxes and click OK. Repeat for all directories involved (both mydomain.com, mydomain.com/ownlinksite, mydomain.com/ownlinksite/pagedata, mydomain.com/ownlinksite/links and mydomain.com/ownlinksite/picks. As you'll see later, mydomain.com/ownlinksite/pagedata may have some files in it already. If so, select all those files, too, and run chmod.)

 

6. A dynamic page with php scripts and HTML


If your pagetranform.php is up and running by now, you are ready to use it to transform your template page into a real page. Write http://yourdomain.com/ownlinksite/pagetransform.php in your browser. Copy and paste the template page HTML into the form, choose a name for you page, and click "transform". It creates the php-version of your page and saves it in mydomain.com with the name you selected, for instance index.php. If there were any problems with the permissions, it displays the code instead an lets you copy and paste it into a file you save manually.

If you want to understand the nuts and bolts of how your page runs, read the explanation below. If not, just scroll down this page and continue to the next chapter.

The program has been transformed to something quite different from the template you started out with. For instance, a few lines have been added at the beginning of the page:

 

<?php
require('ownlinksite/links.php');
?>

 

The brackets tells the server to consider the line require('ownlinksite/links.php') to be php-code . The require-command instructs it to include the file links.php so it becomes part of your transformed program.

You may also notice that each link looks very different from how it looked in the template. Consider for instance:

 

<?php echo $date0; ?>
<a href="<?php echo $x0[3][4][0]; ?>" target="_blank">
<?php echo $x0[3][4][1]; ?></a>

 

The variable $date0 contains the date information for day 0 (today). Since it is written inside the

 

<?php ?>

 

brackets, it is treated as php code.

 

<?php echo $date0; ?>

 

contains all necessary commands to print today's date.

The variable $x0[3][4][0] contains a url. links.php makes sure that variable is defined and holds the correct value. The 0 in $x0 means it is one of the links from today, 3 is the category (Teens, remember?), 4 is link number 4 in this category this day - since there are 10 every day, they are indexed from 0 to 9 to keep them apart. The last 0 means it is the URL (as opposed to 1, which is the anchor text).

Similarly, a pick link may look like this:

 

<a target="_blank" href="<?php echo $y0[3][1][0]; ?>">
<img width="80px" height="100px" src="<?php echo $y0[3][1][1]; ?>"
alt="<?php echo $y0[3][1][2]; ?>" border="0"></a>

 

$x is replaced by $y compared to the text links, since different names makes it easier to distinguish text links from pick links. Otherwise pick links are similar to text links: The program links.php makes sure the array actually holds variables.

If you try to look at your page with your browser, you will not see much at this stage: Your tables will be empty. That is because you have not yet downloaded the necessary links and picks. If you look in the pick-directory, there is nothing there yet. So, links.php is only able to fill the variables with emptiness!

The complete page, with all php-code and HTML looks like this:

 

<?php
require('ownlinksite/links.php');
?>

<html>
<head>
<title>Links to nude teen pictures</title>
<META name="description" content="Lots of links to nude young teen pictures and photos">
<META name="keywords" content="links, link, directory, nude, nudity, teens, teen, nude teens, young, girls, photos, girlie photos, nude females">
</head>
<body>

<table><tr><td align="center">

<table style="Border-Style: Solid; Border-Width: 1; " cellSpacing="0" cellPadding="0" width="600px" border="0"><tr><td>
<table style="Font-Size: 18px; Color: #000000; Background-Color: #FFCC33; Border-Style: Solid; Border-Color: #003366; Text-Align: left; Border-Width: 1; Letter-Spacing: 4px; Padding-Left: 20px; Padding-Top: 6px; Padding-Bottom: 6px; Font-Family: Arial Black; " cellSpacing="0" cellPadding="0" width="100%" border="0"><tr><td>
Teens</td></tr>
</table>

<table style="Font-Size: 10px; Color: #000000; Background-Color: #FFFFCC; Border-Style: Solid; Border-Color: #000000; Text-Align: left; Border-Width: 1; Padding-Left: 10px; Font-Family: Arial; " cellSpacing="0" cellPadding="0" width="100%" border="0"><tr><td>
<?php echo $date0; ?> <a href="<?php echo $x0[3][0][0]; ?>" target="_blank"><?php echo $x0[3][0][1]; ?></a>
<br><?php echo $date0; ?> <a href="<?php echo $x0[3][1][0]; ?>" target="_blank"><?php echo $x0[3][1][1]; ?></a>
<br><?php echo $date0; ?> <a href="<?php echo $x0[3][2][0]; ?>" target="_blank"><?php echo $x0[3][2][1]; ?></a>
<br><?php echo $date0; ?> <a href="<?php echo $x0[3][3][0]; ?>" target="_blank"><?php echo $x0[3][3][1]; ?></a>
<br><?php echo $date0; ?> <a href="<?php echo $x0[3][4][0]; ?>" target="_blank"><?php echo $x0[3][4][1]; ?></a>
<br><?php echo $date0; ?> <a href="<?php echo $x0[3][5][0]; ?>" target="_blank"><?php echo $x0[3][5][1]; ?></a>
<br><?php echo $date0; ?> <a href="<?php echo $x0[3][6][0]; ?>" target="_blank"><?php echo $x0[3][6][1]; ?></a>
<br><?php echo $date0; ?> <a href="<?php echo $x0[3][7][0]; ?>" target="_blank"><?php echo $x0[3][7][1]; ?></a>
<br><?php echo $date0; ?> <a href="<?php echo $x0[3][8][0]; ?>" target="_blank"><?php echo $x0[3][8][1]; ?></a>
<br><?php echo $date0; ?> <a href="<?php echo $x0[3][9][0]; ?>" target="_blank"><?php echo $x0[3][9][1]; ?></a>
</td><td>
<?php echo $date1; ?> <a href="<?php echo $x1[3][0][0]; ?>" target="_blank"><?php echo $x1[3][0][1]; ?></a>
<br><?php echo $date1; ?> <a href="<?php echo $x1[3][1][0]; ?>" target="_blank"><?php echo $x1[3][1][1]; ?></a>
<br><?php echo $date1; ?> <a href="<?php echo $x1[3][2][0]; ?>" target="_blank"><?php echo $x1[3][2][1]; ?></a>
<br><?php echo $date1; ?> <a href="<?php echo $x1[3][3][0]; ?>" target="_blank"><?php echo $x1[3][3][1]; ?></a>
<br><?php echo $date1; ?> <a href="<?php echo $x1[3][4][0]; ?>" target="_blank"><?php echo $x1[3][4][1]; ?></a>
<br><?php echo $date1; ?> <a href="<?php echo $x1[3][5][0]; ?>" target="_blank"><?php echo $x1[3][5][1]; ?></a>
<br><?php echo $date1; ?> <a href="<?php echo $x1[3][6][0]; ?>" target="_blank"><?php echo $x1[3][6][1]; ?></a>
<br><?php echo $date1; ?> <a href="<?php echo $x1[3][7][0]; ?>" target="_blank"><?php echo $x1[3][7][1]; ?></a>
<br><?php echo $date1; ?> <a href="<?php echo $x1[3][8][0]; ?>" target="_blank"><?php echo $x1[3][8][1]; ?></a>
<br><?php echo $date1; ?> <a href="<?php echo $x1[3][9][0]; ?>" target="_blank"><?php echo $x1[3][9][1]; ?></a>
</td></tr>
</table>
</td></tr>
</table>

</td></tr><tr><td align="center">

<table cellSpacing="1" cellPadding="0" width="410" border="1" bordercolor="#000000">
<tr><td align="middle" width="82"><a target="_blank" href="<?php echo $y0[3][0][0]; ?>">
<img width="80px" height="100px" src="<?php echo $y0[3][0][1]; ?>" alt="<?php echo $y0[3][0][2]; ?>" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="<?php echo $y0[3][1][0]; ?>">
<img width="80px" height="100px" src="<?php echo $y0[3][1][1]; ?>" alt="<?php echo $y0[3][1][2]; ?>" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="<?php echo $y1[3][0][0]; ?>">
<img width="80px" height="100px" src="<?php echo $y1[3][0][1]; ?>" alt="<?php echo $y1[3][0][2]; ?>" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="<?php echo $y1[3][1][0]; ?>">
<img width="80px" height="100px" src="<?php echo $y1[3][1][1]; ?>" alt="<?php echo $y1[3][1][2]; ?>" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="<?php echo $y2[3][0][0]; ?>">
<img width="80px" height="100px" src="<?php echo $y2[3][0][1]; ?>" alt="<?php echo $y2[3][0][2]; ?>" border="0"></a></td>
</tr>
<tr><td align="middle" width="82"><a target="_blank" href="<?php echo $y2[3][1][0]; ?>">
<img width="80px" height="100px" src="<?php echo $y2[3][1][1]; ?>" alt="<?php echo $y2[3][1][2]; ?>" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="<?php echo $y3[3][0][0]; ?>">
<img width="80px" height="100px" src="<?php echo $y3[3][0][1]; ?>" alt="<?php echo $y3[3][0][2]; ?>" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="<?php echo $y3[3][1][0]; ?>">
<img width="80px" height="100px" src="<?php echo $y3[3][1][1]; ?>" alt="<?php echo $y3[3][1][2]; ?>" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="<?php echo $y4[3][0][0]; ?>">
<img width="80px" height="100px" src="<?php echo $y4[3][0][1]; ?>" alt="<?php echo $y4[3][0][2]; ?>" border="0"></a></td>
<td align="middle" width="82"><a target="_blank" href="<?php echo $y4[3][1][0]; ?>">
<img width="80px" height="100px" src="<?php echo $y4[3][1][1]; ?>" alt="<?php echo $y4[3][1][2]; ?>" border="0"></a></td>
</tr>
</table>

</td></tr></table>

</body>
</html>

 


Looks a bit messy, true. Blame HTML for that, designed to be more readable for computers than for human beings. Luckily you do not need to go quite this deep into the code when you design your own sites - this page of the tutorial was mainly for the geeks!

 

7. Completing the page


To get linkdata from the OwnLinkSite server, you need to run linkcollector.php. php. Which links you get depends on whether you have a password, and of which type.

When you have a password, say ABC, you may activate linkcollector.php with your browser using:

http://yourdomain.com/ownlinksite/linkcollector.php?password=ABC

If not, just skip everything, including and behind the question mark, like so:

http://yourdomain.com/ownlinksite/linkcollector.php

Note that linkcollector.php may take some time to finish, depending on how many picks you are inserting and how fast an Internet connection your server has Linkcollector.php. downloads the picks to your server, re-sizes them to fit your pick table and puts them in the picks-directory. The text and pick links end up in the links-directory, where links.php finds them every time a client loads your link page.

It is a good idea to protect linkcollector.php against unauthorized use. If anyone runs it when it is not supposed to be run, it may mean it collects links more than once pr. day, and the system will give you blind links since you exceed your limits. There are several ways to protect it, the simplest may be to use the blocker it comes with. You'll see that the last lines in linkcollector.php look like this:


 

.
.
.
/*BLOCKER*/
// Uncomment the if-line below to protect <i>linkcollector.php</i> from un-authorized use
// After un-commenting, the program must be called with the blocker-parameter
// (in addition to any other arguments to be passed) like so:
// http://your-site.com/ownlinksite/linkcollector.php?blocker=7na27tn
// if($blocker != '7na27tn') exit();



// Do the links and picks download using the lincollector class

print '<div align="center"><h2>Now getting links and picks.</h2>
<b>It may take a up to a few minutes, depending on your Internet connection -
please be patient</b><br></div>'; flush();
$c_linkcollector = new linkcollector();
$c_linkcollector->save_everything();

print $c_linkcollector->_result_arr['message']; // Messages from OwnLinksSite server
print '<br>'.$c_linkcollector->messages_presentable(); // Messages from linkcollector

?>

 


The blocker is simply a password you may use to protect linkcollector.php to prevent others from running it. It is actually a password. Note that it has got nothing to do with the password used to access the OwnLinkSite database - that is why it has been called blocker, to distinguish it. In this case linkcollector.php has been given the blocker 7na27tn, which is unique (other users who install linkcollector.php are automatically given a different one, of course), and you may even replace it with whichever codeword you prefer yourself. Just uncomment the if-line, and any attempt to run without the blocker defined in the call will cause the program to exit before it starts. It is highly recommended that you actually uncomment the line (or use some other protection) to activate the blocker.

With your blocker uncommented, your linkcollector.php call might look like this:

http://yourdomain.com/ownlinksite/linkcollector.php?password=ABC&blocker=7na27tn

Pagetransform.php has a similar blocker. Uncomment that, too, to make sure nobody runs pagetranform and messes up your site.

The first thing you notice is that there are actually links and picks there now. But the same picks are shown many times. That's not what we want, is it? Don't worry - it is only a small start-up quirk. We have only collected picks for one day yet. When we created the pick template table, we said that we wanted 2 new picks every day, and that turns out to be what linkcollector.php has given us. It would leave 8 of the 10 picks blank, if it wasn't for a nice feature built into links.php: It recognizes that some picks are missing, so it uses what it has several times rather than showing blanks.

Tomorrow, when you run linkcollector.php again, 2 new picks will become available, and after 5 days all picks will be different. Thereafter, 2 picks are renewed every day, as old ones are deleted.

If you look closely at the links, you'll see that they are not unique, either. We asked for 10 new links each day, which in this case happens to be the same amount as we have links in each column. The second column, corresponding to "yesterday", has not been downloaded yet, so today's links are shown there, too. Have a look at Example 1 live to see what it looks like today.

It works nicely, doesn't it? When the user clicks a pick, he comes to the site where he can see the full-size images. The text links have their advantages, too: They load faster, and they are easier for Google to understand.

Your hosting company probably offers something called a cronjob. Look for it in their online manual or at their control panel. A cronjob makes it possible to automate the daily call to linkcollector.php so that you do not have to do it manually. Once that is done, you can forget about your page - just enjoy the traffic it creates!


No it's your turn! Go ahead and create your own mega-page!