HOW TO FIX Cufon doesn't work on localhost

More
8 years 4 weeks ago #1 by laurelle
Hi,

Please try the latest release and see if it now works on localhosts and windows servers.

Cheers.

Laurelle
Developer
Keashly.ca Consulting

Please Log in or Create an account to join the conversation.

More
8 years 2 months ago - 8 years 2 months ago #2 by Juul
Cufon doesn't work on localhost (Windows) because of the Directory Seperator (DS). You'll get a \ in stead of / at the include. File is not included and it won't work.

This is probably also problematic with Live Windows hosts!
To fix this (it'll also work live):

File: plugins\system\kc_cufon.php

Line: 125

Replace:
$js = JURI::base() . "plugins" . DS . "system" . DS . "kc_cufon" . DS . "js" . DS . "cufon-yui.js";

With:
$js = JURI::base() . "plugins/system/kc_cufon/js/cufon-yui.js";

Line: 131

Replace:
$js = "plugins" . DS . "system" . DS . "kc_cufon" . DS . "fonts" . DS .$fontfile[$i].".font.js";

With:
$js = "plugins/system/kc_cufon/fonts/" .$fontfile[$i].".font.js";


I've used plugin_kc_cufon-1.4.0. Don't know how the other versions are. Developer please correct this 'feature'.

Keep up the good work and thanks!

Regards,
Jurian

www.twentronix.nl
Last edit: 8 years 2 months ago by Juul.

Please Log in or Create an account to join the conversation.

Joomla! & WordPress Hosts

Liquid Web is our recommended web hosting provider for Joomla! & WordPress websites. This is the host that we use for websites that we build. Liquid Web has an excellent reputation, fast servers and most importantly awesome service! They have technicians that are familiar with Joomla! & WordPress. Their technicians go above and beyond what other hosting providers do, in our opinion.

  

Liquid Web Managed Word Press   

Support Development

Please consider a small donation to support development of the extensions on this site.



Joomla! Login

This is the normal Joomla! login module not the VirtueMart login module. Click the 'Create an account' button to see how you are redirected to the VirtueMart registration form when the KC VM Registration Redirect plugin is enabled.

Joomla! & WordPress Web Design and Development

If you are interested in having a website designed or redesign or need custom Joomla! or WordPress development, please visit Keashly.ca Consulting to view our Portfolio of Joomla! & WordPress website work.

Trademarks and logos remain the property of their respective organizations.
The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries.
Keashly.ca Consulting is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Site Map Back to Top