SMF For Free Support Forum
Signup For Free Forum
March 12, 2010, 02:25:37 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: [Code] Info Center V2  (Read 1642 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Moderator
*****
Offline Offline

Posts: 805


Do not PM me for Code Support or Request


View Profile
« on: August 05, 2007, 03:03:25 pm »

Add this to your Headers if you don't have it already.  If you already have it, don't add it:
Code:
<script src="jquery.js"></script>

Footers:
Code:
<script>
function info_center_v2() {
//Created by Agent Moose at smcodes.smfforfree3.com
$(function() {
a = document.getElementsByTagName("A")
b = $($("div.smalltext").contains("Users active in past 15 minutes:").hide()).html()
for(z=0;z<a.length;z++){
if(a[z].href.match(/action=who/i) && a[z].innerHTML.match(/Guest,/i)){a[z].innerHTML = " "
}}
$($("div.tborder").contains("Info Center")).insertBefore("#bodyarea")
$($("td.titlebg").contains("Users Online")).hide()
$($("tr").contains("Most O"+"nline To"+"day: ")).hide()
$("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
}});});};
info_center_v2()
</script>

here is V2 of the info center.  It changes around the regular info center alot.  It is hard to explain, so why not try it out yourself?  Or look at this niffty preview:
http://amtest.smfforfree2.com/index.php
« Last Edit: December 17, 2007, 07:32:20 pm by Agent Moose » Logged

Check out Revolution X's Brand new Code Index!
Ravage™
SMF For Free Hero
*
Offline Offline

Posts: 557


Ravage Beast!


View Profile WWW
« Reply #1 on: August 05, 2007, 03:45:53 pm »

nice
Logged

kurama
SMF For Free Full Member
*
Offline Offline

Posts: 115



View Profile WWW
« Reply #2 on: November 03, 2007, 10:44:24 pm »

hey i can't change my header/footer no more wat the hell happen i just put ur code and this is wat happen

heres the link so u can check it out

www.animequest.smfforfree3.com
Logged

im Truly a man not to mess with

simply sibyl
Global Moderator
*
Offline Offline

Posts: 13268



View Profile WWW
« Reply #3 on: November 03, 2007, 10:54:44 pm »

hey i can't change my header/footer no more wat the hell happen i just put ur code and this is wat happen

heres the link so u can check it out

www.animequest.smfforfree3.com

Are you able to login?  Please tell me exactly what you CAN do in there as far as the header/footer goes..   what you see, what you cannot access..   
Logged

simply sibyl
Global Moderator
*
Offline Offline

Posts: 13268



View Profile WWW
« Reply #4 on: November 03, 2007, 10:58:36 pm »

Turn off Javascript in your browser, clear your headers and try again.

You must have forgot to change some of the URL's in the script. You have to remember to read the instructions and check the code before you paste it!
Logged

kurama
SMF For Free Full Member
*
Offline Offline

Posts: 115



View Profile WWW
« Reply #5 on: November 03, 2007, 11:07:51 pm »

umm how do u turn off the javascript sorry
Logged

im Truly a man not to mess with

simply sibyl
Global Moderator
*
Offline Offline

Posts: 13268



View Profile WWW
« Reply #6 on: November 03, 2007, 11:09:45 pm »

What browser are you using
Logged

kurama
SMF For Free Full Member
*
Offline Offline

Posts: 115



View Profile WWW
« Reply #7 on: November 03, 2007, 11:16:20 pm »

internet Exploror
Logged

im Truly a man not to mess with

simply sibyl
Global Moderator
*
Offline Offline

Posts: 13268



View Profile WWW
« Reply #8 on: November 03, 2007, 11:19:17 pm »

 

From the Tools menu, choose Internet Options... .
Click the Security tab.
Click Custom Level... .

Scroll to the "Scripting" section of the list. Click Disable or Enable.
Close and restart your browser.


 
Logged

simply sibyl
Global Moderator
*
Offline Offline

Posts: 13268



View Profile WWW
« Reply #9 on: November 03, 2007, 11:21:33 pm »

that is for IE7.. if you still use 6 let me know
Logged

kurama
SMF For Free Full Member
*
Offline Offline

Posts: 115



View Profile WWW
« Reply #10 on: November 03, 2007, 11:25:03 pm »

no i use IE7 and thanks
Logged

im Truly a man not to mess with

simply sibyl
Global Moderator
*
Offline Offline

Posts: 13268



View Profile WWW
« Reply #11 on: November 03, 2007, 11:48:15 pm »

no i use IE7 and thanks

you are welcome.  I see you got it fixed
Logged



Pages: [1]
  Print  
 
Jump to:  



Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
ServerBeach Coupon
Page created in 0.303 seconds with 15 queries. (Pretty URLs adds 0.058s, 2q)