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 Social Network to add comments!

Join Ning Creators Social 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

Kos replied to Kyryl_Ning_Support's discussion Chat Feature Update on Ning 3.0 is ready!
"They told me there's nothing wrong. *lol* Wrong!"
33 seconds ago
doone replied to Kyryl_Ning_Support's discussion The long-awaited Search Option is now at your fingertips!
"Thanks, it works great for me."
1 hour ago
Fabricio Giugni replied to Fabricio Giugni's discussion Powered by Ning How to get it out?
"    Be a White label is the best for creators. Force us to have they ads on our website is like ter…"
1 hour ago
Manuel Adame Jimenez replied to Yana Ning Support's discussion Video Feature on Ning 3.0 is now available!
"Hello Kyryl, I put a screen shot, to ask you to leave the video to the center or that is option to…"
1 hour ago
Alex replied to Kyryl_Ning_Support's discussion Paid Access demo version
"I find it completely astonishing that any other type of paid access could even be contemplated, whe…"
2 hours ago
Mike Collins replied to Fabricio Giugni's discussion Powered by Ning How to get it out?
"Hi Kyryl,
This was something that Glam Media brought in and it was a real sticking point for many c…"
3 hours ago
Kyryl_Ning_Support replied to Kyryl_Ning_Support's discussion The long-awaited Search Option is now at your fingertips!
"Hi there!
Thanks to both of you for your suggestions to add the advanced search option.
As I see su…"
3 hours ago
Kyryl_Ning_Support replied to Kyryl_Ning_Support's discussion The long-awaited Search Option is now at your fingertips!
"Hi Kos,
We are really sorry that it was necessary to wait for such a long time to see this feature…"
4 hours ago
Mike Collins replied to Kyryl_Ning_Support's discussion The long-awaited Search Option is now at your fingertips!
"Search is bringing up items from blogs/ discussions in private groups - please can this be changed…"
4 hours ago
Giovanni Cappai replied to Giovanni Cappai's discussion HTML under header not working :/
"Hi Kyryl, thanks for your reply. On firefox it works, on chrome still doesn't."
5 hours ago
Philip Voice replied to Kyryl_Ning_Support's discussion Chat Feature Update on Ning 3.0 is ready!
"I opened a private chat with one of my members yesterday. Nothing was typed in the chat by either o…"
5 hours ago
Kyryl_Ning_Support replied to Kyryl_Ning_Support's discussion Paid Access demo version
"Hi there!
Thanks for your feedback it is highly appreciated.
I have updated already existing sugges…"
6 hours ago
Kyryl_Ning_Support replied to Kyryl_Ning_Support's discussion Chat Feature Update on Ning 3.0 is ready!
"Hi there!
Thanks for useful suggestions! Some of them were completely new and some I have already p…"
6 hours ago
Philip Voice replied to Kyryl_Ning_Support's discussion The long-awaited Search Option is now at your fingertips!
"If anyone is interested if you want to do an off-grid search of your network (or any site) it's eas…"
6 hours ago
Kyryl_Ning_Support replied to Kyryl_Ning_Support's discussion Chat Feature Update on Ning 3.0 is ready!
"Hi there,
Unfortunately after the implementation of new chat, we are experiencing the high servers…"
6 hours ago
Kyryl_Ning_Support replied to Kyryl_Ning_Support's discussion Chat Feature Update on Ning 3.0 is ready!
"Hi there!
I'm glad that I have been able to help :-) 
But I have posted your suggestion anyway to m…"
7 hours ago
Kyryl_Ning_Support replied to Giovanni Cappai's discussion HTML under header not working :/
"Hi Giovanni,
I have just checked and it seems to be working fine. As far as I can see you have adde…"
7 hours ago
Kyryl_Ning_Support replied to Fabricio Giugni's discussion Powered by Ning How to get it out?
"Hi there!
Unfortunately, at this point, it's forbidden to "Powered by Ning" logo from the footer of…"
7 hours ago
Brandyn Shepherd replied to Kyryl_Ning_Support's discussion Chat Feature Update on Ning 3.0 is ready!
"Please add...- Option to see who is online at first glance.- Add text to chat bar that lets users k…"
8 hours ago
J.Ayvar replied to Kyryl_Ning_Support's discussion The long-awaited Search Option is now at your fingertips!
"Yes, the advanced search is very important is a social community. 
When they said they were working…"
9 hours ago
More…