Post revisions, a WordPress 2.6 and beyond feature, can be very useful, but they also increase the size of your MySQL database. Sure, you can manually delete posts revisions, but that’s very long and boring work. (Now I don’t know about you but that just does not sit well with me.)
The solution to this problem is simple: we can delete post revisions in a few seconds by using a simple SQL query. The result can be almost unbelievable if you have a lot of posts: Your database size will be reduced by half!
Continue Reading ->
Ok, this is not your regular seasoning of salt here. I am not talking about putting salt on your chips nor am I talking about putting salt in your computer either. (If you do by any chance please let me know in the comments because I could do with a laugh.)
Salt as we know it is something that we add to something else to make it taste better. With PHP we are not far from that same point of principle as we are adding salt to something to make it better or infact more secure because security itself is becoming more complex. Not only can you not rely on your users to choose secure passwords but you can not rely on tradditional means of password hashing either.
Continue Reading ->
Ok, so I dont know about you but when I develop PHP Applications I tend to find myself having to create forms for users/customers to fill in. Most online applications developed are for a worldwide audience. So having a field that displays your country location is vital.
I know I for one dont like having to create this table and add all the entries to the table manually. So I thought why not share with the worldwide community of coders a structure for a table that will enter all the country names for you. This will allow you to insert this list into any database you desire and then call upon that table list to display within your forms.
Continue Reading ->
I have come accross coders who want to know a simple solution to stop users from using the back button to resubmit data if they have made a mistake. Now I have plenty of solutions for this situation but they would depend on your current system in place such as; do you require a user to login? Does your system create sales order numbers? and many more questions.
So to keep it simple I will assume that you basically have a form that anyone in your company can use to submit an order which reduces the amount of stock you hold. This would simply be a system that monitors the amount of stock you have and nothing else.
Continue Reading ->
Earlier this morning I recieved a phone call from one of my friends stating that he has a hosting account setup and his website is running fine with no issues. His web host provides a page counter script which is supposed to log all your current page loads using their snippet but then as I quote he went on to say this:
The bloody thing dont work for me. I contacted my host and they said nothing was wrong with their code snippet so it must be my coding which is stopping this from happening. Are they right? can you help me out as you did the site for me?
Continue Reading ->
I am back again with another post about the great Xcel Gaming project called ClanCMS. You can view my previous post by clicking Email admin on registration.
Recently Xcel Gaming released a great update that allows is ClanCMS users to display not only one sidebar column but two. Originally the website cms has a left sidebar for widgets but since many users were asking for another sidebar on the right Xcel Gaming decided to code this addition especially for its users. (Which is way over a thousand now by the way.)
Continue Reading ->
RSS you say? if you dont know what RSS is then I suggest you checkout the history on this great invention via the wiki first of all otherwise lets get going. Dont worry if you need to check the Wiki first because I promise I will wait right here for you.
RSS feeds are a fantastic way of sharing your updated content with your viewers. Sure, you might say to me that most CMS systems have built in RSS Feed generators and I would agree with you but lets face it, there are still plenty of custom made systems out there that require you to create a custom RSS feed.
Continue Reading ->
Recently on the DevNetwork I came across a post that stated default values were appearing within his text fields on his user login form even though his coding was not set to add any default values.
This striked me as an interesting issue that I am sure many people have experienced yet so many people know about it or realise that by understanding this little issue you could save money for not having to buy more painkillers.
Continue Reading ->
I have been hanging around a relatively new project just recently called the ClanCMS Project created by Xcel Gaming. The script is released free of charge for everyone who needs/requires a website that can be used for an Online Gaming Clan.
The interesting design in my opinion is how it trys to incorporate a widget based system that administrators can choose and also select which location they would like them to appear. It reminds me of the time when WordPress entered the market and we were all taken back by this new practical solution.
Continue Reading ->
Just recently I had some friends approach me regards a game they play called GuildWars. They had a coding request that seemed rather simple but before I get into the code let me first give you a brief background on this GuildWars – Nicholas the Traveler.
Nicholas the Traveler provides Gifts of the Traveler in exchange for various items to those that can find him. His location and requested item changes weekly, which occurs at 15:00 UTC (8:00 AM PDT) on Monday.
Continue Reading ->