Jump to content


Photo
- - - - -

Customisation Script Error


Best Answer Simon_P , 08 December 2012 - 06:53 PM

Well ive used this one before: http://wordpress.org.../lightbox-plus/

 

But your gonna have to find one thats compatible with your stuff.

Go to the full post


  • Please log in to reply
15 replies to this topic

#1 hibbsy78

hibbsy78

    Advocate

  • Members

  • 273 posts
  • LocationStaffordshire
  • Framework Version:DMS Version 1.1.1
  • Country: Country Flag

Posted 08 December 2012 - 09:26 AM

Hi,

 

I'm trying to install a fundraising script onto my site but it is causing a few errors.

 

The script is:

 

Please Login or Register to see this Hidden Content

 

which is placed in the header script under CSS. You can see it works in putting the badge on the right of the screen.

 

There are a few errors showing in Pingdom 

Please Login or Register to see this Hidden Content

 can anyone advise what the error is? The script/badge is working successfully on other none page lines sites.

 

Script program & working site - 

Please Login or Register to see this Hidden Content

 

My site - 

Please Login or Register to see this Hidden Content

 

Thanks!



#2 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 08 December 2012 - 02:27 PM

try:

 

Please Login or Register to see this Hidden Content

 

Please Login or Register to see this Hidden Content



#3 hibbsy78

hibbsy78

    Advocate

  • Members

  • 273 posts
  • LocationStaffordshire
  • Framework Version:DMS Version 1.1.1
  • Country: Country Flag

Posted 08 December 2012 - 02:36 PM

Hi Simon,

 

It still brings up the errors shown in Pingdom. It also affects the mobile load (the feature image isn't resized).



#4 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 08 December 2012 - 03:07 PM

can you remove that js? just to see whats going on?



#5 hibbsy78

hibbsy78

    Advocate

  • Members

  • 273 posts
  • LocationStaffordshire
  • Framework Version:DMS Version 1.1.1
  • Country: Country Flag

Posted 08 December 2012 - 03:13 PM

can you remove that js? just to see whats going on?


Sorry Simon when you say remove the js which part do you mean?

#6 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 08 December 2012 - 03:14 PM

this:

 

Please Login or Register to see this Hidden Content

remove it


#7 hibbsy78

hibbsy78

    Advocate

  • Members

  • 273 posts
  • LocationStaffordshire
  • Framework Version:DMS Version 1.1.1
  • Country: Country Flag

Posted 08 December 2012 - 04:09 PM

Done.



#8 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 08 December 2012 - 05:01 PM

Well it isnt doing it now, all i can think of is your script has an issue with one of the other scripts on the page, and you have a lot of javascript going in.

 

prototype, scriptaculas, jquery, nextgen, lightbox, browsercheck just to name a few!! So you need to start disabling stuff to find out the conflict.

 

I tried out the code on my test setup and it worked perfectly, so we can assume its something 3rd party causing it.



#9 hibbsy78

hibbsy78

    Advocate

  • Members

  • 273 posts
  • LocationStaffordshire
  • Framework Version:DMS Version 1.1.1
  • Country: Country Flag

Posted 08 December 2012 - 05:47 PM

By deactivating lightbox it successfully clears the errors showing in pingdom. The only issue not is that it stops the features from changing and also resizing in mobile view.



#10 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 08 December 2012 - 06:15 PM

Figured it out... the js file is NOT compatible with jquery in wordpress, which is why it includes its own at runtime, and this in turn breaks every other script that uses jquery lol.

 

This version (attached) of the file works, so save it to your site and adjust the original script snippet to load it instead of the remote one.

Attached Files



#11 hibbsy78

hibbsy78

    Advocate

  • Members

  • 273 posts
  • LocationStaffordshire
  • Framework Version:DMS Version 1.1.1
  • Country: Country Flag

Posted 08 December 2012 - 06:32 PM

Thanks Simon. All looks ok apart from 'behind' the scenes errors - pingdom issues - 

Please Login or Register to see this Hidden Content



#12 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 08 December 2012 - 06:44 PM

Those errors are caused by something else, disable the lightbox again



#13 hibbsy78

hibbsy78

    Advocate

  • Members

  • 273 posts
  • LocationStaffordshire
  • Framework Version:DMS Version 1.1.1
  • Country: Country Flag

Posted 08 December 2012 - 06:51 PM

Disabling Lightbox removes those errors. Is there any alternate to light box? It really helps when viewing items in the store rather than opening the image in a new page!



#14 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 08 December 2012 - 06:53 PM   Best Answer

Well ive used this one before: 

Please Login or Register to see this Hidden Content

 

But your gonna have to find one thats compatible with your stuff.


  • hibbsy78 likes this

#15 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 08 December 2012 - 07:33 PM

If you think this is resolved click the button ;)



#16 hibbsy78

hibbsy78

    Advocate

  • Members

  • 273 posts
  • LocationStaffordshire
  • Framework Version:DMS Version 1.1.1
  • Country: Country Flag

Posted 08 December 2012 - 08:47 PM

Thanks Simon. Really appreciate your support!!