Access Project Directory in Yii

Standard

For get Directory :-

Yii::app()->getBaseUrl(true);        –     Get Http path

Yii::app()->getBaseUrl(false);       –  Get /var/www/ Path

Yii::app()->params[‘site_url’] ;

Yii::app()->baseUrl;                  – upto projectName Directory

 

Yii::app()->createAbsoluteUrl(‘site/contact’)

Ex: http://localhost/ProjectName/site/contact

Yii::app()->getBaseUrl(true);

EX : http://localhost/Projectname

Yii::app()->getBaseUrl(false);

EX : /Projectname

 

Advertisements

Indic IME

Standard

Using IndicIME plugin, you can very easily write in 9 Indian scripts: Bengali(Assamese, Bengali, Manipuri), Devanagari(Hindi, Marathi, Nepali, Sanskrit), Gujarati, Gurmukhi(Punjabi), Kannada, Malaylam, Oriya, Tamil and Telugu. It does not require any software download for writing in Indian script. Using this plugin, visitor can directly type in Indic script in search box or comment. Blog owner now can directly type title, tag, excerpts (in short everywhere) in his/her langauge of choice. If you need help in typing, a quick reference image is shown when clicked question mark icon.

Typing is extremely easy. Typing follows “The way you speak, the way you type” rule. It is called transliteration. For example, choose “Devanagari” from the script list and try to if you type “bhaarat”. You will see that depending on the key you pressed, it will automatically be converted into devanagari script. Half letters and special letters are also very easy to write. Try to type “prashna”, “karma” or “padma” and you will see how easy it is to type in your favourite language. For reference of English and Indian script character mapping, please refer to the help by clicking on help (/question mark) icon.

Installation :-

  1. Unzip the file on your local hard disk.
  2. Upload all files to BLOGROOT/wp-content/plugins directory.
  3. Activate via WordPress Plugins tab.
  4. Go to Settings(/Options) Menu > Indic IME for setting your preference

Make sure that in your theme, in footer.php file wp_footer() function call exists.

Link :- https://wordpress.org/plugins/indic-ime/

Top 25 Social Icons

Standard

Top 25 Social Icons is an easy to use, customizable way to display social icons that link visitors to your various social profiles. With it, you can easily choose which profiles to link to, customize the color and size of your tooltips, as well as manage the size of the icons, with popular Social Networks. in setting page you can manage the color of the tooltip and manage the image size as well.

Features

Options for Tooltips. Go to admin menu Top 25 Social Icons, enable or disable the Tooltips on Social Icons, Select the Multiple colors of tooltips, Enter the image Size as well.

  • Enable or Disable Tooltips on Social Icons
  • ToolTips on Social Icons
  • Manage the Size of the Social Icons
  • Change the color of the tooltips
  • Manually Change the Order of the Social Icons
  • Most Popular Social Networks
  • Easily Customizable and managable code.
  • Facebook
  • Twitter
  • Pinterest
  • Youtube
  • Google+
  • Digg
  • Reddit
  • LinkedIn
  • Instagram
  • Flicker
  • Dribble
  • Email
  • InstaGram
  • Vimeo
  • YELP
  • Tumblar
  • StumbleUpon
  • Skype
  • Evernote
  • Github
  • RSS
  • MySpace
  • Forrst
  • Deviantart
  • Last.fm
  • Xing

Usage

  1. Add Widget in Sidebar
  2. Enter the Widget Title
  3. Enter Social Network url You want to Display
  4. Click On setting link to mange social icons styles etc.
  5. By default Social Icons Size is 32px;

Link :- https://wordpress.org/plugins/top-25-social-icons/

Duplicate Post

Standard

This plugin allows to clone a post or page, or edit it as a new draft. If you find this useful,please consider donating whatever sum you choose, even just 10 cents. It’s been downloaded thousands of times: just a few cents from every user would help me develop the plugin and improve support.

How it works:

  1. In ‘Edit Posts’/’Edit Pages’, you can click on ‘Clone’ link below the post/page title: this will immediately create a copy and return to the list.
  2. In ‘Edit Posts’/’Edit Pages’, you can click on ‘New Draft’ link below the post/page title.
  3. On the post edit screen, you can click on ‘Copy to a new draft’ above “Cancel”/”Move to trash”.
  4. While viewing a post as a logged in user, you can click on ‘Copy to a new draft’ as a dropdown link under “Edit Post” in the admin bar.

2, 3 and 4 will lead to the edit page for the new draft: change what you want, click on ‘Publish’ and you’re done.

Pay attention to the new behaviour! The first way now allows you to clone a post with a single click, speeding up your work if you have many posts to duplicate.

There is also a template tag, so you can put it in your templates and clone your posts/pages from the front-end. Clicking on the link will lead you to the edit page for the new draft, just like the admin bar link.

In the Options page under Settings it is now possible to choose what to copy:

  • the original post/page date
  • the original post/page status (draft, published, pending), when cloning from the posts list
  • the original post/page excerpt
  • the original post/page attachments (actual files won’t be copied)
  • all the children of the original page
  • which taxonomies and custom fields

You can also set a prefix (or a suffix) to place before (or after) the title of the cloned post/page, and the roles allowed to clone posts or pages.

If you want to contribute to translate the plugin in languages other than English, there is aGlotPress translation project available (no registration required! — You can also send me an e-mail using the form on my website).

If you’re a plugin developer, I suggest to read the section made just for you under “Other Notes”, to ensure compatibility between your plugin(s) and mine.

 

Link:- https://wordpress.org/plugins/duplicate-post/

Regenerate Thumbnails

Standard

Regenerate Thumbnails allows you to regenerate the thumbnails for your image attachments. This is very handy if you’ve changed any of your thumbnail dimensions (via Settings -> Media) after previously uploading images or have changed to a theme with different featured post image dimensions.

You can either regenerate the thumbnails for all image uploads, individual image uploads, or specific multiple image uploads.

Google XML Sitemaps

Standard

This plugin will generate a special XML sitemap which will help search engines like Google, Bing, Yahoo and Ask.com to better index your blog. With such a sitemap, it’s much easier for the crawlers to see the complete structure of your site and retrieve it more efficiently. The plugin supports all kinds of WordPress generated pages as well as custom URLs. Additionally it notifies all major search engines every time you create a post about the new content.

Supported since over 9 years and rated as the best WordPress plugin, it will do exactly what it’s supposed to do – providing a complete XML sitemap for search engines. It will not break your site, slow it down or annoy you. Guaranteed!

Limit Login Attempts

Standard

Limit the number of login attempts possible both through normal login as well as using auth cookies.

By default WordPress allows unlimited login attempts either through the login page or by sending special cookies. This allows passwords (or hashes) to be brute-force cracked with relative ease.

Limit Login Attempts blocks an Internet address from making further attempts after a specified limit on retries is reached, making a brute-force attack difficult or impossible.

Features

  • Limit the number of retry attempts when logging in (for each IP). Fully customizable
  • Limit the number of attempts to log in using auth cookies in same way
  • Informs user about remaining retries or lockout time on login page
  • Optional logging, optional email notification
  • Handles server behind reverse proxy
  • It is possible to whitelist IPs using a filter. But you probably shouldn’t. 🙂

Translations: Bulgarian, Brazilian Portuguese, Catalan, Chinese (Traditional), Czech, Dutch, Finnish, French, German, Hungarian, Norwegian, Persian, Romanian, Russian, Spanish, Swedish, Turkish

Plugin uses standard actions and filters only.

 

Link : http://wordpress.org/plugins/limit-login-attempts/