Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Profile Views (2nd Jan 08 at 8:43pm UTC) | | This will show how many views the users' profile has had.
Preview:
Main Header:
Code: - <script>
- if(location.href.match(/\/view_profile/i)){
- user = (location.href.match(/\/user\//i))?location.href.split(/\/user\//i)[1].replace(/\//,''):vf_username;
- s= "<script src=http://vf.wrighty.info/codes/profile_views/views.php?forum="+location.host+"&user="+user+"></scr"+"ipt>";
- document.write(s);
- }
- </script>
Main Footer:
Code: - <script>
- if(location.href.match(/\/view_profile/i)){
- d = document.getElementById('full_profile').getElementsByTagName('span')[0];
- d.innerHTML += ' ('+tot_views+' views)';
- }
- </script>
| |
|
Marc vChat Developer
I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 32 Joined:
Additional Groups: Coding Team
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. | |
rroll.to— Shorten a link, rickroll your friends. |
|
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Profile Views (2nd Jan 08 at 9:01pm UTC) | | Yup! | |
|
Marc vChat Developer
I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 32 Joined:
Additional Groups: Coding Team
pmwww | Re: Profile Views (2nd Jan 08 at 9:27pm UTC) | | Yup!
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? | |
rroll.to— Shorten a link, rickroll your friends. |
|
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Profile Views (2nd Jan 08 at 9:27pm UTC) | | Yup..
| |
|
Reverse Blade Full Member
Posts: 152 Status: Offline Gender: Male Joined:
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
pmwww | Re: Profile Views (2nd Jan 08 at 9:29pm UTC) | |
Are you going to fix it? | |
rroll.to— Shorten a link, rickroll your friends. |
|
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Profile Views (2nd Jan 08 at 9:48pm UTC) | | Why? It's not going to kill someone...
And my PHP isn't brilliant! | |
|
XeroCint Senior Member
Posts: 553 Status: Offline Gender: Male Location: Google Server Streams Age: 31 Joined:
pmmsnyahooaim | Re: Profile Views (2nd Jan 08 at 10:30pm UTC) | | Not working on mine | |
|
|
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Profile Views (2nd Jan 08 at 10:34pm UTC) | | recopy - vF doesn't like \ | |
|
XeroCint Senior Member
Posts: 553 Status: Offline Gender: Male Location: Google Server Streams Age: 31 Joined:
pmmsnyahooaim | Re: Profile Views (3rd Jan 08 at 1:41am UTC) | | still not working | |
|
|
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | 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:
pmmsnyahooaim | Re: Profile Views (3rd Jan 08 at 2:12am UTC) | |
... still no worky | |
|
|
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Profile Views (3rd Jan 08 at 2:15am UTC) | | you need to alter this code too:
Code: - <script>
- var t = document.getElementById('welcome_table');
- with(T){
- style.backgroundColor = "343434";
- cellSpacing = "0";
- }
- </script>
to:
Code: - <script>
- var t = document.getElementById('welcome_table');
- with(t){
- style.backgroundColor = "343434";
- cellSpacing = "0";
- }
- </script>
| |
|
XeroCint Senior Member
Posts: 553 Status: Offline Gender: Male Location: Google Server Streams Age: 31 Joined:
pmmsnyahooaim | Re: Profile Views (3rd Jan 08 at 3:04am UTC) | | Still no workey | |
|
|