Archive for January, 2004

Mozilla right click “Blog This!” contextual menu plug in for WordPress

No
responses
by
on
January 23rd, 2004
in
WordPress Hack

I really wanted to see what was inside those .xpi files that I install as plugins for Mozilla and I hacked the Blog This plugin from Phil Ringnalda to be compatible with WordPress. The installation can be a little confusing, but it sure is worth it for me. I might write a php packaging script for WP if I get bored (much like YABBOB). In the meantime, enjoy the Blog This for Mozilla hack. PS: Rightful credit goes to Ted Mielczarek for the original code and idea. Thank you!

[Continue Reading...]

LiveJournal autoupdate script for WordPress (all versions)

31
responses
by
on
January 23rd, 2004
in
WordPress Hack

[EDIT] In its present incarnation, it WILL NOT work with WordPress 1.5 This script allows every post that you publish on your WordPress blog to also be reflected (or added) to your LiveJournal blog automatically. This script only emulates publishing to your LJ blog, you cannot edit LiveJournal entries once they are published (through the WP admin page). If there is enough interest, I could come up with edit functionality as well as others such as moods and music. Here is a link to the hack instructions. The items sent to LiveJournal are your post title, your post content and the date and time of your post. Enjoy. Please post bugs to http://weblogtoolscollection.com/

[Continue Reading...]

SprintPCS Moblog hack for WordPress 1.0 and above

19
responses
by
on
January 21st, 2004
in
General

Here is the link to the moblog script. 1) Upload this file to the root of your blog (rename it to sprint.php) and put in the username and password of your blog in the required places within sprint.php. 2) Setup your email blogging parameters within WordPress. Your security is going to be the email address that your blog is supposed to check, so make it complicated (or something) 3) Send your blog an email (to the email address you specified above). Go to your blog URL and add the sprint.php at the end (on a browser) to test how well the works. e.g. http://www.yourwebserver.com/wordpressdirectory/sprint.php This should give you a very good understanding of what happens. If things work, you should see an entry in your blog with just that picture. 4) Now to make this automated, add a cron script to your webserver so this file gets run every so […]

[Continue Reading...]

WordPress 1.0+ “blog with right click in IE” fix

2
responses
by
on
January 21st, 2004
in
General

Here is a small temporary fix as emulated from the Nucleus site (one of their answers is flawed and their own code has bugs, oh well) Create a new file on the root of your blog called rightclick.php and put the following in there (replace open(‘http://… with your own servername): <script type=”text/javascript” defer=”defer”> doc=external.menuArguments.document; lt=escape(doc.selection.createRange().text); loglink=escape(external.menuArguments.location.href); loglinktitle=escape(document.title); open(‘http://yourserver.com/yourweblogdirectory/wp-admin/bookmarklet.php?text=’+lt+ ‘&trackback=1&pingback=1&popupurl=’+loglink+’&popuptitle=’+loglinktitle,’bookmarklet’,’ scrollbars=no,width=480,height=590,left=100,top=150,status=yes’) </script> Now create another file on your desktop called wordpress.reg and put the following in there (again replace the varibles please): REGEDIT4 [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\Post To &WP : Mindful Musings] @=”http://yourserver.com/yourwordpressdirectory/rightclick.php” “contexts”=hex:31” Now double click on the wordpress.reg file to add the information to the registry and the right click in IE should work at that point.

[Continue Reading...]

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...]

Web Design Tutorials

2
responses
by
on
January 19th, 2004
in
Weblog Add-Ons

While browsing through the WordPress forums, I came across a very nice site suggested by notthatugly (I dont know if notthatugly is the owner or not) but it deserves a mention on here. Web Design Tutorials has well written, lucid, versatile tutorials covering a variety of subjects, including HTML CSS JavaScript PHP Photoshop Illustrator ImageReady Paint Shop Pro Flash Miscellaneous And has a download section which includes Fonts Scans Templates: Buttons & Avatars Patterns Layouts Most of the stuff on there is very high class and is centered around code (which makes it a source for blog-friendly web design help) Thank them profusely if you use anything from on there.

[Continue Reading...]

Top 10 Posts hack for WordPress

9
responses
by
on
January 19th, 2004
in
WordPress Hack

I really liked the “Top 10 Posts” on Jeremy Zawodny’s Blog and wanted it for mine as well. So I wrote a small hack which keeps track of the number of times a particular post is clicked on (using the database) and then makes a list of these posts with the number of clickthroughs. You can see it in work on the sidebar. Here is a link to the hack instructions. This is WordPress 0.72 and 1.0+ compatible.

[Continue Reading...]

” Who is Online ” hack for WordPress and other PHP based sites

4
responses
by
on
January 18th, 2004
in
WordPress Hack

I was looking for a nice way to show how many people are looking at my site at a given time and I found a couple of different solutions, the easiest of which was not going to work in my case (because of caching and php accelerator). So I wrote a little hack for WordPress and other php based sites (using MySql) to tell “Who is Online right now?” Download the hack instructions here.

[Continue Reading...]

WordPress 1.01 Release Candidate

1
response

WordPress 1.01 Release Candidate is out. Get it here. It incorporates a lot of bugfixes and it addresses a lot of the installation and upgrade issues brought up in the last couple of weeks (since release of 1.0) Any help in testing this release candidate will be greatly appreciated.

[Continue Reading...]



Obviously Powered by WordPress. © 2003-2013

css.php