| View previous topic :: View next topic |
| Could you imlpement this solution as explained? |
| Very easily, it worked right away |
|
41% |
[ 5 ] |
| Confusing at first but it worked out OK in the end |
|
16% |
[ 2 ] |
| No way, I'm as lost as ever! |
|
25% |
[ 3 ] |
| I give up! |
|
16% |
[ 2 ] |
|
| Total Votes : 12 |
|
| Author |
Message |
chrisooc User Forum Moderator
Joined: 29 Apr 2004 Posts: 9072 Location: Montreal, Quebec, Canada
|
Posted: Tue Aug 30, 2005 5:02 pm Post subject: How to use Statcounter on My Space - The Solution |
|
|
How to use Statcounter on My Space - The Solution
My Space does not permit using code such as Statcounter. Not even the html-only version can be used.
However Avantartist has found a smart workaround this. It involves using the counter image as the background of a dummy div placed in the About Me section.
You cannot place the entire code that is generated by Statcounter's wizard. This is a special case where you only take the link given in the src from the <img > tag and turn it into a background image for a <div..>, defined as an inline style definition.
Place this code in the About me section of your page and the your own header HTML section on the blog customize page and it works just fine.
It will log the way an html-only counter would log: all info except for page url referer url, page title and screen resolution, all of which can only be obtained through javascript. This means the Came from, Popular pages and other similar url-based stats will be empty. But you will get your visitor's IP and geo-location, OS and browser information by and large.
The actual syntax for this should be:
| Quote: |
<div style="background-image:url(http://c9.statcounter.com/counter.php?sc_project=999999&java=0&invisible=1&security=zzzzzzz); background-repeat:no-repeat; background-position:center; width:1px; height:1px;"></div>
|
Set invisible=0 and width:60px; height:14px; if you want to actually see the counter being displayed as well - assuming the counter is configured to be visible in the first place.
The fields in red depend on your particular project code. _________________
Christina
AnySite Widget News - where I sell nothing, not even my sig
Don't PM me about SC problems - use the forum
Last edited by chrisooc on Thu Sep 22, 2005 12:34 am; edited 3 times in total |
|
| Back to top |
|
 |
avantartist
Joined: 07 Apr 2005 Posts: 5 Location: new york
|
|
| Back to top |
|
 |
britoman
Joined: 01 Sep 2005 Posts: 4
|
Posted: Thu Sep 01, 2005 7:15 pm Post subject: |
|
|
it just doesnt work for me dude...i odnt noe y...i put the whole thing in the about me section and in the blog customize page but nothing dude
when i go to check if its workin on my statcounter site doesnt show anythin all 0 0 0 0....crap dude! |
|
| Back to top |
|
 |
chrisooc User Forum Moderator
Joined: 29 Apr 2004 Posts: 9072 Location: Montreal, Quebec, Canada
|
Posted: Thu Sep 01, 2005 7:28 pm Post subject: |
|
|
Link?
You have to follow ALL instructions carefully!
If you want to be helped you have to help yourself too.
And stop using such silly language as what you are using. If you are younger than 13 you should have had parental permission. If you are older than 13 you don't sound it.  _________________
Christina
AnySite Widget News - where I sell nothing, not even my sig
Don't PM me about SC problems - use the forum |
|
| Back to top |
|
 |
britoman
Joined: 01 Sep 2005 Posts: 4
|
Posted: Thu Sep 01, 2005 7:31 pm Post subject: |
|
|
| sorry man |
|
| Back to top |
|
 |
stone
Joined: 03 Aug 2005 Posts: 27
|
Posted: Mon Sep 05, 2005 3:33 pm Post subject: |
|
|
That works beautifully!
Now, How about my blog?
I had the html version on my blog, it didn't allow me to work on my blog.
Cross your fingers and wish me luck!
Well that seems to work also. But...I can't tell which pages are opened.
I guess that you can't have everything.
Last edited by stone on Thu Oct 13, 2005 2:17 am; edited 1 time in total |
|
| Back to top |
|
 |
letsgetelectric
Joined: 08 Sep 2005 Posts: 1
|
Posted: Thu Sep 08, 2005 2:54 am Post subject: please explain... |
|
|
I followed the instructions perfectly, but for some reason, the code isn't working on my Myspace.
Is there any other way of explaining it to me?
thank you so much |
|
| Back to top |
|
 |
chrisooc User Forum Moderator
Joined: 29 Apr 2004 Posts: 9072 Location: Montreal, Quebec, Canada
|
Posted: Thu Sep 08, 2005 3:00 am Post subject: |
|
|
Sorry, I really don't see how else to explain it.
You have to go to the place where you define your custom header for your blog and paste the code you see given in the first post but with your own details put in.
So generate the html version of Statcounter and take from that code just the pieces you need, as indicated above. Use Notepad to help you prepare the necesary code to paste into your custom html section for the header. _________________
Christina
AnySite Widget News - where I sell nothing, not even my sig
Don't PM me about SC problems - use the forum
Last edited by chrisooc on Thu Sep 08, 2005 3:29 am; edited 1 time in total |
|
| Back to top |
|
 |
Brisguy52
Joined: 30 Jun 2005 Posts: 146 Location: Brisbane
|
Posted: Thu Sep 08, 2005 3:15 am Post subject: |
|
|
WOW
statcounter's very own web bug ( beacon if you prefer )  _________________ Don't get mad - get EVEN |
|
| Back to top |
|
 |
avantartist
Joined: 07 Apr 2005 Posts: 5 Location: new york
|
Posted: Thu Sep 08, 2005 8:31 pm Post subject: |
|
|
be sure when you add the code you do not put it between the <style> and </style> syntax if you've modified your page. the statcounter will not work if placed there. _________________ http://www.betaart.com
http://www.myspace.com/kevindean |
|
| Back to top |
|
 |
chrisooc User Forum Moderator
Joined: 29 Apr 2004 Posts: 9072 Location: Montreal, Quebec, Canada
|
Posted: Thu Sep 08, 2005 8:34 pm Post subject: |
|
|
Actually if you create a class there with the SC image as a background and later use that class in a div in the header portion it works.
But by now anybody who knows this much of both html and css is pretty good to make their own web pages, not rely on MySPace  _________________
Christina
AnySite Widget News - where I sell nothing, not even my sig
Don't PM me about SC problems - use the forum |
|
| Back to top |
|
 |
unrealgecko
Joined: 18 Sep 2005 Posts: 1
|
Posted: Sun Sep 18, 2005 8:56 pm Post subject: i got it to work |
|
|
Hey guys. I just got my stat counter to work perfectly. Most everyone is using CSS to style their pages so I went from there and found a working formula.
Here is my code and I will show you what you need and what to edit. Now for the code, everyone should have seen this type of code if you have edited you Myspace what so ever....
<style type=text/css>
body{background-image:url(http://c8.statcounter.com/counter.php?sc_project=123456&java=0&security=12345678&invisi);
background-attachment:fixed;;
background-repeat:no-repeat;;
background-position:center;;
background-color:000000;}
table, tr, td{background-color:transparent;;
border:0px;;
padding:2;}
table table{border:0px;}
table table table {border:2px solid;;
border-color:FFFFFF;;
padding:2;;
background-color:000000;}
table table table table{border:0px;}
font, td, a, body, input, textarea, table, p, span, li, strong, div{color:FFFFFF;}
.blacktext10{color:white;}
.blacktext12{color:white;}
.btext{color:white;}
.lightbluetext8{color:white;}
.nametext{color:white;}
.orangetext15{color:white;}
.redbtext{color:FFFFFF;}
.redbtext12{color:FFFFFF;}
.redtext{color:FFFFFF;}
.redtext8{color:FFFFFF;}
.text{color:FFFFFF;}
.FFFFFFtext12{color:FFFFFF;}
a:link{color:FFFFFF;}
a:visited{color:FFFFFF;}
a:active{color:FFFFFF;}
a:hover{color:FFFFFF;}
a.navbar{color:FFFFFF;}
a.navbar:link{color:FFFFFF;}
a.navbar:active{color:FFFFFF;}
a.navbar:visited{color:FFFFFF;}
a.navbar:hover{color:FFFFFF;}
a.redlink:link{color:FFFFFF;}
a.redlink:active{color:FFFFFF;}
a.redlink:visited{color:FFFFFF;}
a.redlink:hover{color:FFFFFF;}
a.searchlinksmall{color:FFFFFF;}
a.searchlinksmall:link{color:FFFFFF;}
a.searchlinksmall:active{color:FFFFFF;}
a.searchlinksmall:visited{color:FFFFFF;}
a.searchlinksmall:hover{color:FFFFFF;}
</style>
</div>
Ok now the main points here are as follows:
1. Know your project and security numbers (if you don’t they will be pointed out later)
2. See the red code? You want that exact code in your style with the exception of where it has sc_proj=xxxxxx and security=xxxxxxx those should coordinate to your numbers.
3. If you just plug and play your numbers into that code, it will work for you.
4. Under your "configure counter" page in SC, choose invisible or you will have a counter as the background.
The next few steps is for finding your numbers and configuring the counter
1. Now what I did worked for me and I suggest you follow the same. In your "my projects” on SC, click on the "install code and customize" wrench and go to install code. Here’s where you NEED TO READ CAREFULLY. First page select VISIBLE COUNTER. NO FRAMES. HTML ONLY COUNTER. NO WEB PAGE EDITOR.
2. Now u will see some code like
<!-- Start of StatCounter Code -->
<img src="http://c8.statcounter.com/counter.php?sc_project=123456&java=0&security=12345678&invisible=1" alt="free web page hit counter" border="0">
<!-- End of StatCounter Code -->
3. So taking the red code from above, place the green code into the sc_project=xxxxxxx area and the blue code into the security=xxxxxxx area.[/code]
4. Under your "configure counter" page in SC, choose invisible or you will have a counter as the background. |
|
| Back to top |
|
 |
Missie
Joined: 21 Sep 2005 Posts: 1
|
Posted: Wed Sep 21, 2005 7:28 pm Post subject: Re: How to use Statcounter on My Space - The Solution |
|
|
| chrisooc wrote: | How to use Statcounter on My Space - The Solution
| Quote: |
style="background-image:url(http://c9.statcounter.com/counter.php?sc_project=999999&java=0&invisible=1&security=zzzzzzz); background-repeat:no-repeat; background-position:center; width:1px; height:1px;"></div>
|
| When I place this on MySpace this is what come up on my actual page when I hit preview:
style="background-image:url(http://www.statcounter.com/" target="_blank">..
Is the quote you have up there suppose to be <div style= cause it's just showing style=
Or am I doing something else wrong? Any help appreciated. Thanks! |
|
| Back to top |
|
 |
Arne
Joined: 25 Sep 2004 Posts: 781 Location: Luleĺ, Sweden
|
Posted: Wed Sep 21, 2005 8:55 pm Post subject: Re: How to use Statcounter on My Space - The Solution |
|
|
| Missie wrote: | Is the quote you have up there suppose to be <div style= cause it's just showing style=
Or am I doing something else wrong? Any help appreciated. Thanks! |
Yes, in that example it must start with <div style= since there is the closing div tag. You can use what ever html tag you like (e.g. <p style=) if it suits any specific purpose on the page. But in that case the closing tag must be change also, to matching the opening tag. _________________
 |
|
| Back to top |
|
 |
chrisooc User Forum Moderator
Joined: 29 Apr 2004 Posts: 9072 Location: Montreal, Quebec, Canada
|
|
| Back to top |
|
 |
Obscurans
Joined: 24 Sep 2005 Posts: 1
|
Posted: Sat Sep 24, 2005 9:17 am Post subject: |
|
|
Here's a better way to control where you decide to put the counter:
| Quote: | | <td style="background-image:url(http://c9.statcounter.com/counter.php?sc_project=999999&java=0&invisible=1&security=zzzzzzz); background-repeat:no-repeat; background-position:center;"></td> |
As you can see, the <div> has been changed to <td>. And it still works.
The problem with <div>s is that it always creates a line break before it, which makes it near impossible to put into existing tables.
<td> means table cell. And funnily, it can stand alone without being inside a <table>. So now you can put this within a line (at last). But be sure to remove the height and width CSS so that you don't make the cell 60px long (if you plan on putting text over it)
How to do it:
Original: You want to put the counter THERE-><-HERE in one line.
Write:
| Quote: | <table><tr><td>You want to put the counter THER-></td>
<td style="background-image:url(http://c9.statcounter.com/counter.php?sc_project=999999&java=0&invisible=0&security=zzzzzzz); background-repeat:no-repeat; background-position:center;"></td>
<td><-HERE in one line.</td></tr></table> |
|
|
| Back to top |
|
 |
chrisooc User Forum Moderator
Joined: 29 Apr 2004 Posts: 9072 Location: Montreal, Quebec, Canada
|
Posted: Sat Sep 24, 2005 3:20 pm Post subject: |
|
|
Aren't you complicating matters too much?
The <td ...> ...</td> tags have to be placed within a pair of <table ... > ...</table> tags.
A <div..> ..</div> is a much simpler tag.
Both ways would generate a new line in any case, while the <table ..> may introduce extra spacing as well.
Use a table if you already have a table there - not likely though since it would be in the blog title actually. _________________
Christina
AnySite Widget News - where I sell nothing, not even my sig
Don't PM me about SC problems - use the forum |
|
| Back to top |
|
 |
greatzed
Joined: 28 May 2005 Posts: 5
|
Posted: Sun Sep 25, 2005 9:03 am Post subject: |
|
|
| Rock on. This is awesome. THANX MUCHLY!!!! |
|
| Back to top |
|
 |
vbishop
Joined: 28 Sep 2005 Posts: 3
|
Posted: Wed Sep 28, 2005 11:49 pm Post subject: |
|
|
| I have a question regarding this post and to Myspace. Will SC not only show you the traffic to your site but also the other Myspace users that have looked at your page? For instance, say a friend of mine comes and looks at my page, will it show me either their username or url or something identifiable as to who they are? And if it DOES NOT do this, does anyone know of a way it can be done? Thanks. |
|
| Back to top |
|
 |
bnav
Joined: 01 Oct 2005 Posts: 2
|
Posted: Sat Oct 01, 2005 4:18 pm Post subject: |
|
|
Hi. I have been working at this for a while now and it doesn't seem like it should be that hard only I am having problems with it. Copy and pasted the link
<div style="background-image:url(http://c8.statcounter.com/counter.php?sc_project=955262&java=0&invisible=1&security=2c62165); background-repeat:no-repeat; background-position:center; width:1px; height:1px;"></div>
Into the about me section on myspace. I also put it in the Your Own Header HTML in the Blog section. But now it doesn't work my blogs right.
I go to test it to see if the stat counter works and it doesn't show up that anyone has looked at it. I thought I was doing everything right . ..but if it's not working then I'm guessing I messed up along the way.
Can anyone help me out?
Thanks ! |
|
| Back to top |
|
 |
chrisooc User Forum Moderator
Joined: 29 Apr 2004 Posts: 9072 Location: Montreal, Quebec, Canada
|
Posted: Sat Oct 01, 2005 4:58 pm Post subject: |
|
|
Actually you can only put it in the blog header, not anywhere else, I seem to remember.
In any case you have to give a link to the page where you expect it to show up. We cannot work in the dark. _________________
Christina
AnySite Widget News - where I sell nothing, not even my sig
Don't PM me about SC problems - use the forum |
|
| Back to top |
|
 |
HONEY_LIPS
Joined: 01 Oct 2005 Posts: 3
|
Posted: Sat Oct 01, 2005 9:50 pm Post subject: Myspace crack down. |
|
|
Very easy to use. I had an Idea about using it as an image but couldn't quite do it thanks for posting your knowledge. _________________ -ANA- |
|
| Back to top |
|
 |
bnav
Joined: 01 Oct 2005 Posts: 2
|
Posted: Sun Oct 02, 2005 4:16 pm Post subject: |
|
|
http://www.myspace.com/8139071
That is the link to myspace that I'm trying to get the counter to work. I keep messing with it. ..but I just can't get it to work. I don't know what I am doing wrong. |
|
| Back to top |
|
 |
chrisooc User Forum Moderator
Joined: 29 Apr 2004 Posts: 9072 Location: Montreal, Quebec, Canada
|
|
| Back to top |
|
 |
bitlera2006
Joined: 17 Oct 2005 Posts: 1
|
Posted: Mon Oct 17, 2005 11:51 pm Post subject: Myspace counter |
|
|
Hey I looked at all the post regarding using the counter with myspace... the thing is that i dont want to hae a plain white background.. i want to keep mine... so how do i use this code with out changing my background picture?
-Aaron
myspace.com/aaronbitler |
|
| Back to top |
|
 |
chrisooc User Forum Moderator
Joined: 29 Apr 2004 Posts: 9072 Location: Montreal, Quebec, Canada
|
Posted: Mon Oct 17, 2005 11:55 pm Post subject: |
|
|
This solution refers to using the counter as the backgound image to a small div, used just in the title, 1px x 1px or so, thus invisible, it doesn't affect the backgound of your page. Give it a try and then you'll understand. _________________
Christina
AnySite Widget News - where I sell nothing, not even my sig
Don't PM me about SC problems - use the forum |
|
| Back to top |
|
 |
jeephustler
Joined: 20 Oct 2005 Posts: 1
|
Posted: Thu Oct 20, 2005 12:17 am Post subject: counter for online status |
|
|
i am working on the fine tuneing of the code for having your counter in the online status bar.
this is what i have
<style type="text/css"> table table table td.text div img {visibility:hidden;} table table table td.text div { background-image:url('http://cXX.statcounter.com/counter.php?sc_project=XXXXX&java=0&security=XXXXX&invisi');} able table table td.text table table div img {visibility:visible;} table table table td.text table table div { background-image:none;} </style><div style="position:absolute;left:0px;top:0px;width:70px;height:14px;"></div></a> |
|
| Back to top |
|
 |
chrisooc User Forum Moderator
Joined: 29 Apr 2004 Posts: 9072 Location: Montreal, Quebec, Canada
|
Posted: Thu Oct 20, 2005 12:21 am Post subject: Re: counter for online status |
|
|
| jeephustler wrote: | i am working on the fine tuneing of the code for having your counter in the online status bar.
this is what i have
<style type="text/css"> table table table td.text div img {visibility:hidden;} table table table td.text div { background-image:url('http://cXX.statcounter.com/counter.php?sc_project=XXXXX&java=0&security=XXXXX&invisi');} able table table td.text table table div img {visibility:visible;} table table table td.text table table div { background-image:none;} </style><div style="position:absolute;left:0px;top:0px;width:70px;height:14px;"></div></a> |
That code is quite incorrect. You seem to be getting a bit of too creative with your html code
What are you trying to do? _________________
Christina
AnySite Widget News - where I sell nothing, not even my sig
Don't PM me about SC problems - use the forum |
|
| Back to top |
|
 |
veryblueapple
Joined: 04 Nov 2005 Posts: 2 Location: Minnesota
|
Posted: Fri Nov 04, 2005 6:23 am Post subject: |
|
|
I don't know where my "security code" is. I don't know what an "SC" is?? Would someone mind speaking in English to a newbie? Please... do I need to sign up at Stat Counter.com... and then THAT is where I get my security code ..etc? Because I am confused as all hell. I know how to follow instructions, and copy+paste code. No one has ever taught me how to work with any html. I have taught myself everything I know. So if you explain this to me, it won't be a waste of time I promise. Here's Myspace. I just need to learn some of this first before I just into the pool of "knowing all." I really want to add a Hit counter to my site. I don't want to know all the info about who visited and what not.. although I wouldn't mind. But I just want something basic. So please from STEP 1. can we start over with the instructions.  |
|
| Back to top |
|
 |
chrisooc User Forum Moderator
Joined: 29 Apr 2004 Posts: 9072 Location: Montreal, Quebec, Canada
|
Posted: Fri Nov 04, 2005 7:16 am Post subject: |
|
|
If you don't have an account at www.statcounter.com all this is in vain.
SC = StatCounter.
Your security code is a code that gets generated along with your project code.
Start by signing up and creating your profile and creating a project and follow all instructions there and in this thread and you will hopefully understand.
Unfortunately with zero knowledge of html it's practically impossible to manage any kind of web page. You will have to get your head around some of the basic concepts or you won't be able to follow.
Here's a beginner's guide to web page creations: www.htmlgoodies.com .
In any case, your first step here is to get your account, project and generate the required code you will need to work with.
Then go back to the top of this thread and all posts in it and see how it applies. _________________
Christina
AnySite Widget News - where I sell nothing, not even my sig
Don't PM me about SC problems - use the forum |
|
| Back to top |
|
 |
veryblueapple
Joined: 04 Nov 2005 Posts: 2 Location: Minnesota
|
Posted: Sat Nov 05, 2005 6:27 am Post subject: Thanks |
|
|
Thanks for all the info! that helps a lot! I do know quite a bit of HTML, but was just new to this site and wasn't familiar with the acronyms people were using, but you clarified that for me! SO I will get to work on this right away. Thanks again  |
|
| Back to top |
|
 |
Dennis
Joined: 14 Nov 2005 Posts: 1
|
Posted: Mon Nov 14, 2005 1:02 pm Post subject: |
|
|
Hi chrisooc
given that in forums and profile pages that accept BBCode only
we can't use the counter in the [img] part
is it possible to use the solution you posted?
If the answer is yes would you post it in BBCode also?
Thanks! |
|
| Back to top |
|
 |
|