vForums Support > Programming & Coding :: Code Requests & Support :: > Can't find code... "Hey #Username#"

Can't find code... "Hey #Username#" - Posted By Nick (nickb) on 3rd Oct 08 at 2:36am
I am trying to find that code that Wrighty made the "Hey #username#"

I can't find it anywhere on this forum?

I need it for my forum.

Darkmage

edit:
Never mind I found it, I went to the test board, and viewed source.

But will it work in Pm's

edit 2:

The code don't work at all {Sad}

http://planethalo.vforums.co.uk

(I made a test board that only the "Founder" Group can only see, so I need someone that has the Global User ability)

Re: Can't find code... "Hey #Username#" - Posted By dog199200 (dog199200) on 3rd Oct 08 at 3:04am
{Smile} one second i'll find it, i know what thread it goes in {Smile} I'm the one that requested the code

edit: found it:

G-Footer

Code:
 
  1. <script>
  2. /* ##username## tag
  3. Created By Wrighty
  4. Do Not Rip,. Repost or Claim*/
  5.  
  6. var d = {
  7.      d: get('td','tag'),
  8.      i: function(){
  9.           if(!location.href.match(/\/(admin|post|modify)/)){
  10.                this.a();
  11.           }
  12.      },
  13.      a: function(){
  14.           for(i = 0; i < this.d.length; i++){
  15.                if(this.d[i].innerHTML.match(/##username##/) && this.d[i].className.match(/window(1|2)/)){
  16.                     this.d[i].innerHTML = this.d[i].innerHTML.replace(/##username##/g, vf_displayname);
  17.                }
  18.           }
  19.      }
  20. };
  21. d.i();
  22. </script>
 

Re: Can't find code... "Hey #Username#" - Posted By Nick (nickb) on 3rd Oct 08 at 3:21am
I found it, I viewed source in the test board, but it don't work.

edit:

Ok thats odd the one I found in the View source in the test board did not work, but the one you gave me worked!?

Thanks Dwight.

Oh and will it work in PM?
Mainly for the Auto welcome PM's

Re: Can't find code... "Hey #Username#" - Posted By dog199200 (dog199200) on 3rd Oct 08 at 3:28am
yes it will, the only place it will not work is as your username

Re: Can't find code... "Hey #Username#" - Posted By Nick (nickb) on 3rd Oct 08 at 3:29am
Ok, and apparently it will not work in the Subject of the Welcome PM. I made a test account, I will have to make another test account now, because I changed a few things around.

Re: Can't find code... "Hey #Username#" - Posted By dog199200 (dog199200) on 3rd Oct 08 at 3:30am
ah ok, well i know it will work in the message itself, i used it as a really nice way to greet someone in one of my forums

Re: Can't find code... "Hey #Username#" - Posted By Nick (nickb) on 3rd Oct 08 at 3:36am
Yep that's the reason why I want it ^_^

I am just going to leave it out of the subject field for PM, but whats strange it works in teh subject field when actually doing a Post {Tongue Out}

Re: Can't find code... "Hey #Username#" - Posted By dog199200 (dog199200) on 3rd Oct 08 at 3:40am
ya i know, hey can i ask you something please {Smile} Can i rehost your spell checker code for heather? I wnat to add the shoutbox to her forum, but the ads in the code keeps messing things up in several parts of her forum and i was wondering if i rehosted it if i could please remove the ads

Re: Can't find code... "Hey #Username#" - Posted By Nick (nickb) on 3rd Oct 08 at 3:43am
I did not create it. I just found it from http://spellingcow.com You will have to take it up with them. If I messed with it I would be in trouble and possible lawsuit, for breaching their copyright.

You see ads? I don't at all...

Re: Can't find code... "Hey #Username#" - Posted By dog199200 (dog199200) on 3rd Oct 08 at 3:47am
i do, go to heathers site and go to post a thread through the rely button, it has an ad right under wher ethe cow is...and it puts up a spell check ever wher ethere is a feild, meaning it puts a cow and even an ad in the shoutbox

Re: Can't find code... "Hey #Username#" - Posted By Nick (nickb) on 3rd Oct 08 at 3:54am
ok I will hold on
I can see vF ads but I can't see those ads from the cow.

edit:
I do not even see the shout box {Unsure}

Re: Can't find code... "Hey #Username#" - Posted By dog199200 (dog199200) on 3rd Oct 08 at 3:57am
i removed it, because of the ads

Re: Can't find code... "Hey #Username#" - Posted By Nick (nickb) on 3rd Oct 08 at 3:58am
Well put it on so I can see.

Are they pop up/under ads? or are they like vF ads?

edit: lets continue on her site.

Staff may lock this.

Re: Can't find code... "Hey #Username#" - Posted By dog199200 (dog199200) on 3rd Oct 08 at 4:02am
they are like vforums ads, just a lot smaller aand ok give me a second, and ok