This is the code function sanitize_youtube_url_to_id($arg){ if(strpos($arg,'youtube.com/embed')!==false){ $auxa = explode('/','youtube.com/embed/'); if($auxa[1]){ return $auxa[1]; } } if(strpos($arg,'youtube.com')!==false || strpos($arg,'youtu.be')!==false ){ if(DZSHelpers::get_query_arg($arg,'v')){ return DZSHelpers::get_query_arg($arg,'v'); } if(strpos($arg,'youtu.be')!==false){ $auxa = explode('/','youtube.com/embed/'); $arg = $auxa[count($auxa)-1]; } } return arg; }
ARCHIVE
Tips
Posted on May 23 2018 / in Tips
Just use this in SQL update dzsap set site_url = REPLACE(site_url, 'wwww.', '')
In your site right click on the background. And find the element that has the background property It might be body root element or might be a descendant of body. In this case it’s #ht-site-container-child You will also need the id of the page if you want to edit for only that current
assign Contributor role to the user you wish to allow this install User Role Editor plugin and activate for the pages you want to allow just that user to edit, make them author you can do this from Quick edit menu from the Pages menu in users , select your user, click Capabilities check edit_pages
Posted on March 1 2018 / in Tips
Step 1 First, we need an API key, so head on over to https://www.google.com/recaptcha/admin. To gain access to this page you’ll need to be logged into a Google account. You’ll be asked to register your website, so give it a suitable name, then list domains (for example tutsplus.com) where this particular reCAPTCHA will be used. Subdomains (such
Posted on February 14 2018 / in Javascript, Tips
Let us say you have a documented php function with arguments in this form 'display_type' => 'list',// -- "list" or "grid" or "grid-2" or "scroller" or "map" or "horizontal" 'grid_skin' => 'skin-forwall', // -- grid skin 'grid_extra_classes' => '', // -- extra classes for display grid 'tooltip_filters_show' => '', // -- select which information to
If you need to use global variables restrictively and do not crowd the global variable namespace, you can have a single object. A way to get around this is just find and replace all entries of the variables, and convert them in the object Find \$qucreative_([a-z|_]*?)( |=|,|\)|\!|\[|\.|-|;) and replace with \$qucreative_theme_data['$1']$2 regex you
Recent Comments