The CyberSEO plugin is able to syndicate almost any content source. Basically there are two content source types:
2) CSV files and raw text dumps. Here you have to select the dump format and the desired post structure.
To syndicate a new content source, choose the appropriate window (feed or CSV), enter the feed’s URL, paste the CSV/text dump or its URL and submit it to CyberSEO. Right after that you will be able to adjust the content source settings. All supported sources are processed as XML feeds (even raw text dumps), so they have the same options.
Syndicate this feed to the following categories
Extract full articles
When this mode is enabled, the CyberSEO plugin will try to automatically extract full-text articles from the shortened RSS feed. You can freely downloaded the full-text-rss script from here or from here, unzip it and upload the files into the /wp-content/ or /wp-content/plugins/cyberseo/ folder. After that the full text extraction feature will be enabled and the “Extract full articles” option will become available.
This option is available only if the WordPress Multilingual Plugin is installed and active. Use the “WPML language” drop-box to select a WPML language code.
This option allows one to enable or disable proxies from the list, specified in General Settings. The proxies are usually used to parse those services that do not allow frequent connections from the same IP’s.
Attribute all posts to the following user
XML section tag names (separate with commas)
Normally CyberSEO 7 automatically recognizes the internal structure of XML and JSON feeds, but sometimes the feed can be a very complicated one and it may contain a few different blocks of items, so you may want to define which exactly block you want to import. As you may know, the content of every RSS entry is enclosed within the <item> tags. E.g.:
<item> <title>Example entry</title> <description>Here is some text containing an interesting description.</description> <link>http://www.wikipedia.org/</link> <guid>unique string per item</guid> <pubDate>Mon, 06 Sep 2009 16:45:00 +0000 </pubDate> </item>
Thus any content automation plugin is able to properly recognize and parse the RSS feeds, since they have a very formalized structure. But if there is a need to parse an XML or JSON feed of an arbitrary format, you may face a serious problem because this task can’t be done by other content automation plugins. Fortunately this is not a problem for CyberSEO which will do it automatically. However you can always override its behavior using the “XML section tag names” field.
Let’s consider we need to parse some XML feed which entries are enclosed within the <product> tag and have the following structure:
<product> <id>PRODUCT-73182373</id> <name>DuroStar DS7200Q Remote Control Silent Diesel Generator</name> <specification><img url="http://static1.ostkcdn.com/images/products/P12338714.jpg"><br />Perfect for the job site or the residential user who needs back-up power Features: Electric start on panel plus remote start. Advanced direct fuel injection system for low fuel consumption. Dependable, maintenance free alternator with automatic voltage regulator. Full power panel with keyed ignition, oil alert automatic shutdown for low oil pressure, volt meter, circuit breakers, low fuel indicator and power outlets. 12 hours Continuous Operating Capability. Fully protected 12V, 120V & 220V outlets. Ground Fault Interrupter. DC 12V charging system. </specification> <price>$1,000</price> </product>
The CyberSEO plugin will parse it automatically, but let’s pretend it was unable to recognize the <product> enclosing tag. In this case we need to go to CyberSEO->XML Syndicator and click the “Alter default settings” button. Now we have to locate the “XML section tag names” field, add there the new enclosure tag (in the case above it’s PRODUCT) and click “Update Default Settings”. Done! Now the CyberSEO plugin will be able to recognize and parse any XML feed where all items are enclosed within the <product> tag.
However we still can’t pull this feed to the blog without some additional settings, because such important tags as <title> and <description> are missing there. Furthermore, there is an additional tag <price>, which we may also like to include into the post.
To solve this problem, we’ll use templates. First of all, we have to find the “Post title” box and alter its contents as follows:
This will tell CyberSEO to use the XML value “name” as a WordPress post/page title.
Now let’s format the body of our post. Find the “Post content” box and put there the HTML template of the post you want to be generated. E.g.:
<p>%xml_tags[specification]%</p> <p><strong>Price:</strong> %xml_tags[price]%</p>
This option defines what the XML/RSS syndicator must do with the post categories if they are pre-defined in the WordPress settings. Here you can choose one of the four actions:
- Use XML syndicator default settings – the default XML syndicator rules will be applied. You can assign these rules if you click “Alter default settings” button on the main “XML Syndicator” page.
- Post to default WordPress category – the syndicating post will be assigned to the default category. No additional categories will be created.
- Create new categories defined in syndicating post – all previously undefined categories, specified by the <categories> tag of the syndicating post, will be automatically created.
- Do not syndicate post that doesn’t match at least one category defined above – if the syndicating post doesn’t meet at least one of the predefined categories, it will not be added to blog.
Create tags from category names
Check for duplicate posts by
Use this option to define the way CyberSEO will use to detect and ignore the duplicated posts:
- GUID and title – the post will not be added in case if either its GUID or title match one of the existing posts.
- GUID only – the post will not be added in case if its GUID match one of the existing posts.
- Title only – the post will not be added in case if its title match one of the existing posts.
Check this feed for updates every…
Use this option to set the time interval in minutes which defines on how often CyberSEO should check the selected feed for updates. If you don’t want to check the feed for updates automatically, simple set this value to 0.
Maximum number of posts to be syndicated from each feed at once
Here you can set the maximum number of posts that can be syndicated from the selected feed, every time when it’s checked by plugin for the updates. It is recommended to use low values to avoid the server overload. Also it will make your self-populating site look like an organically growing one. Search engines don’t like those “blogs” that add 100 new posts at once…
This drop-down menu allows you to define the status of syndicated posts. There are four options that barely need any additional description:
- Hold for review
- Save as draft
- Save as private
Here you can choose the base date for the syndicating posts. If you select “Get date from post”, all new posts will be added with the same dates as specified in the RSS/XML feeds (in case if the dates are really specified there). But if you select “Use syndication date”, the new posts will be stamped with the actual date of their syndication.
Some RSS feeds have so-called media attachments (usually thumbnail images) enclosed within <media:content>, <media:thumbnail> and <enclosure> (only the “image” type is supported) tags. The drop-down menu let’s you decide on what to do with these types of attachments:
- Do not insert attachments – the attachment will be ignored and won’t be inserted into the post.
- Insert attachments at the top of the post – the attachment will be placed at the top of the post.
- Insert attachments at the bottom of the post – the attachment will be placed at the bottom of the post.
Post links handling
Sometimes you may want to automatically remove a certain type of links from the syndicating posts. This option allows you to do one of the following operations:
- Keep links intact
- Remove all links
- Remove all links except links in images
- Remove links from images only
When “Generate from the first post image” option selected, the CyberSEO plugin will generate post thumbnails (also known as featured images) using one of the following sources:
- first image found in the post content or excerpt;
- last image found in the post content or excerpt;
- random image found in the post content or excerpt;
- media attachment thumbnail;
- contents of the “thumb” custom field.
Important: if the plugin will not be able to create post thumbnail (e.g. the source image is missing or broken), the post will be deleted. So if you are going to enable the post thumbnail generation, please make sure that images are available in your content source.
Morph headers and footers
Don’t morph titles
Parse WordPress archives
If enabled and if the syndicating RSS feed was generated by another WordPress blog, the CyberSEO Suite will pull all the published posts from that blog, but not only those that are available in that feed. The plugin will parse through the WordPress archives, discover and aggregate every single post available there – doesn’t matter now many years the blog runs and how many posts it contains. Just enable the “Parse WordPress archives” and CyberSEO will grab the whole blog at once or do it post-by-post every given time interval. In other words, if some target WordPress blog has 1,000 posts on the board and there are only 10 recent ones in its RSS feed, the CyberSEO plugin will aggregate all 1,000.
This is an unique and very powerful function which is beyond the possibilities of other popular content automation scripts. So please use it wisely and DO NOT STEAL copyrighted content form other blogs without their owner’s permission! Otherwise you may face serious legal problems.
This option converts an ISO-8859-1 string into UTF-8 that may be required when parsing the XML/RSS feeds containing illegal UTF-8 start bytes (e.g. <0x92>). Use it to aggregate even invalid feeds, that can not be parsed by other XML/RSS syndicators.
Convert character encoding
Store images locally
If enabled, all images from the syndicating feeds will be copied into the default uploads folder of your site. Make sure that your “/wp-content/uploads” folder is writable. This my speed up the site loading time and also will let you to syndicate the posts containing hotlink-protected images.
Store videos locally
If enabled, all videos from the syndicating feeds will be copied into the default uploads folder of your site. Make sure that your “/wp-content/uploads” folder is writable. This my speed up the site loading time. Note that this operation may take some time, so the video content may not be immediately accessible. The following video file extensions are supported: mp4, m4v, mov, wmv, avi, mpg, ogv, 3gp, 3g2.
Republish existing posts
Shorten post excerpts
Post date adjustment range
Here you can set the syndication date adjustment range in minutes.
This range will be used to randomly adjust the publication date for every aggregated post. For example, if you set the adjustment range as [-60] .. , the post dates will be randomly spread between -60 and +60 minutes.
The period of time in hours after which the post will be deleted. If you don’t want to limit the post lifetime, set this parameter to 0. This feature is very useful for online shops and similar projects that need to be constantly updated.
Here you can assign XML tag values to custom fields of the syndicating post, using the following format:
tag – an XML tag name you want to select. This parameter is case insensitive;
name – a name of WordPress post custom field to write the selected value to. This parameter is case sensitive.
The example below stores the values of <name> and <isbn> tags into the “book_title” and “book_isbn” custom fields:
You can also write a fixed arbitrary string value into a post custom field. To do so, you have to specify the sting value enclosed within double quotes and use it instead of the XML tag name. For example, this is how you can assign the “This is my product” string value to the “product” custom field:
"This is my product"->product
Post title, Post content and Post excerpt
CyberSEO ver. 7 allows one to define HTML templates for post title, post content and post excerpt. You can use these text boxes to define the layout and contents of the posts, generated by the plugin. The following predefined tags are available:
- %post_title% – post title;
- %post_content% – post content;
- %post_excerpt% – post excerpt;
- %post_excerpt_notags% – post excerpt with stripped HTML tags;
- %link% – a link to source;
- %post_guid% – post GUID;
- %media_description% – post media description (if media attachments are included);
- %enclosure_url% – the enclosure URL (if attachment enclosure is included);
- %xml_tags[name]% – an XML tag value, where name must be replaced with the actual XML tag name;
- %custom_fields[name]% – a custom field value, where name must be replaced with the actual custom field name;
- %custom_fields_attr[name][attr]% – a custom field attribute, where name must be replaced by the actual custom field name and attr must be replaced by the XML attribute name;
- %media_thumbnail[n]% – a link to the media thumbnail, where n is its integer index (if media attachments are included).
E.g. if you want to add some text to every post title (say “Breaking news:”), you should alter the “Post title” template like this:
Breaking news: %post_title%
Here is another example. Let’s say you are going to import a product XML feed which has the following items:
<product_name>the product name here</product_name> <picture>the product picture URL here</picture> <price>the product price here</price>
The only thing you have to do is to simply define your “Post template” like this:
<h3>%xml_tags[product_name]%</h3> <image src="%xml_tags[picture]%" /> <p><b>Price:</b> %xml_tags[price]%</p>
Post content shortcodes
In CyberSEO 7 you can use the cyberseo_gallery shortcode to insert an image gallery into your post. E.g.:
[gallery_magic url="%link%" featured_image="first" link="file"]
The following parameters are available for the gallery_magic shortcode:
- url: the source gallery URL;
- featured_image: use “first”, “last”, “random” or leave it empty if you don’t want to generate featured image at all;
- max_images: max number of images in the gallery (default: all images);
- cols: a number of columns in the gallery (default: 4);
- size: specify the image size to use for the thumbnail display. Valid values include “thumbnail”, “medium”, “large”, “full” and any other additional image size that was registered with add_image_size(). The default value is “thumbnail”. The size of the images for “thumbnail”, “medium” and “large” can be configured in WordPress admin panel under Settings > Media.
- link: can be “file” (link directly to image file), “none” (no link) or leave it empty if you want to link it to the attachment’s permalink.
- on_fail: use the “delete” value to prevent import of posts which have no galleries.
Post headers and post footers
Everything that you put into these boxes will be added to every syndicated post at it’s top or bottom accordingly. You can use the post headers and footers to add some random text or HTML code to every syndicating post. In this case, each chunk of text must be separated with the “<!–more–>” marker. For example, if you put the following text into the “Post Footers” box, every syndicated post will be amplified with a random Mark Twain’s quote:
I was gratified to be able to answer promptly. I said I don't know. <!--more--> If you pick up a starving dog and make him prosperous, he will not bite you. This is the principal difference between a dog and a man. <!--more--> If you tell the truth you don't have to remember anything. <!--more--> In Paris they simply stared when I spoke to them in French; I never did succeed in making those idiots understand their language. <!--more--> In religion and politics, people's beliefs and convictions are in almost every case gotten at second hand, and without examination. <!--more--> In the first place, God made idiots. That was for practice. Then he made school boards. <!--more--> It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress. <!--more--> It is easier to stay out than get out.
You can also use the predefined tags (see Post Title, Post Content and Post Excerpt), which available for post title, post content and post excerpt templates. For example, if you want to include a link to source at the bottom of every generated post, you can do it by inserting the following line into the “Post footers” box:
PHP code <?php .. ?>
This is the most powerful tool which is intended for advanced users who are familiar with PHP. Use it to execute your own PHP code for every aggregating post, which info is represented as the $post array variable. You can alter this variable in order to apply your own changes to every aggregating post (find an example in the description for “XML section tag names” field above). The following items are defined in the $post array variable:
- $post[‘post_title’] – post title;
- $post[‘post_name’] – post name;
- $post[‘link’] – link;
- $post[‘post_content’] – post content;
- $post[‘post_excerpt’] – post excerpt;
- $post[‘guid’] – GUID;
- $post[‘post_author’] – post author;
- $post[‘post_date’] – post date in Unix timestamp format;
- $post[‘categories’] – array of post category names;
- $post[‘media_content’] – array of media content URLs;
- $post[‘media_thumbnail’] – an array of media thumbnail URLs;
- $post[‘enclosure_url’] – enclosure URL;
- $post[‘enclosure_type’] – type of enclosure URL. E.g.: audio/mpeg;
- $post[‘custom_fields’] – array of custom fields;
- $post[‘enclosure_type’] – array of XML tag attributes for corresponding custom fields;
- $post[‘comments’] – the array may contain post comments in WordPress format.
- $post[‘custom_fields’] – array of post custom fields;
- $post[‘custom_fields_attr’] – array of XML attributes associated with the post custom fields;
- $post[‘tags_input’] – an empty array. You can use it to assign additional tags to syndicating posts via the $post[‘tags_input’] variable. E.g.:
$post['tags_input'] = array('tag1', 'tag2', 'tag3', 'etc');
If you modify the $post array (say change the post tittle, insert some text into the post’s body, or create your own tags according to the post’s content), your changes will be applied to the post BEFORE it will be processed by CyberSEO and added to the blog. If you don’t want some particular post to be syndicated (say it contains some undesirable words etc), your PHP code must assign FALSE to the $post variable.