August 18, 2010
by Mark Wilkinson in WordPress Tags: Attachments, Redirection, Uploads
This problem has been bugging me for a while now and finally I have managed to find a fix that seems to work well. The problem being that clients, when linking to something they have uploaded to a page or post never click the ‘File URL’ for the link, instead leaving it on ‘Post URL’ which causes problems. Here is how I fixed it.
When clients forget to click the File URL button it means that when they click on a link, instead of being show the file that they think they are linking to they are shown the post that WordPress creates for that attachment. If the attachment is an image this not a major issue as you can include a custom image.php file in your theme folder and make that page looks nice. However if the link is to a PDF for example the user is simply presented with another post with the same link in that they just clicked on. Worse still is that if the author has not added a title tag to the attachment they will see an ugly link.
More…
August 16, 2010
by Mark Wilkinson in WordPress Tags: Logged In, Protection
Since WordPress has its own built in user roles it is possible to protect WordPress content for users that are logged in, rather than general visitors. This can be very handy if you want to show certain things only to those people who are logged in. In this post I will show you how to implement this as well as showing you an example.
Thanks to WordPress’ comprehensive template tags the function to test whether or not a user is logged in or not is already present. By combining this function with a php if statement we can check whether the user is logged in and then display something accordingly.
More…
August 14, 2010
by Mark Wilkinson in Tutorials, WordPress Tags: Clients, Development Logs, Multisite, Projects
Over at Equal Web Creative I have recently introduced the use of client development logs so that clients can keep a track of the progress on their sites and so that you can communicate more effectively with clients during a project. In order to implement this I have used WordPress as a multisite installation as well as a few themes and plugins. Here I intend to explain how I have produced this.
To start with your will need to install a copy of WordPress onto your server and then activate the multisite capabilities of WordPress. To do this I followed the excellent tutorial below:
More…
August 13, 2010
by Mark Wilkinson in General
I would like to welcome you all to the long overdue new blog of Mark Wilkinson – equalmark.net. It has been a while since I have done some serious blogging but I really want to get back into it over the coming months, to post some of the many things that I have been doing over the last few months in particular.
For a long time I blogged over at penny4them.com. On that blog (designed by me) you will find all sorts of posts about anything and everything. So why move the blog over to this new site and start a fresh you might be saying? Well that is an excellent question so let me try and answer.
More…
August 8, 2010
by Mark Wilkinson in Tutorials Tags: CSS, HTML, Images
When using the CSS hover selector and using background images, these however background images do not load when the page loads, only when they are called on hover and as a result give a delay before the image is displayed. In this post I will explain how I get around this problem using some simple ideas with HTML and CSS.
Hover selectors are always a good idea to use as they give the user an indication of which link they are currently over and about to click. In some more complex designs, perhaps where there are images of buttons in the navigation rather than just text, you will need to assign these as background images. It is often the case that the background image needs to change when the user hover over the button and therefore you assign a different image to the :hover part of your CSS.
More…