.

Tags: Latest-Activity

Views: 893

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

Liliana Parra replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"Mine is here... Disaster Risk Management (Spanish) http://gestiondelriesgo.ning.com/"
10 minutes ago
Allison Leahy replied to Jen's discussion 'Menu on Mobile Device Difficult'
"Absolutely! Thanks for bringing it to my attention, and for your patience as always."
30 minutes ago
Allison Leahy replied to Dw Alternatio's discussion 'Any way to change to a 3.0 network?'
"Hey Dw, So glad to hear you're interested in checking out the redesign! Make sure that after…"
31 minutes ago

NC for Hire
Jen replied to Jen's discussion 'Menu on Mobile Device Difficult'
"Thanks Allison. I have spent hours trying to fix this. That's great news!"
1 hour ago
Allison Leahy replied to Jen's discussion 'Menu on Mobile Device Difficult'
"Just got the word that the release had no impact the mobile menu and a feature improvement has…"
1 hour ago
Allison Leahy replied to Jen's discussion 'Menu on Mobile Device Difficult'
"Interesting quirk. Thanks for the note."
1 hour ago
susana replied to Allison Leahy's discussion 'What is your Ning 3.0 URL?' in the group The Sandbox
1 hour ago
Kos replied to Jen's discussion 'Menu on Mobile Device Difficult'
"Allison I neglected to mention (in my instance) the problem is when holding phone vertically. …"
1 hour ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service