Advertise Here

Author Topic: [Code] Change "Childboard" Text  (Read 9600 times)

0 Members and 1 Guest are viewing this topic.

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 "Childboard" Text
« Reply #15 on: June 08, 2009, 12:42:53 pm »
Oh well, my fault in coding :P  Sorry about that.

Edited first post.

thanks Moose  ;)    figured you would catch this one

Offline D4rk-H4ck3r

  • SMF For Free Newbie
  • *
  • Posts: 12
    • View Profile
    • GameCoders

  • Total Badges: 8
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Code] Change "Childboard" Text
« Reply #16 on: June 08, 2009, 12:53:14 pm »
Forum Url: http://gamecoders.smfforfree.com
so it works now awesome :D

Offline Simply1Nick

  • SMF For Free Member
  • *
  • Posts: 51
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: [Code] Change "Childboard" Text
« Reply #17 on: September 19, 2009, 12:15:48 pm »
Code doesn't seem to work :S Atleast on IE.

Code is:

Code: [Select]
<script>
function childboard_text(){
var Child = "Sub Forums";
var b document.getElementsByTagName("b");
//Created by Agent Moose (smcodes.smfforfree3.com)
for(x=0;x<b.length;x++){
if(b[x].innerHTML.match(/Child Boards/i)){
b[x].innerHTML = b[x].innerHTML.replace(/Child Boards/i,Child);
};};};
childboard_text();
</script>


Made by Gir.

Offline Seldom Fail

  • Helpers
  • *
  • Posts: 2082
  • Helping for 3 years! :)
    • View Profile
    • My Site!

  • Total Badges: 26
    Badges: (View All)
    Sixth year Anniversary Fifth year Anniversary Apple User Search Poll Voter
Re: [Code] Change "Childboard" Text
« Reply #18 on: September 19, 2009, 12:23:10 pm »
Code doesn't seem to work :S Atleast on IE.

Code is:

Code: [Select]
<script>
function childboard_text(){
var Child = "Sub Forums";
var b document.getElementsByTagName("b");
//Created by Agent Moose (smcodes.smfforfree3.com)
for(x=0;x<b.length;x++){
if(b[x].innerHTML.match(/Child Boards/i)){
b[x].innerHTML = b[x].innerHTML.replace(/Child Boards/i,Child);
};};};
childboard_text();
</script>

Try this one

Code: [Select]
<script>
function childboard_text(){
var Child = "Sub Forums";

var b document.getElementsByTagName("b");
//Created by Agent Moose (smcodes.smfforfree3.com)
for(x=0;x<b.length;x++){
if(b[x].innerHTML.match(/Child Boards/i)){
b[x].innerHTML = b[x].innerHTML.replace(/Child Boards/i,Child);
};};};
childboard_text();
</script>
<--- Donate to SMF For Free! :D

Offline Simply1Nick

  • SMF For Free Member
  • *
  • Posts: 51
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: [Code] Change "Childboard" Text
« Reply #19 on: September 19, 2009, 01:19:43 pm »
Hmmm,Still not working.. :(


Made by Gir.

Offline Seldom Fail

  • Helpers
  • *
  • Posts: 2082
  • Helping for 3 years! :)
    • View Profile
    • My Site!

  • Total Badges: 26
    Badges: (View All)
    Sixth year Anniversary Fifth year Anniversary Apple User Search Poll Voter
Re: [Code] Change "Childboard" Text
« Reply #20 on: September 19, 2009, 01:33:20 pm »
<script src="/jquery.js"></script>

do you have this in your headers?

And can you give us your forum URL please?
<--- Donate to SMF For Free! :D

Offline Simply1Nick

  • SMF For Free Member
  • *
  • Posts: 51
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: [Code] Change "Childboard" Text
« Reply #21 on: September 19, 2009, 03:39:05 pm »
Forum Url: Gamerzlite.smfforfree3.com
I have the Jquery thing in my Headers.

Don't know why it's not working..


Made by Gir.

Offline Andrew

  • Helpers
  • *
  • Posts: 2060
  • Andrew at your service
    • View Profile
    • Alabama Weather Prediction

  • Total Badges: 32
    Badges: (View All)
    10 Poll Votes Level 6 Eighth year Anniversary Seventh year Anniversary Sixth year Anniversary
Re: [Code] Change "Childboard" Text
« Reply #22 on: September 19, 2009, 03:45:56 pm »
I think its a problem with spacing in the "Sub Forums" part.

Try this one:
Code: [Select]
<script>
function childboard_text(){
var Child = "Sub-Forums";

var b document.getElementsByTagName("b");
//Created by Agent Moose (smcodes.smfforfree3.com)
for(x=0;x<b.length;x++){
if(b[x].innerHTML.match(/Child Boards/i)){
b[x].innerHTML = b[x].innerHTML.replace(/Child Boards/i,Child);
};};};
childboard_text();
</script>

I'm currently using that one and it works fine.

Offline slayer766

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

  • Total Badges: 13
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Change "Childboard" Text
« Reply #23 on: September 19, 2009, 06:15:03 pm »
Code: [Select]
<script type="text/javascript">
var string_a = "Sub Forums";
if($("span.smalltext b:contains(Child Boards)")){
    $("span.smalltext b:contains(Child Boards)").each(function(){
        $(this).html(string_a);
    });
}
</script>
jQuery version.

Offline King Gold007

  • SMF For Free Member
  • *
  • Posts: 53
  • The Navy Seal
    • View Profile

  • Total Badges: 11
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: [Code] Change "Childboard" Text
« Reply #24 on: October 16, 2009, 07:46:07 pm »
Code: [Select]
<script type="text/javascript">
var string_a = "Sub Forums";
if($("span.smalltext b:contains(Child Boards)")){
    $("span.smalltext b:contains(Child Boards)").each(function(){
        $(this).html(string_a);
    });
}
</script>
jQuery version.


Thanks

Offline TJ Bryner

  • SMF For Free Member
  • *
  • Posts: 33
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Code] Change "Childboard" Text
« Reply #25 on: December 23, 2009, 07:12:02 am »
Forum Url: http://jcomrc.smfforfree3.com/index.php
I have tried to add that to my footer and have yet to get it to work on my forum.

Any help would be great.

TJ

Offline Omniscient

  • SMF For Free Member
  • *
  • Posts: 92
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: [Code] Change "Childboard" Text
« Reply #26 on: December 23, 2009, 07:17:58 am »
Sorry,

For some reason Moose's code doesn't work but the one Slayer766 did so add this.

Headers:

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

Code: [Select]
<script type="text/javascript">
var string_a = "Sub Forums";
if($("span.smalltext b:contains(Child Boards)")){
    $("span.smalltext b:contains(Child Boards)").each(function(){
        $(this).html(string_a);
    });
}
</script>

That code works I just tested it out myself.

Offline TJ Bryner

  • SMF For Free Member
  • *
  • Posts: 33
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Code] Change "Childboard" Text
« Reply #27 on: December 23, 2009, 07:25:18 am »
WOW that's the ticket, worked like a charm. Guess it's time for me to start reading all the codes in here. Might be  another in here that I can use.

Thanks
TJ

Offline [Vital Suit]GTF-11 Drio

  • SMF For Free Member
  • *
  • Posts: 47
    • View Profile
    • The Epic Building Clan

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Code] Change "Childboard" Text
« Reply #28 on: December 23, 2009, 10:04:06 am »
It doesn't Work. I put it in the "Footers" and I changed the CHILDBOARD TEXT but it still says Child Boards
Feel free to p.m. me :)

My current rank: Lieutenant Junior Grade.

Check out my forum at http://forumtheepicbuildingclan.smfforfree3.com/index.php?

Offline Omniscient

  • SMF For Free Member
  • *
  • Posts: 92
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: [Code] Change "Childboard" Text
« Reply #29 on: December 23, 2009, 10:09:47 am »
Sorry,

For some reason Moose's code doesn't work but the one Slayer766 did so add this.

Headers:

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

Code: [Select]
<script type="text/javascript">
var string_a = "Sub Forums";
if($("span.smalltext b:contains(Child Boards)")){
    $("span.smalltext b:contains(Child Boards)").each(function(){
        $(this).html(string_a);
    });
}
</script>

That code works I just tested it out myself.

 

Related Topics

  Subject / Started by Replies Last post
6 Replies
2769 Views
Last post January 26, 2009, 03:25:41 pm
by Agent Moose
11 Replies
5083 Views
Last post June 23, 2007, 12:35:24 am
by Agent Moose
10 Replies
3146 Views
Last post April 01, 2008, 08:23:03 am
by Vice
3 Replies
3268 Views
Last post July 27, 2007, 05:10:31 pm
by doggiedoo86
3 Replies
2226 Views
Last post September 01, 2009, 12:32:55 am
by Jish