Archive for the ‘Website Addons’ Category

How to make WP Page Navi work in custom loop WP_query

Thursday, January 26th, 2012

Problem:  Wp page navi doesnt work in custom loop in a page . Software: WordPress WP Page Navi Function: get_posts, query_posts , WP_Query, wp_pagenavi, get_query_var Solutions: 1. Add the custom $query to the wp page navi function: if(function_exists(‘wp_pagenavi’)) wp_pagenavi(array( ‘query’ =>$query )); 2. Add the value of page in your WP_query. $paged = get_query_var(‘paged’) ? [...]

>>read more

Watermarks are gone after the contact form 7 submit

Tuesday, January 10th, 2012

Problem: How to display the watermark again after the forms submitted in contact Form 7 . Software: Contact form 7 WordPress 3.3.1 Solustion : Add the code below inside the $.fn.wpcf7ClearResponseOutput = function() { in scripts.js in contact form plugin folder. $(this).find(‘.wpcf7-use-title-as-watermark’).each(function(i, n) { var input = $(n); input.val(input.attr(‘title’)); input.addClass(‘watermark’); }); If you are using [...]

>>read more

How to popup the thank you message in contact form 7 in wordpress thickbox

Tuesday, January 10th, 2012

Problem:   I want the thank you message popup in the contact form 7  plugin using thickbox instead of sliding. Software: WordPress 3.3.1 Thickbox Contact Form 7 Solution: 1. Install Auto Thickbox Plus Plugin 2. Edit Scripts.js in your contact form 7 plugin Look and comment : //    ro.addClass(‘wpcf7-mail-sent-ok’); And add after that line: var url [...]

>>read more

Prevent auto skype graphic formating plugin to all phone numbers

Tuesday, January 10th, 2012

Problem: Skype plugin in browser such as Chrome and Firefox auto convert or overwriting phone number in a page. Solutions 1: Use a special character : (570)­ &shy; 555-1234 Solutions 2: Use inline CSS3 : (570)­<span style=”display:none”>&nbsp;</span> 555-1234 Solutions 3: Use WordPress Plugin : Prevent Skype Overwriting

>>read more

How to add thumbnails in Category WordPress 3.x

Monday, August 29th, 2011

One of the useful and commonly use plugin in custom wordpress website is Taxonomy Images Plugin it adds thumbnail to the category of your website. Here’s and example of a simple custom loop that you can make to display all category images: $terms = apply_filters( ‘taxonomy-images-get-terms’, ” ); if ( ! empty( $terms ) ) [...]

>>read more

mootools and jquery in one page fix in joomla 1.5

Friday, December 3rd, 2010

I have a problem putting mootools and jquery in one page in joomla . I used Camp26 Smooth Gallery (in mootools) and Jomgallery (which has custom template powered by jquery). Evertime i check the page, the jquery gallery wont work. Check below for my fix. Error : Jquery wont work with mootool script in one [...]

>>read more

Email confirmation sent after Paypal payment has been completed + itemized the product

Thursday, July 15th, 2010

Problem: Email confirmation sent after Paypal payment has been completed + itemized the product The problem above was requested of my Canadian clients for their site . I used the virtuemart patch here but it took me a long time to figure out and i encountered a lot of errors. What I did was I [...]

>>read more

How to add a bookmark code in your high traffic website

Tuesday, August 18th, 2009

Here’s how to add a bookmark code in your high traffic website: 1. Place the following script into your section in the page you need to use it: <script type="text/javascript"> function bookmark_us(url, title){ if (window.sidebar) // firefox window.sidebar.addPanel(title, url, ""); else if(window.opera && window.print){ // opera var elem = document.createElement(‘a’); elem.setAttribute(‘href’,url); elem.setAttribute(‘title’,title); elem.setAttribute(‘rel’,’sidebar’); elem.click(); } [...]

>>read more

How to sort your even list order in Eventlist

Tuesday, February 10th, 2009

The tutorials explains how to sort date to descending on your event list displaying in EventList joomla page. Evenlist is a free extention in joomla that offers a lot features and possibilities which makes your work easier, like the Venue database, Frontend editing with more than the three Joomla! access levels, Picture resizing and much [...]

>>read more

Change form action based on 2 select option

Monday, February 9th, 2009

The tutorial explains on how to change form action based on the 2 select option. The use of this code is for loading different pages using the submit function of the javascript (this.form.submit();) when one of the select option changes its value ( onchange=”changeAction(this.form,this.name);”). In the example below, the first select named range will load [...]

>>read more