Be aware …! approving comments.
For the new blogger, receiving a comment can be a memorable experience. We feel validated and being jugded. We’re excited our blog got found by some one.
Unfortunately, some of those comments which make us so happy, turns out to be a spam by some spammers who post these comments for their own benefits. Some spams are easy to spot, they are usually comments filled with links to pharmaceutical drugs or sexual topics, or comments which didn’t apply to our blog topic. But some are very difficult to differentiate either it is spam or some visitor appreciating your post; leaving positive comments that look authentic, however the words they choose could apply to any blog or blogger; copied and pasted throughout the blogosphere.
Read more..
Change your IP & DNS setting using batch file
I always have to change my ip settings when i have to move between home and office. Also my office network has static ip and at home I prefer using DHCP. So, finally I have solve this situation in such a way that I don’t have to bother myself for changing all settings manually. Psst…….so lazy…
If you can do it in just one click on batch file who is going to care about anything……?
here is the code for the batch commands:
Read more..
WP Admin Bar….!
Disable the Admin Bar for individual users
By default, each registered user has the option of showing the Admin on the frontend and/or back-end of the site. Thus, to change your preferences, just visit Users > Your Profile and choose your options as seen here:
Unfortunately, this gets kind of tedious when customizing profiles for many users. Fortunately, we’re just getting started, so read ahead to see more efficient ways of disabling and modifying the WordPress Admin Bar.
Disable the Admin Bar for all users of the current theme
To cleanly disable the Admin Bar for all users through your theme (and thus your site), add this snippet to your theme’s functions.php file:
// disable the admin bar show_admin_bar(false);
Creating Nextgen gallery on your theme page
Nextgen Gallery is my favourite gallery plugin for WordPress. It provides shortcode to insert gallery in posts,pages, sidebars etc. In this post, we are going to use nextgen’s built in functions to show these galleries, albums in WordPress template files. Ideally we show the Nextgen gallery on a page or post using the shortcode [Gallery not found] , where x is the gallery id which you want to show. One way is to execute this short code in any template file using this do_shortcode method, explained in the post. But we are going to use the alternate method which is the right way to do it.
How to show the Nextgen Gallery
$ngg = new NextGEN_Shortcodes;
echo $ngg->show_gallery( array("id"=>$gallery_id,"images"=>num_img,"template"=>"mygallery") );
Adding Youtube button on editor and prepare shortcode
Adding Shortcode:
In your functions.php, add this code:
// add the shortcode handler for YouTube videos
function addYouTube($atts, $content = null) {
extract(shortcode_atts(array( "id" => '' ), $atts));
return "<object width="425" height="355" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowScriptAccess" value="always" /><param name="src" value="http://www.youtube.com/v/'.$id.'?version=3&autohide=1&showinfo=0" /><param name="allowscriptaccess" value="always" /><embed width="425" height="355" type="application/x-shockwave-flash" src="http://www.youtube.com/v/'.$id.'?version=3&autohide=1&showinfo=0" allowScriptAccess="always" allowscriptaccess="always" /></object>";
}
add_shortcode('youtube', 'addYouTube');
This lets you use a shortcode in your post that looks like [youtube id="xxxxx"]
Interacting with wordpress database
While you already use many functions in WordPress to communicate with the database, there is an easy and safe way to do this directly, using the $wpdb class. Built on the great ezSQL class by Justin Vincent, $wpdb enables you to address queries to any table in your database, and it also helps you handle the returned data. Because this functionality is built into WordPress, there is no need to open a separate database connection (in which case, you would be duplicating code), and there is no need to perform hacks such as modifying a result set after it has been queried.
In this article, we will learn how to get started with the $wpdb class, how to retrieve data from your WordPress database and how to run more advanced queries that update or delete something in the database. The techniques here will remove some of the constraints that you run into with functions such as get_posts() and wp_list_categories(), allowing you to tailor queries to your particular needs. This method can also make your website more efficient by getting only the data that you need — nothing more, nothing less.
Creating Super Admin different than what potential hacker would Expect
We are going to Know how to create the Super Administrator user name and ID – are different than those a potential hacker would expect. This post was originally written by Nicholas K. Dionysopoulos and he is leading web developer of Akeeba Backup (backup solution for joomla)
WHO’S THAT BLOKE CALLED “62”, ANYWAY?
As soon as you install Joomla!, a potential hacker already knows too much about your site’s set-up. You have a Super Administrator user and his ID is 62. His user-name is admin. The only key information missing for “owning” your site is your password. This can be stolen or changed if the hacker finds a vulnerable extension on your site. You see, known constants are a security nightmare as made clear in the case of the attack against Joomla! 1.5.5, which caused a lot of sites to be compromised as the researcher who found the vulnerability released it to the general public before the Joomla! team had a chance to fix it. Remember, belonging to a homogeneous population can be very bad for your well-being!
Free HTML5/CSS3 WordPress 3.1+ Theme With Responsive Layout: Yoko
Yoko is a modern and flexible WordPress theme. With the responsive layout based on CSS3 media queries, the theme adjusts to different screen sizes. The design is optimized for big desktop screens, tablets and small smartphone screens. To make your blog more individual, you can use the new post formats (like gallery, aside or quote), choose your own logo and header image, customize the background and link color.
Guide to install and use swftools
SWF Tools allows you to easily embed flash content and media players on your pages. The whole concept of SWF Tools is to let you focus on displaying media on your site, but without having to write code to enable it.
- Install swftools from here
- Download plugins – for example:
- media player: http://www.jeroenwijering.com/?item=JW_Media_Player
- image rotator: http://www.jeroenwijering.com/?item=JW_Image_Rotator
- install all plugins in ./sites/all/modules/swftools/shared!!!! .
- /sites/all/modules/swftools/shared/flash_media_player/mediaplayer.swf(wijering.module)
- ./sites/all/modules/swftools/shared/flash_image_rotator/imagerotator.swf (wijering.module)
- final tree (copiend form ./shared/README.txt):




