.

Tags: Latest-Activity

Views: 894

Replies are closed for this discussion.

Replies to This Discussion

Bruce, Without using Design Studio how would you enter the codes ... 

Donald

Hi Donald,

You paste that code into your Custom Code box. My Network->Tools->Custom Code

Thanks Analiza. I thought I would leave it bright yellow as it is very eye-catching, and sort of shouts out at you to do something else in order to see more. ;o)

Would anyone be able to tell me how I would change the Activity Feed part of Bernard's code to keep the Latest Activity heading, hide the feed itself, and display the same message that shows on the Members' page to ask the visitor so Sign In or Sign Up to see that content?

As it is now it completely removes the Activity Feed section and is just blank where it should be, so a visitor wouldn't know that they are missing out on anything going on there.

In answer to my own question re hiding Activity Feed, just in case anyone else wants to do the same...

See screenshots for results.

Code for Custom Code box is:

<script type="text/javascript">
<!----Hide Latest Activity and Member Profiles from non-signed in visitors---->
if ((ning.CurrentProfile == null) && ((x$(".xg_widget_profiles_profile_show").length > 0) ||
(x$(".xg_widget_profiles_comment_list").length > 0) ||
(x$(".xg_widget_profiles_members_index").length > 0))) x$("#xg_body").html('<div id="jQH_HideProfileMessage">Please <a href="http://www.yournetwork.name/main/authorization/SignIn">Sign In</a> or <a href="http://www.yournetwork.name/main/authorization/SignUp">Sign Up</a> to see this page!</div>');
</script>

<style type="text/css">
#jQH_HideProfileMessage {
padding: 2em;
background-color: #FFFF33;
color: red;
font-size: 200%;
}
</style>

<script type="text/javascript">
 if (ning.CurrentProfile == null) {
    x$("div.xg_module_body.activity-feed-skinny").html('<div id="jQH_HideProfileMessage">Please <a href="http://www.yournetwork.name/main/authorization/SignIn">Sign In</a> or <a href="http://www.yournetwork.name/main/authorization/SignUp">Sign Up</a> to see member activity!</div>');
    x$("div.xg_module_network_description").html("Welcome Guest!");
 }
</script>

This is very interesting I like it and I will try to do it.

Thanks

RSS

Latest Activity

Kos replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"They're coming.  Ning has said over and over they're working  on them.  Be…"
2 hours ago
James Hawkins replied to Alex's discussion 'More styling in the Design Studio'
"Looks like you need to adjust height here from 300 (default) to 295. .row:after…"
2 hours ago
soaringeagle replied to Alex's discussion 'More styling in the Design Studio'
"actualy when using 5 rows its still there so what is going on? ok new thoery its loading as many as…"
7 hours ago
soaringeagle replied to Alex's discussion 'More styling in the Design Studio'
"very minor bug but when u have  the profile icons rounded in the member box set to small and 2…"
7 hours ago
Margie replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"That's really good to hear about groups.  That's our site's main…"
7 hours ago
soaringeagle replied to Alex's discussion 'More styling in the Design Studio'
"sweet awesom e job tho im using text badges and have a feeling that wont look so sweet im gonna go…"
7 hours ago
Margie replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"AGREE 100% on groups.  We are not interested in blogs.  Our groups are the main…"
7 hours ago
Thiago Santos de Moraes replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"The green background is not good to read."
8 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service