Contents Basic Site Requirements 3
Website Setup 4
Code Installation Guide
PHP hosting 6 Without CMS 6 Wordpress 7
Plugin 7 Manually 12
Joomla! 14 Plugin 14 Manually 20
Drupal 22 Plugin (Drupal 8.x) 22 Manually 31
DLE 33
ASP Hosting 34
How to check the code is installed correctly 36
Control Panel 37
Site Settings 38
Links 39
Income and payouts 40
How to withdraw your earnings 40
Welcome to Uniplace! Thank you for joining us. Uniplace is a service that enables you to earn money from unused ad space on your website by selling backlinks. Get approved, and our system will automatically add, edit, and remove links. Earn daily income for each text link you display on your site and withdraw earnings to your ZarinPal wallet. Add your website and install Uniplace code Add a small snippet of code to the pages you want to display links on, and Uniplace will add links to them. Once the code is successfully installed in your site source code, your website will be approved. After we’ve verified that everything is working properly, you can start selling links. Get paid You will earn daily income for each text link you display on your site. You can withdraw your earnings to ZarinPal wallet. Minimum amount available for withdrawal is 4,000 tomans. Keep improving Our advertisers are looking for quality sites in different niches, so the more pages you have the more you’ll earn.
Getting Started Advertisers awaits! Here is the information to help you to get started.
Basic Site Requirements We want advertisers to get backlinks from sites of a high quality. All sites that join Uniplace shall be approved both automatically and manually. If you violate any rules, your site will be removed from Uniplace. There are a few requirements to the websites:
● Minimum 100 pages in Google index. ● The site is available.
We don’t work with
● Adult sites. ● Torrents and warez. ● Sites with poor content. ● Not Iranian sites.
Website Setup To setup your website and get ready follow these three steps: Step 1. Type-in your website URL and click on the “Add website” button.
Step 2. Download the Uniplace code and paste it to your website.
We provide a small section of code that you should paste to the pages where you want to publish links. Through the code text links purchased by advertisers are added to your site pages automatically. The text links will appear wherever you paste the installation code. Most publishers place the code in a sidebar or a footer file. For Wordpress, Joomla! and Drupal you can use Uniplace plugins to get started faster. Step 3. Verify the code. After you install the code on your website click on the “Check code” button.
Once the code is successfully installed to the source code, your site pages are available for our advertisers to buy links on them.
Code Installation Guide
PHP hosting
Without CMS 1. Download the archive file with Uniplace scripts and unpack it to
the root directory of your site (folder %foldername%). 2. Set 777 or 755 access rights to the root folder so Uniplace can
manage its files. 3. Place the file uniplacer_config.php (from php folder of downloaded
zip) to the root directory of your site. 4. On each page choose a place for links and install the following
code there (copy it from the readme.txt file in the downloaded zip):
<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/uniplacer_config.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/'._UNIPLACE_USER_.'/uniplacer.php');
$Uniplacer = new Uniplacer(_UNIPLACE_USER_);
$Uniplacer->GetCode();
$links = $Uniplacer->GetLinks();
if($links){
foreach($links as $link){
echo $link.'<br>';
}
}
?>
5. If links text encoding is incorrect, set encoding in constant _UNIPLACE_CHARSET_ in the file uniplacer_config.php.
E.g.: define('_UNIPLACE_CHARSET_', 'utf8')
Wordpress
Plugin
1. Download the plugin http://www.uniplace.ir/Plugins/WordPress/1.0.0 (19 KB)
2. Go to the Wordpress Admin Tools to the section “Plugin” – “Add new” and click on the “Upload plugin” button.
3. In the opened window click on the “Choose file” button and choose downloaded archive with the Uniplace plugin from your computer. Click on “Install now”.
4. After plugin installation go to the menu “Plugins”-“Installed
Plugins” and click on the “Activate” link under the name of Uniplace plugin:
5. After plugin activation go to the plugin settings page and add: 1) site hash. You will find it in Uniplace under the URL of your
website:
2) encoding for data displaying (on default its UTF-8):
6. Click on “Save” and plugin creates required files in the root directory of your site:
To check if everything is fine, use the link containing your website URL slash site hash in Uniplace slash sync.php?test. E.g. sitename.com/697f2d1aca7492c7c9e143fde2289376/sync.php?test If everything is fine, you’ll get the page with the text: {result:success, version:1.0.18, platform:php}
7. Now you can place links in two ways:
a. with the help of the widget: — go to the list of widgets and drag Uniplace Widget to the element
of site template (e.g. sidebar)
Do not duplicate the widget. Links will be duplicated and advertisers can refuse to place them on your site:
- links will be placed automatically in the page parts according to Uniplace widget place in the template. b. with the help of the following code in every part of the page:
- in template files (e.g. footer.php): ‹php echo do_shortcode('[uniplace_links]'); ?›
- on article pages with shortcode: [uniplace_links]
Manually 1. Download the archive file with Uniplace scripts and unpack it to the
root directory of your site (folder %foldername%). 2. Set 777 or 755 access rights to the root folder so Uniplace can
manage its files. 3. Place the file uniplacer_config.php (from php folder of downloaded
zip) to the root directory of your site. 4. Go to the folder with current active theme of your site
(/wp-content/themes/%themename%/). 5. In page templates choose places for links and install the following
code there (more often templates are in files index.php or sidebar.php):
(copy it from the readme.txt file in the downloaded zip)
<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/uniplacer_config.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/'._UNIPLACE_USER_.'/uniplacer.php');
$Uniplacer = new Uniplacer(_UNIPLACE_USER_);
$Uniplacer->GetCode();
$links = $Uniplacer->GetLinks();
if($links){
foreach($links as $link){
echo $link.'<br>';
}
}
?>
If you have several active themes, repeat previous steps for each one. 6. If links text encoding is incorrect, set encoding in constant
_UNIPLACE_CHARSET_ in the file uniplacer_config.php. E.g.: define('_UNIPLACE_CHARSET_', 'utf8')
Joomla!
Plugin 1. Download the plugin http://www.uniplace.ir/Plugins/Joomla/1.0.0
(33 KB). 2. Go to the Extensions section on admin panel. Select Extensions —
Manage — Install.
3. To upload Uniplace plugin Click on Choose file button and select downloaded archive with the Uniplace plugin from your computer. Then click on Upload & Install button.
4. Go to Extensions – Modules.
5. Click on Uniplace module link.
6. Setup the module. 6.1. Set site hash in Uniplace and anchor text encoding (utf-8 on default). You’ll find it in the list of your websites under each website:
6.2. Hide title. 6.3. Choose position in active template.
7. Setup module ordering (optional).
8. Publish the module.
9. Go to Menu Assignment tab and select pages for backlink placement.
a. Select “On all pages” option so that module select pages automatically.
b. Save changes.
10. Check if everything is correct. Use the link containing your website URL slash site hash in Uniplace slash sync.php?test.
E.g.: sitename.com/697f2d1aca7492c7c9e143fde2289376/sync.php?test If everything is fine, you’ll get the page with the text: {result:success, version:1.0.18, platform:php}
Also you can check the root directory of your website. If everything is correct, there you’ll find the folder with Uniplace code named as website hash in Uniplace and the file uniplacer_config.php.
Manually 1. Download the archive file with Uniplace scripts and unpack it to the
root directory of your site (folder %foldername%). 2. Set 777 or 755 access rights to the root folder so Uniplace can
manage its files. 3. Place the file uniplacer_config.php (from php folder of downloaded
zip) to the root directory of your site. 4. Go to the folder with current active theme of your site
(/wp-content/themes/%themename%/).
5. Go to the folder with current active template of your site (/templates/%themename%/).
6. In the file index.php choose the place for links and install the following code there (copy it from the readme.txt file in the downloaded zip):
<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/uniplacer_config.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/'._UNIPLACE_USER_.'/uniplacer.php'); $Uniplacer = new Uniplacer(_UNIPLACE_USER_);
$Uniplacer->GetCode();
$links = $Uniplacer->GetLinks(); if($links){
foreach($links as $link){
echo $link.'<br>';
}
}
?>
7. If links text encoding is incorrect, set encoding in constant
_UNIPLACE_CHARSET_ in the file uniplacer_config.php. E.g.: define('_UNIPLACE_CHARSET_', 'utf8')
Drupal
Plugin (Drupal 8.x) Incompatible with Drupal 7.x and older versions.
1. Download plugin. Uniplace.zip 2. Click on Manage >> Extend. On the Extend page click on the
Install new module button.
3. Select the module from your local computer by clicking on the
Browse button. Once it has been selected, click on the Install button.
4. Enable the module.
4.1 Right after the installation click on the Enable newly added modules link in the pop-up or go to Manage >> Extend.
4.2 Choose module Uniplace php-client installer and click on the Install button.
5. To configure the module checkmark Uniplace php-client installer
and then click on the Configure link.
6. Configure the module:
6.1. Add the site hash in Uniplace. You’ll find it in the list of your websites added to Uniplace under each website:
6.2. Set anchor text encoding (default utf-8). 6.3. Save configuration.
7. To check if everything is fine, use the link containing your website
URL slash site hash in Uniplace slash sync.php?test. E.g. sitename.com/697f2d1aca7492c7c9e143fde2289376/sync.php?test If everything is fine, you’ll get the page with the text: {result:success, version:1.0.18, platform:php}
Also you can check the root directory of your website. If everything is correct, there you will find:
The folder with Uniplace code named as the site hash. The configuration file uniplacer_config.php.
8. Place Uniplace block on your website. Go to Manage >> Structure >> Block layout.
9. Choose the area on your site and place the block Uniplace Links Block there.
10. In pop-up window find the block Uniplace Links Block and click on the corresponding Place block button.
11. Uncheck Display title option and click on the Save block button to save changes.
12. Go to Manage >> Configuration >> Performance.
13. Clear Drupal cache.
14. Congratulations, you have successfully setup Uniplace link block in Drupal. To check and ensure the module has been setup go to Manage >> Structure >> Block layout. Then click on the Demonstrate block regions link.
Manually 1. Download the archive file with Uniplace scripts and unpack it to the
root directory of your site (folder %foldername%). 2. Set 777 or 755 access rights to the root folder so Uniplace can
manage its files. 3. Place the file uniplacer_config.php (from php folder of downloaded
zip) to the root directory of your site.
4. Go to the folder with current active theme of your site (/wp-content/themes/%themename%/).
5. Go to the folder with current active template of your site (/templates/%themename%/).
7. In the file index.php choose the place for links and install the following code there (copy it from the readme.txt file in the downloaded zip):
<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/uniplacer_config.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/'._UNIPLACE_USER_.'/uniplacer.php'); $Uniplacer = new Uniplacer(_UNIPLACE_USER_);
$Uniplacer->GetCode();
$links = $Uniplacer->GetLinks();
if($links){
foreach($links as $link){
echo $link.'<br>';
}
}
?>
8. If links text encoding is incorrect, set encoding in constant
_UNIPLACE_CHARSET_ in the file uniplacer_config.php. E.g.: define('_UNIPLACE_CHARSET_', 'utf8')
DLE 1. Download the archive file with Uniplace scripts and unpack it to the
root directory of your site (folder %foldername%). 2. Set 777 or 755 access rights to the root folder so Uniplace can
manage its files. 3. Place the file uniplacer_config.php (from php folder of downloaded
zip) to the root directory of your site. 4. Open the file index.php in the root directory of your site.
For version 10.4 or higher install the code in the file /engine/modules/main.php.
5. After the line define ( 'ENGINE_DIR', ROOT_DIR . '/engine' ); insert the following code (copy it from the readme.txt file in the downloaded zip):
require_once($_SERVER['DOCUMENT_ROOT'].'/uniplacer_config.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/'._UNIPLACE_USER_.'/uniplacer.php');
$Uniplacer = new Uniplacer(_UNIPLACE_USER_);
For versions previous to 10.4 before the line $tpl->compile ( 'main' ); insert the code (copy it from the readme.txt file in the downloaded zip): $tpl->set ('{UNIPLACE}', $Uniplacer->GetCode(true).@implode('<br>',
$Uniplacer->GetLinks()));
Code for versions later than 10.4 (copy it from the readme.txt file in the downloaded zip): require_once($_SERVER['DOCUMENT_ROOT'].'/uniplacer_config.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/'._UNIPLACE_USER_.'/uniplacer.php');
$Uniplacer = new Uniplacer(_UNIPLACE_USER_);
$tpl->set ('{UNIPLACE}', $Uniplacer->GetCode(true).@implode('<br>',
$Uniplacer->GetLinks()));
6. Go to the folder with current active template of your site (root_directory/templates/themename/).
7. Open the file of page template where you want to place links and insert {UNIPLACE} in this place.
8. If links text encoding is incorrect, set encoding in constant _UNIPLACE_CHARSET_ in the file uniplacer_config.php.
E.g.: define('_UNIPLACE_CHARSET_', 'utf8')
ASP Hosting 1. Unzip downloaded script. 2. Place the library asp\QLinkClient.dll in the bin site folder. 3. Create a folder named “SITECODE_Your_site" in the site folder
and assign permission to read, change and delete files so that Uniplace can manage its files. You can find SITECODE under the URL of your site in the Uniplace system.
4. In appropriate parts of web.config add the following settings (copy it from the readme.txt file in the downloaded zip):
<system.web>
<httpHandlers>
<add verb="*" path="<%SITECODE%>/update.aspx" type="QLinkClient.Update,QLinkClient"/>
<add verb="*" path="<%SITECODE%>/sync.aspx" type="QLinkClient.Sync,QLinkClient"/>
</httpHandlers>
</system.web>
<system.webServer>
<handlers accessPolicy="Read, Write, Script, Execute">
<add name="qlinkUpdate" verb="*" path="<%SITECODE%>/update.aspx"
type="QLinkClient.Update,QLinkClient"/>
<add name="qlinkSync" verb="*" path="<%SITECODE%>/sync.aspx"
type="QLinkClient.Sync,QLinkClient"/>
</handlers>
</system.webServer>
<appSettings>
<add key="QLinkID" value="<%SITECODE%>"/>
<add key="MaxFileLogSize" value="20971520"/><!-- log size on disk, volume can be changed
advisable upward-->
<add key="MaxInMemoryLogSize" value="5242880"/><!-- log size in memory, volume can be
changed advisable upward-->
<add key="MaxInMemoryLogPositionSize" value="524288"/><!-- log size in a dynamic page,
volume can be changed advisable upward -->
</appSettings>
5. To place links on page in MVC create instance of class QLink (QLinkClient.QLink) (copy it from the readme.txt file in the downloaded zip):
QLink qlink = new QLink();
then you can insert code generation method in the parts of site you need qlink.GetCode()
and links generation method
qlink.GetLinksMarkup()
Links placing on pages in ASP has the following syntax (copy it from the readme.txt file in the downloaded zip):
<%@ Import Namespace="QLinkClient" %>
<%script runat="server"%>
QLink qlink = new QLink();
<%/script%>
<%=qlink.GetCode() %>
How to check the code is installed correctly 1. Go to the URL
• for php hosting %domain%/%foldername%/sync.php?Test • for asp hosting %domain%/%foldername%/sync.aspx?Test.
Page must be available (web server returns HTTP status 200 OK) and return the line like in the example below {result:success, version:1.0.18, platform:php}
If the page is unavailable, check the correctness of code installation and permission of page loading in site settings.
2. Open source code of the page where you want to place links and find the comment <!--74ab42d5f-->
Symbols inside the comment are an eight-digit code of figures and letters that is unique for each site. You can find this code under your site URL in Uniplace System. If you don’t find the same comment in the source code the links won’t be placed on your site. Check the source code. If links are displayed in incorrect encoding set encoding in constant _UNIPLACE_CHARSET_ in the file uniplacer_config.php. Example: define('_UNIPLACE_CHARSET_', 'utf8')
3. Check access rights to the root folder that contains php files,
htaccess and unilinks.db. It shall be 777 or 755 so Uniplace can manage its files.
4. File uniplacer_config.php should be in the root directory.
Control Panel For every site you’ve added you see the following information:
Site Settings Control how many links a page to sell and to whom with site settings.
You can sell up to 5 links on a page. If you don’t like some link texts and linking sites just blacklist them. We don’t judge.
Links Links section contains all links you display on your sites. To get there click on the value in Links columns.
Here you will see pages of your site where you display a link, anchor text and date when it was first published.
You can delete links you don’t want to display on your site. Checkmark the link and click on Delete button above the table. Also you can add linking site to blacklist. Just click on Delete and Blacklist button.
Income and payouts Uniplace pays you for every backlink space sold. You will earn daily income for each text link you display on your site.
To keep track of your earnings and payouts visit the Wallet section in your account.
There you’ll see detailed information about your earnings, amount eligible for payout, and payout requests history. We update the data daily. To see the data click on the corresponding tab.
How to withdraw your earnings Minimum available payout is 4,000 tomans. You can withdraw your earning to ZarinPal wallet.
To request a payout go to the wallet. Here you’ll see eligible amount. There click on the Request a Payout button.
Fill-in your billing info. We’ll save that information for further usage.
Your request will be processed in 5-7 business days.