Skip to content

Instantly share code, notes, and snippets.

View shahidulislamus's full-sized avatar

shahidul islam rony shahidulislamus

View GitHub Profile
if (ronymail($u_email)){
echo '<p>valide.</p>';
}
else{
echo '<p>not valid</p>';
}
function ronymail($adresse) {
$Syntaxe = '#^[\w.-]+@[\w.-]+\.[a-zA-Z]{2,6}$#';
@shahidulislamus
shahidulislamus / upload larger database.....
Created February 20, 2015 19:24
upload larger database.....
go to bin > apachi > search php.ini and then open it and then search upload_max_filesize and chenge 2 mb............
php.ini >>>>>>>>>>>>>> upload_max_filesize, post_max_size.
Why am I still seeing 2MB? chenge as your wish........
// SmoothScroll for websites v1.2.1
// Licensed under the terms of the MIT license.
// People involved
// - Balazs Galambosi (maintainer)
// - Michael Herf (Pulse Algorithm)
(function(){
// Scroll Variables (tweakable)
how to fix menu
add this css
.f-nav{ z-index: 9999; position: fixed; left: 0; top: 0; width: 100%;}
after add jquery you have to add the following javascript code
following "menu" is the div which is fixed when you scroll
jQuery("document").ready(function($){
@shahidulislamus
shahidulislamus / register_sidebar
Last active August 29, 2015 14:14
register sidebar which is generally called widget
function my_moderna_theme_widget() {
//how to register a widget
register_sidebar( array(
'name' => 'footer widget coloum 1', //the name of sidebar
'id' => 'footer_widget_coloum1', //an id to call this
'description' => 'put hear a widget to view in footer 1', // write it's description
'before_widget' => '<div class="widget">', //which html code go befor widget
'after_widget' => '</div>', //which html code go after widget
step 1. get files backup
step 2. get dateabase backup
step 3. change URL in database
step 4. Upload files in new location
step 5. extract files
step 6. create a database & database username & assagin it.
step 7. inport database in newly created database.
step 8. add database information to wp-config.php file
after this step you can enjoy you own site
function my_custom_shortcode($atts, $content=null){
extract(shortcode_atts(array(),$atts) );
return'';
}
add_shortcode('price_box','my_custom_shortcode');
//basic concept to create shortcode
function my_shortcode(){
extract(shortcode_atts(array(
'type' => '', //hear "type" is a variable and hear you can put the default value which is work before the daynamic value come
'icon' => '', //hear "icon" is a variable and hear you can put the default value which is work before the daynamic value come
'text' => '', //hear "type" is a variable and hear you can put the default value which is work before the daynamic value come
), $atts));
return'<a href="'.$link.'" class="btn btn-'.$type.'" ><i class="fa fa-'.$icon.'"> </i> '.$text.'</a>'; //this is the return value where you must define the variable
/*medium screen*/
@media only screen and (min-width:992px) and (max-width:1199px){
/*all medium screen code is going hear*/
body{
background-color:red;
}
}
/*Tablet layout*/
@media only screen and (min-width:768px) and (max-width:991px){