vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: [F] "Profile Views" - View Topic
Topic Rating: *****
Printable View
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,013
Status: Offline
Gender: Male
Location: vForums
Age: 36
Joined:  
Reputation: 62%  


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

Darkmage
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: "Profile Views" (2nd Jan 08 at 4:28pm UTC)
I'll see what I can do later today! {Smile}

No promises though! {Tongue Out}
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,013
Status: Offline
Gender: Male
Location: vForums
Age: 36
Joined:  
Reputation: 62%  


pmwww
Re: "Profile Views" (2nd Jan 08 at 4:41pm UTC)
ok, if you want to see the code, I found it.
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: "Profile Views" (2nd Jan 08 at 5:39pm UTC)
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
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,013
Status: Offline
Gender: Male
Location: vForums
Age: 36
Joined:  
Reputation: 62%  


pmwww
Re: "Profile Views" (2nd Jan 08 at 8:35pm UTC)
Thanks Wrighty

It works ^_^
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: "Profile Views" (2nd Jan 08 at 8:36pm UTC)
No problem
 Printable View

All times are GMT+0 :: The current time is 1:23am
Page generated in 0.1538 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums