BuddyPress Members Import FAQ
#1 How to install BMI?
– Upload BuddyPress Members Import Directory to the /wp-content/plugins/ directory
– Activate the plugin through the ‘Plugins’ menu in WordPress.
– Go to Users tab there a BuddyPress Members Import menu will be present click on it.
#2 How to create CSV file?
– Open your favorite editor write your comma separated values there.
– Now do Save as the same file and save the file in CSV format.
Yahoo – Yet Another Hierarchy of Officious Oracle
Computer – Commonly Operating Machine Particularly Used for Technology Entertainment and Research
ISRO – Indian Space Research Organisation
NASA – National Aeronautics Space Administration
Virus – Vital Information Resources Under Seize
PSD – Photoshop Document (Photoshop Standard Document)
PDF – Portable Document Format (Adobe PDF)
Oracle – Oak Ridge Automatic Computer and Logical Engine
Some time we want to show auto search results just underneath the auto search box. After each character write into the text box we want to get the result from the database related to the characters present in search text box and for that we have to do AJAX call. In this case if someone wrote 4 characters then 4 ajax call will be fired and from all these ajax calls last response will be taken as a search result. Sometime it may not be correct. Because sometime before fired Ajax call can give response after the later fired ajax call, in this case we may have inconsistent data. And to solve this issue we have to abort the previously fired ajax calls. Now the question is How to stop a AJAX call before calling the same again? Below sample code will solve this problem.
wordpress security increase
To reduce the attack to your WordPress site you can follow the below instructions
1: Increase Security from htaccess file
Add the below code to your htaccess file and replace the xxx.xx.xx.xxx with your IP. IP of your system from which you want to login to your site admin section.
<Files> order deny,allow deny from all allow from xxx.xx.xx.xxx </Files>
2: Change credentials
Change admin username and password to at-least 10 characters long with combination of all possible type character.
How to show External RSS Feed post on Your WordPress Site? Dont you have time to write post and want to show post from other site’s RSS feed on your site. No worry here is a quick solution for the.
<?php //Include feed.php file include_once(ABSPATH.WPINC.'/feed.php'); $rss = fetch_feed('http://feeds.feedburner.com/NdtvNews-TopStories'); $maxitems = $rss->get_item_quantity(5); $rss_items = $rss->get_items(0, $maxitems); ?> <ul> <?php if ($maxitems == 0) echo '<li>No items.</li>'; else // Loop through each feed item and display each item as a hyperlink. foreach ( $rss_items as $item ) : ?> <li> <a href='<?php echo $item->get_permalink(); ?>' title="<?php echo 'Posted '.$item->get_date('j F Y | g:i a'); ?>"> <?php //Get title echo $item->get_title(); ?> </a> <?php //Get description echo $item->get_description(); ?> </li> <?php endforeach; ?> </ul>
Please provide your review in comment section
Please provide your queries in comment section
A new patent from Apple provides loads of information on Passbook and hints at the possibility of using near-field communications with the app.
Published today by the U.S. Patent and Trademark Office, the patent, dubbed “Integrated Coupon Storage, Discovery, And Redemption System,” goes into great detail about a system that lets you manage and redeem electronic coupons on a mobile device.
As described in the patent, such a system could trigger an alert on your phone when you’re near a store where a saved coupon can be used. It could also alert you when you’re using your device to buy something.
Passbook currently allows you to store digital coupons on your iOS device so that you can redeem them at different stores and merchants. Read More…
WordPress and ajax calls!!! Let me first explain you the situation. You have created one plugin and in this plugin one of your functionality need some ajax functionality mean you want to do something without refreshing the page like voting(like/dislike article), ajax sign in functionality.
After research alot and read several articles I understood that there are several ways to do a ajax call in WordPress like:
1: Use admin-ajax.php file for ajax call.
2: Include wp-load.php file in your ajax call file.
3: Include wp-config.php file with defining ‘SHORTINIT’ as TRUE.
Disadvantage of above ways:
– Site performance decreasing marginally due load the WP environment more than once.
– In first way is_admin() function will always get TRUE even though you are in front-end.
Now let say one situation you are working on a project in which you need several ajax functionality for all these you have created one common .PHP file and include wp-load.php or wp-config.php file and do your job. Now in future someone else going to work on this project and want to create some new ajax functionality as the new developer not aware about your file s/he will create a new .PHP and include wp-load.php or wp-config.php file and do his/her own job. So now What is the status of your site performance? What is the time complexity of your site? Think !!!
So, is there any other way to perform a ajax call without decreasing the site performance. Yes, there is a nice, tricky and easy way to do this.
Let us do a test:
Step1: Login as admin.
Step2: Create a page(say title My Ajax Test).
Step3: Note this page slug here slug is my-ajax-test
Step3: Note this page ID.
Step4: Create one file with name page-PAGEID.php or page-PAGESLUG.php and put it in your current theme root directory.
Step5: Provide this created page’s url for ajax functionality.
Step6: Write code in the above created file, in this file you have access to all WordPress functions, for ajax functionality.
What are you thinking, is not a good and perfect way to do ajax call in WordPress?
Now what if you want to create a plugin in which you need to implement some ajax functionality and plugin needs to be portable?
In this case create a page using code and create a page-PAGEID.php file in your current theme root directory. Place you ajaxed php code in this file using PHP file handeling functions.
I have created one sample plugin which will help you to understand this more clearly.
How to use the above plugin:
– Install the plugin.
– Goto widget section.
– Drag the ‘WordPress Better Ajax’ widget to any sidebar.
– Goto front end and click on ‘Click Me’.
– This procedure will not decrease your site performance.
– In a single file you can do all your ajax calls.
– If you directly access this page then it will give you a message indicating that you are in wrong place.
Please comment what you are think about this.