Hello Guys, If my blog posts are helpful to you then give some comment and ratings, if you found any bug also. So that if there are bugs or issues, I can resolve those bugs in next versions.

How to Install YII in Wamp?


Now a days so many people are looking in to the "YII" Framework, including me. So I tried to install the YII in my local system, having Wamp 2.2c. Not sure about other, but I faced some issue to install "YII" on my local host.

So I explored some time and finally able to install successfully "YII" in local System. I am thinking that it would be good to share "How to Install YII in Wamp".

To install 'YII' follow the below steps to install "YII" in you wamp server.

1. First step is inserting the Environment Variable for "php" in to your windows system to run the "YIIC" command successfully.

I. Right Click on "My Computer" ==> and select "Properties"

II. Now you will see the System Properties window. Select "Advanced" tab.

III. From that tab click on "Environment Variables" above to "OK" button.

IV. From the "System Variables" select the "Path" and click "Edit" button.

V. Now you will see the "Edit System Variable" with "Variable name" and "Variable value" Fields

VI. Enter "D:\wamp\bin\php\php5.3.9" (php5.3.9 is my php version in the D:\wamp\bin\php folder) at the end of "Variable value" without double quotes.

VII. Now click "Ok" for all the opened windows.

2. Now I have downloaded the "YII" from 'http://www.yiiframework.com/download/' and I have extracted the zip file in to the "D:\wamp\www\yii\" folder.

3. Before running "YIIC" command check system requirement to satisfy the 'YII' framework by running this URL : http://localhost/yii/requirements/

(This 'YIIC' command is for generating the YII framework files and folder for your site). Once all the requirements are satisfied then follow the below steps.

4. Open command prompt by Win + R and type "cmd" then click ok.

5. Move the current directory from "C:\Documents and Settings\username>" to "D:\wamp\www\yii"

a.  > D: (enter)

b. D:\>cd wamp\www\yii\framework

c. Run this command from here : yiic webapp d:\wamp\www\mysite (mysite is the your site folder name) then the output should be like below...

D:\wamp\www\yii\framework>yiic webapp d:\wamp\www\mysite
Create a Web application under 'D:\wamp\www\mysite'? [yes|no] yes

d. type 'yes' and press enter.

6. Now you have finished your installation and it show the below message : Your application has been created successfully under D:\wamp\www\mysite.

Now you are ready to use your application by accessing the URL : http://localhost/mysite/.

Thanks

hwdVideoShare Featured Videos Module


This hwdVideoShare Featured Video module is an Extension specific module, to work this it requires the hwdvideoshare component.

hwdVideoShare provides the Featured Video module but that display only Featured video thumbnails. While clicking on that thumbnail only the video will open and will play.

But my hwdVideoShare Featured Video Module is for displaying the featured videos in a video player based on the module parameter which is specified in the Module Parameters. By default it will display only one Featured Video.

Note: This module will work with Joomla1.7 but the latest hwdVideoShare Nighty Builds only. See for more details: http://hwdmediashare.co.uk/news/392-joomla-17-compatibility

You can download the zip from here


Skip Plan selection in Joomla AEC with Jomsocial profile types



Here I can explain you two things. 


First thing, Suppose in Jomsocial if you have two profile types such as Partner and Member. Here if you what to show first 3 plans to Member profile type and 4th plan (Free) to Parter profile type only.


Solution: After creating plans go to Restrictions Tab : set "Yes" value for 'Use Custom Restrictions' and in the 'Custom Restrictions' textarea place [[user_js_23]] = 1 for the Member profile type plans and [[user_js_23]] = 2 for Partner profile type plans.


Your can find [[user_js_23]]  = profile type under User Account Related data  


E.g.  
[[user_js_21]] => Arts Activities
[[user_js_22]] => Template
[[user_js_23]] => Profiletype
[[user_js_25]] => Organization Name


[[user_js_23]] = 1 ==> Member profile type id
[[user_js_23]] = 2 ==> Partner profile type id

vBulletin add-on for making Private Message as archived / unarchived v1.1

Hello to all,

 I developed v1.1 for my previous post vBulletin add-on for making Private Message as archived / unarchived

vBulletin add-on for making Private Message as archived / unarchived

Hello to all,

vBulletin is a forum software that allows users to send Private Messages (PMs) to each other. One of my client used this vBulletin Forum. He wants an addon that will show a list of all the PMs in the DB and if you click one, it should show the contents of the PM. This will run in the administrator control panel, so only the admins can use this add-on.

If admin feels the message is spam, he can select the PM and click an "archive" button and it will copy the message out of the live PM tables to some backup tables, so the message won't get delivered to site member.

Later on, if admin decided that the message is NOT spam, there will be an "un-archive" button to remove it from the backup tables and put it back into the live PM tables.

To achieve this I developed an add-on, which will help admin to make PM's archived or unarchived.


click here to get the code.. unzip and follow the instructions...


Installtion Instructions:

1. Upload the below two files in specified path below.

forum_folder/admincp/all_pms.php
forum_folder/includes/xml/cpnav_allpms.xml

2. Import the forum.sql file from PhpMyAdmin



Creat a full Installation Package of your developed site in Joomla

Hello to all Joomla! fans,

If you have developed a template or custom component for Joomla, you can provide with a custom Joomla installation package that includes your demo setup to your clients by following the below steps.
  • Create a separate copy to your developed site's folders and files.
  • Very Important: Remove the "configuration.php" file.
  • Go to Joomla.org, Download and save the standard Joomla installation package for the version you are using to develop the site.
  • Extract the standard Joomla installation package and/or Save the "installation" folder to your developed Site copy folder.
  • Go to phpMyAdmin and Export a copy of the database with Structure, Data and Drop Table options.
  • Save file the sql file to your developed site copy folder as "\installation\sql\mysql\developed_site_folder_name.sql"
  • Select all folders and files of the developed site copy folder and zip those.
  • Now your installation file is complete.
  • You can gave that zip file to your clients.
  • They can install your site as Standard Joomla Installation
Hope this helps Joomla Fans like me :)

Show Categories & Sub-Categories in a tree format

This post will explain how to show categories and sub-categories in a tree format in a directory.

Example:
We need to create a table called `categories` and the table Fields:
" id ", this should be a int(11), primary, and auto-increment.
" name ", this should be varchar(255) [ Name of the category ]
" parentid ", this should be int(11), [ " id " of the Parent category, if this is a sub-category, If  " parentid " is 0, that means the category is a top-level category ]

Code for display Categories Dropdown:
$connection = mysql_connect('localhost', 'root', '');
if (!$connection) {
   die('Could not connect: ' . mysql_error());
}

$db = mysql_select_db ('test1', $connection);
$sql = "SELECT * from categories order by name ASC";
$cats = mysql_query($sql) or die("Could not select category");

echo "<select name="category">";
recall (0,0,$cats);
echo "</select><br>";

Function recall() is the actual function that is going to generate the tree structure for our categories and sub-categories. We initially pass it values of 0,0,and $cats for its root, depth, and the actual query data. We pass is 0 and 0 for root and depth because initially we want to start from top level directories.

How to Create a Joomla! Plugin

Introduction

Joomla! plugins serve a variety of purposes.  As modules enhance the presentation of the final output of the Web site, plugins enhance the data and can also provide additional, installable functionality.
This tutorial looks at the general principles used to design and build a plugin.

Plugin Types

While the number of possible types of plugins is almost limitless, there are a number of core plugin types that are used by Joomla!.  These core types are grouped into directories under /plugins/.  They are:
  • authentication
  • content
  • editors
  • editors-xtd
  • search
  • system
  • user
  • xmlrpc
Authentication plugins allow you to authenticate (to allow you to login) against different sources.  By default you will authenticate against the Joomla! user database when you try to login.  However, there are other methods available such as by OpenID, by a Google account, LDAP, and many others.  Wherever a source has a public API, you can write an authentication plugin to verify the login credentials against this source.  For example, you could write a plugin to authenticate against Twitter accounts because they have a public API.

Content plugins modify and add features to displayed content.  For example, content plugins can cloak email address or can convert URL's into SEF format.  Content plugins can also look for markers in content and replace them with other text or HTML.  For example, the Load Module plugin will take {*loadmodule banner1*} (you would remove the *'s in practice.  They are included to actually prevent the plugin from working in this article), load all the modules in the banner1 position and replace the marker with that output.

Editor plugins allow you to add new content editors (usually WYSIYWG).

Editor-XTD (extended) plugins allow you to add additional buttons to the editors.  For example, the Image, Pagebreak and Read more buttons below the default editor are actually plugins.

Search plugins allow you to search different content from different components.  For example, search plugins for Articles, Contacts and Weblinks are already provided in Joomla!.

System plugins allow you to perform actions at various points in the execution of the PHP code that runs a Joomla! Web site.

User plugins allow you to perform actions at different times with respect to users.  Such times include logging in and out and also saving a user.  User plugins are typically user to "bridge" between web applications (such as creating a Joomla! to phpBB bridge).

XML-RPC plugins allow you to provide additional XML-RPC web services for your site.  When your Web site exposes web services, it gives you the ability to interact remotely, possibly from a desktop application.  Web services are a fairly advanced topic and will not be covered in much detail here.

Advanced Module Manager

Advanced Module Manager is an extension that changes the way your Module manager works. It adds a few functions. With Advanced Module Manager you have extra options and functionalities to control your modules.
  • See what modules are active for the menu item you are editing
  • Edit modules in modal popup windows
  • Option to not show modules that have no output (handy for things like dynamic menus)
  • Option to show modules on all pages except the selected menu items (reverse functionality of normal selection)
  • Many other publishing limits for your modules! You can limit by (AND/OR):

    • Menu Item
    • Sections / Categories
    • K2 Categories (NEW)
    • Articles
    • Components
    • URL (NEW)
    • Date
    • User Group Levels
    • Users (NEW)
    • Languages
    • Templates
    • PHP evaluation (NEW)
  • You can also choose to mirror the assignment settings of another module!   

Changing a Login Menu Link to Logout

I have seen the question: "How do I change my Login menu link to read Logout?" asked number of times and in various ways in forums and on blogs.

If you use the User > Login > Default Login Layout (Figure 1) link in any of your Joomla menus, you've probably noticed a couple of limitations associated with it. One limitation is that the name of the link doesn't change, or rather, there is not an option to change the text for users who have successfully logged into the site.

Figure 1

Well, there is a relatively simple solution using a third party extension called MetaMod. Follow the below steps :

Follow fornandakishore on Twitter