Any affiliate network needs a beautiful landing page. You can host it on a separate domain or embed it directly into the AlterCPA home page for unauthorized users.
Before you start, go to the "Control - Settings - Skins" section and activate skins support. Create new skin to use it on your network.
Technical requirements for layout
You can rework the finished layout yourself or immediately transfer our technical requirements to your layout designer. A site designed according to these requirements is pulled onto the system within a couple of minutes.
- The login link should point to
/login
or/signin
- The registration link must point to
/register
or/signup
- The password recovery link should point to
/recover
or/forgot
- Using the registration form on the landing page is undesirable
- The login form should use the fields
in_user
for login andin_pass
for password, action/login
, methodpost
. - All CSS files must be located in the path
/skin/xxx/css
, for example/skin/xxx/css/main.css
- All JS files must be located in the path
/skin/xxx/js
, for example/skin/xxx/js/script.js
- All images should be located in the path
/skin/xxx/img
, for example/skin/xxx/img/logo.png
- All other resources must be located in folders inside
/skin/xxx
and have corresponding absolute paths to this folder.
In this memo, replace xxx
with your skin folder. In case of difficulties in understanding on the part of the layout designer, explain that you can only use the safe path skin
with a subfolder, other paths can be used by the system in its needs.
Adding your landing page to the system
After receiving the finished layout from your specialist, you need to connect it to the system. Ideally, this should be done by a technically competent specialist.
- Connect via FTP to your server.
- Go to your network folder and open the
skin
folder, and in it your skin folder. - Upload the
css
,js
,img
and other resource folders from the layout into the skin folder. - Go to "Control - Settings - Skins", open the "Templates" of the required skin.
- Find the
home
file in the list of templates and click "Add". - Click "Edit" next to the added
home
file. - Copy the contents of the layout file
index.html
into the editor and save. - Go to "Control - Settings - Appearance"
- Check the box "
Use front page instead of login form"
and save. - Open your network in a private tab and enjoy the new design.
If the layout is prepared in accordance with the requirements, your new landing page will open. In case of problems, it may be necessary to rework the layout and specify the correct paths.
Inserting data into the landing
You can paste data from settings into the main page. Part of the texts and data is configured in the "Control - Settings - Appearance" section.
site
- site name from general settingstitle
- title from appearance settingsdescr
- subtitle from appearance settingstext
- text from appearance settingsfooter
- site copyright from general settings
Keys for IFSET blocks:
hasnew
- news availablehasoff
- offers on the homepage availablehasrec
- recent offers availablehastop
- top offers availablehastrb
- block for recent or top offers available
The news
block with news supports fields:
id
- news IDcid
- news category IDcat
- category namecolor
- category coloricon
- category icondate
- date of publication in the format DD.MM.YYYYtime
- smart date of publicationtitle
- news titleimage
- link to news image if availabledescr
- news announcementtext
- full text of the newsurl
- link to news
Blocks with offers can be of three types:
offer
- offers on homepagetop
- top offersrecent
- recent offers
Offer blocks support fields:
id
- offer IDname
- full offer nameshort
- short offer namesafe
- safe name for alt attriburecat
- offer category nameurl
- link to the offerimage
- offer picturecr
- conversion, two decimal placesepc
- EPC, two decimal placesapp
- approve, integerprice
- maximum commission for the offer (onlyoffer
block)