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.


( 11 comments — Leave a comment )
May. 22nd, 2007 12:46 pm (UTC)
That older post on adding a counter isn't actually all that helpful anymore. For the basic information about working with theme layers, I'd really recommend reading Creating and Using a Theme Layer in s2howto, then use the instructions in this post for the steps that are unique to Expressive theme layers. Then, if you have specific questions, we could help. Do you know where in the sidebar you'd want to place the sitemeter code (which module) and do you have its code?
May. 22nd, 2007 06:40 pm (UTC)
okay, i've set up a custom theme layer. the tutorials you posted were extremely helpful, thank you!

now as for the counter and the sidebar...i do have the counter html code. i was thinking of putting it somewhere near the livejournal syndicate area or "designed by" section. you know, right at the very bottom of all the other stuff in the sidebar.

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.

May. 23rd, 2007 05:27 am (UTC)
this worked perfectly! thank you so much!
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? :(
Oct. 13th, 2007 02:49 am (UTC)
Did you set your theme layer to be the active one?
Oct. 13th, 2007 02:50 am (UTC)
I actually JUST figured it all out! But thanks for posting this, it was very helpful :)
Oct. 13th, 2007 02:52 am (UTC)
You're welcome! It's always the simple things...
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...
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?
Oct. 13th, 2007 10:13 am (UTC)
thank you so much for your help, I've been waiting for this tutorial for so long! (well, I'm a little late, but I'm not checking this community every day (or month)
( 11 comments — Leave a comment )

Latest Month

March 2016

S2 Help Communities


Powered by LiveJournal.com
Designed by chasethestars