-
Type: Story
-
Status: Closed (View Workflow)
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.2 Larks
-
Fix Version/s: 1.6 Larks
-
Labels:None
-
Sprint:1.3 Larks, 1.4 Larks, 1.6 Larks
As an Admin I'd like to integrate forum with SAPE.ru in order to get money for advertising the links to other sites
Acceptance Criteria:
- Additional fields appear on Configuration page grouped within Integration with SAPE area
- Integration with SAPE consists of 2 input fields
- SAPE ID - if it's there, then we integrate SAPE code on every page on the forum (except main page).
- Integrate on main page checkbox. If it's checked, then SAPE links are added onto the main page as well.
- If SAPE ID is empty, then we don't put any SAPE links on any page even if the checkbox is enabled.
- The integration is done via JavaSape library.
- If SAPE configuration is disabled (Enable SAPE checkbox is unchecked), then all previously specified information should stay, it shouldn't be wiped out.
Service Description
SAPE works like that:
- Client that wants to advertise her resources (buyer) pays money to sape.ru
- Client that can place the links on her resource (seller), gets paid for other site advertising. Seller chooses the categories and buyers she wants to advertise.
- A seller can sell from 1 to 5 links per every page. Let's say we chose 4 links. Then couple of buyers can take for instance 2 and 2 slots on the page.
Algorithm
First we're sending a request to one of SAPE servers. The response might look like this:
<sape site_url="http://javatalks.ru" delimiter=" "> <page uri="/topics/36295"> <link> <![CDATA[ Новый год и Каникулы 2011 Скидки - <a href="http://lunasvet.ru/" target="_blank">горящие туры</a>. Горящие туры OT Coral Travel. ]]> </link> <link> <![CDATA[ <a href="http://www.baby.ru/blogs/post/79573/" target="_blank">китайская таблица определения пола ребенка</a> ]]> </link> <link> <![CDATA[ <a href="http://www.baby.ru/blogs/post/33886/" target="_blank">определение беременности на ранних сроках</a> ]]> </link> </page> <page uri="/topics/36295/"> <link> <![CDATA[ Новый год и Каникулы 2011 Скидки - <a href="http://lunasvet.ru/" target="_blank">горящие туры</a>. Горящие туры OT Coral Travel. ]]> </link> <link> <![CDATA[ <a href="http://www.baby.ru/blogs/post/79573/" target="_blank">китайская таблица определения пола ребенка</a> ]]> </link> <link> <![CDATA[ <a href="http://www.baby.ru/blogs/post/33886/" target="_blank">определение беременности на ранних сроках</a> ]]> </link> </page> <page uri="/forum59.php"> <link> <![CDATA[ Dilijans.org - <a href="http://www.dilijans.org/avtoshiny-i-litie-diski/Nizhnij-Novgorod.html" target="_blank">доставка дисков в Нижним Новгороде</a>, низкие цены. ]]> </link> </page> <page uri="__sape_ips__"> <link> <![CDATA[ 188.72.80.205 ]]> </link> <link> <![CDATA[ 188.72.80.201 ]]> </link> </page> <page uri="*"> <![CDATA[ <!--458365353040--> ]]> </page> <sape_ips> <ip>188.72.80.205</ip> <ip>188.72.80.201</ip> </sape_ips> </sape>
Notes on the format:
Response contains a list of pages and links we're going to show there. E.g. page http://javatalks.ru/topics/36295 should show links:
- Новый год и Каникулы 2011 Скидки - <a href="http://lunasvet.ru/" target="_blank">горящие туры</a>. Горящие туры OT Coral Travel.
- <a href="http://www.baby.ru/blogs/post/79573/" target="_blank">китайская таблица определения пола ребенка</a>
- <a href="http://www.baby.ru/blogs/post/33886/" target="_blank">определение беременности на ранних сроках</a>
There is also delimiter=" " (in this case JIRA replaced symbols with actual space) which means that links should be shown with spaces between them. Delimeter is configurable in admin panel of sape.ru
- is blocked by
-
POULPE-495 Move Component.properties to EHCOMMON cache region
- Closed
- relates to
-
POULPE-500 Add labels for all properties of JCommune component
- Open
-
JC-1400 Sape Links should have default link styles
- Closed
-
JC-1289 Create TC for sape.ru integration
- Closed