blog page

Blog page has full width 18, 13 left and right sidebar layout styles. Also we have powerful recent post shortcode.

10 URL Rewrite PHP Classes

URL Rwrite is a boon for PHP programmers, Lets you write pretty URLs as well as manages redirections, Adding rewrite feature can be a plus for your PHP Script.
So get ready to load some of the best PHP classes for URL Rewrite in PHP . Let your htaccess work.
URL Rewrite PHP Classes

URL Rewrite PHP Classes

HTAccess mod_rewrite htaccess_emulation Interpret Apache .htaccess to emulate mod_rewrite This class can be used to interpret a subset Apache directives that can be defined in .htaccess configuration files. It takes as parameter the directive lines of configuration of an .htaccess file to interpret
htmLawed htmlawed Filter HTML for security and standards htmLawed homepage htmLawed homepage This package can be used to filter or purify HTML to prevent security attacks and for compliance with standards and admin. policies. It can parse HTML documents and rewrite it to filter tags and data that
Rewriter rewriter Rewrite request variables based on the request URI This class can rewrite request variables by parsing the request URI in a similar way to what the Apache module mod_rewrite does but without using regular expression based rules. It allows to map a request to an URL like http:/
Relink relink Rewrite URLs based on mod_rewrite configuration PHP Programming Innovation award nominee September 2008 Number 6 mod_rewrite is an Apache server module that converts the URLs used to access to a site to URLs of a different format using regular expressions. mod_rewrite is often used
HN URL Rewrite hn_urlrewrite Emulate request URL rewriting and redirection PHP Programming Innovation award nominee September 2004 Number 2 There is the conviction between experience Web site developers that search engines index more pages of a site and do it faster if their page URLs are normalized
URI Rewrite Handler Support forum rewrite-engine Rewrite request URLs split with backslashes This class can rewrite request URLs split with backslashes. It can parse the current request URL and extract the URL bits split with backslash characters. The class can also build a new URL assembling given
lean URL cleanurl Transform URLs to make them search engine friendly Clean URL is a class that implements a method to make URLs more user and search engine friendly by removing ‘?’ and ‘=’ symbols from URI. This class is meant to be used in conjunction with URL rewriting Web server modules that
URL rewrite url-rewrite-mapper Map URLs based on regular expression rules This package can be used to map URLs based on regular expression rules. It can take rules that define how to extract parameters from URLs. Then it can reassemble a new URL from the extracted parameters. example of usage Url
Url Rewriter url_rewriter Redirect requests according URL rewriting rules This class can be used to redirect requests based on URL rewriting rules. It can check whether the current request URL matches one or more rules. If one of the defined rules is matched, the class determines the path of a PHP
Secure Media securemedia Protect Flash files from hotlinking by other sites PHP Programming Innovation award nominee October 2004 Number 4 The unauthorized use of content of one site in another site is an activity that concerns many site owners. Hotlinking is one type of unauthorized content use

PSPad Keyboard Shoortcuts

PSPad :

Since PSPAD is quite popular text editor ,saves your time, and Highlights the code.

Using it can be very useful over other texteditors.

So Why not save some time , using Keyboard Shortcuts.

PSPad Keyboard Shortcuts

PSPad Keyboard Shortcuts

Keyboard shortcuts

Here you will find a complete list of the default keyboard shortcuts. For information on how to change the default see Key mapping.

Sections

Settings


Shortcut Command Description
Shift+Ctrl+Up/Down Whole Words Only

Edit


Shortcut Command Description
F8 Block Selection
Ctrl+C Copy Copy selected text to clipboard
Ctrl+X Cut Cut selected text to clipboard
Ctrl+V Paste Insert clipboard text to cursor position
Shift+Ctrl+V Paste Without Cursor Change
Shift+Ctrl+Z Redo Redo Last Undo
Ctrl+A Select All Mark all text as selected
Shift+Ctrl+’ Select String
Ctrl+Z Undo Undo last change
Shift+Ctrl+M SelMatchBracket
Ctrl+’ SelString2
Ctrl+Ins CopyEx
Shift+Del CutEx
Shift+Ins PasteEx

File


Shortcut Command Description
Ctrl+F4 Close Close active file
Ctrl+F9 Compile Run external compiler to compile file
Ctrl+Alt+F4 Exit Exit PSPad
Esc Exit with ESC
Ctrl+N New file… Create new file
Ctrl+O Open… Open Selected File(s)
Ctrl+D Open Active File with New Name…
Shift+Ctrl+O Open in HEX Editor…
Ctrl+P Print Print open file
Alt+P Print Preview Print preview
Ctrl+R Reopen Active File Reopen active file & Discard Changes
Ctrl+S Save Save file
Shift+Ctrl+S Save All Save changes of all open files
F12 Save As… Save open file as file
Ctrl+Alt+S Save Without changing File Date
F9 Run1
Alt+F9 Run2
Shift+F9 Run3

Window


Shortcut Command Description
Ctrl+L Show / Hide LOG window
Ctrl+Tab Next Window Goto next file
Shift+Ctrl+Tab Previous Window Goto previous file
Alt+L Jump to Editor / LOG
Alt+1 FileTab1
Alt+2 FileTab2
Alt+3 FileTab3
Alt+4 FileTab4
Alt+5 FileTab5
Alt+6 FileTab6
Alt+7 FileTab7
Alt+8 FileTab8
Alt+9 FileTab9

Format


Shortcut Command Description
Ctrl+Alt+Left Justify Left
Ctrl+Alt+Right Justify Right
Ctrl+Alt+T Capitalize Capitalize char case
Shift+Ctrl+A Add/Remove Comment
Shift+Ctrl+I Indent Block Indent block
Ctrl+Alt+L To Lower Case Change chars to lower case
Ctrl+K Reformat (paragraph=blank line) Reformat block of text with right edge settings
Shift+Ctrl+K Reformat (paragraph=short line) Reformat block of text with right edge settings
Shift+Ctrl+U UnIndent Block UnIndent block
Ctrl+Alt+U To Upper Case Change chars to upper case

Search


Shortcut Command Description
Ctrl+F Find… Text search
F3 Find Next Search text for next occurrence
Shift+F3 Find Previous Find previous occurrence
Shift+Ctrl+Up Previous Occurrence of Current Word
Shift+Ctrl+Down Next Occurrence of Current Word
Ctrl+G Goto Line… Jump to selected line
Ctrl+E Incremental Search Incremental Search
Ctrl+M Matching Bracket Find matching bracket (cursor before bracket)
Ctrl+H Replace… Replace text with other text

Show


Shortcut Command Description
Shift+Ctrl+E Code Explorer window
F2 Show/hide panel
Ctrl+W Word Wrap Lines Switch on or off lines wrapping

HTML


Shortcut Command Description
Alt+C Color Selector window Color Selector window
F10 HTML Page Preview Show HTML page in internal browser
Shift+Ctrl+T Select TAG
Ctrl+F10 HTMLCheck
Shift+Ctrl+F10 WebPrev

Help


Shortcut Command Description
Alt+F1 Help for Language

Tools


Shortcut Command Description
Alt+A Char Table Open ASCII and Symbol table
Ctrl+J Auto Completion
Alt+M Clipboard Monitor window
Ctrl+Space Show Clips
Alt+I Insert Text into Lines…
Alt+Q Repeat last command
F7 Spell Check
Ctrl+F7 Spell Settings…
Shift+Space ClipRun

Insert


Shortcut Command Description
Alt+D Insert Date Time Insert date & time

Template


Shortcut Command Description
Ctrl+Alt+Space Create Clip from Block Create new Clip from selected text

Makro


Shortcut Command Description
Shift+Ctrl+F5 Macro Manager
Ctrl+F5 MakroRecord
F5 Makro1Play
F6 Makro2Play
Alt+F6 Makro3Play
Ctrl+Alt+F6 Makro4Play

Bookmark


Shortcut Command Description
Alt+Right Delete Bookmark
Alt+Down Next Bookmark
Shift+Ctrl+B Bookmark List Bookmark list
Alt+Up Previous Bookmark
Alt+Left Set Bookmark

Project


Shortcut Command Description
Ctrl+F2 Tool Panel Show / Hide tool panel
Shift+Ctrl+Del Remove File from Project Remove file from project
F2 Rename

TextDiff


Shortcut Command Description
Shift+Ctrl+G View Source

Understanding POT PO and MO Files

Gettext is an internationalization and localization (i18n) system commonly used for writing multilingual programs on Unix-like computer operating.When used in localization PO/Mo files are used.

PO file is Portable Object file

And MO File are binary  objects from the ready-converted .po files, so that gettext could translate the site.

Where are POT file is primary file called as Portable Object Template file.

So here how it goes Like Pot > PO >MO

 

You can always generate PO file from POT file and MO file directly from compiling PO file.

Understanding POT PO MO file

Understanding POT PO MO file

Software you may consider using to edit POT/PO/MO files:

  • Poedit (Mac)
  • GlotPress (web-based)
  • Launchpad (Ubuntu)
  • Pootle (web-based)
  • KBabel (Linux)
  • GNU Gettext (command shell)

Storing PO and MO files: Gettext only reads MO files , so you can store them in this location

/locale/xx_XX/LC_MESSAGES/filename.mo

 

Here xx_XX can be code for language _Country Code , For Example

en_US

some popular Locales are

  • en_US=English
  • ar=Arabic
  • bg_BG=Bulgarian
  • cs_CZ=Czech
  • el_GR=Greek
  • es_ES=Spanish
  • fr_FR=French
  • hi_IN=Hindi
  • hu_HU=Hungarian
  • hw=Hebrew
  • in_ID=Indonesian
  • it_IT=Italian
  • ja_JP=Japanese
  • ko_KR=Korean
  • nl_NL=Dutch
  • no_NO=Norwegian
  • pt_BR=Portuguese
  • ro_RO=Romanian
  • ru_RU=Russian
  • sk_SK=Slovak
  • th_TH=Thai
  • uk_UA=Ukrainian
  • vi_VN=Vietnamese
  • zh_CN=Chinese

So when you Open your myfile.pot in POedit and save as .po file. it will also compile a .mo file.

In any PHP file Gettext is going to read strings with following Syntax

__("Some Text Here");

_e(“Some Text Here”);

_(“Some Text Here”);

Or

__('Some Text Here');

_e(‘Some Text Here’);

_(‘Some Text Here’);

And Read it from MO file

Where it was specified as

#: index.php:5
msgid "Some Text Here"
msgstr "Certains texte ici"

Let your script know to use Locale

putenv("LANG=fr_FR");
bindtextdomain("default", "./locale/");
setlocale(LC_ALL,'en_US' );
textdomain("default");

default will be mo file name

so it looks like

/locale/en_US/LC_MESSAGES/default.mo

Troubleshoot:

Some times you make have this trouble

Question marks instead of some local characters in reading mo /po file

In that case you may need to set charset.

You can do it Via

Syntax

bind_textdomain_codeset (domain, codeset);

Usages

bind_textdomain_codeset("default", 'UTF-8');

5 wordpress themes you just cant live without

Karma Clean and Modern WordPress Theme

U-Design WordPress Theme

U-Design WordPress Theme - ThemeForest Item for Sale

in WordPress \ Corporate \ Business Columns: 4+, Compatible Browsers: IE7, IE8, IE9, Firefox 2, Firefox 3, Firefox 4, Safari 4, Safari 5, Opera, Chrome, Software Version: WordPress 3.3, WordPress 3.2, WordPress 3.1, WordPress 3.0, Widget Ready: Yes

U Design WordPress Theme

Six Home Page Sliders

You will be able to upload and reorder slider images in the theme’s options page.

  • Flashmo Grid Slider – Features beautiful transition effects. The slider can be configured entirely through the theme’s backend option’s page, no need to deal with any code or xml files. Very easy and convenient interface to control this beautiful slider.
  • Piecemaker Flash Slider – Customize every aspect of the slider through the theme’s options page, including being able to upload the slider images, re-order the slides (drag-and-drop), delete slides, choose from 40 different tween types, etc.
  • Piecemaker 2 Flash Slider – Similar to the Piecemaker slider with the exception that now you can add Flash and Video slides as well as unlimited number of transitions.
  • jQuery Cycle Slider Full Width Image – Slide controls available: pause, resume, jump to a specific slide. Choose from 28 transition effects that could be assigned independently to each slide. Slide link with the option to open in current or new window. Also remove the 3D shadow option is available.
  • jQuery Cycle Slider With an Image, Text and Button – Slide controls available: pause, resume, jump to a specific slide. Choose from 28 transition effects that could be assigned independently to each slide. Link button auto generated with the option to open the link in current or new window. Also remove the 3D shadow option is available.
  • jQuery Cycle Slider With sliding Images and Sliding Text – Slide controls available: pause, resume, jump to a specific slide. The practical aspect of this slider is that it allows you to create dynamic interactive look of three sliding layers.
  • An additional “No slider” option has been added with the ability to add custom text in the place of the slider

Download


Modernize – Flexibility of WordPress

Modernize - Flexibility of WordPress - ThemeForest Item for Sale

in WordPress \ Corporate \ Business Columns: 2, Compatible Browsers: IE8, IE9, Firefox 4, Safari 5, Chrome, Software Version: WordPress 3.3, WordPress 3.2, WordPress 3.1, WordPress 3.0, Widget Ready: Yes

Modernize Flexibility of WordPress

Modernizeis a new era of wordpress theme. You can discover many new awesome features in this theme. For example ‘Page Builder’, it allow you to create page easily by drag-drop module. Moreover, it comes with many options on that  Also, to change color elements, it won’t be a big deal anymore, with our new admin panel, you can access to almost of all elements color. Admin panel in this theme is a real feature rich. You can also create unlimited sidebar, choosing over 350 fonts or if you want to use your own, we provide a cufon uploader. Modernize has 15 predefined background pattern but if you want to use your own background, again, we have a custom background uploader. You can also translate each elements to your language via this admin panel.

Theme Features

  • Unlimited Color
  • Unlimited Sidebar
  • 6 Footer Layouts
  • 350+ Fonts Available
  • Drag Drop Page Builder
  • Drag Drop Slider Manager
  • Built-in Translator
  • Built-in Shortcodes
  • Font Uploader
  • Logo Uploader
  • Background Uploader
  • 15 Pre-Defined Background Patterns
  • Thumbnail Options
    • Static Image
    • Slider
    • Video
    • Light Box Option
  • Price Table
  • Social Share for Posts
  • Social Link on Header
  • 3 Image Sliders
    • Nivo slider
    • Anything Slider
    • Flex Slider

    Download


    Angular – Responsive Portfolio

    Angular - Responsive Portfolio - ThemeForest Item for Sale in WordPress \ Creative \ Portfolio Columns: 4+, Compatible Browsers: IE7, IE8, IE9, Firefox 3, Firefox 4, Safari 4, Safari 5, Opera, Chrome, Software Version: WordPress 3.3, WordPress 3.2, WordPress 3.1, Widget Ready: Yes

     

    Angular Responsive Portfolio

    Key Features Overview

    • Translation ready with mo/po files
    • Responsive designs that addapts to smaller devices (iphone, ipad)
    • Responsive Slideshow that is optimized for mobile devices (hardware accelerated CSS3 slider)
    • Post Format Support: Standard, Gallery, Link, Quote
    • Multiple Slideshows possible. YOu can add one to each post, page or portfolio entry
    • Forum plugin ready:bbpress forum plugin
    • 28 predefined skins, easy to edit and modify. Any number of skins possible
    • Greyscaleing feature for portfolio entries (can of course be deactivated from the backend)
    • Supports Videos from any major video hosting service as well as self hosted HTML5 Videos with flash fallback
    • Template Builder for unique page layouts (Landing Pages, Frontpages, Videopages etc)
    • Visual Shortcode editor with preview function
    • Custom Widgets like: Combo Widget, Recent News, Recent Portfolio entries, Advertising, Twitter, Twitter + RSS follower count
    • Color picker options for any number of gorgeous color settings.
    • Unqiue Sidebars for each page/category possible
    • Extensive User Manual, short videos and professional theme support by me and my team to fix any kind of problems
    • Growing community in our support forum: 4500 registered users, 5300 Topics, 25000 Posts. We do care that your site works!
    • jQuery 100% unobtrusive wich degrades gracefully if javascript is turned off
    • Contact Form Builder: Modify your contact form from your backend: add/remove/modify the available inputs, textareas, dropdowns and checkboxes
    • Code built with SEO best practice in mind
    • PSDs included

    Download


    Karma – Clean and Modern WordPress Theme

    Karma - Clean and Modern WordPress Theme - ThemeForest Item for Sale

    in WordPress \ Corporate Columns: 4+, Compatible Browsers: IE7, IE8, IE9, Firefox 2, Firefox 3, Firefox 4, Safari 4, Safari 5, Opera, Chrome, Software Version: WordPress 3.3, WordPress 3.2, WordPress 3.1, WordPress 3.0, Widget Ready: Yes

     

    Karma Clean and Modern WordPress Theme

    Key features include:

    • Full WordPress 3.3 Compatibility
    • 100% Translation Ready (.mo/.po files included)
    • Powerful Administration Panel (Completely un-branded)
    • Stunning 3D Sliders
    • 100+ Shortcodes
    • 20 Gorgeous Color Variations (with the ability to mix and match for a completely custom look)
    • 20 Unique Page Templates
    • SEO -optimized, HTML5 code
    • Drag-to-Share Social Bookmarking
    • Amazing Point and Click Shortcode Manager
    • Unlimited Sidebars
    • Logo Builder (Create a professional logo in minutes)
    • Stunning Pricing Tables (with 4 unique skins)
    • Powerful Built-in Contact Form Builder (with reCaptcha)
    • Complete set of Instructional Training Videos (18 videos and counting)
    • XML Demo content for blazing fast setup
    • Amazing Customer Service backed by a Dedicated Support Staff
    • and so much more…

    Download


    Scope: Agency / Business WordPress Theme

    Scope: Agency / Business WordPress Theme - ThemeForest Item for Sale

    in WordPress \ Creative \ Portfolio Columns: 2, Compatible Browsers: IE7, IE8, IE9, Firefox 4, Safari 5, Opera, Chrome, Software Version: WordPress 3.3, WordPress 3.2, WordPress 3.1, Widget Ready: Yes

     

    Scope: Agency / Business WordPress Theme

    Theme Features

    • Customisable Accent Colour via Colour Picker (Yellow in Demo)
    • Filterable Portfolio (Supports Video, Audio & Unlimited Images)
    • Custom Background Functionality (Tiled, Static & Fullscreen Support)
    • Full Localisation Support (contains .po/.mo files)
    • 5 Custom Widgets (Twitter, Flickr, Video, Portfolio, Blog)
    • Post Format Support (Asides, Images, Galleries, Quotes, Links, Standard, Audio, Video)
    • Simple Theme Options (Unbranded!)
    • WordPress 3.0+ Ready (Menus & Featured Images)
    • Page Templates (Archives, jQuery Contact Form, Full Width)
    • Custom Default Login Logo
    • Shortcode Generator (Columns, Buttons, Toggles, Tabs, Alerts)
    • Layered PSDs for Customisation
    • Extensive Documentation

      Download

Google Maps Places Scraper

Ever wanted to scrape Places out of Google Maps?

Its possible now ,My recent work can help you through the process.

Let me call it GMGrabber (Google Maps Grabber)

Google Maps Scrapper

GM Grabber V1.0

Features:

  • Crawls Google Maps
  • Saves Results into CSV file
  • Saves Place name ,Address, Phone Number , No of Ratings, Google Maps Direct link
  • Works on windows platform , With Framework v3.5+
  • One Executable file that’s it

    Table of Contents

    1. Requirements
    2. Installation
    3. Usages
    4. CSV File
    5. Limitations

    A) Requirementstop

    This application is built for Windows (x86 and x 64) .You will need to have .Net Framework 3.5 and above.

    You can download it from microsoft site.


    B) Installationtop

    Installation is simple , Just Paste The GMGrabber.exe to any folder you want .


    C) Usagestop

    Google Maps Grabber is quite simple to use. There are two input boxes

    • Location :It can be a City ,State or Country , For Example – London
    • Keyword: This is the service or keyword you are trying to Grab, For Example- Airport, Bus, KFC,Hotels etc

    Once you complete the input boxes press DO IT!! button.

    Google Maps Grabber will start grabbing all details into a CSV File ,

    CSV file will be stored in same directory as .exe file (Application file)


    D) CSV Filetop

    CSV file is comma-separated values (CSV) file. Google Maps Grabber Stores all its data into CSV File.

    CSV File is named in CityKeyword-data.csv

    For Example LondonTaxi-data.csv

    CSV file has 5 columns

    1. Name of Place
    2. Address of Place
    3. Phone Number of Place
    4. Rating of Place
    5. Google Maps Link

    Example data

    Addison Lee Coaches,Third Floor Melton Street London NW1 2EB United Kingdom,+44 20 7691 3386,1,http://maps.google.com/maps/place?cid=7810965816535437186,

    Airport Transfer London Taxi,2 83 Victoria St London SW1H 0HW United Kingdom,+44 20 8385 2500,0,http://maps.google.com/maps/place?cid=3764478442319939505,

     


    E) Limitations – top

    Since google does not allow you to visit all results from http://maps.google.com You will be able to Grab 180 max results out of every Keyword.

    Process will take 5 to 10 minutes depending upon results and your internet speed.

    If you open CSV file while Extracting , Programme will end.

    To stop the application just close it from Top Right X close Button.

    .