How to install Selinks code


Recently I found that many people come to this blog from Google search for “How to install Selinks code” phrase. The whole process of installation is clearly described on this page (you can visit it if you are logged into your Selinks account). And now I`m going to show you two demonstrative examples of Selinks code installation.

Let`s start of the non-CMS static php and html website. Below you`ll find the steps to be accomplished:
1. Getting php code in zip archive.
2. Copying directory (unarchived from zip) to the root site directory.

Install selinks code: Step 1

3. Set permission to directory 777 and all files in directory 666.

Install selinks code: Step 2

Install selinks code: Step 3

4. Install the following php-code at the begining of the initial page code:

<?php
if(!defined(”CONTENTUSER”)){
define(”CONTENTUSER”,”3411FCB9B11E654074465528CC5ECF8D”);
}
require_once($_SERVER['DOCUMENT_ROOT'].”/”.CONTENTUSER.”/init.php”);
$classContentSystem=new class_ContentSystem();
?>

NOTE: 3411FCB9B11E654074465528CC5ECF8D – is my unique Selinks system identifier. You`ll have another one.

5. Insert the following code in the places where you want to place the links:

<?php
echo $classContentSystem->display_links($count);
?>

where $count – number of links to display in specified page location. Here is the example, where I install the code for displaying 2 links:

Install selinks code: Step 4

That`s all – the code is successfully installed and you may proceed adding your website to the system.

The second example is for webmasters, whose website is based on the Wordpress CMS. Selinks prepared special Wordpress plugin to make the installation process easier. Now I`m going to show you how to install Selinks code to the Wordpress based website.

1. Getting php code in zip archive.
2. Copying directory (unarchived from zip) to the root site directory.
3. Set permission to directory 777 and all files in directory 666.
4. Download Selinks Wordpress plugin.
5. Copy file wp-init-selinks.php to wp-content/plugins

Install selinks code on Wordpress: step 1

6. Activate link systemcontent replace plugin:

Install selinks code on Wordpress: step 2

7. If you selling context links ONLY, don’t read 5 paragraph.
8. To display links use the next code:

<?php
global $classContentSystem;
echo $classContentSystem->display_links($count);
?>

where $count – number of links to display in specified page location.
For example I wanna display 2 links in footer, so I will add the next code to my footer.php:

<p> <?php global $classContentSystem;

echo $classContentSystem->display_links(2);?>

</p>

Install selinks code on Wordpress: step 3

On this page you may also find the example of code installation on the Drupal based website and the example for static content website.

So now you see that installing Selinks code is very easy thing. But if you still have any questions, ask them in the comments below.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

Leave a Reply