Is it possible to add a Page Tab to an external link of some other website. I mean page navigation menu that is at the top of WP blog and I want to link a page tab from there to an external link of some other site.
Category Archives: Homeschool
How To Add Facebook Chat On Firefox Sidebar
1. Open Firefox browser.
2. Move to top navigation menu
3. Select Bookmarks >> New Bookmark
4. Place a new bookmark with following details:
- Name it “Facebook Chat”
- Set location at http://www.facebook.com/presence/popout.php
- Check this “load this bookmark in sidebar”
5. Load Firefox sidebar from View >>Sidebar >> Booksmarks
The London 2012 Bitcoin Conference
London 2012 Bitcoin Conference: http://bitcoinmagazine.net/the-london-2012-bitcoin-conference/
php.js – PHP VM with JavaScript – run that PHP code in JavaScript!
php.js – PHP VM with JavaScript – Run PHP code in JavaScript! http://phpjs.hertzen.com/
Is there any plugin to choose an image…
Is there any plugin to choose an image for each post?
Show Related Posts In Your WordPress Blog Without Using Any Plugin
Copy and Paste the given code within the loop. It may engage your blog visitors to stay for a longer time:
<?php
//for use in the loop, list 5 post titles related to first tag on current post
$tags = wp_get_post_tags($post->ID);
if ($tags) {
echo ‘Related Posts’;
$first_tag = $tags[0]->term_id;
$args=array(
‘tag__in’ => array($first_tag),
‘post__not_in’ => array($post->ID),
‘showposts’=>5,
‘caller_get_posts’=>1
);
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<p><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></a></p>
<?php
endwhile;
}
}
?>
This code displays posts related to current post. It is based on tags. You may change the number of posts it displays, just change ‘showposts’=>5 with your number.
Display Popular Posts In Your WordPress Blog’s Sidebar Without Using Any Plugin
You can highlight most popular content of your WordPress site in your sidebar. Copy-Paste the following code in your theme’s sidebar.php file:
<h2>Popular Posts</h2>
<ul>
<?php $result = $wpdb->get_results(“SELECT comment_count,ID,post_title
FROM $wpdb->posts ORDER BY comment_count DESC LIMIT 0 , 5″);
foreach ($result as $post) {
setup_postdata($post);
$postid = $post->ID;
$title = $post->post_title;
$commentcount = $post->comment_count;
if ($commentcount != 0) { ?>
<li><a href=”<?php echo get_permalink($postid); ?>” title=”<?php echo
$title ?>”>
<?php echo $title ?></a> {<?php echo $commentcount ?>}</li>
<?php } } ?>
</ul>
It displays most popular posts on your site’s sidebar.
For changing the number of posts to display in your sidebar:
Look-up for this line in the above code block: FROM $wpdb->posts ORDER BY comment_count DESC LIMIT 0 , 5″); and Replace 5 with the number of posts you like to display.
Easiest Way for Displaying both Popular and Unpopular Posts in your Sidebar:
Now easiest way to do this (display popular posts) and many other similar things like displaying both popular and unpopular posts, knowing the number of post hits is to use Most and Least Read Posts Widget Plugin.
Download from the link, activate it and start using it by placing its widgets in your sidebar. It gives you two different widgets one shows most read posts and the other shows least read posts and also it counts your post hits both on sidebar and in your dashboard All Posts list.
Add “Pin It” Button To Your Google Chrome’s Bookmark Bar
For installing “Pin It” button in your Chrome:
- Visit Pinterest Goodies.
- Display your bookmark bar if it is hidden: Visit Wrench Icon (present at the top right corner of chrome) >> Bookmarks >> Check Show Bookmarks Bar
- There is a “Pin It” button on that page. Drag it to your bookmark bar.
- Now while browsing the web you can pin any image by pressing this “Pin It” button.
Watch this video tutorial:
[iframe][/iframe]Add ‘Pin It’ Button To Images In Your WordPress Blog
Without using Plugin: Add this code to your theme’s footer.php file before the </body> tag. Get Pinterest’s javascript at Goodies.
<script type=”text/javascript” src=”//assets.pinterest.com/js/pinit.js”></script>
Add this code to your theme’s single.php file wherever you want Pin It button to be visible:
<a href=”http://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&media=<?php echo catch_that_image() ?>&description=<?php the_title(); ?>” class=”pin-it-button” count-layout=”horizontal”><img border=”0″ src=”//assets.pinterest.com/images/PinExt.png” title=”Pin It” /></a>
Add this code in your theme’s functions.php file:
function catch_that_image() {
global $post, $posts;
$first_img = ”;
ob_start();
ob_end_clean();
$output = preg_match_all(‘/<img.+src=[‘”]([^'”]+)[‘”].*>/i’, $post->post_content, $matches);
$first_img = $matches [1] [0];
if(empty($first_img)){ //Defines a default image
$first_img = “/images/default.jpg”;
}
return $first_img;
}
Or You may use a WordPress plugin and that would be more easy for you. Use this plugin Pinterest Pin It Button For Images. Either search it on WP Plugin search or click the link and upload the folder to the /wp-content/plugins/ directory, Activate from ‘Plugins’ menu and Enjoy.
How To Remove Auto Links From WordPress Author…
How To Remove Auto Links From WordPress Author Bio: http://www.stumbleupon.com/su/35bRkq/www.iblognet.com/remove-auto-links-wordpress-author-bio.html
Hide Post Images Without Removing Thumbnail Image In Category Archive
Given code hides post images but keeps thumbnail image in Category archive and homepage. Add following code block in your theme’s function.php:
function wpi_image_content_filter($content){
if (is_home() || is_front_page() || is_category()){
$content = preg_replace(“/<img[^>]+>/i”, “”, $content);
}return $content;
}
add_filter(‘the_content’,’wpi_image_content_filter’,11);
Facebook Marketing Team Released Facebook Posters For Your Business
Facebook marketing team has released posters that you can use in your business stores after printing them. Its PDF so you can print them and put it in your office, stores or anywhere you want to encourage your clients, customers and others who visit your business place to join your page on Facebook. Also if you like you may put it in your website linking to your Facebook page but these posters are better for using as printable posters and for websites those old Facebook badges are fine.
Download all posters from here: http://ads.ak.facebook.com/ads/FacebookAds/Facebook_Signs.pdf
How To Grant Privilege To Any MySQL Database User ?
GRANT command is be used for giving privilege to any user for accessing database.
GRANT PRIVILEGES ON DATABASE OBJECTS TO USER@HOST IDENTIFIED BY ‘PASSWORD’;
Example:
For granting privilege to user admin Use:
GRANT ALL PRIVILEGES ON *.* TO ‘admin@localhost’ IDENTIFIED BY ‘secret’;
For specifying the username and password which is used while staring MySQL is:
mysql –h hostname –u username –p password
When you don’t want users to access any other database tables then replace* (as shown below) with database name of that particular user whom you want to limit access to other database tables:
GRANT ALL PRIVILEGES ON ‘store’.* TO ‘admin@localhost’ IDENTIFIED BY ‘secret’;
Run given command with root permission. In the given command ‘store’ correlates to the name of database to which the privileges are assigned.
Google Nexus 7 a post PC device for…
Google Nexus 7: a post-PC device for the rest of us. Well played, Google. If your budget hits a ceiling at £200 then the Nexus 7 is just the right tablet for you. It’s a really good tablet. Now, is it a great tablet?
Adblock Plus For Annoyance-free Web Surfing
Adblock Plus is good if you need to block undesirable website elements to appear on web pages while you are surfing the internet. Subscribe a free filter service and add undesirable website elements to the block list with just a single click.
Use sudo apt-get install xul-ext-adblock-plus command to install this app from your Linuc terminal.
Visit Firefox >> Tools >> Add-ons >> Get Add-ons >> Search All Add-ons >> AdBlock Plus to add Addblock extension to your Firefox web web browser.
Inexpensive And Surprisingly High Quality Hardware Fine Working With Android Jelly Bean Will Make Largest Possible Market For Nexus 7 In India
Inexpensive and Surprisingly high-quality hardware fine working with Android Jelly Bean will make largest possible market for Nexus 7 in India. If Google integrates Universal Free Education System (that primarily works in India’s Language) in Nexus 7 in its release in India then I am sure it would be attracting 1.21 billion people of India because they would be learning the most advanced technology in their language and that would be changing the geopolitical structure of Internet and Google too because only 121 million Indians are active on Internet from 1.21 billion overall guessed population. Currently 929.37 million Indians are using mobile devices because its inexpensive and easy as they don’t need any education for that. Hence, it would be good if Google targets them first.
Nexus 7 Is Getting Towards Very High Demand In Comparison To Other Tablets. 16GB Model Is Sold Out
Nexus 7 16GB Is Sold Out. Google is not taking any more orders for Nexus 7 16GB: https://play.google.com/store/devices/details?id=nexus_7_16gb No idea when it will be available again. Still, buyers may leave an email message for Nexus 7 16GB model and Google will notify them as soon the model get available. Nexus 7 8GB model is still available. Although demand for smaller 8GB version is comparatively low than 16GB one.
Kyle Wagner’s tutorial on How to Pirate Movies…
Kyle Wagner‘s tutorial on How to Pirate Movies, Music, TV Shows, and Books Without Getting Caught: http://gizmodo.com/5927849/how-to-pirate-movies-music-tv-shows-and-books-without-getting-caught
Shared by Hacker News
WordPress’s VIP Team Launched New Plugin That Controls Bulk User Management On Multisite Network
VIP team launched new plugin which is capable enough to control and manage all users across many sites in a multisite network install. It can check all network users and their roles on different sites sites and helps you to edit users, user roles on different sites at a time without visiting their dashboard from All Sites Super Admin Menu.
Linux 3.5 Kernel Is Released
Linux 3.5 has been released on 21 Jul 2012.
This release includes support for metadata checksums in ext4, userspace probes for performance profiling with tools like Systemtap or perf, a sandboxing mechanism that allows to filters syscalls, a new network queue management algorithm designed to fight bufferbloat, support for checkpointing and restoring TCP connections, support for TCP Early Retransmit (RFC 5827), support for Android-style opportunistic suspend, btrfs I/O failure statistics, and SCSI over Firewire and USB. Many small features and new drivers and fixes are also available.
Read More: http://kernelnewbies.org/Linux_3.5
Facebook Is Less Trusted With Personal Data Than Others
Fewer Internet users trust Facebook with personal data than other Internet companies.
According to Harris Interactive Inc. Survey:-
- 1/3rd Internet users says that they are comfortable with Facebook’s policy of handling personal information
- 41% respondents trust Google to show ads based on past Web searches.
- 66% percent, are comfortable with Amazon using data on past purchases to recommend products.