Quantcast
Channel: Brian @ Wongside » Site News/Programming
Viewing all articles
Browse latest Browse all 10

WordPress Tips

$
0
0

I’ve been working on WordPress sites a lot lately.  The other day, it was Charlene’s blog.  Today, it was the CCF Alumni Foundation website, of which I’m the Chairman.

Since the early days of the web, I’ve often used the JavaScript Enkoder form by Hivelogic to obfuscate my e-mail address in order to protect it from spammers.  The problem is that because it’s based on JavaScript, it’s not super-compatible with WordPress pages and posts.

Fortuitously, I ran across a PHP plugin version written specifically for WordPress.  It’s called PHPEnkoder.  So now, any plaintext e-mail addresses as well as any mailto: links on the website are now automatically encoded using the Javascript Enkoder.  Fantastic!

This is what my e-mail address looks like when it’s been “enkoded.”


<script type="text/javascript">
//<![CDATA[
<!--
var x="function f(x){var i,o=\"\",l=x.length;for(i=0;i<l;i+=2) {if(i+1<l)o+=" +
"x.charAt(i+1);try{o+=x.charAt(i);}catch(e){}}return o;}f(\"ufcnitnof x({)av" +
" r,i=o\\\"\\\"o,=l.xelgnhtl,o=;lhwli(e.xhcraoCedtAl(1/)3=!97{)rt{y+xx=l;=+;" +
"lc}tahce({)}}of(r=i-l;1>i0=i;--{)+ox=c.ahAr(t)i};erutnro s.buts(r,0lo;)f}\\" +
"\"(5),5\\\"\\\\{w`qyjj'.x\\\\-\\\\\\\"n\\\\ZZOT\\\\\\\\\\\\\\\\VTwOTXA]7P01" +
"\\\\\\\\22\\\\0s\\\\14\\\\0q\\\\21\\\\0N\\\\]FSA06\\\\07\\\\00\\\\\\\\77\\\\"+
"1L\\\\~p|5|sv`baI|disj34\\\\0F\\\\25\\\\04\\\\01\\\\\\\\32\\\\05\\\\03\\\\\\"+
"\\23\\\\05\\\\03\\\\\\\\0L6W01\\\\\\\\03\\\\06\\\\02\\\\\\\\\\\\n@\\\\`?px8" +
"8$7>'f=*2-'_K\\\\U\\\\\\\\\\\\\\\\(\\\"}fo;n uret}r);+)y+^(i)t(eAodrCha.c(x" +
"deCoarChomfrg.intr=So+7;12%=;y++)y55i<f({i+)i+l;i<0;i=r(foh;gten.l=x,l\\\"\\"+
"\\\\\"\\\\o=i,r va){,y(x fontincfu)\\\"\")"                                  ;
while(x=eval(x));
//-->
//]]>
</script>

The other problem I solved this afternoon was the implementation of a prayer requests form for the CCFAF.  It’s built on Google Docs technology, which I then embedded using an <iframe> into the WordPress post.  The problem wasn’t creating the form, that’s easy enough.  The problem was figuring out how to get notified each time the form was filled out.  But I ran across this article, and now we should be good to go.

Go try it out!  When someone fills out the form, I automatically get an e-mail notification.  Then I can either pray for it directly, or have someone from the Board pray for them.  Excellent!  Technology at its finest: serving the Kingdom of God.


Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images