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>
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.
Yup!
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?
Yup..
Sure you did...
Nice code though.
Yup..
Are you going to fix it?
Why? It's not going to kill someone...
And my PHP isn't brilliant!
Not working on mine
recopy - vF doesn't like \
still not working
recopy, I missed a \
... still no worky
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>
Still no workey
It works fine for me
Clicky
im guessing you clicked on your profile and copied the url because when you do that knowone else will be able to get to the page unless they are a logged in member. it works though. I checked. Nice man
kai, you've copied it wrong!
recopy the footer part!
its still not working >,>
just try disabling the auto gradients, and if it works, I'll try to fix it!