Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Network-13 Home
Old Posts

2012

  • How to post news articles using Microsoft Word
  • How to root the HTC One X
  • HTC One X - How to take screenshots

2011

  • CakePHP - Multiple counterCache fields on the same model
  • Time to bake a cake and rebuild the site
  • N-13 News 4.0.2 available for download.

2010

  • N-13 News 4.0 available for download
  • N-13 News 3.7 available for download.
  • N-13 News 3.6 available for download.
  • Integrating IntenseDebate Commenting
  • Integrating Disqus Commenting
  • N-13 News 3.5 available for download.

2009

  • N-13 News 3.4 available for download.
  • Translating N-13 News into other languages.
  • N-13 News 3.3 available for download.
  • Ideas & Suggestions for N-13 News 3.3
  • N-13 News 3.2 available for download.

2008

  • Domain transfer
  • Network-13 moving to a new host
  • N-13 News 3.1 available for download.
  • N-13 News 3.0 available for download.
  • N-13 News 3.0?
  • Updating the site design

2007

  • Free network-13 emails!
  • N-13 v5

2006

  • Small update
  • Moved servers
  • Design updated!
  • Register module updated
  • Forum updated
  • Network-13 v4
How to post news articles using Microsoft Word

Editing an existing article

I discovered recently when playing with the latest version of Microsoft Office 2013 that it had a template called Blog post which apparently allows you to post news articles directly to popular blog software. After a bit of investigating I decided I could write a script to allow articles to be posted directly to any N-13 News installation.

1 - To add this functionality to your existing N-13 News installation, download the following file

http://n-13news.googlecode.com/files/n13news4.0.2_xmlapi.zip

Extract the 4 files and copy them to your server into the same directory you installed N-13 News.

2 - Edit the xmlapi.php file, towards the top of the file are a few settings, edit these to match your own server settings.

/* EDIT THESE SETTINGS \*/

$apiSettings = array();
$apiSettings['blogURL']     = 'http://dev.network-13.com/news'; // Change this to the location where you show your news
$apiSettings['blogName']    = 'Network-13'; // Name of your blog/site

/* ~~~~~~~~~~~~~~~~~~~ */

3 - Now you just need to configure Microsoft Word

These instructions apply for Microsoft Word 2007 and above. To open the Blog post template, navigate to File > New > and find the Blog post template. Once you've opened it it may ask you to add new account, if it doesn't, select the Manage Accounts option.

Select New, where it says select your blog provider, select Other, you should be given a screen like this

Account Settings

For the Blog URL enter the location of the xmlapi.php file, for example http://example.com/news/xmlapi.php

The username and password is the same username and password you use to login to N-13 News. Once you add the account, hopefully that should be all that's required. Now you should be able to open existing articles on your server and publish new ones.

Existing articles

Many thanks to Ryan Hemelaar who wrote the basis of the code I built on top of.

7 Replies
2012-07-28 10:03:29


Network-13.com © 2013