Latest Updates: php RSS

  • Website Development and Website Hosting

    Parampal 1:19 pm on March 27, 2009 | 0 Permalink | Reply

    In need of a website, CRM or a web application but don’t really know where to start?

    Please send me an email contact@parampal.com outlining what you need and I can help.

    • I work at competitive rates, and guarantee excellent results.
    • I have a strong knowledge base in all major web programming languages such as PHP, ASP, CGI and AJAX.
    • I have experience in using all popular CMS technologies such as:
    • I have worked commercially in the CRM field, using Sugar CRM and have developed a separate CRM portal myself.
    • Web hosting for all applications that I develop is given at a minimal cost price fee.
    • I also offer hosting for applications not developed by myself, and provide other hosting services such as CPanel, email, domain registeration.
     
  • Using Wordpress as a CMS

    Parampal 9:25 am on March 28, 2009 | 0 Permalink | Reply

    Recently I chose to use the popular PHP blogging software Wordpress as a fully blown CMS for a recruiting website that I needed to develop. Coming from a Joomla, CMS Made Simple background I found wordpress completely satisfied my needs as a CMS developer. It showed to have:

    1. A customisable User login / registration (using the Register Plus plugin)
    2. Customisable forms which allow you to process form data and error handling during all stages of a form submission. (using the cforms plugin)
    3. Accessing and understanding the database was relatively easy
    4. I could easily locate a large number of free themes to pick from, which look professional and elegant (see themes websites: http://topwpthemes.com and http://wordpress.org/extend/themes)

    One obvious fact I noticed straight away was that wordpress relies on plugins to do anything beyond the basic blogging task. Fortunately there are already existing plugins for most advanced features that you might require – below I talk a bit about the above points in more details.

    1. Register Plus

    http://wordpress.org/extend/plugins/register-plus

    I used this plugin to extend my user registration form, to contain beyond the basic fields such as name and email. The installation and configuration is all done in the admin area under the Users tab and is all self explainatory. See screen shot below for what the admin area looks like

    Register Plus Admin Console Screenshot

    Register Plus Admin Console Screenshot

    2. cForms

    http://www.deliciousdays.com/cforms-plugin

    Allows you to create customised forms, with fields of all types. It gives you the option of using ajax in your forms for submission and error checking and is very easy to install and configure.

    To handle data submitted by forms you simply place your code within the wp-content/plugins/cforms/my-functions.php file. In this file you will find numerous functions commented out, each function serves its own purpose and allows you to retrieve the form data during different stages of the form submission process. For example, if you need to do something after validation, but before processing has been completed by cforms you will put your code in the my_cforms_filter() function (or the my_cforms_ajax_filter() function if you chose to use ajax). If you need to run code after all the processing by cforms is complete you should place your code in the my_cforms_action() function. See below for an example my_cforms_action() function


    function my_cforms_action($cformsdata) {

    $formID = $cformsdata['id'];           /* This is the form id used when you create your form - this is so you can perform processing for a specific form */
    $form   = $cformsdata['data'];         /* This contains all the form data posted */

    //job application form
    if ( $formID == '2' ) {

    $application_data = array (

    'email' => $form['Email'],
    'first_name' => $form['First Name'],
    'last_name' => $form['Last Name'],
    'date_applied' => $date_applied,
    'note_id' => $note_id,
    'note_file_extension' => findexts($form['Resume[*2]']),
    'comment' => $form['Comment'],
    'file' => $form['Resume[*2]']
    );

    .....

    }

    3. Understanding the wordpress database

    Understanding the wordpress database structure was not a difficult task. When manipulating the database there are only really 4 tables you need to concern yourself with:

    • wp_terms: Creates a generic term
    • wp_term_taxonomy: Allows you to label a term as something more significant, such as a category
    • wp_posts: Stores all posts, pages and revisions
    • wp_term_relationships: Stores all the labels for a given post. For instance this would store every category a single post has been placed under. This therefore needs to store a reference to the wp_posts and wp_term_taxonomy tables

    4. Wordpress Themes

    Wordpress themes are similar to plugins, they basically control the way your page looks. You can freely find themes on the web, here are a bunch of my favourite theme sites:

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
esc
cancel