Ning Developer Network

We have hidden the invite tab using analytics and have noticed now that when ever you click on different tabs, the invite tab shows up briefly then goes away. You are able to click on it and initiate an invite if you get it before it hides. Are we using the best way to hide the invite tab without owning code?

<style>
#xg_tab_invite {display:none !important}
</style>

Share

Replies to This Discussion

Here is what we are seeing...
Attachments:
You could try this in your analytics textbox and see if it works better:

// Remove the Invite Tab from Main Menu:
x$('li#xg_tab_invite').remove();

I tried it and there is a very brief flash of Invite, but maybe less than with the style you tried?
Thanks for the suggestion. I moved the one I was using from analytics to the css area (/main/appearance/edit - advanced), and it worked MUCH better. Ning support wrote me back with this suggestion.
I'm glad you got it working better.

There's a lesson in here. Best to put CSS in the CSS area, rather than the Analytics box. I believe I read that the Analytics stuff gets processed AFTER the rest of the HTML code. Possibly, stuff in the CSS area gets processed before the HTML, making it faster.

Regardless of how it works, maybe someone will come across this in the future and see that it's best to put the CSS in the CSS area and put just JavaScript in the Analytic box. I wish I would have thought of giving you that suggestion! :)

RSS

© 2009   Created by Ning Developer Admin

Badges  |  Report an Issue  |  Privacy  |  Terms of Service