Article Widgets for publishers

Similar documents
Magento 1.4 Theming Cookbook

Advertisers: Recommendations regarding how to integrate Reactivpub tags in Joomla

Website Login Integration

Slide.Show Quick Start Guide

JavaScript: Introduction to Scripting Pearson Education, Inc. All rights reserved.

MASTERTAG DEVELOPER GUIDE

InPost UK Limited GeoWidget Integration Guide Version 1.1

NewsletterAdmin 2.4 Setup Manual

CUSTOMER+ PURL Manager

AJAX SSL- Wizard Reference

Lesson 7 - Website Administration

Webapps Vulnerability Report

Portals and Hosted Files

If you, God forbid, find a bug, let me know and I ll try to fix it as soon as I can, ok?

Project 2: Web Security Pitfalls

Yandex.Widgets Quick start

Fortis Theme. User Guide. v Magento theme by Infortis. Copyright 2012 Infortis

Setup Guide

Login with Amazon. Getting Started Guide for Websites. Version 1.0

PHP Tutorial From beginner to master

Reseller Quick Start Guide 1. Domain & Name Servers...2. Payment Gateways Dedicated Servers Setup Your Landing Page/Website...

Computer Programming In QBasic

Script Handbook for Interactive Scientific Website Building

Website and Graphic Design Portfolio

IBM Digital Analytics Implementation Guide

A Tale of the Weaknesses of Current Client-side XSS Filtering

Intell-a-Keeper Reporting System Technical Programming Guide. Tracking your Bookings without going Nuts!

Acunetix Website Audit. 5 November, Developer Report. Generated by Acunetix WVS Reporter (v8.0 Build )

We automatically generate the HTML for this as seen below. Provide the above components for the teaser.txt file.

Getting Started with Command Prompts

Dashboard Skin Tutorial. For ETS2 HTML5 Mobile Dashboard v3.0.2

What about MongoDB? can req.body.input 0; var date = new Date(); do {curdate = new Date();} while(curdate-date<10000)

DTD Tutorial. About the tutorial. Tutorial

Advanced Web Development SCOPE OF WEB DEVELOPMENT INDUSTRY

Office Fax

Taleo Enterprise. Career Section Branding Definition. Version 7.5

Once you have gone through this document you will have a form that, when completed, will create an Account & Contact in Oracle.

Created by Johannes Hoppe. Security

Site Store Pro. INSTALLATION GUIDE WPCartPro Wordpress Plugin Version

WebLink 3 rd Party Integration Guide

QQ WebAgent Quick Start Guide

Designing for Dynamic Content

WordPress websites themes and configuration user s guide v. 1.6

About Google Analytics

Support/ User guide HMA Content Management System

Integrating KIMBIA form widget data with Google Analytics. What's Inside? KIMBIA. What s required...

In order for the form to process and send correctly the follow objects must be in the form tag.

Online sales management software Quick store setup. v 1.1.3

Network Detective Client Connector

Document Structure Integrity: A Robust Basis for Cross-Site Scripting Defense

Timeline for Microsoft Dynamics CRM

Pay with Amazon Integration Guide

Tutorial: Building a Dojo Application using IBM Rational Application Developer Loan Payment Calculator

Web Page Redirect. Application Note

JTouch Mobile Extension for Joomla! User Guide

Testking.M Q

HTML Form Widgets. Review: HTML Forms. Review: CGI Programs

General Product Questions Q. What is the Bell Personal Vault Vault?...4. Q. What is Bell Personal Vault Backup Manager?...4

GJC Web Design Virtuemart 3.0/2.0 Postcode Shipping Plugin

How to Create and Send a Froogle Data Feed

8 illegitimate reasons for discrepancies between AdWords and Google Analytics conversions

E-Blocks Easy Internet Bundle

HTML Web Page That Shows Its Own Source Code

XSS PROTECTION CHEATSHEET FOR DEVELOPERS V1.0. Author of OWASP Xenotix XSS Exploit Framework opensecurity.in

JavaScript By: A. Mousavi & P. Broomhead SERG, School of Engineering Design, Brunel University, UK

Network Security Web Security

DeltaPAY v2 Merchant Integration Specifications (HTML - v1.9)

The Smart Forms Web Part allows you to quickly add new forms to SharePoint pages, here s how:

Chapter 2: Interactive Web Applications

HTML Tables. IT 3203 Introduction to Web Development

Adobe Marketing Cloud How Adobe Scene7 Publishing System Supports SEO

Specify the location of an HTML control stored in the application repository. See Using the XPath search method, page 2.

CrontabFile Converter

PRODUCT DATA IMPORT SETUP GUIDE FOR ADVERTISERS

Launch Create Store. Import Orders Enter Orders Manually Process Orders. Note: Ctrl+click on a number to jump to that topic.

bank zweiplus Gateway user manual

Technical documentation

Using your Drupal Website Book 1 - Drupal Basics

Interspire Website Publisher Developer Documentation. Template Customization Guide

The McGill Knowledge Base. Last Updated: August 19, 2014

MAGENTO TRAINING PROGRAM

DocuSign Quick Start Guide. Using the Bulk Recipient Feature. Overview. Table of Contents

Course Information Course Number: IWT 1229 Course Name: Web Development and Design Foundation

Cross Site Scripting (XSS) and PHP Security. Anthony Ferrara NYPHP and OWASP Security Series June 30, 2011

Integrated Pictometry Analytics Quick Start Guide. July 2012

Documentation for the SMSWay API v1.5. API for SMSWay Gateway. Documentation for the SMSWay API v

JavaScript Security. John Graham Cumming

SIF Validation Tool. Wages Protection System Qatar Central Bank& Ministry of Labour And Social Affairs. End User Guide

Altru Masters Workshop Creating the Best Online Experience for your Patrons Part 1: Online Basics

jquery Tutorial for Beginners: Nothing But the Goods

Transcription:

JavaScript integration guide Article Widgets for publishers

2 / 6 The use of plista Article Widgets for publishers is based on the integration of a small piece of JavaScript into the HTML code of your website. This document will guide you through the neccessary steps of the setup. Our script mainly consists of two different function calls: 1. PLISTA.items.push({... }) This function is used to send article data to plista. In the following, you will learn how to correctly fill in the data that is to be sent. Usually a dynamic scripting language, such as PHP, is used to achieve this. Content Management Systems often provide the neccessary variables, too. Please continue to the next page for more information. 2. PLISTA.partner.init() The second function initializes and displays the Article Widget. Depending on whether the list of recommendations is to be placed below an article on a detail page or on an overview page (e.g. your startpage or category landing page), it is neccessay to include the corresponding DIV-containers in the code thus ensuring that the right widget design will be returned.

3 / 6 Integration tips <div id="plista_widget_standard_1"></div> <div id="plista_widget_belowarticle"></div> <script type="text/javascript" src="http://static.plista.com/beispiel.de_v1.js"></script> <script type="text/javascript"> /* <![CDATA[ */ PLISTA.items.push({ objectid: "f0ad8173", title: "Neuigkeit des Tages", text: "Dies ist der Beginn des Artikeltextes...", url: "http://www.beispiel.de/news/2009/newsf0ad8173.html", img: "http://www.beispiel.de/img/newsf0ad8173.jpg", category: "news", created_at: "1341394623" }); PLISTA.partner.init(); /* ]]> */ </script> "Recommendations, please!" The PLISTA.parter.init()-call causes the recommendations to be displayed. Please note that the plista script needs to be placed after the "plista_widget_standard_1" -respectively the "plista_widget_belowarticle" -DIV container in your HTML code (see our example on the left). Depending on whether you are integrating the script on a start-, overviewor detail page (e.g. article page), you only need to include one of the DIV containers within your HTML code unless you intend to display more than one widget at a time. Calling plista! PLISTA.items.push({...}) is used on article pages to send data to plista. On pages that are not devoted to a single article, this call does not need to be included. Handing over an article s "meta data": In order to send an article s data to plista, fill in ist different parameters here, such as $title or $text (please refer to the exmple code on the left). In most cases, the completed section of the code will look similar to this: objectid: "<?php echo $article_id;?>", title: "<?php echo $title;?>", text: "<?php echo $article_text;?>", url: "<?php echo $article_url;?>", img: "<?php echo $article_image_url;?>", category: "<?php echo $article_category;?>", created_at: "<?php echo $article_created_at;?>" Please note the hints on the following page!

4 / 6 Overview of the different data fields What data needs to be sent to plista, using the different JavaScript fields? objectid title text url img category The object-id should be an alphanumeric code (a-z 0-9), furthermore it has to be unique for every recommendation, since plista is using it for the distinction of different recommendations. If your website is using a database, it is probably the easiest way to use the database ID of your articles. Alternatively, you can use any other unique combination of characters. Maximum length: 128 characters Use this field to send plista the title of your article (please note: an article can also be a product, if your website is an online shop or any other kind of catalogue)! If your text contains double-quotes, you have to escape them by preceding them with a backslash: \ instead of. Guaranteed 60 signs - max. 255. Any special characters that your test might contain should be sent in clear format, instead of HTML entities. Again, if your text contains double-quotes, you have to escape them by preceding them with a backslash: \ instead of. Please note that this piece of text is meant to be an introduction only and might be cut and succeded by a trailing..., depending on the given widget that is displaying your recommendation. Maximum length: 255 characters (up to 100 characters are guaranteed to be displayed). Please send the URL of your article using this field. The URL must include your domain name and start with the protocol, e.g. http://. Maximum length: 255 characters. If your articles have an image and/or you would like to add an image to your plista recommendation as well, you can fill in the image URL here. The thumbnails should be cubic and no larger than 150x150 pixels, unless you are using larger thumbnails on your site already. You can leave out this line if you do not intend to add images to your recommendations. The category of current article: If there is no category, leave it empty please. created_at Please make sure, that you transfer the creation date of the article as a unix timestamp, so that we can consider the creation date for our recommendations. The above mentioned fields are the most important ones. As we create individual JavaScripts for each of our partners to integrate plista as tight into each website as possible, the list of fields in your exact copy of our script might vary.

5 / 6 FAQ What do I need to look at while editing the JavaScript? Since the fields within our script are an enumeration, it is important to omit the comma at the end of the last line, i.e. before the closing brackets if the PLISTA.items.push() call. In case any of the texts you send to plista is containing double quotes, they need to be preceded by a blackslash, i.e. they need to be escaped: \ instead of Please avoid linebreaks in the texts you send to plista. For a php-based CMS use json_encode to fill in the variables into the push-method: echo json_encode(array( 'objectid' => $article_id, 'title' => $title, 'text' => $article_text, 'url' => $article_url, 'img' => $article_image_url, 'category' => $article_category, 'created_at' => $article_created_at )); Thereby possible mistakes will be avoided. How can I remove an article from plista's database? Removing an article from the plista database can easily be achieved through a simple HTTP-request. Please contact us for further information on this. Refer to the end of this document for contact information. Where do I find usage statistics for my plista integration? Usage statistics can be found at http://plista.com. In case you have any further questions, please contact us. Where can I find additional information on HTML and JavaScript? Die Webseite SelfHTML bietet ein kostenfreies und umfangreiches Kompendium zu den Themen HTML und JavaScript, aber auch CSS: http://de.selfhtml.org/.

6 / 6 How Article Widgets look like? Example-Widget This may also interest you Movie Highlights of the Month Spectacular 3D blockbusters, romantic comedies, gripping documentaries. Here are this month s movie highlights. Birthday gifts: 10 of the best presents Birthdays are truly special days and most celebrate them with gifts. But the tricky part is what to give. This list will help. Description of key elements Try Now: New Ideas for Your Cooking Skills Enjoy every day new ideas for great dishes. Request our ecookbook now! ADVERTISMENT Image (optional) Background (highlighted lightly) Link (open in new window) "Advertisement" incl. Icon Better Than Their Reputation Off the beaten track, we recommend you 15 stunning but underrated travel destinations for your next holiday.