Forum Support

Shape 5
March 29, 2024, 10:03:07 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Possible theme issue?  (Read 1412 times)
Brewer
Jr. Member
**
Offline Offline

Posts: 35



« on: August 17, 2016, 10:58:26 PM »

Thought I'd make a new post now heh. I don't know if this is a theme issue, but, if someone can help me correct it there may be cookies coming your way, wink wink.

I'm experimenting with a javascript that displays my Discord server (discord is a VOIP thing).  What's weird is, it works just fine on my forum page:
http://swordofthedragon.org/guild-forums

But on any other page, it does not work, just blank. I do see an error with the website tools:
Code:
discord-widget.min.js:1 Uncaught TypeError: Cannot read property 'append' of null

I'm not too sure how to fix that, or why it is happening on every page but my forums. I don't know if its a template thing like I said, but hoping someone can help me out :/
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #1 on: August 18, 2016, 03:08:29 PM »

Hello,

Hmm I'm not sure, I would contact the authors of the widget and they'd be better able to assist you with this. It seems to be an issue with the JS from the Discord widget. We use jQuery no conflict mode for all our JS so I don't think its a template issue. I do see that Discord isn't using it as its calling $("head") instead of jQuery("head"). This might be causing the issue but you'd have to check with Discord author.
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Brewer
Jr. Member
**
Offline Offline

Posts: 35



« Reply #2 on: August 20, 2016, 11:18:48 PM »

Alright, you are the second person to say that so I'll send them a ticket.  Seems like everytime I make a Joomla site I have major Javascript issues/conficts and I really don't know how to correct those Sad
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #3 on: August 22, 2016, 11:20:32 AM »

Yeah mixing extensions can do this. It depends on the authors too and how they code them. We try to make sure our Javascript doesn't conflict with others. Hopefully they'll be able to fix this up for you.
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Brewer
Jr. Member
**
Offline Offline

Posts: 35



« Reply #4 on: August 22, 2016, 01:28:33 PM »

Well the creators of Discord don't make this javascript, this is made by a random normal fellow. Discord makes an iframe widget, but, I'm not a big fan of iframes with the non-auto height and such.
Logged
Brewer
Jr. Member
**
Offline Offline

Posts: 35



« Reply #5 on: August 24, 2016, 08:17:43 PM »

Actually a big thanks you helped me fix this. I took the javascript and copied/pasted it so I could have it hosted locally, then I did a Find/replace for "$" and made them all "jQuery" and now it's working. I don't know javascript but that worked out Smiley

In fact this also led me to fix some javascript issues on my forums, they were having the same issues, so doubly thanks.  I know this isn't your problem but if you get bored, can you give me another awesome hint on my forum error. You can't see this one because it's an admin thing, but it's trying to use javascript to switch pages, and its calling an error:

jquery.min.js:2 Uncaught Error: Syntax error, unrecognized expression: #page-tabs http://swordofthedragon.org/guild-forums/subway-options-panel#general-options
This one is being called from google so I can't edit it, from http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js

If you have any hints again I'd appreciate it much Smiley
« Last Edit: August 24, 2016, 08:32:22 PM by Brewer » Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #6 on: August 25, 2016, 11:20:53 AM »

Awesome happy to hear you got it fixed and I was able to help! For the other error not sure, it looks like it having trouble calling the tabs. Maybe its looking for one that isn't there? Not sure.
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Brewer
Jr. Member
**
Offline Offline

Posts: 35



« Reply #7 on: August 25, 2016, 11:58:36 AM »

Ah well, I thought perhaps the #page-tab thing was something Joomla doesn't like, like the $. I'll have to have a deeper look at it when I get home.  That and the fix for the Discord Widget and the fix for the forums (changing $ to jQuery) work separately but not on the same page. On the forum page the discord widget breaks. So that's weird. Javascript is not fun Sad
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #8 on: August 26, 2016, 01:52:51 PM »

There might be forum Javascript breaking it then if its only on the forum page, you could check in debug console of firebug to see if any errors are showing.
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Brewer
Jr. Member
**
Offline Offline

Posts: 35



« Reply #9 on: August 27, 2016, 03:35:26 PM »

Oh I know there are errors, fixing them is the hard part Smiley  Still working on the first thing...I think Joomla has some sort of issue with the href=#tabname I just don't know what it is. Oh wells :/
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.