WordPress sidebars fetching on other cms with wordpress xml rpc

Recently I worked on a site which is using wordpress as it’s cms and creloaded as it’s web shop. So the wordpress was top of the shopping cart and then the shopping cart as webshop. So basically I had to develop the site using wordpress and then had to install that creloaded inside woordpress installation.

For main site wordpress has it’s header (with navigation), footer (with navigation and other contents), sidebar with widgets etc. So when I am visiting the web shop with creloaded I was required to show the same layouts and design. For that I had to use wp xmlrpc to fetch those common features into creloaded system.

XML-RPC functionality is turned on by default since WordPress 3.5. So anyone can use it who is using wp 3.5 or greater without activating xml-rpc via wordpress admin!

All of this can be done with below written 3 steps.
1. Writing XML Client Class
2. Using XML Client
3. Defining XML Server methods in wp functions.php

Note: Here all the things are not well documented, Because I am assuming you are enough expert on wp and did some google and finally here to see a code example of wp xml rpc implementations.
Read More

z-index of dropdown menu vs iframe (youtube) video issue

When you are using iframe to display any video, for example if you are using youtube iframe video and on your site it has a dropdown menu and your dropdown memu is showing behind the iframe video you can make it top of iframe video with below written jquery code.

(function ($) {
    $ = jQuery;
    $(function () {
        $video = $("#parentocontainer> iframe");
        $srcVal = $video.attr('src');
        appendedVal = $srcVal + "?wmode=opaque";
        //or
        //appendedVal = $srcVal + "&wmode=opaque";
        $video.attr('src',appendedVal);
    });
 })(jQuery);

404 Page Not Found after custom form submission on wordpress

Sometimes it’s happen! when you submit a wordpress form it says ‘Page Not Found!’ or Saying ‘This is somewhat embarrassing, isn’t it?It seems we can’t find what you’re looking for. Perhaps searching, or one of the links below, can help.’

But your defined page action has a valid url and all post values are available too on that same page. Also if you submit that form as empty input that it works fine!

If this is the case then The problem is by the “name” parameter you posted from your form. WordPress has some reserve parameter for internal use like client_name, author_name etc

So you just need to try with renaming your form fields. Hope it will solve it!

Selecting diagnostic center as a project or software to develop

I have a pathology laboratory in Beanibazar, Sylhet Bangladesh for my Uncle Md. Yeakub-Ul Islam. Last few days we are deciding to develop that pathology laboratory to a complete diagnostic center. That is why my uncle saying me to develop a computer software by which we can manage it.

We are planning to manage below listed all sections of a diagnostic center like

  1. Reception
  2. Sample Collection
  3. Test Report or Report Printing
  4. Report Delivery
  5. Sales
  6. Reagent Stock Control etc

 

So, for our complete professional project development we are deciding to develop this project which will control a complete diagnostic center with above listed sections.

 

Work Flow of a diagnostic center:
Step 1: Patients come to lab reception section to do some medical diagnosis with a doctors prescription.
Step 2: Reception executive keep that patients record with list of test and print a voucher with patients record also keep payments record.
Step 3: Reception executive forward that patients to sample collection department.
Step 4: Sample collection complete and forward the sample to lab section and forward the patients to waiting room.
Step 5: After all medical test done, Lab executive needs to input all data with his/her computer screen for that invoiced patients.
Step 6: Lab report delivery executive prints the report.
Step 7: Finally report delivery executive deliver the report to patients.

 

So, based on above work flow of a diagnostic center we are going to do some system analysis and features listing on our next article. To be continued…..

how to make windows form application design looks like windows 7 – Enable Visual Styles

If you see any control visual looks is not just what it was looking on interface design mode (or windows style looks) like below 2 images

looks of interface design mode
Without Enable Visual Styles or Windows Classic Looks

Then It means you are skipping a method call from System.Windows.Forms Namespaces, that is EnableVisualStyles

To Enables visual styles or operating system like controls color, fonts and other visual elements for your application just use below code before application run on Main method.

Application.EnableVisualStyles();

as below

[STAThread]
static void Main()
{
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new Form1());
}

Returning a value to parent form from sub or popup form with C Sharp .net

It is a common features you may need it several times when you are on the way of a professional C# application development.

Suppose you have a Parent form which has a Textbox control and a Button control. Now you want to click on the button Control then it will open a Sub form or a PopUp form. In which there will be another button or any other control for example DatagridView and you want to click on it and it will return a value to it’s Parent form and that value will display on Parent forms TextBox control as text property.

You can do it by below listed steps.

Step 1 (Parent Form Code):
On parent form button control click event you can call your sub form like below code to open it and get it’s returning values from it’s predefined properties and use it for your textBox control as below.

private void button1_Click(object sender, EventArgs e)
        {
            frmSubForm objSForm = new frmSbFOrm();
            if (objSForm.ShowDialog() == DialogResult.OK) 
            {
                this.txtParent.Text = objSForm.StringProperty;
            }
        }

Step 2 (Sub Form Code):
On the sub form which one is opening after the click on button control of Parent form you can write below code for any events to return the value and exit sub form.

private void button1_Click(object sender, EventArgs e)
        {
             this.StringProperty= "Sample String";
             this.DialogResult = DialogResult.OK;
        }

Basics of a complete professional software in development

When you are on the way of a professional software development with any programming language, there are some primary things you need to keep in touch while development.

Basically,

  1. When or why a software is needed in a factory or company?
  2. Why any factory level company or a general company will agree to use your software instead of maintaining their company by the current procedure?
  3. What is the security of your software?
  4. What is the extra benefit to use a computer software?
There are a lot of question will come from a client end when you propose to use a computer software, you know.
 
To keep some perfect answer against above listed questions and upcoming question from the client, there are a lot of solution or features should have to be available in a professional software included.

A complete professional software development with C Sharp .net

If I start from the beginning when I was in University and working hard for a Complete professional software development with VB.Net on Visual Studio 2005.

I was too much curious to know what is the actual look or coding system for a professional software? How can I develop a software with professional look and coding? What will be the features listing of a complete software? etc etc

It’s after 5 years from here! Now I can develop those all things with quite nice features, coding standard and looks with some different languages!

Ok, come to the point, With C Sharp .net I will write a complete series of article to show the step by step development of a complete professional software. It should be from the step zero, that is selecting what I want to develop and what function can be done with that project that is features listing. Then the step by step development.

So the basic flow of that series of articles will be

Hopefully all those articles will be easy to read and easy to understand for those who have basics on computer programming in C Sharp language. I am not sure how much it is true yet, to see what is coming next keep in touch!

Note: In the meantime you can do some basic study on C Sharp with Visual Studio 2010 as well!

Thanks