RegEx match .srt format

If you have a project and have to read .srt format in javascript – this is the post for you. This is the regular expression that matches the format in .srt files. ([0-9]+(?:\.[0-9]*)?)[\s\S]*?(.*-->.*)[\s\S]*?(\w+.*)[\n|\r] test here –

Video Portal – WordPress Video Gallery AddOn

preview-wordpress-video-portal DZS Video Portal lets you convert your WordPress site to a video portal site like YouTube, Vimeo or by offering Likes, Playlists, Upload and even an optional SignIn functionality. easy install – purchase, download the zip, access your WordPress … Continue reading

ZoomSounds – WordPress Audio Player

preview-wordpress-audio-player Want a nifty, cutting-edge, retina-ready, responsive html5 audio player for your site ? ZoomSounds is the perfect candidate. With four skins to fit every brand, only one format required to function, ZoomSounds is the perfect choice for an audio player. … Continue reading

How to create a fullwidth page for twenty thirteen

First, it’s recommended to create a child theme for this so you don’t lose your changes on theme update. You need to modify the css to support fullwidth like so .my-full-size { margin-left: auto !important; margin-right: auto !important; height: auto; … Continue reading

How to use wp media uploader in a external non-wp page or in frontend

Hello! I have a iframe shortcode generator inside of wordpress and I needed to get the wp uploader to insert media on it. Wheter you need it on a external page / frontend / whatever, this is the tutorial for … Continue reading

ZoomBox 2 – The Photographer’s Lightbox

preview-zoombox-premium-lightbox ZoomBox Lightbox Intro – top ZoomBox 2 – The Photographer’s Lightbox ! What makes ZoomBox unique to the other lightbox scripts ? In short – quality, user-friendliness, design and social media connectivity. Take a look at the demos and be … Continue reading

add_query_arg and get_query_arg functions in javascript

add_query_arg function add_query_arg(purl, key,value){ key = escape(key); value = escape(value); var s = purl; var pair = key+"="+value; var r = new RegExp("(&|\\?)"+key+"=[^\&]*"); s = s.replace(r,"$1"+pair); //console.log(s, pair); if(s.indexOf(key + '=')>-1){ }else{ if(s.indexOf('?')>-1){ s+='&'+pair; }else{ s+='?'+pair; } } //if(!RegExp.$1) {s … Continue reading

Calculate Text Width with jQuery

text-width This jQuery plugin should calculate the textwidth of elements. jQuery.fn.textWidth = function(){ var _t = jQuery(this); var html_org = _t.html(); if(_t[0].nodeName=='INPUT'){ html_org = _t.val(); } var html_calcS = '<span>' + html_org + '</span>'; jQuery('body').append(html_calcS); var _lastspan = jQuery('span').last(); //console.log(_lastspan, html_calc); … Continue reading

How to Install WordPress Importer

import A image guide on how to install WordPress Importer access your WP Dashboard click Tools > Import choose WordPress as the import source click Install Now click Activate choose the import file

ZoomFolio – WordPress Portfolio Plugin

preview-wordpress-portfolio Intro WordPress Portfolio Intro DZS ZoomFolio is the ultimate plugin for displaying your creative portfolio to your clients and that’s not all. You can use it to show the recent posts from your blog or a gallery from your vacation. … Continue reading