So,
Like the rest of all the WordPress users, I've upgraded to 2.6. I was one of the first too, updated about ~10 minutes after the release! Here's a little demo, from the wordpress website:
I find that the Theme Viewer does its work great :). And it's nice to have the plugins sorted instead of having activated and not activated randomly in between.
Get WordPress 2.6
Popularity: 4% [?]
Miscellaneous
If you ever use floats, and then tried to add content to a container that's not floated, you may have experienced the same issues that many have. The solution is far simpler than expected
.clear { clear: both; }
This forces any item with a class of clear to be clear of floats on the left and right, which are - by chance - the other two options to clear; left and right. So after floating elements left and right, you should add a to force content below.
Popularity: 15% [?]
Web development
Ever wanted to make an upload script, but don't want the page to refresh? Try AJAX.
In this tutorial we'll use an iframe to simulate AJAX behaviour.
Firstly, we "might" want to create a simple upload form:
<p id="f1_upload_process">Loading...<img src="loader.gif" />
<p id="result">
<form action="admin/addpost.php" method="post" enctype="multipart/form-data" target="upload_target" onsubmit="startUpload();" >
File:
<input name="myfile" type="file" />
<input type="submit" name="submitBtn" value="Upload" />
</form>
<iframe id="upload_target" name="upload_target" src="#" style="width:0;height:0;border:0px solid #fff;"></iframe>
The important part here is the enctype, always have the enctype specified if you're uploading files. The first paragraph is the little Loading... box that'll show up when we press the submit button. The second <p> "result" is to display the results (We've uploaded or We failed). And lastly the iframe that is actually submitting the data, specified through the target="upload_target" in the form. Also, the forms onsubmit triggers the startUpload(); function.
Now we want to add some Javascript functions:
Read more...
Popularity: 28% [?]
PHP, Tutorials
$string = preg_replace("/(http:\/\/)?([a-zA-Z0-9\-.]+\.[a-zA-Z0-9\-]+([\/]([a-zA-Z0-9_\/\-.?&%=+])*)*)/", '<a href="http://$2">$2</a>', $string);
That little gem right there'll take any length of text and turn the urls in it into hyperlinks. Cool or what? :-)
Popularity: 19% [?]
PHP, Web development
Hey, welcome to my first article about Ubuntu.
In this article I'm going to explain to you how to use .iso-files.
I'll explain the following to you:
- Creating an .iso-file
- (Un-)Mounting an .iso-file
It's not a lot, but if you don't understand Ubuntu yet, this might help you.
Read more...
Popularity: 3% [?]
Miscellaneous
Recent comments!