Simple Machine Codes
November 07, 2009, 03:26:30 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Affiliates Code Index Staff List Calendar Members Login Register  

SMF-Mini


Pages: [1]   Go Down
  Print  
Author Topic: SMF-Mini  (Read 300 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,663



View Profile WWW
« on: September 04, 2007, 03:34:45 pm »

This code makes Your SMF for Free board smaller.  In font size and by removing some things.  There are two versions.  V1 makes the font size smaller.  V2 doesn't mess with the font.  That is the only diffrent with the two codes:

Preview!

Footers
V1
Code:
<script>
function smf_mini() {
//Created by Agent Moose at smcodes.smfforfree3.com
$(function() {
b = $($("div.smalltext:contains('Users active in past 15 minutes:')").hide()).html();
name = $($("tr td span b").hide()).html();
date = $($("tr td.titlebg2[align=right] span.smalltext").hide()).html()
$("tr:contains(Users Onl"+"ine)").hide();
$("tr:contains(Users Onl"+"ine)").next().hide();
$("tr:contains(Most O"+"nline To"+"day:)").hide();
$("tr:contains(New Pos"+"ts)").hide();
$("#upshrinkHeader").hide();
$(".maintab_back:contains(Staff List) , .maintab_back:contains(Search) , .maintab_back:contains(Help)").hide();
$("hr.hrcolor").hide();
$("#upshrinkHeader2:contains(Ne"+"ws)").hide()
$("tr:contains(He"+"llo)").hide();
$("div.tborder table tbody tr td.catbg span").append("&nb"+"sp;| <span style='font-family: Verdana,sans-serif; font-size: 14px;'>"+name+" | "+date+"</span>");
$("span.middletext").each(function() {
if(this.innerHTML.match(/([\d,]+) Posts in ([\d,]+) Topics by ([\d,]+) Members. Latest Member: <b>\s?(<a.+?\/a>)<\/b>/i)) {
this.innerHTML = "Posts: <b>"+RegExp.$1+"</b>, Topics: <b>"+RegExp.$2+"</b>, Total Members: <b>"+RegExp.$3+"</b>, Newest Member: <b>"+RegExp.$4+"</b><br>"+b
};});});};
smf_mini();
document.write("<style>.mirrortab_back, .mirrortab_active_back {color: white; text-decoration: none; font-size: 8.5px; vertical-align: bottom; padding: 6px 6px 2px 6px; font-family: tahoma, sans-serif;}</style>");
document.write("<style>.maintab_back, .maintab_active_back{color: white; text-decoration: none; font-size:  8.5px; vertical-align: top; padding: 2px 6px 6px 6px; font-family: tahoma, sans-serif;}</style>");
document.write("<style>body, td, th , tr{color: #000000; font-size: 10.5px; font-family: verdana, sans-serif;}</style>");
document.write("<style>h1{font-size: 15px;</style>")
</script>

V2
Code:
<script>
function smf_mini() {
//Created by Agent Moose at smcodes.smfforfree3.com
$(function() {
b = $($("div.smalltext:contains('Users active in past 15 minutes:')").hide()).html();
name = $($("tr td span b").hide()).html();
date = $($("tr td.titlebg2[align=right] span.smalltext").hide()).html()
$("tr:contains(Users Onl"+"ine)").hide();
$("tr:contains(Users Onl"+"ine)").next().hide();
$("tr:contains(Most O"+"nline To"+"day:)").hide();
$("tr:contains(New Pos"+"ts)").hide();
$("#upshrinkHeader").hide();
$(".maintab_back:contains(Staff List) , .maintab_back:contains(Search) , .maintab_back:contains(Help)").hide();
$("hr.hrcolor").hide();
$("#upshrinkHeader2:contains(Ne"+"ws)").hide()
$("tr:contains(He"+"llo)").hide();
$("div.tborder table tbody tr td.catbg span").append("&nb"+"sp;| <span style='font-family: Verdana,sans-serif; font-size: 14px;'>"+name+" | "+date+"</span>");
$("span.middletext").each(function() {
if(this.innerHTML.match(/([\d,]+) Posts in ([\d,]+) Topics by ([\d,]+) Members. Latest Member: <b>\s?(<a.+?\/a>)<\/b>/i)) {
this.innerHTML = "Posts: <b>"+RegExp.$1+"</b>, Topics: <b>"+RegExp.$2+"</b>, Total Members: <b>"+RegExp.$3+"</b>, Newest Member: <b>"+RegExp.$4+"</b><br>"+b
};});});};
smf_mini();
</script>
« Last Edit: September 28, 2007, 06:45:06 pm by Agent Moose » Report Spam   Logged



Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2006, Simple Machines LLC
ServerBeach Coupon