JavaScript MD5 for AJAX

for our big AJAX-application we needed MD5 (RFC 1321) to make a one way hash for login-informations. we found an MD5-function written by Paul Johnston which is really short and worked fine for us. unfortunately these functions where not object-oriented. so handgestrickt rewrote the code a little bit and put everything into a namespace. you can download it here and feel free to use it.

Download

loading the libraries:

first download the appropriate file. Save it in the same directory as your html file and insert this tag:

<script type="text/javascript" src="MD5.js"></script>

alternatively, you can copy the code and paste it straight into your html file, inside <script>...</script>.

calculating a hash

usually you'll want to get the result in hexadecimal, so it can be submitted as part of a form without worrying about URL encoding.

<script type="text/javascript">
 hash = MD5.hex_md4('input string');
 hash = MD5.hex_md5('input string');
 hash = MD5.hex_sha1('input string');
</script...

read more/write a comment

Monday, 12. March 2007 • downloads0 comments/trackbacks

captcha 0.2 for bBlog 0.7.6

the next version 0.2 of the handgestrickt captcha-plugin for bBlog 0.7.6 includes some bugfixes from the bBlog-forums and the ability to create an audio-captcha based on wave-file-snippets. everyone can create own wave-file-snippets and internationalize or customize the audio-captcha.

Download

read more/write a comment

Thursday, 08. March 2007 • downloads1 comments/trackbacks

nextprev 0.4.3 for bBlog 0.7.6

yesterday handgestrickt rewrote the complete code of nextprev 0.4.2, because the functionality was not as we expected it. nextprev is a plugin for bBlog, which allows for navigation of your blog via pages. In your index, archive and search pages, you can allow your users to view all your entries in pages instead of only a predefined number of entries.

Download

read more/write a comment

Saturday, 03. March 2007 • downloads0 comments/trackbacks

_blank for bBlog function.links.php

what really annoyed us about the bBlog-plugin function.links.php was, that links on external servers were loaded in the same window. handgestrickt modified the function, so that every external link will open in a new window.

just copy the file in the zip-archive over the existing one in the folder bBlog_plugins.

Download

read more/write a comment

Friday, 23. February 2007 • downloads0 comments/trackbacks

bBlog modifier truncatehtml

in the recent weeks handgestrickt wrote some very long blog-entries. these entries are sometimes not interesting for people visiting my mainpage, so they have to scroll down the whole page to find some topic. we thought about this problem for a while. there are several problems:

1. truncating the text might truncate HTML-tags.
2. truncating HTML distorts the letter count.
3. deleting HTML-tags, then truncating makes the entries plain and boring.

so we wrote a modifier for bBlog that truncates HTML content.

features:
1. truncates to an amout of letters.
2. tags are not included into the letter count.
3. HTML-entities are counted as one letter.
4. all open tags are closed, if necessary.
5. the order of the tags to close is preserved.
6. text can be appended.
7. truncates to the next whitespace, preserving words.

usage:

{$post.body|truncatehtml:$length:$append_text:$cutoff}

$length = new length of the text, default = 1000
$append_text = text to append to the result, default = ...
$cutoff = should...

read more/write a comment

Sunday, 24. September 2006 • downloads0 comments/trackbacks

bBlog modifier htmlentities

recently ihandgestrickt had some IPTC-tags, that were originally encoded in ISO-8859-1. using the modifier htmlspecialchars did not work, but returned broken characters. even we tried the third argument "charset", as mentioned in the PHP-documentation. htmlentities did the job very well. and as the PHP-documentation mentions, htmlentities converts more, because it converts "every applicable" character to HTML-entities. so we wrote a htmlentities-modifier with all 3 arguments:

{$foo|htmlentities:ENT_COMPAT:"ISO-8859-1"}

Download

read more/write a comment

Sunday, 24. September 2006 • downloads0 comments/trackbacks

Simple Galleries Plugin for bBlog 0.7.6

there are many different possibilities how to show photo-galleries:

1. you make HTML-entries and reference every image. this has the advantage, that you are free to design and make comments. but it is a lot of work.

2. you take images in given directories and show them. some pictures have prefixes and suffixes, which qualify them as thumbnail-previews. this is a very simple and dynamic solution. you can edit the pictures and thumbnails in batch-jobs with your favourite program, like ThumbsPlus, ACDSee, IrfanView and more in these programs you can also put IPTC-informations into the images, which can be read out later.

3. you make a database solution where you store some pictures and a lot of informations. this solution is very professional, quick in runtime and infinite scalable. the problem is, this is a very complex solution, which is fit for big platforms that host photographers work.

i took the 2. solution, because for me it is a simple way to store tons of photos and administrate...

read more/write a comment

Friday, 08. September 2006 • downloads0 comments/trackbacks

TrillianStatus2 plugin for bBlog 0.7.6

handgestrickt wrote a plugin for bBlog 0.7.6, that can retrieve the status-informations from the web-based TrillianStatus2 written by René Schädlich. the Smarty-function {trillianstatus2} returns an associative array, containing all the status information for all the accounts in a users Trillian Pro. the information can be used to show status-icons or statistics.

requirements:

Trillian Pro

this is a multi-IM, which supports ICQ, MSN, AIM, Yahoo, Jabber, Rendevouz, Novell, Skype (over SkyLian), IRC, Sametime. it can encrypt the chat if the other side also supports encryption. it is highly customizable and contains the useful feature of tabbed chat-windows. there are many plugins, which make it a real killer-application.

Webstatus Plugin

this plugin for Trillian Pro sends the status informations about all your accounts to a web-script. you can construct a custom GET-string for the URL with placeholders. how to install it is described in the documentation of TrillianStatus2.

TrillianStatus2...

read more/write a comment

Monday, 28. August 2006 • downloads0 comments/trackbacks

Yahoo! weather plugin for bBlog 0.7.6

handgestrickt wrote a plugin for bBlog, that fetches the RSS-feed of Yahoo! weather and returns HTML-markup. the archive contains only one file, which has to be copied into the bblog/bBlog_plugins-folder. in the bblog-admininstration the new plugin has to be searched. that's it!

template-example (weather for Schwerte):

{getyahooweather assign="weather" location="GMXX1736" unit="c"}
{$weather}

Download

read more/write a comment

Saturday, 26. August 2006 • downloads0 comments/trackbacks

Captcha for bBlog

handgestrickt wrote a captcha for bBlog. the archive contains the folder-structures needed and a readme-file in the root-folder. this captcha was written for bBlog 0.7.6. there is no guarantee it runs with older versions of bBlog.

Download

read more/write a comment

Wednesday, 09. August 2006 • downloads4 comments/trackbacks

page navigation