Buttons - Advanced Scripts

 

If you have good technical skills, you might want to consider using some of the more advanced scripts below. Use this code if you want to pass additional parameters to the NewsTrust story submission script. First click on the button you want, then copy this code and fill in the information. Your information will automatically be filled into the relevant fields in the story submit form.

1. Click on the button you want to use:

2. Copy and paste the code below onto your site:

After copying this code, replace the temporary values with your own.

The above script assumes that you are adding our buttons to your blog. You will want to change the name of the blog in the unlisted_publication_name line.

Note: If you have a very high volume site, please contact us for a custom script.

Some points to remember:

  • Only use items found in the pull-down menus on the story submit form for these fields: newstrust_publication_name, newstrust_story_type, newstrust_story_subject(s) and newstrust_story_topic(s).
  • Separate multiple author names with commas.
  • Use subject/topic pairs that go together on the submit form's menus (select a subject, and check the topic menu for available topics).
  • You can use up to 5 subject/topic pairs (again, selected from the submit form's menus).
  • If your publication is not listed in the NewsTrust database, then use "Other" for the newstrust_publication_name and enter your publication name in the newstrust_unlisted_publication_name field.
  • If you filled in newstrust_unlisted_publication_name, also set newstrust_source_ownership to either ind (Independent Media) or msm (Mainstream Media)

Here is the complete set of available parameters:

newstrust_story_urlthe story URL is normally automatically filled in. Only use this field if you need to override the URL of the actual story.
newstrust_story_titlethe story title is normally automatically filled in using the <Title> of the web page. Only use this field if you need to override the title of the web page.
newstrust_story_typetype of story (e.g., News Report, Opinion, Blog Post...) Click here for a complete list of NewsTrust story types.
newstrust_story_datethe story's publication date in this format: YYYY-MM-DD (for example, 2008-08-20 for today's date)
newstrust_story_authorswriter/author/blogger of the story
newstrust_publication_namename of the publication if it's in the NewsTrust database, otherwise set to "Other". Click here for a complete list of publications in the NewsTrust database.
newstrust_unlisted_publication_namefill this in if the publication is not in the NewsTrust database (and also set newstrust_publication_name to "Other")
newstrust_source_ownershipfill this in if the publication is not in the NewsTrust database (set to ind for Independent Media or msm for Mainstream Media)
newstrust_story_subjectprimary subject of the story (e.g., World, U.S., Politics...) Click here for a complete list of NewsTrust subjects and topics.
newstrust_story_topicprimary topic of the story (e.g., U.S. Congress, Energy, Environment...) Click here for a complete list of NewsTrust subjects and topics.
newstrust_story_subject_2 through newstrust_story_subject_5other story subjects that might apply to your story
newstrust_story_topic_2 through newstrust_story_topic_5other story topics that might apply to your story
newstrust_story_quoteprovide a short excerpt of the story. It can be the first 2-3 paragraphs. If it's too long, we'll automatically truncate to fit.

Other Platforms

We also support a variety of different web publishing and blogging platforms with more advanced button scripts.

Click on the platform of your choice for sample buttons and scripts:

   Blogger   Drupal
 
   WordPress   LiveJournal

You're welcome to customize these scripts as needed. We will soon add more guidelines here on how to customize our button scripts. For now, click on the links above for platform-specific installation tips.

Please email us if you have any questions about NewsTrust buttons, badges or bookmarklets.

Thanks for your support of NewsTrust!

The NewsTrust Team