none

quick fix, wordpress | No Comments | January 31st, 2013

PLease add this code in function.php file from your active Theme folder   function szub_nofollow_tag($text) { return str_replace(‘<a href=’, ‘<a rel=”nofollow” href=’, $text); } add_filter(‘wp_tag_cloud’, ‘szub_nofollow_tag’);   /* Will add no follow in tag Cloud */ add_filter(‘the_tags’, ‘szub_nofollow_tag’); /* Will add no follow in Post Tags */      

....Read More
none
none

quick fix | No Comments | January 18th, 2013

For ebay listing .. we have to use Inline CSS. every style need to write in component itslef …. no class is used there. I did some poking around to find a good solution for making CSS inline and I found a VERY useful tool called “Inline Styler” hosted at torchboxapps.com. http://inlinestyler.torchboxapps.com/styler/ It is an […]

....Read More
none
none

Mode rewrite | No Comments | December 13th, 2012

To implement such redirect using mod_rewrite and .htaccess you need to use RewriteMap directive which cannot be placed in .htaccess — only in server config / VirtualHost context. If you have such access: 1. Place this line inside <VirtualHost> block for your site: RewriteMap lc int:tolower 2. Place this in your .htaccess: RewriteCond %{REQUEST_URI} [A-Z] […]

....Read More
none
none

quick fix | No Comments | July 16th, 2012

Hoe to get folder name from current page Use this function function getCurrentDirectory() { $path = dirname($_SERVER[‘PHP_SELF’]); $position = strpos($path,’/’) + 1; return substr($path,$position); }   echo getCurrentDirectory();

....Read More
none
none

javascript | No Comments | July 10th, 2012

function checkAll(field) { for (i = 0; i < field.length; i++) field[i].checked = true; } <form  method=”post” action=”” name=”myform”> <input type=”checkbox” name=”checkboxname[]” value=”1″> <input type=”checkbox” name=”checkboxname[]” value=”2″> <input type=”checkbox” name=”checkboxname[]” value=”3″> <input name=”CheckAll” type=”button” value=”Select All” onclick=”checkAll(document.myform[‘checkboxname[]’])” /> </form>

....Read More
none
none

javascript | No Comments | June 23rd, 2012

1 Open the HTML file you want to add Javascript to in your text editor. 2 Create the Javascript tags by typing the following in the text editor: <script type=”text/JavaScript”> </script>. The tags tell the Web browser to execute the code between the tags as Javascript. The remaining code will be written between the tags. […]

....Read More
none
none

wordpress | No Comments | April 8th, 2011

If you want to make posts orderby custom field … use below code . proirity = Custom Field name global $wp_query; function priority_select($sql){ global $wpdb; if (strpos($sql, ‘proirity’) !== false){ $sql = str_replace(“ORDER BY {$wpdb->postmeta}.meta_key”, “ORDER BY CAST({$wpdb->postmeta}.meta_key AS UNSIGNED)”, $sql); } return $sql; } add_filter(‘query’, ‘priority_select’); query_posts( array_merge(array(‘meta_key’ => ‘proirity’, ‘orderby’=> ‘meta_value’, ‘order’ => ‘asc’), […]

....Read More
none