wordpress publish a post from frontend without plugin

How to publish a post from frontend without plugin in wordpress? This is not a complex task and users can publish their own post without using a plugin.Post fields validations, error displaying and bootstrap html contents added and you have only add bootstrap css files.
Continue reading wordpress publish a post from frontend without plugin

WordPress Add Media Button not working

When you’re working with wordpress may be you have to face to this problem.This is a common issue in WordPress 3.5 version.When you going to create a new post or edit a post and if you click on “Add Media” button it is not working and nothing happened. If you updated wordpress this issue may be exist.The main reason is javascript/jquery conflicting.May be the Visual editor not working because of this issue.So I’m going to show how to fix this issue in few methods.

wordpress add-media-button-not-working
Continue reading WordPress Add Media Button not working

WordPress add custom field to registration form without plugin

I’m going to show how to add custom field to user registration form in wordpress.I checked through the internet to add this custom field and how to validate that field for values.But couldn’t find useful articles. So I decided to show simple guide to how to add custom field to user registration form and how to validate it for values from simple step to advanced steps.So special thing is you don’t have to use any plugins for this.

Continue reading WordPress add custom field to registration form without plugin

WordPress add custom sidebars to the site without plugins

I’m going to show you how to add custom sidebars to your theme without using any plugins.This is easiest way to add sidebars to your theme.Default in the wordpress theme there is one or two sidebar.In here I’m using a default theme of wordpress named “Twenty Twelve”. There are few steps you have to do.

Continue reading WordPress add custom sidebars to the site without plugins

Read Excel file and save details to database using PHP-Repost

How can you read excel file using php and save that details to the database? My other post is describing Read Excel file and save details to database using PHP.But it is not properly working in new version of excel 2007..etc.My readers are asked to do this for other excel versions.So I’m going to show how to read any format of excel file like 97-2003(xls) or 2007 (xlsx) formats excel files. Also I’ll show how to create/write excel file using php.

Continue reading Read Excel file and save details to database using PHP-Repost

jQuery get click element’s coordinates

How can I get clicked element’s coordinates that means mouse x and y positions related to the clicked element, related to document and related to it’s parent element?This is not the big task.jQuery pageX, pageY, offset() events can be use for this purpose. I’ll describe these all types, it’s usages and error handling.

So we’ll get the position of mouse pointer related to element or simply the mouse pointer location.

Get click element’s coordinates related to the element

Here is the html content.

Here is the css style.

Here is the jquery script to get the clicked position’s coordinates related to the element.

Explanation

Check this diagram.Then you can easily understand what am I saying above. 😉
NOTE: You must set the css styles in the element as position:relative.
jQuery get clicked element's-coordinates

Get clicked element’s coordinates related to the document

Now we’ll see how to get clicked position’s coordinates related to the document.Previously we discussed related to the element.
Here is the jquery script to get the clicked position’s coordinates related to the document.

Explanation

Get the clicked position's coordinates-related to the document

Get clicked element’s coordinates related to it’s parent element

Further explanations about offset() and position()

The .offset() method allows to retrieve the current position of an element related to the document.
.position(), which retrieves the current position related to the offset parent.

For a example, I have following html content.

The offset of the id named “subElement” is top:200 and left:200.But it’s the position is left:0 and top:0

But if you add attribute in the css position:relative; you can find the difference then.

.offset().top will get the top from the document.

.position().top will get the top from the relative parent.(if parent is relatively set)

Javascript open the url in new tab

If you’re working with javascript and html sometimes you want to open the url in browser new tab using javascript.Because that process is dynamically doing using javascript and can’t apply the html.For a example If I clicked on the link it open in new tab, but that clicking process is doing by javascript.I think you have an idea about that.OK, let’s see how to open a link in the new tab using javascript.

Continue reading Javascript open the url in new tab

JQuery trigger click event not working

Sometimes jquery trigger click event not working properly.That is not the browser issue.There is not jquery conflicting or javascript errors.If you already added jQuery.noConflict(), not working trigger click event.The main issue is the .click() function call is calling the browser’s built-in ‘click’ function,not the jquery’s.In other words, you can only trigger a click that jQuery has created.

Continue reading JQuery trigger click event not working

JQuery get href value of anchor tag in clicked li tag

I have the following list items with each anchor tags.So I need to get each clicked list item’s anchor tag href value.Here tested solutions and possible errors of the discussions beyond the expectation. Continue reading JQuery get href value of anchor tag in clicked li tag

Display latest recent posts in my facebook page into my website

How to display your facebook wall posts into your own web site.For a example you can display facebook page’s latest posts into your web site sidebar as “latest posts”. This is actually displaying as rss feeds.You can check my demo how this is implemented.

Continue reading Display latest recent posts in my facebook page into my website

PHP remote submit a form and get result using curl

How to submit with data to another web site’s form and get its results using php?You can remote submit a form using curl functions.Then can get it’s results.This is named as scraping also.Let’s see how to remote submit a form and get it’s result using php curl.
Continue reading PHP remote submit a form and get result using curl

Creating QR code using Google Chart

How can you create QR codes? QR codes means Quick Response Code.This contains hidden details.Using as the trademark.This QR codes can be read by QR code scanner or Bar-code scanner.There are many online QR code generating tools.But you need to know how to create and integrate QR code into your web site or system.So in here we’ll show you how to create a QR code using Google charts.

Continue reading Creating QR code using Google Chart

wordpress widgets are not clickable

If you have wordpress blog sometime you faced to this error. All wordpress widgets are displaying properly.After clicked on the each widget’s options are not opening.Another issue is widgets are not displaying.Menu items are not displaying when mouse hover.And other error is can’t drag and drop wordpress widgets. So in this post is describing how to solve these issues.

There are the errors in the admin panel.

  • After clicked on the each widget’s options are not opening.
  • Can’t drag and drop widgets.
  • Menu items are not displaying when mouse hover.
  • Sometimes not saving data.

The reason is javascript/jquery conflicting.

How to fix these issues?

There are some methods to fix these issues.

Method-1

Disable all plugins and check it.If not success sign out again.If success, the reason is plugins conflicting.Enable one by one and detect the plugin and try to update it.

Method-2

If you installed cache plugins clear all cache with admin panel.If you minified javascript, disable and check with reloading page.

Method-3

Apply twenty twelve or twenty eleven theme and check.If success, the reason is in your current theme.Try to update or find the solutions.

Method-4

If you are not install firebug add-on, immediately install to the browser and press F12 key, click Console button and check if displaying javascript or some errors.
If displaying you can identify what the errors.

Method-5

Check the jquery library file is loaded into the admin panel.If not exist, add it.
Better way is add “Use Google Libraries” Plugin.Then lot of issues are fixing.
Download Use Google Libraries from here.

Method-6

1-Go to the root folder and open wp-config.php file.
2-Copy and paste the following script end of the file and save it.

3-Check the admin panel for issues.

Hope this will be help to solve these issues!

Convert xml file into excel file using php

Here we are describing convert xml file into excel file using php.Simple way to convert xml file into excel file with php.If you have basic knowledge of xml and php(:D) this is very easy.My another post is showing how to read Excel file and save details to database using php. If you not good familiar with xml read this PHP Creating XML file post and Read XML file using PHP post to get and better idea.

Continue reading Convert xml file into excel file using php

Magento reindexing problems – Solutions

If you have magento store sure you have seen “There was a problem with reindexing process” error message.If you try to reindex from magento admin panel, all options are not reindexing.There are may be category flat data,product flat data and product prices reindex errors.Here I’ll describes how to solve this reindex problem in the magento store. Continue reading Magento reindexing problems – Solutions