Email Validation Function
function Exist($value, $field_name, $table_name, $other_condition='') { if ($other_condition != "") $sql_other_condition = " AND ".$other_condition." "; else $sql_other_condition = ""; $sql = "SELECT...
View ArticleJavaScript Validator
<script language="javascript" type="text/livescript"> function validate() { if(document.getElementById('nickname').value.search(/\S/)==-1) { alert("User Name should not be blank");...
View ArticlePagination Function
Three files need to pagination in this way. 1. Pagination Link <? class pagination { public function __construct() { } public function calculate_pages($total_rows, $rows_per_page, $page_num) { $arr...
View ArticleThumbnail Class
<!–?php class Thumbnailer { private $image = ”; //image filename and path private $sizes = null; public function __construct($image = false){ if($image){ $this->setImage($image); } } public...
View ArticleCustom Post Type
Let me get something off my chest. WordPress sometimes, just ever-so occasionally, makes things sound a little harder than they actually are. Custom post types sound quite scary, but really they...
View ArticleCurrent Page URL
<!–?php function curPageURL() { $pageURL = ‘http’; if ($_SERVER["HTTPS"] == “on”) {$pageURL .= “s”;} $pageURL .= “://”; if ($_SERVER["SERVER_PORT"] != “80″) { $pageURL .=...
View ArticleAll About SEO on WordPress.com
All About SEO on WordPress.com. Filed under: SEO Tagged: seo
View ArticleDecolonizing Restorative Justice
Reblogged from Unsettling America: By Denise C. Breton, Unsettling Ourselves When I first heard about restorative justice, I remember feeling liberated and inspired by a movement that advocates...
View Article