This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Class Defination starts here. | |
//include('connection.php'); | |
// above class include for connect datbase connection | |
class validator{ | |
var $array_to_validate = ""; | |
var $email = ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Template Name: User Template | |
*/ | |
get_header(); | |
echo $user_id = ($wp_query->query_vars['user_id'] ? $wp_query->query_vars['user_id'] : '0'); | |
get_footer(); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function add_query_vars($aVars) { | |
$aVars[] = "user_id"; | |
return $aVars; | |
} | |
// hook add_query_vars function into query_vars | |
add_filter('query_vars', 'add_query_vars'); | |
function add_rewrite_rules($aRules) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp_enqueue_style( | |
'fancyboxstyles', | |
WP_PLUGIN_URL.'/chat/custom.css', | |
false, | |
all); | |
function my_init() { | |
if (!is_admin()) { | |
wp_deregister_script('jquery'); | |
wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js', false, '1.3.2', true); |
NewerOlder