vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Profile Views - View Topic (Page 1 of 2)Page: 1 2
Topic Rating: *****
Printable View
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Profile Views (2nd Jan 08 at 8:43pm UTC)
This will show how many views the users' profile has had.

Preview:
Image

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>
 


Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 32
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Profile Views (2nd Jan 08 at 8:44pm UTC)
I hope you know, I can enter in fake forum names and users, and run it on a non-vForum site, and it still updates the values and whatnot. {Wink} {Tongue Out}

rroll.to— Shorten a link, rickroll your friends.
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 9:01pm UTC)
Yup! {Smile}
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 32
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Profile Views (2nd Jan 08 at 9:27pm UTC)
 
Yup! {Smile}


You also know that I could manually put in someone's forum & username, then reload the page a bunch of times and screw up their stats, correct? {Wink}

rroll.to— Shorten a link, rickroll your friends.
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 9:27pm UTC)
Yup..

Reverse Blade
Full Member
***

[Avatar]

Posts: 152
Status: Offline
Gender: Male
Joined:  
Reputation: 0%  


pm
Re: Profile Views (2nd Jan 08 at 9:29pm UTC)
Sure you did...
Nice code though.

Reverse Arts, Comming soon!
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 32
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Profile Views (2nd Jan 08 at 9:29pm UTC)
 
Yup..


Are you going to fix it? {Tongue Out}

rroll.to— Shorten a link, rickroll your friends.
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 9:48pm UTC)
Why? It's not going to kill someone...

And my PHP isn't brilliant! {Sad}
XeroCint
Senior Member
****

Posts: 553
Status: Offline
Gender: Male
Location: Google Server Streams
Age: 31
Joined:  
Reputation: 0%  


pmmsnyahooaim
Re: Profile Views (2nd Jan 08 at 10:30pm UTC)
Not working on mine {Unsure}

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 10:34pm UTC)
recopy - vF doesn't like \ {Tongue Out}
XeroCint
Senior Member
****

Posts: 553
Status: Offline
Gender: Male
Location: Google Server Streams
Age: 31
Joined:  
Reputation: 0%  


pmmsnyahooaim
Re: Profile Views (3rd Jan 08 at 1:41am UTC)
still not working {Unsure}

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 (3rd Jan 08 at 1:47am UTC)
recopy, I missed a \
XeroCint
Senior Member
****

Posts: 553
Status: Offline
Gender: Male
Location: Google Server Streams
Age: 31
Joined:  
Reputation: 0%  


pmmsnyahooaim
Re: Profile Views (3rd Jan 08 at 2:12am UTC)
{Lips Sealed}

... still no worky

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 (3rd Jan 08 at 2:15am UTC)
you need to alter this code too:

Code:
 
  1. <script>
  2. var t = document.getElementById('welcome_table');
  3. with(T){
  4. style.backgroundColor = "343434";
  5. cellSpacing = "0";
  6. }
  7. </script>
 

to:
Code:
 
  1. <script>
  2. var t = document.getElementById('welcome_table');
  3. with(t){
  4.     style.backgroundColor = "343434";
  5.     cellSpacing = "0";
  6. }
  7. </script>
 
XeroCint
Senior Member
****

Posts: 553
Status: Offline
Gender: Male
Location: Google Server Streams
Age: 31
Joined:  
Reputation: 0%  


pmmsnyahooaim
Re: Profile Views (3rd Jan 08 at 3:04am UTC)
Still no workey {Tongue Out}

 Printable View
Page: 1 2

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