Okay, not tons, but 27 little mods you can use on Your Ning Network. These examples might help you to learn a little about coding so you can create your own solutions. If you have any questions about any of the mods, feel free to ask!
If you're new to putting code in your Analytics textbox, please read my post on Beginner's Guide to JavaScript and jQuery - it might answer some of your questions.
Here is the block of code hacks, use whatever you need!
<script type="text/javascript">
// This is a Comment! Any line that starts with // is a comment and is NOT executed!
// Every section of code does something different.
// There is a comment before each section that describes what it does.
// If the comment starts with (JS) its JavaScript code.
// ----- (JS) Insert a Message under the Ning Bar on every page:
var insertionPoint = document.getElementById('xn_bar');
// If you want the Message to be under the Menu instead, change xn_bar to xg_head
// if the exception ID exists, we're on the Sign In page and we abort
var exceptionElement = document.getElementById('signin_email');
if ((exceptionElement == null) && insertionPoint) {
// Adjust the CSS style if you want!
var bannerAdHtml = '<div style="color: #FF0000; border: 1px; background-color: #99EEEE; text-align: center; padding: 5px; font-size: 16px; font-family: Courier New;">PUT YOUR MESSAGE HERE</div>';
insertionPoint.innerHTML += bannerAdHtml;
}
// ----- END
// ----- (JS) Insert Message in top part of footer on every page:
var insertionPoint = document.getElementById('xg_foot');
// if the exception ID exists, we're on the Sign In page and we abort
var exceptionElement = document.getElementById('signin_email');
if ((exceptionElement == null) && insertionPoint) {
// Adjust the CSS style if you want!
var bannerAdHtml = '<div style="color: #FF0000; border: 1px; background-color: #99EEEE; text-align: center; padding: 5px; font-size: 16px; font-family: Courier New;">PUT YOUR MESSAGE HERE</div>';
insertionPoint.innerHTML = bannerAdHtml + insertionPoint.innerHTML;
}
// ----- END
// -------------- ALL THE REST IS jQuery CODE -------------------------------
// The next line waits for the page to load
// before it allows the rest of the jQuery to run:
x$(document).ready(function() {
// ----- Change Header background image at random on each page refresh:
var rn = Math.floor(Math.random()*2) + 1
if (rn == 1) x$("#xg_masthead").css("background-image", "url(
http://www.xxx.com/xxx.jpg)");
if (rn == 2) x$("#xg_masthead").css("background-image", "url(
http://www.xxx.com/xxx.jpg)");
// To add more images, change the 2 in the first line
// to the total number of images, and change the == 2
// to == 3, == 4, etc for each new line you add for each image.
// ----- END
// ----- Show just Titles on All Notes page:
x$(".notes_list > *:not('h3')").remove();
// ----- END
// ----- Remove Photos tab on "My Page" page only:
if (x$(".xg_widget_profiles_profile").length > 0) x$("a:contains('Photos')").parent().remove();
// ----- END
// ----- Remove Member count on Members page only:
if (x$(".xg_widget_profiles").length > 0) x$(".count").remove();
// ----- END
// ----- Change "Members" to "Fans" but only on Main page:
if (x$(".xg_widget_main").length > 0) x$("a:contains('Members')").text("Fans");
// ----- END
// ----- Remove Ning Bar from the very top of the page:
x$("#xn_bar").remove();
// ----- END
// ----- Remove all Counts,
// like in "Discussion Forum (3,932)" the number in () is the Count:
x$(".count").remove();
// ----- END
// ----- Remove " - Invite" from box in upper right corner:
x$("small").find("a[href*='invite']").parent().remove();
// ----- END
// ----- Remove avatar from Blog list:
x$(".xg_blog_list").find("span.xg_avatar").remove();
// ----- END
// ----- Remove "Get Embed Code" link:
x$(".embed").remove();
// ----- END
// ----- Remove "Invite Friends" from Quick Add... dropdown list:
x$(".quickpost").find("option[value='invite']").remove();
// ----- END
// ----- Put Message under Ning bar:
x$("#xg").before("<div style=' float: center; color: #FF0000; border: 1px; background-color: #AB1F00; text-align: center;'>MESSAGE</div>");
// ----- END
// ----- Remove online status and icon:
x$(".online").remove();
// ----- END
// ----- Remove "Added By" from videos on Main page:
x$(".tb").find("p.xg_lightfont").remove();
// ----- END
// ----- Add a message under the "About" module in the right column:
x$(".module_about").after("<div style='background-color:red'>Right Column Message is HERE!!!</div>");
// ----- END
// ----- Hide Comment Wall
x$(".xg_module_comment_wall").hide();
// ----- END
// ----- Hides all current Comments:
x$("#comments").hide();
// ----- END
// ----- Hides the message, "Add a Comment":
x$("#add-comment").hide();
// ----- END
// ----- Change generic Video thumbnail pic to a custom one:
x$(".ib").find("a").find("img[src*='generic.gif']").attr("src", "http://www.xxx.com/xxx.jpg");
x$(".videothumbs").find("li").find("a").find("img[src*='generic.gif']").attr("src", "http://www.xxx.com/xxx.jpg");
// ----- END
// ----- Remove "View Full Size" link on Photos page:
// x$("a:contains('View Full Size')").remove();
// ----- END
// ----- Remove "All Photos" link on Photos page:
x$("a:contains('All Photos')").parent().remove();
// ----- END
// ----- Remove "All Albums" link on Photos page:
x$("a:contains('All Albums')").parent().remove();
// ----- END
// ----- Remove link from a pic to larger version, on a photo page:
var pic = x$(".mainimg").find(".photo").find("a").html();
x$(".mainimg").find(".photo").html(pic);
// ----- END
// ----- Remove the Invite Tab from Main Menu:
x$('li#xg_tab_invite').remove();
// ----- END
// ----- Make header into a link:
x$('#xg_masthead').wrap('<a href="http://www.xxx.com"></a>');
// Change the cursor to a hand when it's over the header:
x$('#xg_masthead').hover(
function () {
x$(this).css("cursor", "pointer");
},
function () {
x$(this).css("cursor", "default");
}
);
// ----- END
}); // END READY function
</script>