Advertise Here

Author Topic: [Code] Change Info Center Text  (Read 2152 times)

0 Members and 1 Guest are viewing this topic.

Offline Vitality

  • SMF For Free Member
  • *
  • Posts: 53
  • Revolution X
    • View Profile
    • Revolution X

  • Total Badges: 14
    Badges: (View All)
    Linux User Topic Starter Combination Level 3 Level 2
[Code] Change Info Center Text
« on: November 05, 2008, 09:03:33 pm »
My first SMF code, something simple to get used to the new classes and such.
This replaces the text that says "Info Center" on the header above your stats.

Footers
Code: [Select]
<script>
/*Change Info Center Text By Vitality; Revolution X SMF For Free Support*/

newtext = "NEW_TEXT"

var a = document.getElementsByTagName('div')
for(i=0;i<a.length;i++){
if(a[i].className == "catbg" && a[i].innerHTML.match(/Info Center/i)){
a[i].innerHTML = a[i].innerHTML.replace("Info Center",newtext);
}}
</script>
« Last Edit: November 15, 2008, 12:08:49 pm by simply sibyl »

Offline Josh[y]

  • SMF For Free Sr. Member
  • *
  • Posts: 478
  • <Insert whitty tagline here.>
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Change Info Center Text
« Reply #1 on: November 05, 2008, 09:12:44 pm »
Awesome! Do you think you could make it so the new text toggles the info center?

Offline 73lue73oy

  • SMF For Free Member
  • *
  • Posts: 63
    • View Profile
    • bdesignz

  • Total Badges: 13
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Change Info Center Text
« Reply #2 on: November 05, 2008, 09:14:48 pm »
what do you mean by change info center text like where is that?

Offline Josh[y]

  • SMF For Free Sr. Member
  • *
  • Posts: 478
  • <Insert whitty tagline here.>
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Change Info Center Text
« Reply #3 on: November 05, 2008, 09:57:55 pm »
On your forum, scroll down and you will see "YOUR SITE - Info center"

This code will change the part that says "Info center"

Offline Vitality

  • SMF For Free Member
  • *
  • Posts: 53
  • Revolution X
    • View Profile
    • Revolution X

  • Total Badges: 14
    Badges: (View All)
    Linux User Topic Starter Combination Level 3 Level 2
Re: Change Info Center Text
« Reply #4 on: November 05, 2008, 10:43:36 pm »
Awesome! Do you think you could make it so the new text toggles the info center?
I could give it a shot. It shouldn't be too bad, and since I was going to convert this to jQuery anyway, it shouldn't be a problem.

 

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
5 Replies
1368 Views
Last post November 11, 2007, 12:05:55 pm
by cooldude101
1 Replies
10113 Views
Last post July 03, 2008, 07:51:18 pm
by Kalphiter
7 Replies
8212 Views
Last post March 22, 2011, 05:50:28 am
by ut shady