Display A Custom Message In WordPress User Registration Page

When someone is just about to sign up or your WordPress site, you might want to send them a welcome or a few reminders first before they click on that sign up button. One way to do that is to customize your registration screen by inserting a quick message just below the input fields and/or [...]

Continue Reading →

Add A Widget To Your WordPress Dashboard

Everyone knows how to add a widget to the WordPress blog but not everyone knows how to add a widget to their dashboard. Hence our featured WordPress trick for today from Seokru which is a pretty neat snippet that you put in your functions.php file. function custom_dashboard_widgets(){ wp_add_dashboard_widget(‘my_custom_widget_id’, ‘My Widget Title’, ‘my_own_widget’); } function my_own_widget() [...]

Continue Reading →

Block IP Address With PHP

Today’s PHP trick will allow us to do something that a site administrator would usually do whenever a member misbehaves in the forum (e.g. violates site rules or Internet etiquette): prevent the user from visiting the site by blocking their IP address. This trick was shared by Monu Alagh over at TricksForYou and it involves [...]

Continue Reading →

Get Total Number Of YouTube Views With PHP

Here’s a nice PHP snippet from Hal Gatewood that I’m sure YouTube account holders might be interested in. It’s a single line of PHP code that will get all of your YouTube uploaded video views (that’s right, just ONE!). $youtube_view_count = json_decode(file_get_contents(‘http://gdata.youtube.com/feeds/api/users/YOUR_CHANNEL?v=2&alt=json’))->entry->{‘yt$statistics’}->totalUploadViews; But if you prefer using a function, sure! Hal’s got one for you [...]

Continue Reading →

Getting A ClientPC’s Real IP Address Using PHP

Getting a client’s IP address can be quite simple as using $_SERVER[‘REMOTE_ADDR’], but the only thing is once the client uses a Proxy Server to connect to the Internet, it won’t return its real IP address anymore. Instead, it will return the IP address of the proxy server and not the client’s machine itself. So [...]

Continue Reading →

Get And Display Your Social Follower Count Using PHP

It is often common for websites to display how many RSS subscribers and followers from various social sites they have. You could say that it’s a way for them to show how popular their site is, and to encourage more visitors to stay. That’s why today, I’d like to feature a tutorial from Alex of [...]

Continue Reading →

Convert Miles To Latitude And Longtitude Using PHP

There are lots of functions out there that you can use to calculate the distance between two points, but what if you know one point and want to calculate the latitude or the longitude equivalent of a point’s fixed distance, in miles? Here’s a pretty neat and useful PHP snippet from VisionHive that does exactly [...]

Continue Reading →

Convert Seconds Into Time String In PHP

Here’s a very simple PHP snippet that’s so simple, I’m pretty sure even novice programmers will appreciate it. It’s a return function that takes the numeric value of time given in seconds and then converts it into a string by returning its value in days, hours, minutes and seconds. Example: a value of 654321 will [...]

Continue Reading →

How To Display Your Tags In A Dropdown List Menu In WordPress

What’s great about a dropdown list interface is that it saves your site some real estate. It frees up some space on the layout for you to put in other contents and features. WordPress’ default category widget is displayed as such but unfortunately the same cannot be said about the tags list. Good thing there’s [...]

Continue Reading →

A Classic WordPress Date Image Hack

Here’s a simple and classic hack for WordPress’ date entries. It’s from Abe of Yugatech and it involves the use of dynamic images. To try it out on your site, just follow the instructions that Abe provided below. Before anything else, you need to create your own date image template using an image editor (i.e. [...]

Continue Reading →

Page 3 of 7«12345»...Last »