collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 431
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Author Topic: My shoutbox is requiring a page refresh - jq conflict?  (Read 20069 times)

0 Members and 1 Guest are viewing this topic.

Offline 420connect

  • Jr. Member
  • **
  • Posts: 94
My shoutbox is requiring a page refresh - jq conflict?
« on: February 26, 2016, 12:53:10 PM »
Hey everyone,

like it says on the tin, my shoutbox is playing up on my new site I am developing at the moment and wondered if it could be a jQuery conflict or something similar..


when I 'shout' something.. it refreshes the page to post it, instead of being 'ajax'?
(I don't really know what I'm talking about lol)

Has anyone experienced it before and/or know of a quick fix?!  :thumbsup:


Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: My shoutbox is requiring a page refresh - jq conflict?
« Reply #1 on: February 26, 2016, 02:19:35 PM »
Welcome back mate :)

There is a topic about this issue, have you tried the solution provided in it?

Regards
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline 420connect

  • Jr. Member
  • **
  • Posts: 94
Re: My shoutbox is requiring a page refresh - jq conflict?
« Reply #2 on: February 26, 2016, 02:31:43 PM »
Welcome back mate :)

There is a topic about this issue, have you tried the solution provided in it?

Regards

Thanks!  :nervous-happy:

I guess it's a good thing it's been a while.. - shows how stable and awesome SP is!  :applause:

& I thought you had just saved my socks but unfortunately that particular fix doesn't seem to have solved my problem!  :( (Many thanks for pointing me in the right direction though!)


I can pm you a login to have a spy around but I've not got the site 'live' at the moment..

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: My shoutbox is requiring a page refresh - jq conflict?
« Reply #3 on: February 26, 2016, 02:48:56 PM »
Yep, last version is quite stable and awesome :) Only a few non-critical problems here and there.

If not that, the problem is likely caused by something (another mod or some js in the theme) interfering with the shoutbox, and affecting the xml output. If you don't have a live site... Erh... Well... It might be a problem to fix what I cannot see, I'm just a ninja, not God :P
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline 420connect

  • Jr. Member
  • **
  • Posts: 94
Re: My shoutbox is requiring a page refresh - jq conflict?
« Reply #4 on: February 26, 2016, 03:55:55 PM »
Sorry.. I'll explain better!

I have my old site is currently on maintenance mode.
& I have my new site also on maintenance, but don't want to publicly shout the url yet! :P

& Yep, I did think it was probably a mod conflicting with parts of it - it's just a pain having to pull out mods 1 by 1 to find the problem and was hoping someone with a better idea might know of a better approach..

I know no conflict things exist but don't know if they'd be useful for this.. or really what the problem is! :P

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: My shoutbox is requiring a page refresh - jq conflict?
« Reply #5 on: February 26, 2016, 04:30:06 PM »
Then... Perhaps telling me the mods list can be helpful :P Btw yes you can send me a pm with the data, I'll have a look later.
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline 420connect

  • Jr. Member
  • **
  • Posts: 94
Re: My shoutbox is requiring a page refresh - jq conflict?
« Reply #6 on: March 01, 2016, 01:39:10 PM »
Hey sorry for the delay,

Other bigger issues came up but would still like to solve this one..

http://www.420connect.co.uk
you can use account: smftest/smftest for testing...
« Last Edit: March 04, 2016, 02:38:33 PM by 420connect »

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: My shoutbox is requiring a page refresh - jq conflict?
« Reply #7 on: March 01, 2016, 05:49:57 PM »
Weird, no errors anywhere... Can you temporarily rename /Themes/MaterialisticTheme/scripts/colpick.js to something else and see if it works?
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline 420connect

  • Jr. Member
  • **
  • Posts: 94
Re: My shoutbox is requiring a page refresh - jq conflict?
« Reply #8 on: March 02, 2016, 12:43:58 PM »
Weird, no errors anywhere... Can you temporarily rename /Themes/MaterialisticTheme/scripts/colpick.js to something else and see if it works?

Ninja and your Ninja Skillz!  ;P

Okay.. So we've found the 'cause'...

Now to get them to play nice together!  :thumbsup:



e2a:

Solved* with the help of Google..

I've added this before/ after the troublesome .js file:

jQuery(document).ready(function($){

// original code here

  var body = $( 'body' );
});


*might not be the best solution, but it seems to be working?


Yey! :)


.. Onto the next bug! :P
« Last Edit: March 02, 2016, 12:55:03 PM by 420connect »

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: My shoutbox is requiring a page refresh - jq conflict?
« Reply #9 on: March 02, 2016, 12:55:47 PM »
Ha, I guess me learning some javascript wasn't a bad idea :) So basically it's just a js variable conflict, I will have a look later if I can edit that colpick, you can rename it back to the original name, I'll download it and see if I can adapt it. It's better to adapt that one rather than SimplePortal javascript, because updates may break it again and so on.
EDIT: oh, interesting, yeah that can work, although the problem I think is that "$" that is the variable itself.
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: My shoutbox is requiring a page refresh - jq conflict?
« Reply #10 on: March 02, 2016, 01:12:05 PM »
In your colorpick.js remove your edit and replace all "$" (without quotes) with "£" (without quotes), but do keep a backup (much easier if you use Notepad++). It is still throwing errors into the browser console :/
« Last Edit: March 02, 2016, 01:14:13 PM by ♦ Ninja ZX-10RR ♦ »
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline 420connect

  • Jr. Member
  • **
  • Posts: 94
Re: My shoutbox is requiring a page refresh - jq conflict?
« Reply #11 on: March 03, 2016, 12:43:47 PM »
Hey Ninja,

Carrying on from yesterday, If you wouldn't mind having a quick check to see if you're still receiving any errors?

I had a lightbulb moment earlier and couldn't wait to get in to try it and it seems to be working on my end anyway :)

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: My shoutbox is requiring a page refresh - jq conflict?
« Reply #12 on: March 03, 2016, 01:15:15 PM »
What did you change, if I may ask? It seems to work, although I am in a hurry because I gotta go to dinner, so cannot check thoroughly.
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline 420connect

  • Jr. Member
  • **
  • Posts: 94
Re: My shoutbox is requiring a page refresh - jq conflict?
« Reply #13 on: March 03, 2016, 01:45:17 PM »
I had another look through my source files and found another mod that was trying to add it's own call to a jquery library. - simply removing that line so it reverted back to using the newest one, used in the theme solved it :)

I've just re-done my shoutbox edits too and it still seems to be Ok!
So I think that has solved it nicely!

 :thumbsup:

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: My shoutbox is requiring a page refresh - jq conflict?
« Reply #14 on: March 03, 2016, 04:13:10 PM »
Hmm, 2 things:
profile.css (never seen a profile.css before, but oh well...)
Code: (find) [Select]
.profile_header {
    position: relative;
    max-width: 95%;
    margin: 0 auto;
Code: (replace with) [Select]
.profile_header {
    position: relative;
    max-width: 95%;
    margin: 0 auto;
    z-index: 1;
Fixes the overlapping issue in your profile.

Removing a jquery can be nice, but not the way you did, apparently: "http://www.420connect.co.uk/forum/Themes/MaterialisticTheme/css/jquery.noty.css Failed to load resource: the server responded with a status of 404 (Not Found)", I am not sure where that is loaded nor what it was/is for :/ It looks like some kind of alerts thingy, but anyways if you included the relative code somewhere else (I did that as well, with some files), you also have to remove the string where it calls the relative file - usually it's index.template.php, but if it's from a mod it might be somewhere else...
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline 420connect

  • Jr. Member
  • **
  • Posts: 94
Re: My shoutbox is requiring a page refresh - jq conflict?
« Reply #15 on: March 03, 2016, 04:26:44 PM »
Many thanks Flav!
(The profile.css is from a custom profile mod as you can probably guess :P)

The 'noty' stuff is a part of the alerts mod I am using, yes.
I had forgotten about it and re-enabled it, but I've again disabled it.. if doesn't want to play nice, I can live without that part of the mod :P

The .js call I removed was from another file / mod completely! :)

Thanks again  :thumbsup:

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: My shoutbox is requiring a page refresh - jq conflict?
« Reply #16 on: March 03, 2016, 04:56:41 PM »
It's just a css, so I am not sure why it's not there, it's supposed to be, at least. Css doesn't interfere with jquery (despite the file name...), so you can actually put that file back, or even copy its content into for example index.css and then remove that jquery.noty.css call, wherever it is.
You're welcome, btw :)
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: My shoutbox is requiring a page refresh - jq conflict?
« Reply #17 on: March 03, 2016, 11:27:16 PM »
This refresh problem is never ending... is there no way of writing it so that it will avoid problems with other theme and mod javascript?

Unfortunately I haven’t written any real code since the late 1980s so Im no expert.

I used Nibogo's mod from SMF and it worked without problem but its a bit large compared to SP shoutbox and I would like to use ours if it works without problem.
http://custom.simplemachines.org/mods/index.php?mod=1295



Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: My shoutbox is requiring a page refresh - jq conflict?
« Reply #18 on: March 03, 2016, 11:31:15 PM »
No need to use that one, and it has numerous issues as well (many more than some compatibility problems), I was using it back in the days, uninstalled for being fed up with bugs and errors @_@
The conflict is simple btw, some javascript variable being the same in multiple files ($), and making a mess :P
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline 420connect

  • Jr. Member
  • **
  • Posts: 94
Re: My shoutbox is requiring a page refresh - jq conflict?
« Reply #19 on: March 04, 2016, 02:35:12 PM »

apparently: "http://www.420connect.co.uk/forum/Themes/MaterialisticTheme/css/jquery.noty.css Failed to load resource: the server responded with a status of 404 (Not Found)", I am not sure where that is loaded nor what it was/is for :/ It looks like some kind of alerts thingy, but anyways if you included the relative code somewhere else (I did that as well, with some files), you also have to remove the string where it calls the relative file - usually it's index.template.php, but if it's from a mod it might be somewhere else...

I must have read that too quickly last night. That ones easy peasy to fix! :)
* Copies jquery.noty.css from default to theme *  :thumbsup: