Current status of the Ning Platform is always available on the Ning Status Blog.

Forum

This is becoming a real pain up the bum, custom code is being blocked from running now by Chrome, IE and Firefox. Some code runs and some does not. If you have let's say a page which is viewable to everyone but only members can add to it then custom code on that page does not run, sign in and it runs no problem. It's the same with normal pages as well.

This is causing a lot of problems when trying to design a site as you have to check if it looks the same for non members. I had to resort to using a lot of CSS and not use some code I would have prefered to.

Here is a simple example, all the code is to do is move the byline up to the avatar. Not really intense code just one line. Using Chrome examples but it's the same for the others.

CHROME SIGNED OUT

NOW CHROME SIGNED IN

And here is what is getting added to custom code by the browsers to stop it running

Now not sure whether this has to do with the new security been added by them but it seems that way as it always use to work before.

Anyone else having these issues, or have you not noticed ? Best check your sites to see if they are doing the same thing.

It's a real pain and may just have to resort to keeping all the pages viewable to members only so the code runs and just have one information page for non members to see. Nightmare!

grrr John :-(

You need to be a member of Ning Creators Network to add comments!

Join Ning Creators Network

Email me when people reply –

Replies

  • Just found a way to get around this, add your code to notepad and save them as js files. Then add them to file manager and link to them in custom code. This seems to bypass the custom code loading issue. Tried it and now the code runs.

  • John maybe it has something to do with the code?  idk because I have custom code that puts the photo title above the photo and it's working in both signed in and signed out.

    Thinking further, how would our meta and site map even be read if ignored when signed out?  It makes no sense to me (but that's nothing new) but they're in Custom Code in 3.0

    • Thanks Kos and yes some code does run as normal but it's certain types that seem to be not. I have started removing bits of code to try and see if it's one of my blocks but I really do not have very much in there at all now. hmm will get to the bottom of it I hope.

      May change themes to see if that helps but it will mean a bit of faffing around to get it looking like my site as it is now.

  • Hi John,

    Could you please send me the code that you are using so we could perform the proper testing?

    If you don't wish to share it with everybody you can send it to me via private message.

    Best regards,

    Ning Team.

    • Thanks for the reply Kyryl, I will post it once I just do a little more testing by removing all my custom code and add it back in one block at a time to try and pin point it. Never had any issues before with code being blocked so this is something new.

      John :-)

    • Ok here is what I came up with after removing all the code then adding it back in one block at a time and it seems if it's anything to do with the actvity feed it get's blocked, but here is the thing if you sign in it works, if you add it to the file manager and link to it in code then it works whether signed in or not. So the code is working fine but it's getting blocked by Chrome and IE.

      I will just include on part of the code which is to remove the crop of the video images ( by the way why do why have to have these and the photos cropped so small ? If they where not so small we would not have to keep writing code to remove the crops ) this code was by Sweet Potatoe shared as a tip for removing the crop of images which I changed just for the videos.

      <script>
      // Remove crop from activity video images
      x$(document).ready(function() {
      x$('.activityFeed').ajaxSuccess(function() {
      x$('.feedEvent-createVideoLike .activityFeed-content.media-frame .activityFeed-image img, .feedEvent-createVideoComment .activityFeed-content.media-frame .media-img img,.feedEvent-createVideoRollup .activityFeed-content.media-frame .media-img img').each(function() {
          var videoSize_Attr = x$(this).attr('src');
          x$(this).attr('src', videoSize_Attr.replace(/\?width=\d+\&height=\d+\&crop=\d+\%\d+\A\d+/, ''));
      x$('.feedEvent-createVideoLike .activityFeed-content.media-frame .activityFeed-image img, .feedEvent-createVideoComment .activityFeed-content.media-frame .media-img img,.feedEvent-createVideoRollup .activityFeed-content.media-frame .media-img img').fadeIn();
      });
      });
      });
      </script>

      Now here is a video of me showing the image still small when signed out then when I sign in it works as you can see.

      Looking forward to your reply on this one,

      Thanks Kyryl

      CodeNot Loading - YouTube
      • Hi John,

        Thanks for sharing the code with me so I could run the test on my test network.

        And as I see the code is working like it should when I'm logged in and when I'm not (for the proper testing I have used two different pcs). So it seems there is something wrong with the network itself, so I'll ask QA department to take a look into this, probably they would be able to see what is the problem.

        I'll inform you about their conclusion.

        Regards,

        Ning Team.

        CodeNot Loading - YouTube
  • I think I found the issue with this. On my homepage I had two html content box's, one was for non members to see and the other for members to see. I did not add any code for this and just used Nings option for display when adding the box's. So I removed those two box's and everything works now as it should ( so far! ). Not had these issues with these before so will have to do some testing just to make sure in case it is these that cuase and not use that option for display if this is the case.

    Kyryl it might be worth adding some content box's on your site set as mentioned above to see if this does the same on your test site.

    • Hi John,

      Just checked the code with two html boxes on the main page and the script working properly. Have you had anything special in that html boxes? In my case, I have tested the code with the plain text in html boxes, with the hyperlinks and iframes as well. As usual, I have run the test in both Chrome and FireFox.

      Regards,

      Ning Team.

      • Thanks for the reply Kyryl and testing this out. No nothing special within them just a list of links and images. Will just have to keep an eye on it to see what could be causing it.

This reply was deleted.

Search the Creators Network

Latest Activity

Ning via Facebook

#NINGread Blogging is an extremely inspiring activity, especially when you can make a buck with…

Kos replied to Thisisbully's discussion Chat is available on 3.0
"Well thank goodness for updating the servers b/c it worked perfectly all day.  I'm sooo happy!  Tha…"
3 hours ago
Kyryl_Ning_Support replied to Thisisbully's discussion Chat is available on 3.0
"Hi there,
Only the server part has been updated by the admins so the performance could have increas…"
7 hours ago
Solveig Parekh Bock is now a member of Ning Creators Network
8 hours ago
Steve C replied to Anastasiia_NING support's discussion Ning 2Q 2017 plan!
"Thank you! That's how it was from 2009 to recently, but the system must have reset it and I forgot…"
13 hours ago
Bizz ( John ) replied to Bizz ( John )'s discussion Video Issues Again For Embed Videos Showing Blank Box
"When is this going to be fixed? Been a while now as it's not just the image not displaying ( by the…"
17 hours ago
Kos replied to Thisisbully's discussion Chat is available on 3.0
"Kryrl I could be speaking too soon (hope not!) but it appears someone did something b/c Chat is now…"
yesterday
Kyryl_Ning_Support replied to Anastasiia_NING support's discussion Ning 2Q 2017 plan!
"Hi Steve,
We are sorry to hear that you are experiencing such an issue but you can control the orde…"
yesterday
Kyryl_Ning_Support replied to Ian's discussion Side Backgound Image keeps shrinking and orienting left & animated gif header isn't working
"Hi there,
We are sorry for the inconveniences, and yes you are right this issue isn't connected wit…"
yesterday
Oleksii is now a member of Ning Creators Network
yesterday
Steve C replied to Anastasiia_NING support's discussion Ning 2Q 2017 plan!
"I'm having a HUGE problem with blog comments on my Ning 2 site. It used to be that blog comments po…"
yesterday
Ning via Facebook

#inspirewithNING #success Explore new horizons with NING and NING Creators Network! Find your…

Bizz ( John ) replied to Bizz ( John )'s discussion Videos Playing In Activity Feed, check it out on my site ( Updated: 19-04-17 )
"Would be interested to hear if anyone has tried this and encountered any problems. Works fine for m…"
Friday
Bizz ( John ) replied to Annabel Gregory's discussion Events on Ning3
"Glad to help for a temporary fix until Ning adds this option. By the way if you want to see it work…"
Friday
Annabel Gregory replied to Annabel Gregory's discussion Events on Ning3
"Thanks, John - I will try your tip. I do hope Ning will make this unnecessary soon, though!"
Friday
Annabel Gregory replied to Annabel Gregory's discussion Events on Ning3
"Thank you, Kyryl, I look forward to hearing from you."
Friday
Bizz ( John ) replied to Annabel Gregory's discussion Events on Ning3
"Hi Annabel
I just created a small tip for this so members do not have to add an image
Events Defaul…"
Friday
Paul Corona replied to Ian's discussion Side Backgound Image keeps shrinking and orienting left & animated gif header isn't working
"Images recently have been a royal pain.  I resolved my background image issue on my profile, but we…"
Friday
Ning via Facebook

#createwithNING #design Colourful design is the highway to network popularity. Check NING…

Bizz ( John ) replied to Bizz ( John )'s discussion Custom code being blocked by browsers unless your signed in!
"Thanks for the reply Kyryl and testing this out. No nothing special within them just a list of link…"
Friday
More…