Wordpress plugins – jenst.se https://www.jenst.se En WordPressblogg till Sat, 31 Aug 2024 06:06:05 +0000 sv-SE hourly 1 WP Update Message https://www.jenst.se/2009/06/18/wp-update-message/ https://www.jenst.se/2009/06/18/wp-update-message/#comments Thu, 18 Jun 2009 13:31:45 +0000 http://www.jenst.se/?p=401

Uppdaterad: 2010-01-07

This post has not been updated yet, but I just wanted to show you how WP Update Message works. This is an update message box.

What is this?

Add a short note about the latest changes in the current post or page. Activate it and it work instantly. All the settings are optional.

Info and download

wp-admin – Update message box

This box is placed when editing a post or a page.

Update message box

wp-admin – Settings / Options

If you are not sure about a setting, just leave it and it will use the default value.

Update Message Admin

Settings explained

Published date format

The date the post or page was published for the first time. It uses the same parameters as PHP date. For example, to display a date like this ”2009-07-12, 18:10” would look like this:

Y-m-d, H:i

Updated date format

The date the post or page was updated last. It uses the same parameters as PHP date. For example, to display a date like this ”2009-07-12, 18:10” would look like this:

Y-m-d, H:i

Position

Where the update message box should be placed. You can choose by top, bottom, both or none.

Free position

If you don’t want to place the update message box by the predefined positions you can place it on your own. Select ”none” as position above. Then use the code below in your template:

<?php update_message_box(); ?>

It works only inside the loop.

HTML

If you want the box to look different you can write your own HTML. These will be replaced in the HTML code in your post / page:

  • %pd% = Published date
  • %ud% = Updated date
  • %ut% = Updated text

New row replacement

Even if a new row is inserted in HTML, it will not be displayed as a new row.

The default way to solve this is to close the paragraph-tag and start a new one when a new rows accurs. Another way could be to use ”<br />” instead. It’s your choice.

Style themes

You don’t have to be a programmer to use WP Update Message. There are themes to choose from. Hopefully some of them will fit your site.

If you want to style the update message box yourself, just set style theme to ”none” and add the style data into your theme style.css.

Save settings

Save your settings into the database. If you don’t save anything WP Update Message will use all the default values.

Delete settings

It removes the saved settings from the database. You can use it if you want to remove this plugin.

Style themes to choose from

The CSS style themes below are included from start and are available in wp-admin->Settings->Update message.

WP Update Message preview

Support this plugin

There are more than one way you can support this plugin.

  • Use it.
  • Report bugs. I read every comment even if I don’t always reply.
  • Spread the word.
]]>
https://www.jenst.se/2009/06/18/wp-update-message/feed/ 11
WP Simple Sitemap https://www.jenst.se/2008/03/30/wp-simple-sitemap/ https://www.jenst.se/2008/03/30/wp-simple-sitemap/#comments Sun, 30 Mar 2008 17:58:29 +0000 http://www.jenst.se/?p=189 A sitemap is good for users and perfect for search engines. WP Simple Sitemap is a WordPress plugin that automatically lists all your posts with a page number navigation. Other sitemap plugins that I’ve tested displays categories and a link to their own homepage which I didn’t like, so I created my own.

Info and download

Screenshot

WP Simple Sitemap Screenshot

Benefits of this sitemap plugin

  • It will not display a link to my homepage in your blog
  • It will not display any categories, just the posts
  • If you already use WP Page Numbers that will be used as your page navigation
  • It should work with most versions of WordPress because it’s built only around WordPress own functions (not with SQL-querys)

Options

  • Set a maximum posts per page
  • Set a text if no posts are found
  • Exclude categories that you don’t want to view in the sitemap
  • Theme chooser
  • Turn off the the stylesheet if you want
  • Delete sitemap settings from the database

Install

  1. Upload the FOLDER ‘wp-simple-sitemap’ to the ‘/wp-content/plugins/’
  2. Upload the FOLDER ‘wp-page-numbers’ to the ‘/wp-content/plugins/’
  3. Activate the plugin ‘WP Simple Sitemap’ through the ‘Plugins’ menu in admin
  4. Activate the plugin ‘WP Page Numbers’ through the ‘Plugins’ menu in admin
  5. Go to ‘Options’ or ‘Settings’ and then ‘Simple Sitemap’ to change the options

Usage

  1. You need to create a page template that looks something like this:
    <?php
    /*
    Template Name: Simple Sitemap
    */
    ?>
    
    <?php the_sitemap_post_counter(); ?>
    <?php wp_simple_sitemap(); ?>
  2. Copy the tags you use in your ‘page.php’ into the template file, to make it fit your theme
  3. Upload it to your server via FTP into your template folder with a name of your choice
  4. Create a page ‘Write / Page’ called ‘Sitemap’ or whatever you want
  5. Choose your ‘Page Template’
  6. Publish

Updates 0.2

  • Added sitemap themes
  • Added feature to delete the settings from the database
  • The sitemap post counter is now correct

Bug report

If you have found a bug I want to know about it so I can fix it.

  • Tell me your version of WP Simple Sitemap, WordPress version and what browser you use.
  • If you suspect a collision with another plugin, tell me what plugin you suspect, or a list with suspected plugins
  • Have you tested this plugin on another WordPress-version and can confirm that it works? Let me know!

Contribute

The best way to contribute is to spread the word, link to this page, blog about WP Simple Sitemap or give me feedback. All kinds of feedback are helpful to me. Suggestions and bug report are also welcome.

]]>
https://www.jenst.se/2008/03/30/wp-simple-sitemap/feed/ 20
WP Page Numbers https://www.jenst.se/2008/03/29/wp-page-numbers/ https://www.jenst.se/2008/03/29/wp-page-numbers/#comments Sat, 29 Mar 2008 17:44:59 +0000 http://www.jenst.se/?p=187

Uppdaterad: 2010-01-07

Version 0.5 released. Mostly bug fixes.

I made a paging navigation plugin for WordPress that will be an alternative to the ”Next page” and ”Previous page”. Instead it uses numbers which makes it easier for users to choose what page to go to. It also makes a tighter internal link structure which makes it easier for search engines to find your posts.

Info and download

Themes to choose from

WP Page Numbers themes

All the 5 themes are included from start and are available in admin.

Screenshot

This is what it looks like if you don’t change anything (default paging theme):

Paging

You can also try it out as a live demo at the bottom of my blog.

Options

  • You can set all the texts and arrows to what ever you want
  • You can limit the number of pages shown at the time
  • You can create paging stylesheets themes (if you don’t want to overwrite the default theme)
  • You can turn off the stylesheet
  • You can turn off the page information (page 3 of 5)
  • You can turn off the page numbers
  • You can turn off the first and end page numbers
  • You can turn off the arrows

Updates 0.3 – 0.5

  • Fixed bug with page numbers disappearing
  • Added optional start and end code link wp_page_numbers($start, $end)
  • Changed get_blog_info(url) to get_blog_info(wpurl)
  • Changed get_settings (deprecated) to get_blog_info (bugfix)
  • Added missing echos, which should fix the URLs to the preview images in admin
  • Fixed 0 … 1 problem by checking if the page is front page or archive

Updates 0.2

  • Put some ”reset”-code into the themes stylesheet to make the navigation bar look correct in all themes
  • 5 WP Page Numbers themes to choose from
  • Some layout changes in admin

Install

  1. Upload the FOLDER ‘wp-page-numbers’ to the /wp-content/plugins/
  2. Activate the plugin ‘WP Page Numbers’ through the ‘Plugins’ menu in admin
  3. Go to ‘Options’ or ‘Settings’ and then ‘WP Page Numbers’ to change the options

Usage

  1. Replace the the ‘next_posts_link()’ and ‘previous_posts_link()’ with the code below in theme (archive.php, index.php or search.php). If you can’t find it, place it between endwhile; and endif; in your theme.
  2. <?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?>

Advanced usage

This plugin uses only WordPress own string values, no own SQL-querys is written. That means that you can use this plugin for more advanced use.

Example: You have a page which contains the query_posts() function and a loop to get some posts into the page. In that case you can use WP Page Numbers (see usage). If the posts are less than what is set in admin, the navigation will be hidden.

Contribution from users

Known issues

  • WP Page Numbers count wrong sometimes – Very high priority
  • Odd permalink structure makes the page numbers link wrong – High priority

Suggested features

These features could be included in future versions of WP Page Numbers.

  • Option to center the page numbers – Normal priority
  • Change the containing ID to an containing class to make the page validate with multiple page number sets – High priority
  • Localizable WP Page Numbers for different languages – High priority

Bug report

If you have found a bug I want to know about it so I can fix it.

  • Tell me your plugin version, WordPress version and what browser you use.
  • If you suspect a collision with another plugin, tell me what plugin you suspect, or a list with suspected plugins
  • Have you tested this plugin on another WordPress-version and can confirm that it works? Let me know!

Contribute

The best way to contribute is to spread the word, link to this page, blog about WP Page Numbers or give me feedback. All kinds of feedback are helpful to me. Suggestions and bug report are also welcome.

]]>
https://www.jenst.se/2008/03/29/wp-page-numbers/feed/ 404
WP ShowHide Elements https://www.jenst.se/2008/01/31/wp-showhide-elements/ https://www.jenst.se/2008/01/31/wp-showhide-elements/#comments Thu, 31 Jan 2008 17:27:09 +0000 http://www.jenst.se/?p=184 Adds a Javascript for you to hide or show what ever ID you want, with a mouse click. You need to add some code to your theme to make it work. With this you can create dynamic menus that can easily be hidden or shown.

Install

  1. Upload the FOLDER ‘wp-showhide-elements’ to the /wp-content/plugins/
  2. Activate the plugin ‘WP ShowHide Elements’ through the ‘Plugins’ menu in admin

Usage

  1. Create a div to show / hide. Add an ID and name it whatever you want.
  2. Create a anchor and add the ID of your div into wp_show() function.
<p id="mytest">my text</p>
<a href="javascript:void(0);" onclick="wp_showhide('mytest')">my link</a>

Possible future upgrades

  • Support for multiple elements to be closed in one click
  • Choice on what specific pages to include the Javascript

Bug report

If you have found a bug I want to know about it so I can fix it.

  • Tell me your version number, WordPress version and what browser you use.
  • If you suspect a collision with another plugin, tell me what plugin you suspect, or send me a list with suspected plugins
  • Have you tested this plugin on another WordPress-version and can confirm that it works? Let me know!

Known bugs

  • No bugs reported so far

Contribute / Feedback

The best way to contribute today is to spread the word, link to this page, blog about WP ShowHide Elements or give me feedback. All kinds of feedback are helpful to me. Suggestions and bug report are also welcome.

]]>
https://www.jenst.se/2008/01/31/wp-showhide-elements/feed/ 28
WP YouTube 2 https://www.jenst.se/2008/01/13/wp-youtube-2/ https://www.jenst.se/2008/01/13/wp-youtube-2/#comments Sun, 13 Jan 2008 16:21:26 +0000 http://www.jenst.se/?p=166 WP YouTube is a free WordPress plugin that makes your YouTube videos easier to publish. You don’t need to make the effort to paste the whole embed-code. All you need the video ID, the rest is handled by WP YouTube.

WP YouTube now supports a profile editor, where you can set up different settings, but only one profile is needed for all your YouTube videos. Then it automatically set the colors, borders, width, height and more. Easy to use!

  • Download: WP YouTube 2
  • Last updated: 2008-01-13
  • Version: 2.0
  • Tested with: 2.3-2.5

Screenshots

WP YouTube 2

WP YouTube 2

Install

  1. Upload the FOLDER ‘wp-youtube’ to the /wp-content/plugins/
  2. Activate the plugin ‘WP YouTube’ through the ‘Plugins’ menu in admin
  3. Go to ‘Manage / YouTube Profiles’ for more instructions

Upgrade

  1. Deactivate ‘WP YouTube’ through the ‘Plugins’ menu in admin
  2. Remove the file ‘wp-youtube.php’ from /wp-content/plugins/
  3. Upload the FOLDER ‘wp-youtube’ to the /wp-content/plugins/
  4. Activate the plugin ‘WP YouTube’ through the ‘Plugins’ menu in admin
  5. Go to ‘Manage / YouTube Profiles’. Your previous options should be imported.
  6. ‘Save Profiles’ to use / save your imported data.
  7. Go to ‘Manage / YouTube Profiles’ for more instructions

Updates 2.0

  • Totally rewritten from the scratch to make way for a new profile editor
  • Profile editor created. You can use different profiles in your posts or pages, for example if you have the need to use different colors.
  • Because of the profile editor, each profile is more compact to take a little less space on the screen
  • Javascript is now required to use WP YouTube admin. Because of the Javascript the plugin is very fast to use.
  • Preview of your YouTube player, shows colors and border settings
  • You can paste a function code in your theme and that way use settings from a profile. If you are into theme creation this might be a good thing.
  • You can remove profiles, all or one at the time
  • If you have used a previous version of WP YouTube, that data is imported (save required).
  • The menu is moved to ‘Manage / YouTube Profiles’ simply because you manage YouTube profiles.
  • Option to remove old WP YouTube data from database
  • Option to remove WP YouTube 2 data from database, if you need to uninstall this plugin.

Possible future updates

  • Support for other video formats
  • Support for higher quality videos
  • Custom pick color on the player
  • Random color on the player
  • Quicktag in post / page editor
  • Possible to include Youtube videos into optional excerpt

Bug report

If you have found a bug I want to know about it so I can fix it.

  • Tell me your WP YouTube version, WordPress version and what browser you use.
  • If you suspect a collision with another plugin, tell me what plugin you suspect, or a list with suspected plugins
  • Have you tested this plugin on another WordPress-version and can confirm that it works? Let me know!

Known bugs

  • This plugin makes a collision with wpShopping Cart plugin if that is installed. It will not parse the code, just show the YouTube ID and the tags.

Known collisions with other plugins

  • wpShopping – not verified yet

Contribute / Feedback

The best way to contribute today is to spread the word, link to this page, blog about WP YouTube or give me feedback. All kinds of feedback are helpful to me. Suggestions and bug report are also welcome.

]]>
https://www.jenst.se/2008/01/13/wp-youtube-2/feed/ 88
WP Limit Posts Automatically https://www.jenst.se/2007/12/03/wp-limit-posts-automatically/ https://www.jenst.se/2007/12/03/wp-limit-posts-automatically/#comments Mon, 03 Dec 2007 16:00:34 +0000 http://www.jenst.se/?p=164 Is there a way to limit posts in WordPress? You can always use the more-tag and if you use it you can manually insert a break-point to cut your posts where you like. What if you want to do it automatically? Then this plugin is the answer. You can choose where it should limit your posts (home, category, archive and search). You also have some other features, for example to choose the limit method (cut by letter, word or paragraph).

Screenshots

Limit Post Options

Limit Post Automatically

Install

  1. Upload wp-limit-posts-automatically.php to the
    /wp-content/plugins/wp-limit-posts-automatically directory.
  2. Activate the plugin WP Limit Posts Automatically through the ‘Plugins’ menu in WordPress.
  3. Go to ‘Options / Limit Posts Options’ for options and more instructions.

History

Why did I make this? I almost always forgot to put a more-tag into my posts and at first I created some quick fix for it at my own website. At the time I didn’t found any good plugin for it. I still havn’t found the perfect plugin for this so I created my own.

Updates 0.7

  • Updated with a new option, ”strip tags” to avoid code errors when cut through letter or word.
  • Added a little usage section

Updates 0.5

  • Fixed bug with paragraph tag sometimes ended incorrectly (because of the cut).

Updates 0.4

  • Fixed bug with ajax category problem.
  • Fix collision to WP YouTube plugin

Contribute / Feedback

The best way to contribute is to spread the word, link to this page or give me feedback. All kinds of feedback are helpful to me. Have you tested this plugin on another WordPress-version and can confirm that it works? Let me know. Suggestions and bug report are also welcome.

]]>
https://www.jenst.se/2007/12/03/wp-limit-posts-automatically/feed/ 99
WP YouTube https://www.jenst.se/2007/11/01/wp-youtube/ https://www.jenst.se/2007/11/01/wp-youtube/#comments Thu, 01 Nov 2007 15:23:44 +0000 http://www.jenst.se/?p=162 What about a free plugin that makes your YouTube videos easier to publish? Whether you use WordPress as a blog or as a CMS this plugin helps you to present your YouTube videos without the effort to paste the whole embed-code. You only need the video ID, the rest is handled by WP YouTube. It also features YouTube options , for you to control all the YouTube videos at the same time. Then it automatically set the colors, borders, width and height.

Screenshots

WP YouTube

WP YouTube Post

Install

  1. Upload wp-youtube.php to the /wp-content/plugins/wp-youtube directory.
  2. Activate the plugin WP YouTube through the ‘Plugins’ menu in WordPress.
  3. Go to ‘Options / WP YouTube’ for options and more instructions.

Updates 0.9

  • New feature – ”Tag type” added
  • Fix – Autoplay bug fixed
  • Fix – Stylesheet code removed, it wasn’t used anyway

Updates 0.8

  • New feature – ”Autoplay” option added
  • New feature – ”Include related videos” option added
  • New feature – ”Valid XHTML code” option added
  • Fix – Width and height was switched
  • Fix – The ”Tag name” is now set to default value even if options is never updated
  • Fix – Some visual enhancements to the instructions part
  • Fix – The support link is changed and goes now directly to WP YouTube

History

Why did I make this? I’m developing a video-site when this is written and got tired of pasting and editing the embed code. After about 30 posted YouTube-videos I wanted to change the width of the site and there by the width of every movie-clip. What if I could do that in just one place, in one simple setting? I made a plugin to manage that. I figured that my plugin could be used for more than just change the width and height. YouTube videos have support for colors and borders and I brought that into the plugin as well.

Known bugs

  • Calling a stylesheet that does not exists (most users don’t even notice)
  • Autoplay don’t work if ”Valid XHTML code” is not set

Contribute / Feedback

The best way to contribute is to spread the word, link to this page or give me feedback. All kinds of feedback are helpful to me. Have you tested this plugin on another WordPress-version and can confirm that it works? Let me know. Suggestions and bug report are also welcome.

]]>
https://www.jenst.se/2007/11/01/wp-youtube/feed/ 91