.

Tags: Latest-Activity

Views: 892

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

Profile IconBrother Richard, susana and 3 other members joined Allison Leahy's group
Thumbnail

The Sandbox

Join The Sandbox to experiment with Ning 3.0 now!The Ning Team will be triaging bug reports and…See More
16 minutes ago
Fire-Tech replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
"No prob. I have been equally frustrated and had to work on other things. But today...we got access…"
36 minutes ago
Fire-Tech replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"Very very nice! Just the head tag alone makes me smile :) Great job...keep 'em coming!"
55 minutes ago
Phil McCluskey replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"Hi Ningaholic, We've started working on Groups; there's still a few weeks to go, but they…"
59 minutes ago
Phil McCluskey replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"Hi SP, Yes, right now it's a case of being in the blog you want to post to in order to add…"
1 hour ago
Coach Jon HighPoint IELTS Admin replied to Coach Jon HighPoint IELTS Admin's discussion 'Sandbox Project Report: HighPoint IELTS Prep' in the group The Sandbox
"Good news! It seems that our request was granted. :)"
1 hour ago
Coach Jon HighPoint IELTS Admin replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"Whoa! @SweetPotato and I were talking about this a couple of weeks ago. Thanks for the quick…"
1 hour ago
Larry Matthews replied to Larry Matthews's discussion 'Anyone know how to fix Table Alignment ?'
"Thank you, will try now."
1 hour ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service