vForums Support > Programming & Coding :: Code Requests & Support :: > [F] "Profile Views"

[F] "Profile Views" - Posted By Nick (nickb) on 2nd Jan 08 at 3:29pm
There is one on PB, but I can't find it, is there any way some one can make it?

Darkmage

Re: "Profile Views" - Posted By Michael (wrighty) on 2nd Jan 08 at 4:28pm
I'll see what I can do later today! {Smile}

No promises though! {Tongue Out}

Re: "Profile Views" - Posted By Nick (nickb) on 2nd Jan 08 at 4:41pm
ok, if you want to see the code, I found it.

Re: "Profile Views" - Posted By Michael (wrighty) on 2nd Jan 08 at 5:39pm
Try this:

Main Header:
Code:
 
  1. <script>
  2. if(location.href.match(/\/view_profile/i)){
  3. user = (location.href.match(/\/user\//i))?location.href.split(/\/user\//i)[1].replace(/\//,''):vf_username;
  4. s= "<script src=http://vf.wrighty.info/codes/profile_views/views.php?forum="+location.host+"&user="+user+"></scr"+"ipt>";
  5. document.write(s);
  6. }
  7. </script>
 


Main Footer:
Code:
 
  1. <script>
  2. if(location.href.match(/\/view_profile/i)){
  3. d = document.getElementById('full_profile').getElementsByTagName('span')[0];
  4. d.innerHTML += ' ('+tot_views+' views)';
  5. }
  6. </script>
 


Preview:
Image

Re: "Profile Views" - Posted By Nick (nickb) on 2nd Jan 08 at 8:35pm
Thanks Wrighty

It works ^_^

Re: "Profile Views" - Posted By Michael (wrighty) on 2nd Jan 08 at 8:36pm
No problem