WP Digi Clock Plugin - Folder and file permissions

Date: 11th January 2008 at 2:27 am | Filed under: development, plugins, wordpress | Author: Sam Burdge

I have recently received emails from a couple of users of my {{post id="wp-digi-clock-plugin-10-new-version" text="WP Digi Clock Plugin"}} who have been unable to update the clock's settings via the Digi Clock options page in WordPress. Unfortunately I do not have time to give individual support for my free plugins as I am too busy building sites, earning a living etc. However, I think the reason some of you have been having trouble is due to file/folder permissions on your server. When you update the clock's options the wp-clock-params.php file for the clock is updated (this file stores your clock settings), if the permissions for the file, and the digi-clock folder itself are not set correctly it will not be able to update.

The permissions should be set as follows:

wp-digi-clock (folder) – 755
wp-clock-params.php (file) – 644

Here is a brief explanation of file and folder permissions on a unix server:

The three user types are:

  1. user - the user (the owner of the file or directory), who you are on the system is determined by username and password at login time
  2. group - a group of users, e.g.: administrators, plain users, etc.
  3. world - anyone else, e.g: anonymous users or anyone who is not the owner, or of the same group as the owner, of the file or directory

The three access types are:

  1. read - the file or directory can be read
  2. write - the file or directory can be written to, or deleted
  3. execute - the file (scripts or executables) can be run, or the directory can be entered

To set permissions, in the simplest form, you use a three digit code: the first digit represents the access given to the user, the second digit represents the access given to the group, the third digit represents the access given to the world. The values that make up each access type are:

4 = read
2 = write
1 = execute

To apply more than one type of access to a user type, simply add the values together to get access permissions of the desired types:

7 = read, write & execute (4 + 2 + 1)
6 = read & write (4 + 2)
5 = read & execute (4 + 1)
4 = read
3 = write & execute (2 + 1)
2 = write
1 = execute

Putting together these digits determines the 3-digit permission code that makes up the file's permissions.
E.g. User: read, write & execute (7) + Group: read & execute (5) + World: read & execute (5) = 755.

2 Responses to “WP Digi Clock Plugin - Folder and file permissions”

  • Comment by Harry
    Date: October 26th, 2009 at 8:18 am

    Hello,
    Thanks for the plugin. According to the document
    the code to be put in the page/post is - , but for some reason it doesn’t work for me. Looking at the code int he .php file I added ($cl_id) inside the bracket and worked perfect.

  • Comment by Vector-9
    Date: October 29th, 2010 at 6:53 pm

    Hello Sam,
    I can’t seem to figure out why I can’t find the digiclock on my blog. I’m using wordpress 3.01, and I can see the digiclock settings on the settings tab. It would be great if you could give me some ideas. Thanks.

Leave a Comment

WP Digi Clock Plugin (1.0) - New Version!

Date: 4th December 2007 at 10:18 pm | Filed under: development, flash, plugins, wordpress | Author: Sam Burdge

This easy to use plugin will embed a flash digital clock into your wordpress blog, either in a post or page, or within your blog's template (in the sidebar / header / footer etc.). The background and font colours are managed via the options menu. The clock can display the time as set on the user's local machine or as set by your web server with an optional offset. It also has options for 12hr and 24hr clock.

Installation:

  1. Download the plugin file here: WP Digi Clock Plugin (1.0)
  2. Upload the wp-digi-clock folder to your wp-content/plugins folder
  3. Activate the plugin from the plugins page
  4. Go to Options -> WP Digi Clock to choose your colour scheme and time format options

Usage:

To embed in a post or page:

type in [ wp_digi_clock ] (removing the spaces) anywhere in a post or page.

to embed in your page template (header, footer, sidebar):

use the function wp_digital_clock($x), with $x being a number or identifier for example:

<h2>TIME</h2>
<li><?php wp_digital_clock('1'); ?></li>

5 Responses to “WP Digi Clock Plugin (1.0) - New Version!”

  • Comment by Mat
    Date: June 2nd, 2008 at 7:28 pm

    thanks for making a great clock.

    is there a way to change the font size?
    thanks again!

  • Comment by BJJ
    Date: January 15th, 2009 at 1:44 am

    Awesome clock! But the clock is not working in my sidebar? I used a text widget and embedded your code:

    Please help

  • Comment by Sam Burdge
    Date: January 15th, 2009 at 11:39 pm

    Hi BJJ
    Did you double check the plugin had installed correctly? Are you seeing the WP Digi Clock options page in wordpress? If so is the example clock on that page working?
    Sam

  • Comment by Frigate
    Date: May 12th, 2009 at 3:20 pm

    had to edit the params php manually as was getting permission denial but just what I was looking for, perfect - thanks

  • Comment by Kym
    Date: November 3rd, 2009 at 9:51 pm

    I see this link in my 404 logs:

    wp-content/plugins/wp-digi-clock/201a.js

    but the file is there.

Leave a Comment

WP Digi Clock Plugin (0.1BETA)

Date: 19th October 2007 at 10:48 pm | Filed under: development, flash, plugins, wordpress | Author: Sam Burdge

A NEW VERSION OF THE PLUGIN HAS BEEN RELEASED!! Please follow this link: {{post id="wp-digi-clock-plugin-10-new-version" text="WP Digi Clock Version 1.0" target="_self"}}

[wp_digi_clock]This easy to use plugin will embed a flash digital clock into your wordpress blog, either in a post or page, or within your blog's template (in the sidebar / header / footer etc.). The background and font colours are managed via the options menu. The clock displays the time as set on the user's local machine. Server time and timezone offsets will be a feature of version 1 when it is released. For now please try it out and let me know of any issues etc. by commenting on this page.

Installation:

  1. Download the plugin file here: Follow the link at the top of this page to get the new version!!
  2. Upload the wp-digi-clock folder to your wp-content/plugins folder
  3. Activate the plugin from the plugins page
  4. Go to Options -> WP Digi Clock to choose your colour scheme

Usage:

To embed in a post or page:

type in [ wp_digi_clock ] (removing the spaces) anywhere in a post or page.

to embed in your page template (header, footer, sidebar):

use the function wp_digital_clock() for example:

 
<li>
<h2>TIME</h2>
</li>
<li><?php wp_digital_clock(); ?></li>
 

9 Responses to “WP Digi Clock Plugin (0.1BETA)”

  • Comment by chris
    Date: November 2nd, 2007 at 11:16 pm

    when trying to change the color, what numbers correspond with what color? is there any info on this?

  • Comment by Sam Burdge
    Date: November 2nd, 2007 at 11:23 pm

    Hi, as this is the very first release I haven’t had a chance to integrate the colour picker. Basically it works by hex codes e.g: #ffffff = white, #000000 = black. For a full list of colour codes you can visit: webmonkey

  • Comment by Hien
    Date: November 3rd, 2007 at 5:14 am

    Hi Sam:

    Just tried out you Digi Clock plugin (0.1BETA). Its a snap to use. I know that you probably have plans for other features so I won’t make any unreasonably unbearable requests. There is only one thing I’d like to bring to light… non-military time. The plugin, works great with my site color scheme right out of the box. I didn’t even have to change a thing. Thanks!

  • Comment by Shawn
    Date: November 5th, 2007 at 8:30 pm

    Hi Sam.. looks good.
    I would love, however, a “countdown” feature…
    allowing us to put a clock widget on the sidebar with a configurable title to provide countdown clocks .. ie.. “Time until election day”, “Time until vacation”, etc

  • Comment by Sam Burdge
    Date: November 5th, 2007 at 9:01 pm

    Hi Shawn, the closest thing I could find is this plugin: Countdown

  • Comment by Afzal Javed
    Date: November 6th, 2007 at 7:32 pm

    I still don’t know how to change the back ground color. Please let me know in which line of plugin-code should I change the code.

  • Comment by Sam Burdge
    Date: November 6th, 2007 at 9:42 pm

    Hi Afzal,
    In the options menu in wordpress you should see the tab for WP Digi Clock. Go to the WP Digi Clock options page and enter hex color codes for the background and text colours. If you dont see the colours change at first, try emptying your browser’s cache. Hope this helps…

  • Comment by WordPress 插件集锦系列 1-50套 « wordpress 非官方中文站——助力中文wordpress
    Date: May 2nd, 2009 at 3:07 am

    [...] WP DigiClock 在你的 WordPress 博客中,文章或者侧边拦,或者模板(侧边拦,页眉,页脚等)里面添加数字时钟。 [...]

  • Comment by aljuk
    Date: August 11th, 2010 at 3:21 pm

    Plugin is broken in WP3. Options don’t function, plugin doesn’t display. What a pity.

Leave a Comment

wp plugin - remove www. from url

Date: 18th October 2007 at 6:11 pm | Filed under: development, plugins, wordpress | Author: Sam Burdge

A slight variation from my previous wordpress plugin 'Force www. in URL'.

This plugin removes the www. from the url regardless of what the user has typed or the link they have followed.This type of redirection is usualy done by altering the .htaccess file, which some Wordpress users may not have access to. Using a plugin to do this is an easy solution for WordPress users as the setup process is simple, and will be familiar to most of you.

Instructions:

  1. Download the plugin file here: Remove www. Plugin (rar) | Remove www. Plugin (zip)
  2. Upload the php file into your plugins folder (/wp-content/plugins/)
  3. Go to your plugins page in WordPress and activate the plugin

Read on…

3 Responses to “wp plugin - remove www. from url”

  • Comment by Wouter
    Date: September 22nd, 2008 at 11:12 am

    Do you know how to undo this plugin? After activating this plugin I can’t login to my wp-admin anymore. I have Wordpress 2.6.2. When I try to go to wp-admin or wp-login.php it redirects me to http://nl../wp-admin instead of http://mydomain/wp-admin

  • Comment by Wouter
    Date: September 22nd, 2008 at 11:20 am

    By deleting the remove-www.php file my wp-admin works again so problem solved ;)

  • Comment by sandrar
    Date: September 10th, 2009 at 9:45 pm

    Hi! I was surfing and found your blog post… nice! I love your blog. :) Cheers! Sandra. R.

Leave a Comment

wp plugin - force www. in url

Date: 12th October 2007 at 6:21 pm | Filed under: development, plugins, wordpress | Author: Sam Burdge

This nifty little WordPress plugin will force the url to include the 'www.' part of the url string. Useful if you want your address to be displayed in a particular way regardless of how the user types it in. To see how it works delete the www. from your address bar (i.e. http://samburdge.co.uk) and press return. This type of redirection is usualy done by altering the .htaccess file, which some Wordpress users may not have access to. Using a plugin to do this is an easy solution for WordPress users as the setup process is simple, and will be familiar to most of you.

Instructions:

  1. Download the plugin file here: URL to Full URL Plugin (rar) | URL to Full URL Plugin (zip)
  2. Upload the php file into your plugins folder (/wp-content/plugins/)
  3. Go to your plugins page in WordPress and activate the plugin

Read on…

7 Responses to “wp plugin - force www. in url”

Leave a Comment