Universal Post Manager 1.0.6 Release – WordPress Plugin
What is Universal Post Manager ?
We want to present you new generation of WordPress plugins , which based on “All in One” concept. You have just installed your WordPress blog and thinking about new features, which you need to improve your blog as you want.
So what are you going to do ? You start to search , install and check a lot of plugins and finally you choose one from ten . Well , are you admit that this process takes a lot of time ?
We want to make easier your efforts and help you resolve this problem and suggest you a plugin which consists of many most important and useful professional features. In this plugin with every new releases we will include another very useful and indispensable to your blog work functions which are going to be comfortable for WordPress and WordPress MU .
Be notified , that every new feature which we will add on Universal Post Manager is selected from your most popular suggestions .
Your suggestions will discussed at our forum and will expose to voting and won suggestions will be included in next new version UPM , thus in the majority of cases with one installation UPM you can finish your efforts and enjoy UPM functionality. For this purpose we ask you to participate actively in our forum, to make new suggestions , to argue them and to vote for new features which will be included in following releases of a Universal Post Manager. Thus new versions Universal Post Manager will have precisely those features and have functionality as you wanted.
In our forum except above specified actions you can present yours opinions on a plug-in and if you already use our plug-in you can ask questions if something does not work for you properly we will help to solve any problems.
UPM – General Settings
HTML tags & Protocol Manager
Let’s start from general settings of admin panel . This page is consists of five parts , first is HTML tags & protocol manager, as you can see on image there are switchers for all features and you can turn on/off individually and generally . Also you can manage HTML tag controller by user capabilities , it means that HTML tag manager can be used only for Administrators , Editors , Authors , Contributors or Subscribers.

One more aspect, HTML tag manager filters disabled tags and as you understand it can modify your post content, for this purpose we added executing mode option and you can choose “Do HTML filter on saving” ( this alters post content and can not be undone ) or “Do HTML filter on showing” ( this works without any changing in your post content ) .
Phrase Filter Manager
Like HTML tag & Protocol Manager this part of settings have same options for turning off/on according features, executing mode and user capabilities controller . For this manager we are suggesting to use “Do phrase filter on showing” or use “Do phrase filter on saving” but you must not have shortcuts without colon on beginning and end of text , more description you can find in “Phrase Filter Manager” part of documentation.

One more thing about executing place of Phrase Filter Manager, in this part of settings there is an option called “Use Filter Manager in” which allow you choose phrase filter for post , pages or comments of your blog.
Saving Manager
For Saving Manager there is turning off/on option too, you can control all type of document saving such as Text , HTML , MS Word , PDF and XML. Also you can choose appearance type of saving buttons and strings such as String or Button, Horizontal or Vertical , buttons align left or right , but it is possible to style buttons and strings by css directly.

And about Location of saving buttons and strings , by default saving buttons are added at end of posts and pages, but you can disable this location and use custom type of localization , for this purpose you should put this code :
<?php upm_print() ?>
in template ( single, page or other custom template files for post and pages ) files wherever you want .
Print Manager
Print Manager also have turn on/off , localization, button type options , here you can choose mode of print button appearance , such as Single or With saving buttons.

For custom localization of Print button use this code: <?php upm_print() ?> .
UPM – HTML Tag Manager

HTML Tag Manager
This admin-box consists of three subboxes ( post, page and comment settings ) , it allows you to disable HTML tags one after another checking according checkboxes. This feature filters post , pages and comments content and keeps only allowable HTML elements.
By default there is kses.php in /wp-includes/ directory of WordPress and you can customize that file , but this way can lead problems on every update to new version , for this purpose we have made easier to do it , and we have added additional tags which can be used in your post and pages .
Attention ! HTML Mananger allows you to use these additional tags <iframe>, <frame>, <frameset>, <script>, <style>, <link>, <object>, <param>, <embed>, <marquee> please use carefully , You should only enable using of these tags for administrator role and don’t allow for untrusted users.

If you are not familiar with HTML tags you can learn more using HTML Tag Reference admin-box , you should select tag and click on read button , for more verbose description you should visit to www.W3Schools.com.
Protocol Manager
The default allowed protocols are http, https, ftp, mailto, news, irc, gopher, nntp, feed and telnet. This covers all common link protocols, except for javascript which should not be allowed for untrusted users. 
This admin-box also consists of three subboxes for posts, pages and comments settings and you can set allowed protocols for eache of them.
UPM – Phrase Filter Manager
Phrase Filter
Phrase Filter is allow you to manage phrases , which can be replaced or removed in posts , pages and comments. As we have explained in General Setting section you can use this feature in two mode such as “Do phrase filter on saving” ( this alters post content and can not be undone ) or “Do phrase filter on showing” ( this works without any changing in your post content ) and you should know that first executing mode of Phrase Filter can lead some changing in your blog posts and pages , if you are not sure that it need to do you should set second mode.

To create new phrase which need to replace to another phrase you should type phrases in according input areas “Find” and “Replace” , if you just want to remove the phrase: leave the “Replace” field empty , if replacement is same you can set more than one phrase , separating by commas and click on Update button. After creating new replacing phrase you can find it in “Phrase Filter Overview” admin box .
There are three buttons to manage phrases: [ Review ] [ Edit ] and [ Delete ] . If you want to review your created phrases just select it and press on [ Review ] button , if you want make some changes you should select and press on [ Edit ] button and that phrase will appearance in “Phrase Filter” admin-box.
Shortcut Filter
Here you can create shortcuts with colon on beginning and end of text like this :wp: for using in posts , pages and comments editors , which will be modified to links , images or image links . To create link shortcut leave “Replace to image” fields ,to create image shortcut leave “Replace to link” fields and if you want to create image link shortcut you should fill both section’s fields ( in this case “Link Text” becomes title of image ).

Like Phrase Filter this feature also have “Shortcut Filter Overview” admin-box where you can manage created shortcuts.It is possible to create shortcuts without colons , but on this condition you should not set executing mode of Shortcut Filter to “Do phrase filter on saving”.
Long Phrase Filter
This feature useful to manage long phrase , you can separate it by gaps or remove part of long phrase after maximum length of characters, end output like this longphra …, maximum length setting is available too.

UPM – Saving Manager
Text Save Options
In this page you can find setting options for all type of post and page saving , first of them is “Save as Text”. Here you can choose type of button icon/button , set button’s or icon’s image URL from different images ( if you want custom button or icon image you should put it in /wp-content/plugins/universal-post-manager/images/img/ folder and type image name in that input area ) , and of course you can manage text of button’s string type.

Saved text document have got seven part of content :
- Header – Site and saved date information,
- Title – Title of saved post or page,
- Body – Content of saved post or page,
- Images – URLs of images which are included in saved post or pages ( as far as you know text file can not include images, for this purpose we have added this part of content and if someone want to see images of that text document he can find it using image URLs ),
- Excerpts – hand-crafted summaries of your post content,
- Date – Post date , Post date GMT , Post modified date , Post modified date GMT ,
- Footer – Plugin information.
HTML Save Options
Like Save as Text , there are same options to choose button type , image , to change string’s text , but there is an additional option called “CSS code” , here you can put your css code to style your saved HTML document .

Saved html document have got five part of content :
- Header – Site and saved date information,
- Content – Title and body of saved post or page,
- Excerpts – hand-crafted summaries of your post content,
- Date – Post date , Post date GMT , Post modified date , Post modified date GMT ,
- Footer – Plugin information.
Word Document Save Options
In this admin-box also there are options to choose button type , image , to change string’s text , option to style your saved Word document and one more option to choose according template for Microsoft Office or Open Office document.

Saved Word Document have got five part of content :
- Header – Site and saved date information,
- Content – Title and body of saved post or page,
- Excerpts – hand-crafted summaries of your post content,
- Date – Post date , Post date GMT , Post modified date , Post modified date GMT ,
- Footer – Plugin information.
PDF Save Options
In this admin-box also there are options to choose button type , image , and to change string’s text .
About one importent PDF error:
[ FPDF error: Alpha channel not supported ]
You may encounter this error while viewing any PDF file containing a PNG file. Many PNG files have an Alpha channel imbedded in the file. The process in five steps listed below removes that Alpha Channel from the PNG file.
- Open the PNG file in a graphics program,
- Save as a JPG format and close the file,
- Reopen the new JPG file in the graphics program,
- Save as a PNG file again,
- Reattach the new PNG file to your post,

Saved PDF document only consits of post content included images.
XML Save Options
Like Save as Text , there are same options to choose button type , image and to change string’s text.

This is an example of simple xml document which has saved from “About” page.
<?xml version="1.0" encoding="UTF-8" ?>
<upm-export>
<title>Example</title>
<link>http://example.com</link>
<description>Just another WordPress weblog</description>
<pubDate>Mon Jan 4 1:39:33 2010 / +0400 GMT</pubDate>
<generator>Universal Post Manager 1.0.5b [ www.ProfProjects.com ]</generator>
<language>en</language>
<item>
<title>About</title>
<link>http://example.com/?page_id=2</link>
<pubDate>Mon Jan 4 1:39:33 2010 / +0400 GMT</pubDate>
<guid isPermaLink="false">http://example.com/?page_id=2</guid>
<content-encoded>This is an example of a WordPress page, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many pages like this one or sub-pages as you like and manage all of your content inside of WordPress.</content-encoded>
<excerpt-encoded />
<wp-post_id>2</wp-post_id>
<wp-post_date>2009-11-14 00:27:22</wp-post_date>
<wp-post_date_gmt>2009-11-13 20:27:22</wp-post_date_gmt>
</item>
</upm-export>
Saving buttons
Here are saving and printing buttons which can be showen on posts and pages of blog.



UPM – Print Manager
Print Template Settings
Since UPM v1.0.3 we have included printing feature in this plugin . When you press on print icon or button , all content of your post or pages is included in print template . As you can see in admin-box there are six part of printing template which you can show or hidden in print document.

Print Buttons & Style
Here you can choose type of button icon/button , set button’s or icon’s image URL from different images ( if you want custom button or icon image you should put it in /wp-content/plugins/universal-post-manager/images/img/ folder and type image name in that input area ) , manage text of button’s “string” type and of course you can style print template adding css code in according input area.

UPM – Social Bookmarks
Social Bookmarks – Slider
With Universal Post Manager you can also share your post and pages by 30 Social Bookmarks . There are two screen type of social bookmark buttons , at first let’s introduce Bookmark Slider which is perfect and funny type of button’s appearance , this type of bookmarks buttons is very flexible to customize for different themes .
To use this type of bookmarks you should put this code <?php upm_bookmarks('type=slider') ?> in theme files , by default this function works according admin-box options which shown below , as you can see there are five options :
- Slider Item size – to choose size of bookmark images,
- Number of items to scroll by – number of bookmark images in one step of sliding ,
- Showing Bookmarks by start – to set bookmarks which will be shown at first,
- Excluded Bookmarks – to exclude some bookmarks from slider , by default all bookmarks are included in slider.
- Background Color – slider background color , for more particular customization you can use
/universal-post-manager/template/bookmarks_slider_h.phptemplate file .

Some usage roles about bookmark slider function.
- If you want to include this link more then one time in same page , you should use this code like this:
<?php upm_bookmarks('type=slider&SequenceNumber=1') ?>… etc.
<?php upm_bookmarks('type=slider&SequenceNumber=2') ?>
<?php upm_bookmarks('type=slider&SequenceNumber=3') ?> - You can customize Bookmark’s slider by all variables :
size - size of bookmark images,
BackgroundColor - slider background color,
ShowBookmarksNumber - number of bookmark images in one step of sliding,
SequenceNumber - if you want to include this link more then one time,
StartBookmarks - bookmarks which will be shown at first,
ExcludeBookmarks - exclude some bookmarks from slider. - Example #1:
<?php upm_bookmarks('type=slider&size=60&BackgroundColor=#FFFFFF&ShowBookmarksNumber=1&StartBookmarks=aim') ?>

- Example #2:
<?php upm_bookmarks('type=slider&size=32&BackgroundColor=#CCCCCC&ShowBookmarksNumber=7&StartBookmarks=google,linkedin,live,livejournal,magnolia,mixx,myspace') ?>

- Example #3:
<?php upm_bookmarks('type=slider&size=16&BackgroundColor=#FFFFB0&ShowBookmarksNumber=15') ?>

- Example #4:
<?php upm_bookmarks('type=slider&size=24&BackgroundColor=#FFF&ShowBookmarksNumber=14&StartBookmarks=facebook,myspace,twitter,digg,stumbleupon') ?>

- Example #5:
<?php upm_bookmarks('type=slider&size=60&BackgroundColor=#000&ShowBookmarksNumber=8&StartBookmarks=facebook,myspace,twitter,stumbleupon') ?>

Social Bookmarks – Normal
This type of bookmark button appearance is very popular and very easy to manage and use . For this you can choose type of bookmark link ( Text, Image, Text and Image ) and bookmark image size ( 16, 24, 32, 48, 60 ) , change link text , include or exclude some bookmarks by checking according checkbox .

This is an example of Normal type bookmark buttons:

To use this type of bookmarks you should put this code <?php upm_bookmarks('type=normal') ?> in theme files.
UPM – Email & Subscribe
Email This Post
This feature allows site visitors to notify their friends about that blog page or article by forwarding current link to friend’s email address. You can use “Email This” admin-box to manage this feature , there you can find options for Link text, Link image URL, Link type, Mark URL, Phrases which have been used in Email Window, Email Content and Screen Types.

To use the feature “Email This” you should put this code <?php upm_email() ?> in theme files. If you want to include this link more then one time in same page , you should use this code:
<?php upm_email(1) ?> <?php upm_email(2) ?> <?php upm_email(3) ?> … etc.
There are two type of Email window :


For more particular customization you can use
/universal-post-manager/template/email_screen_1.php
and
/universal-post-manager/template/email_screen_2.php
template files .
Sibscribe – RSS & Atom Feeds
This feature works on RSS or Atom feed base. A feed is a function of special software that allows feedreaders to access a site, automatically looking for new content and then posting the information about new content and updates to another site. This provides a way for users to keep up with the latest and hottest information posted on different blogging sites.
There are several different kinds of feeds, read by different feedreaders. Some feeds include RSS (alternately defined as “Rich Site Summary” or “Really Simple Syndication”), Atom or RDF files.
In this admin-box you can choose Link Type , custom or defined icons and change Link Text.

To use the feature “Sibscribe – RSS & Atom Feeds” you should put this code <?php upm_subscribe() ?> in theme files. For styling this link you can use /universal-post-manager/template/subscribe.php template file.

Hi,
I am getting error:
Warning: Invalid argument supplied for foreach() in /home/adyesha/public_html/wp-content/plugins/universal-post-manager/main.php on line 525
Not getting any menu related to UPM.
WP 2.8.5
UPM: 1.0.2
Please Help.
Adyesha Aditi
November 10, 2009 at 19:17
As far as I see it works fine [ http://adyesha.com/2009/11/bajaj-renault... ]
tomdever
November 10, 2009 at 19:39
I’ve just resolved the problem
You can enjoy Universal Post Manager without any problems
tomdever
November 18, 2009 at 14:37
Hi Tom
Many thanks for this plugin. It looks superb.
I’m most interested in the saving as HTML and saving as Word functions, particularly saving as Word. When saving as Word, I am experiencing an error, in these terms:
“Warning: Cannot modify header information – headers already sent by (output started at /home/[site name]/public_html/wp-content/plugins/universal-post-manager/template/save_as_word_document.php:211) in /home/codelex/public_html/wp-content/plugins/universal-post-manager/functions.php on line 271″
Do you know what might be causing that please?
Thanks again
Best regards
Richard
Richard
December 1, 2009 at 12:40
You should open your /wp-content/ plugins/universal-post-manager/template/save_as_word_document.php file and delete all break lines ( there are three ) after this code ( on line 280 )
</div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>’;
?>
tomdever
December 3, 2009 at 09:14
Hi:
I just upgraded to version 1.0.3. The ‘Print post’ feature now works very well. However, it seems that you changed how the ‘Save as Word doc’ feature works. In version 1.0.2, which was the one I was using before updating, clicking on the Word doc icon will open the post within the browser window, which I think is just perfect for those not using MS Word.
In version 1.0.3, clicking on the Word doc icon will prompt a ‘save as/open as’ dialog. I’m not using MS Word, so I do not know how it is affected, but in OpenOffice.org Writer, the images in the post are not displayed properly.
If you can, could you have another option in the Saving Manager to open the post as a Word doc in the browser window (as was the case in version 1.0.2)
Thanks for the time and effort that you are putting into coding this plugin.
Thanks.
finid
December 7, 2009 at 14:30
Hi
If you want to use 1.0.2 version of ‘Save as Word doc’ you should update your
/wp-content/plugins/universal-post-manager/template/save_as_word_document.phptemplate file to this file
http://profprojects.com/upm/save_as_word_document.zip
and keep it for next UPM updates.
tomdever
December 7, 2009 at 14:53
No problem I will do it soon in UPM 1.0.3b version .
tomdever
December 7, 2009 at 15:01
Just a thought. This plugin is already loaded, but if you can find the time to add ‘email this’ and social bookmarking/sharing features to it, then it would render lots of other plugins obsolete.
finid
December 8, 2009 at 02:11
Thank you , of course , I am going to do it soon .
tomdever
December 8, 2009 at 12:21
Thank you for the effort you are putting into this plugin. Just upgraded to 1.0.4b. Here are a few things I noted/suggestions:
1. I think it’s best if when a user clicks on the Word icon, that they be prompted to save the doc or open it with the appropriate locally installed application. This is how it works with the Text icon.
2. With the HTMl, images in a post are not shown.
3. The Print feature works just fine.
4. Images within a post are not shown when the Text icon is clicked.
5. Clicking on the PDF icon still returns this error message: FPDF error: Can’t open image file: http://linuxbsdos.com/wp-content/uploads/../pardus.png.
I am aware that you posted a workaround about this problem, but on a blog with hundreds of images, it would be tough to apply the fix.
6. On the admin menu, I think you should change the Setup entry to Uninstall, since that is the only thing one can do within that page.
finid
December 21, 2009 at 12:15
1. Good idea , thanks
2. This bug is depending on blogs and posts , more of them work fine , however I am going to try resolve that problem.
3.Thanks
4. In text file it is not possible to show post images , Save as Text file I’ve created only for post textual content.
5. About this error I’ve explained above under “Importent ! ( About PDF Error)” title,
here is that :
6. Ok .
Thank you very much for your care to UPM , I allways will glad to disscuss about bugs and new ideas .
tomdever
December 21, 2009 at 13:05
Hi tom,
) plugin.
thank you for your perfect (fast
All works fine, only i have troubles with pdf – umlauts (ä,ü,ö,etc). Where can i set right charset in pdf folder ? Other good plugin article2pdf show fine german´s article, but it doesn´t work with images on WPMU.
Cheers from germany and happy christmas
tom
tom
December 21, 2009 at 19:17
I’ve updated pdf functionality for all languages , i am going to add this update in UPM v1.0.4 , but if you need now , you should only download this file pdf.zip , unzip it and change your /wp-content/plugins/universal-post-manager/pdf.php file with downloaded file , and all of will work fine.
Thank you !
I also wish you great Christmas and Happy New Year !
tomdever
December 21, 2009 at 20:52
Big thanks tom – works like charm now. Only small notice : minibug in Name of Article
This page was exported from – Zugzwang82 (München)
right is (München).
Thanks again
tom
tom
December 21, 2009 at 21:46
No problem , I have updated it , try to download and change that file again .
[ pdf.zip ]
tomdever
December 21, 2009 at 22:41
Thank you for your perfect plugin (http://web64.net/zugzwang82/?p=1320&upm_export=pdf)
, it´s a really nice option for printing our own magazine for the chesscommunity
.
tom
December 22, 2009 at 00:46
I would like to post images (pfd) of documents in wordpress. For each doc I want to create 1-5 comment categorys that allows individuals enter their comments.
Does Universal Post Manager provide some of this functionality?
Can you provide a link that shows an example in WordPress of how your plugin works?
Thanks
Rod
Rod
December 25, 2009 at 21:18
I am sorry but UPM is not provide such functionality.
tomdever
December 26, 2009 at 14:11
Hi, Tomdever
Wish you are Merry Christmas and Happy New Year !
UPM is a great tool.
well, I encounter 2 problems.
Firstly, when I enable UPM on my website, it give me 2 warnings, such as:
Warning: array_keys() [function.array-keys]: The first argument should be an array in H:\Website\sites\class5\wp-content\plugins\universal-post-manager\functions.php on line 530
Warning: array_keys() [function.array-keys]: The first argument should be an array in H:\Website\sites\class5\wp-content\plugins\universal-post-manager\functions.php on line 592
Secondly, UPM seems cannot save tables within pages or posts.
I’ll appreciate it if you can give me a hand on those problems.
mekery
December 26, 2009 at 20:21
Let me know version of your UPM and WordPress .
tomdever
December 26, 2009 at 22:37
UPM: 1.4b
Wordpress:2.9
mekery
December 27, 2009 at 05:42
OK, thanks for information , I’ve just updated functions.php file of UPM v1.0.4b , you should download this file functions.zip , unzip it and change your
/wp-content/plugins/universal-post-manager/functions.phpfile with downloaded file . I will add this change in next versions of UPM and you can update it without any problems .tomdever
December 27, 2009 at 13:59
Great! It works!
Thanks a lot!
Well, I have a page which contains a table, UPM cannot save the table within it.
The page is: http://class5.mekery.cn/contactlist/view/
mekery
December 27, 2009 at 19:10
Thanks!
Hmm amazing !
If content of that post is this :
<div class="pfdirectory"><table border="1"><tbody><tr><th>姓名</th><th>Email</th><th>通信地址</th><th>手机</th><th>电话</th><th>主页</th><th>加入时间</th></tr><tr><td><a href="/contactlist/view/?user=admin" rel="nofollow">汤羽</a></td><td>yutang@uestc.edu.cn</td><td>电子科技大学主楼B1-202东</td><td>This is a test</td><td>028(61830683)</td><td></td><td>12-25-09</td></tr><tr><td><a href="/contactlist/view/?user=mekery" rel="nofollow"></a></td><td>mekery@vip.qq.com</td><td></td><td></td><td></td><td></td><td>12-26-09</td></tr></tbody></table></div>I’ve just created such post and tested on my local machine , it works fine , I think something wrong with that post content , I need some answers :
1) Let me know , is it post or page ?
2) Can you copy of that post content from Admin Panel->Edit Post Or Admin Panel->Edit Page content area as HTML code and put it here in <code></code> tags.
tomdever
December 27, 2009 at 20:13
Thanks a lot!
1) It’s a page
sorry, I forgot to say, the table content within that page was created by a plugin, which named Profiler, http://wordpress.org/extend/plugins/profiler/
2) The page is a blank page
mekery
December 27, 2009 at 22:19
Ok I am understanding now .
I am sorry but UPM works with post content , it can’t get post content which created dynamically by “Profiler” plugin .
You can turn off Saving Manager for Pages ( UPM General Settings ) , it can works only for Blog Posts .
tomdever
December 27, 2009 at 22:53
This is a nice post… is usefull for my site!nice job.
Link Discover
January 29, 2010 at 03:56