‘Code’ Category

Validate email regular expression bug in WordPress and other CMSs

4
responses
by
on
January 19th, 2004
in
Code

a ‘+’ symbol is a valid part of an email username, and can be used in debugging and SPAM control. I use username+websitepostedon@server.com (the real address being username@server.com) when I post my email on a site where it could get displayed for spam harvesters. However, most CMSs use this regular expression in their email address checking algorithms. “/^([a-z0-9_]|\-|\.)+@(([a-z0-9_]|\-)+\.)+[a-z]{2,4}\$/i” Please replace that line with this so the plus sign gets recognized. That is a much better practice. Thank you! “/^([a-z0-9_+]|\-|\.)+@(([a-z0-9_]|\-)+\.)+[a-z]{2,4}\$/i” Another option from Phil : I’ve always used these two in conjunction. The first one we don’t want, and the second one we do want. (@.*@)|(\.\.)|(@\.)|(\.@)|(^\.) ^.+\@(\[?)[-a-zA-Z0-9\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$

[Continue Reading...]

A well documented index.php for WordPress 1.0

3
responses
by
on
January 9th, 2004
in
Code

With the release of WordPress 1.0, a lot of people have been trying to modify the new index.php to suit their needs or to make it look like their old page. I made a few comments on a vanilla index.php to make things a little easier for people to understand and make modifications to. Here is the link to the well documented index.php for WordPress 1.0 Platinum (and later nightly builds)

[Continue Reading...]

target=”_blank” XHTML 1.0 Strict Conversion

20
responses
by
on
January 2nd, 2004
in
Code

I was referred to this by tcervo through the WordPress forums and I wanted to document it. I am not a big proponent of opening new browser windows with links on my pages, but sometimes it needs to be done. However, using target=”_blank” will break XHTML 1.0 Stric validation. A couple of people have come up with fixes for this. The simplest turns out to be a peice of Javascript documented here Basically instead of using <a target=”_blank” href=”http://blahblah.com”>new link</a> you would use <a rel=”external” href=”http://blahblah.com”>new link</a> and the javascript would do the job of matching the rel tag and putting out a new browser window. In my opinion, there comes a time when compliancy gives way to over enthusiasm and we might be reaching the limit in this case. In order to use a well documented (albeit arcane) HTML feature and keep it compliant with XHTML, one has to […]

[Continue Reading...]

Quiet Release of blogPost Beta 1.0

11
responses
by
on
November 26th, 2003
in
Code

I have most of the work done for blogPost Beta 1.0. Here is a small list of features and bugs. #Features include (for now), posting to multiple blogs, comment and ping control, category control, –more– and –excerpt– modification ability. #Bugs: There are quite a few for now. I have not been able to test this on too many blog applications I know that the comments do not get blocked on MT, their documentation sucks If someone could get me an LJ code, I could test it on there Any others, let me know. Here is the download link to blogPost 1.0 Beta. Have fun! *Update* – A couple of bugfixes already. Comment and ping control should work for MT now (sorry Anil!) it was my Boo-Boo, not MTs fault!

[Continue Reading...]

blogPost – XMLRPC Windows Blogging client

No
responses
by
on
November 23rd, 2003
in
Code

I am almost done with blogPost. This application (written at my own behest, to learn) is a client application to post to blogs. Some of the final features will include: Ability to post to multiple blogs with the same item blogPostComment, ping and post status controls (which are lacking in w.bloggar) Ability to code RPC calls into the application (with associated help files) for new blogging applications and APIs not implemented Pure XMLRPC implementation, so simple code, existing methodology Open Source, ThankYouWare Features NOT part of the agenda include: Fancy interface with lots of XP like icons which are never used by the average blogger Ability to edit or modify previous posts Category name retrieval from blog(might be included in forthcoming editions, just not this one) Multi-threading (this example will NOT be thread safe) I have gotten the XMLRPC++ modded enough to work with my application and I am presently […]

[Continue Reading...]

Nice Tutorial in php Mysql CSS sqitching and other little bits for people starting off

3
responses
by
on
October 29th, 2003
in
Code

This website from [EDIT] Floopie is a very good resource for people starting off with PHP, MySql and blogging. If and when you get stuck with your install of your blog and dont know where to turn, these tutorials, in very simple and lucid english (written by an accomplished programmer and web designer, I must add) will get you going again. Check them out when you get a chance, or if they seem overwhelming right now, remember to come back and look them up when you DO need them. More tutorials are added everyday. Some of the work there include MySQL Tutorial – This tutorial is for setting up a MySQL database. Email Setup Tutorial – This tutorial is to help you set up your email client with a domain email address you have created in your control panel. Blog Tutorials – Skinning a blog – This tutorial will help […]

[Continue Reading...]

Regular Expressions Tutorial

2
responses
by
on
October 20th, 2003
in
Code

I had so much trouble figuring out Regular Expressions for PHP that I decided to put all of the stuff I foud in one place. I have attributed to all the authors, but if you still have a problem with the information being on this page, email me and I will take it down. Here is the link to my Regular Expressions Tutorial

[Continue Reading...]

Webpage Analyzer and Optimization tips

1
response
by
on
October 8th, 2003
in
Code

I came upon a couple of very interesting sites today. One worth mentioning is the Web Page Analyzer . This incredibly useful (and free) online tool accurately and intelligently calculates page size, composition, and download time. Add it to your web design / development bookmarks. Created and produced by Andrew (“Speed Up Your Site”) King. – Jeffrey Zeldman

[Continue Reading...]

Blogging Tools Market Share

1
response
by
on
October 7th, 2003
in
Code

I found an interesting site today called NITLE Weblog Census I came upon this because the site was crawling my blogs and I did not recognize the name. They have some nice information about the proliferation of blogs on the internet and go through and categorize quite a bit of information. The most pertinent information from that blog was the Blogging Tools MarketShare page. It shows that Movable Type is by far the most used stnadalone blogging tool out there, followed by b2 and by php-Nuke Some other interesting peices of information on that site as well. A good look-see.

[Continue Reading...]



Obviously Powered by WordPress. © 2003-2013

css.php