Advertise Here

Author Topic: [Code] Change Sub-Heading Text under Info Center  (Read 8212 times)

0 Members and 1 Guest are viewing this topic.

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
[Code] Change Sub-Heading Text under Info Center
« on: February 13, 2009, 06:54:40 pm »
Header Code:    (Add this to your header if you do not already have it)

Code: [Select]
<script src="/jquery.js"></script>


Footers:
Code: [Select]
<script>
function ChangeInfo(Orig,Variable){
//Created by Agent Moose (revolutionx.smfforfree3.com)
if(document.getElementById("upshrinkHeaderIC")) $("td.titlebg[colspan='2']:contains(" + Orig + ")").html(Variable);
};
ChangeInfo("OLD TEXT","NEW TEXT");
</script>

Original Request: http://www.smfsupport.com/support/index.php?dummy=1&topic=25265.0

OLD TEXT = The Text of the Sub-Header (Forum Stats, Users Online, Users Logged In Today)  Capitalization DOES count.
NEW TEXT = The New text of the text you want to change :)

Example:
Code: [Select]
ChangeInfo("Forum Stats","This is the Stats of the Forum");
Enjoy :)
« Last Edit: March 21, 2011, 09:07:01 pm by simply sibyl »
Check out Revolution X's Brand new Code Index!

Offline Didds

  • SMF For Free Sr. Member
  • *
  • Posts: 269
  • Didds Forums
    • View Profile
    • Didds Forums

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Change Sub-Heading Text under Info Center
« Reply #1 on: February 14, 2009, 04:39:43 am »
I don't understand why people would want to change this. It's such a tiny obsolete thing.....

Offline Mary

  • SMF For Free Sr. Member
  • *
  • Posts: 434
    • View Profile
    • PogoJustPogo

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Change Sub-Heading Text under Info Center
« Reply #2 on: February 14, 2009, 09:52:28 am »
Cool Code Moosey.  I love it and have changed mine to read our forum names stats.  Thank you for the cool new toy. :smitten:
Vist us at www.pogojustpogo.smfforfree3.com
Best and Friendliest Pogo FanSite There Is!!

Offline ut shady

  • SMF For Free Full Member
  • *
  • Posts: 172
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 100 Posts
Re: [Code] Change Sub-Heading Text under Info Center
« Reply #3 on: March 21, 2011, 02:50:22 pm »
did not work for me

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Change Sub-Heading Text under Info Center
« Reply #4 on: March 21, 2011, 03:29:30 pm »
did not work for me


Your forum url?
The code exactly as you used it?

Offline ut shady

  • SMF For Free Full Member
  • *
  • Posts: 172
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 100 Posts
Re: [Code] Change Sub-Heading Text under Info Center
« Reply #5 on: March 21, 2011, 04:20:37 pm »
http://lufcscape.freesmfhosting.com/

<script>
function ChangeInfo(Orig,Variable){
//Created by Agent Moose (revolutionx.smfforfree3.com)
if(document.getElementById("upshrinkHeaderIC")) $("td.titlebg[colspan='2']:contains(" + Orig + ")").html(Variable);
};
ChangeInfo("Users Online","Lufcscape forum users online today");
</script>

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Change Sub-Heading Text under Info Center
« Reply #6 on: March 21, 2011, 09:05:56 pm »
ut shady

Moose forgot to add this to the directions:

Put this code in your Header:

Code: [Select]
<script src="/jquery.js"></script>

I'll edit the directions and add that instruction.

Offline ut shady

  • SMF For Free Full Member
  • *
  • Posts: 172
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 100 Posts
Re: [Code] Change Sub-Heading Text under Info Center
« Reply #7 on: March 22, 2011, 05:50:28 am »
it already worked.

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
4512 Views
Last post March 20, 2009, 07:49:43 pm
by Andrew
3 Replies
3040 Views
Last post July 25, 2007, 02:50:00 pm
by rileyks
11 Replies
6029 Views
Last post November 03, 2007, 11:48:15 pm
by simply sibyl
5 Replies
1368 Views
Last post November 11, 2007, 12:05:55 pm
by cooldude101
4 Replies
2151 Views
Last post November 05, 2008, 10:43:36 pm
by Vitality