TOPIC:

Javascript error WorldBiz template with NO logo set 2 years 7 months ago #249841

  • Topic Author
  • p38
  • Offline
  • New Member
  • New Member
  • Registered
  • Posts: 12
  • Thanks: 0
Our site generates javascript errors, which prevents other components working if the WorldBiz template does not have any logo configured, or if you use "tmpl=component"

The code only works if the logo div exists. So this:

$gantry->addInlineScript('
jQuery(document).ready(
function(){
jQuery("#rt-logo-img").get(0).src="'.$source.'";
});
'."\n");

needed to be changed to

$gantry->addInlineScript('
jQuery(document).ready(
function(){
if (jQuery("#rt-logo-img").length) {
jQuery("#rt-logo-img").get(0).src="'.$source.'";
}
});
'."\n");

That piece of code can be found in /templates/worldbiz/features/styledeclaration.php on line 224

Hope this helps you.

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

Javascript error WorldBiz template with NO logo set 2 years 7 months ago #249843

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 786
Hi,

thanks for this! :)

Regards,
Tihana

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

Javascript error WorldBiz template with NO logo set 2 years 5 months ago #251891

  • ReeceWong
  • Offline
  • New Member
  • New Member
  • Registered
  • Posts: 2
  • Thanks: 0
This is a good and Informative post. In this post I truly got quality information. I will correct the flaws in my project prothesiswriter.com/

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

Last edit: Post by ReeceWong.

Javascript error WorldBiz template with NO logo set 3 months 1 week ago #282171

  • bojo2112jon
  • Offline
  • New Member
  • New Member
  • Registered
  • Posts: 2
  • Thanks: 0
Thanks guys!

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

Last edit: Post by bojo2112jon.

Javascript error WorldBiz template with NO logo set 3 months 1 week ago #282185

  • Mitchelsmith77
  • Offline
  • New Member
  • New Member
  • Registered
  • Posts: 1
  • Thanks: 0
The <template> tag is used as a container to hold some HTML content hidden from the user when the page loads. The content inside <template> can be rendered later with a JavaScript. You can use the <template> tag if you have some HTML code you want to use over and over again, but not until you ask for it

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

  • Page:
  • 1
Time to create page: 0.055 seconds

Support Chat

Join our Discord chat and enter the Crosstec channels for live-support, chat forums and interact directly with the community!

After joining, please enter the Crosstec Area and use the #crosstec-support or #crosstec-general channels.

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Subscribe to news and updates!

Special Offer

Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!