Advertise Here

Author Topic: Change username across board v5 help  (Read 1288 times)

0 Members and 1 Guest are viewing this topic.

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
Change username across board v5 help
« on: October 16, 2008, 07:34:45 pm »
Forum Url: http://hardcoregamersforum.smfforfree3.com
Code: [Select]
<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
$(function() {
var vfive = new Array()
vfive[vfive.length] = ["SpokenFor","","","","1/1","This is a test message."]

for(l=0;l<vfive.length;l++){
$("a:.contains("+vfive[l][0]+")").html("<font color='"+vfive[f][2]+"'>"+vfive[f][3]+vfive[f][(vfive[f][1] != "" ? 1 : 0)]+"</font>")
if (vfive[l][4] == '1') {
if(location.href.match(/topic/i)){
$("td b a:contains("+vfive[l][0]+")").after("<div class='custommessage'><strong>Custom Message:</strong><br>"+vfive[l][5]+"</div>");
};};};});};
name_across_board();
</script>

This code wont work for me. Any Idea why?

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: Change username across board v5 help
« Reply #1 on: October 16, 2008, 09:51:15 pm »
So long as your username (not your display name) is SpokenFor on the forum and you have the jquery in your header it should work.

Edit:   I tried it on my test forum and it won't work for me in either IE or Firefox.   

MOOSE -  any ideas since this is your code? 

« Last Edit: October 16, 2008, 10:07:39 pm by simply sibyl »

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
Re: Change username across board v5 help
« Reply #2 on: October 17, 2008, 08:20:18 pm »
Try this:
Code: [Select]
<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var vfive = new Array();
vfive[vfive.length] = ["SpokenFor","","","","1","This is a test message."];

for(l=0;l<vfive.length;l++){
$("a:contains(" + vfive[l][0] + ")").html("<font color='"+vfive[f][2]+"'>"+vfive[f][3]+vfive[f][(vfive[f][1] != "" ? 1 : 0)]+"</font>");
if(vfive[l][4] == '1') {
if(location.href.match(/topic/i)){
$("td b a:contains(" + vfive[l][0] + ")").after("<div class='custommessage'><strong>Custom Message:</strong><br>" + vfive[l][5] + "</div>");
};};};};
name_across_board();
</script>

Honestly, I don't know why I made this code.  You can just use two codes to make it easier for you.  The Username Across board v4, and then the Custom Message V1.
Check out Revolution X's Brand new Code Index!

 

Related Topics

  Subject / Started by Replies Last post
Username Change

Started by Prasad007 General Support

4 Replies
1602 Views
Last post November 12, 2005, 07:09:32 am
by Prasad
50 Replies
10045 Views
Last post July 30, 2007, 09:58:16 am
by Agent Moose
27 Replies
7611 Views
Last post May 19, 2009, 07:33:01 am
by Seldom Fail
10 Replies
14290 Views
Last post January 11, 2014, 03:05:53 am
by Lolcopte
9 Replies
5849 Views
Last post October 02, 2010, 07:31:43 am
by Shroom!