?

Log in

No account? Create an account

Previous Entry | Next Entry

how to add a counter

  • May. 22nd, 2007 at 12:33 AM
okay. i know there is already a topic in the misc. section that addresses this, but i am beyond confused about the instructions. i've been trying to figure it out for several hours and what i need to do is beyond me. so i apologize for what is kind of double posting.

i really want to add a sitemeter counter to my journal somewhere. i assume the sidebar is the best option, but if there's another one that's easier i'm all for it. the problem i'm having is that i just can't for the life of me figure out how to edit in the s2 layers. is there anyone who can help me? i'm a paid user with rocket as my base theme using expressive. my journal is here.

thanks in advance.

Comments

av8rmike
May. 23rd, 2007 02:17 am (UTC)
Like, under the RSS and Atom buttons? That should be very easy. Copy this code to the end of your layer:
function print_module_syndicate(string title) {
    var Page p = get_page();
    if ((size $p.data_links_order) < 1) { return; }
    open_module("syndicate", $title, "");

    foreach var string k ($p.data_links_order) {
        print " $p.data_link{$k} ";
    }

    # Put HTML in between the triple quotes.
    """SITEMETER HTML GOES HERE""";

    close_module();
}
_loveclaire
May. 23rd, 2007 05:27 am (UTC)
this worked perfectly! thank you so much!
watchmebe
Oct. 13th, 2007 02:17 am (UTC)
I have, for the life of me, been trying to do this in my own livejournal. I've created the custom theme layer, I've put in the code-- but still nothing! Any advice? :(
av8rmike
Oct. 13th, 2007 02:49 am (UTC)
Did you set your theme layer to be the active one?
watchmebe
Oct. 13th, 2007 02:50 am (UTC)
I actually JUST figured it all out! But thanks for posting this, it was very helpful :)
av8rmike
Oct. 13th, 2007 02:52 am (UTC)
You're welcome! It's always the simple things...
frijo
Jan. 8th, 2008 09:25 pm (UTC)
Opera problem again
It works fine with Firefox, but in Opera the counter doesn't work... What is wrong with opera?? I really like this browser, but...
av8rmike
Jan. 9th, 2008 03:09 am (UTC)
Re: Opera problem again
...but it's not the browser. I don't see a statcounter image on FireFox or IE either, even though it's there in the page source. Maybe it hos something to do with Statcounter?

Latest Month

March 2016
S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031  

S2 Help Communities

Tags

Powered by LiveJournal.com
Designed by chasethestars