Options

Javascript Customizations messing up

DodgeV83DodgeV83 Registered Users Posts: 379 Major grins
edited November 13, 2005 in SmugMug Support
This has only been happening for about a week or so. I've been using SiteMeter for my counter at the top of the screen, but since last week the counter keeps going away! The only way to get it back is to go into my customization settings and change ANYTHING. Even if I change something in the comments, the counter will come back up for a little while, but it always goes down again.

For example. (I ***ed out my username***). Look at the last line, the word Endspan should not effect the code, but if I change it to Endpan, my counter comes back up! Whats the deal?

<!--WEBBOT bot="HTMLMarkup" startspan ALT="Site Meter" -->
<script type="text/javascript" language="JavaScript">var site="******"</script>
<script type="text/javascript" language="JavaScript1.2" src="http://s15.sitemeter.com/js/counter.js?site=*******"&gt;
</script>
<noscript>
<a href="http://s15.sitemeter.com/stats.asp?site=******&quot; target="_top">
<img src="http://s15.sitemeter.com/meter.asp?site=******&quot; alt="Site Meter" border="0"/></a>
</noscript>
<!-- Copyright (c)2005 Site Meter -->
<!--WEBBOT bot="HTMLMarkup" Endspan -->

Comments

  • Options
    rainforest1155rainforest1155 Registered Users Posts: 4,566 Major grins
    edited November 13, 2005
    Could you give us your site address so we can have a look at your whole code?

    Sebastian
    Sebastian
    SmugMug Support Hero
  • Options
    AndyAndy Registered Users Posts: 50,016 Major grins
    edited November 13, 2005
    DodgeV83 wrote:
    This has only been happening for about a week or so. I've been using SiteMeter for my counter at the top of the screen, but since last week the counter keeps going away! The only way to get it back is to go into my customization settings and change ANYTHING. Even if I change something in the comments, the counter will come back up for a little while, but it always goes down again.

    For example. (I ***ed out my username***). Look at the last line, the word Endspan should not effect the code, but if I change it to Endpan, my counter comes back up! Whats the deal?

    <!--WEBBOT bot="HTMLMarkup" startspan ALT="Site Meter" -->
    <script type="text/javascript" language="JavaScript">var site="******"</script>
    <script type="text/javascript" language="JavaScript1.2" src="http://s15.sitemeter.com/js/counter.js?site=*******"&gt;
    </script>
    <noscript>
    <a href="http://s15.sitemeter.com/stats.asp?site=******&quot; target="_top">
    <img src="http://s15.sitemeter.com/meter.asp?site=******&quot; alt="Site Meter" border="0"/></a>
    </noscript>
    <!-- Copyright (c)2005 Site Meter -->
    <!--WEBBOT bot="HTMLMarkup" Endspan -->

    Could it be conflicting with the statcounter code you also use?
  • Options
    AndyAndy Registered Users Posts: 50,016 Major grins
    edited November 13, 2005
    Could you give us your site address so we can have a look at your whole code?

    Sebastian


    15524779-Ti.gif - everyone needs to do this, it helps those that can help you. I had to search for it...
  • Options
    DodgeV83DodgeV83 Registered Users Posts: 379 Major grins
    edited November 13, 2005
    andy wrote:
    15524779-Ti.gif - everyone needs to do this, it helps those that can help you. I had to search for it...
    Crap sorry, I meant to but forgot lol.

    http://frelow.smugmug.com
  • Options
    AndyAndy Registered Users Posts: 50,016 Major grins
    edited November 13, 2005
    DodgeV83 wrote:
    Crap sorry, I meant to but forgot lol.

    http://frelow.smugmug.com


    And so, I'm curious - why statcounter and the other at the same time? Could that be it?
  • Options
    DodgeV83DodgeV83 Registered Users Posts: 379 Major grins
    edited November 13, 2005
    I've been using both of the codes together since September without any problems.
  • Options
    DodgeV83DodgeV83 Registered Users Posts: 379 Major grins
    edited November 13, 2005
    andy wrote:
    And so, I'm curious - why statcounter and the other at the same time? Could that be it?
    I used them both at first to see which one was more accurate at showing visitor results. Since StatCounter relies on Cookies, it is blowing up the Unique Visitor count. Stat counter says I have had 2,502 unique visitors, while Sitemeter says 979. I think 979 is closer to the correct number ;)

    Then why not get rid of StatCounter all together? It gives me some details that sitemeter doesn't, including Returning Visitors, Hostname and nicer graphs.
  • Options
    colourboxcolourbox Registered Users Posts: 2,095 Major grins
    edited November 13, 2005
    Not to be an annoying nerd, but for future clarity it should be pointed out that Java and JavaScript are completely different. I read the thread title and thought "Wow, someone's got a Java applet on a smugmug page? Must be something interesting." Then it turned out to be about the standard StatCounter JavaScript.
  • Options
    AndyAndy Registered Users Posts: 50,016 Major grins
    edited November 13, 2005
    colourbox wrote:
    Not to be an annoying nerd, but for future clarity it should be pointed out that Java and JavaScript are completely different. I read the thread title and thought "Wow, someone's got a Java applet on a smugmug page? Must be something interesting." Then it turned out to be about the standard StatCounter JavaScript.

    I fixed the title thanks.
  • Options
    DodgeV83DodgeV83 Registered Users Posts: 379 Major grins
    edited November 13, 2005
    colourbox wrote:
    Not to be an annoying nerd, but for future clarity it should be pointed out that Java and JavaScript are completely different. I read the thread title and thought "Wow, someone's got a Java applet on a smugmug page? Must be something interesting." Then it turned out to be about the standard StatCounter JavaScript.
    Sorry. I know theres a difference, For the record, I just took out my Statcounter code, and it works (but it also worked when making any change to anything), we'll see for how long!
  • Options
    rainforest1155rainforest1155 Registered Users Posts: 4,566 Major grins
    edited November 13, 2005
    DodgeV83 wrote:
    I've been using both of the codes together since September without any problems.
    Due to the recent changes all JavaScript and CSS code is put in extra files to improve the browser caching of these parts that are repeated on every page.
    Therefore you can't put any html-tags into the JavaScript-section.

    Just move your sitemeter code also to the footer like you did with the statcounter code.

    Hope this helps,
    Sebastian
    Sebastian
    SmugMug Support Hero
  • Options
    DodgeV83DodgeV83 Registered Users Posts: 379 Major grins
    edited November 13, 2005
    Due to the recent changes all JavaScript and CSS code is put in extra files to improve the browser caching of these parts that are repeated on every page.
    Therefore you can't put any html-tags into the JavaScript-section.

    Just move your sitemeter code also to the footer like you did with the statcounter code.

    Hope this helps,
    Sebastian
    Thanks! Its working now!
  • Options
    DodgeV83DodgeV83 Registered Users Posts: 379 Major grins
    edited November 13, 2005
    Actually, this sucks!

    The only way I can get the counter on the top of the screen is by putting it in the Header section, but that gets rid of the Smugmug header!

    Is there anyway to get this counter on top without getting rid of the Smugmug header? Maybe I can manually put the Smugmug header information in there? Any tips?
  • Options
    AndyAndy Registered Users Posts: 50,016 Major grins
    edited November 13, 2005
    DodgeV83 wrote:
    Actually, this sucks!

    The only way I can get the counter on the top of the screen is by putting it in the Header section, but that gets rid of the Smugmug header!

    Is there anyway to get this counter on top without getting rid of the Smugmug header? Maybe I can manually put the Smugmug header information in there? Any tips?

    Stand by and lemme have a look at it ok? thumb.gif
  • Options
    AndyAndy Registered Users Posts: 50,016 Major grins
    edited November 13, 2005
    DodgeV83 wrote:
    Actually, this sucks!

    The only way I can get the counter on the top of the screen is by putting it in the Header section, but that gets rid of the Smugmug header!

    Is there anyway to get this counter on top without getting rid of the Smugmug header? Maybe I can manually put the Smugmug header information in there? Any tips?

    I've checked again, and the answer is, just as it says on your co-branding page, when you put something in the header section, that replaces our header with yours. Maybe this is a good time to build your own header, incorporating webbot, and then you can have the best of both worlds? Let us know if we can help :D
  • Options
    DodgeV83DodgeV83 Registered Users Posts: 379 Major grins
    edited November 13, 2005
    andy wrote:
    I've checked again, and the answer is, just as it says on your co-branding page, when you put something in the header section, that replaces our header with yours. Maybe this is a good time to build your own header, incorporating webbot, and then you can have the best of both worlds? Let us know if we can help :D
    Yea, I was wondering if there is an easy way to just copy and paste the Smugmug header in there with my counter, instead of replacing it with my counter.
  • Options
    AndyAndy Registered Users Posts: 50,016 Major grins
    edited November 13, 2005
    DodgeV83 wrote:
    Yea, I was wondering if there is an easy way to just copy and paste the Smugmug header in there with my counter, instead of replacing it with my counter.

    So coupla things: I use statcounter, but i have it invisible. Since you like webbot for its accuracy, maybe make SC invisible, and put webbot in your footer? Then you'd be all set, having both utilities running...

    Your alternate suggestion is possible, but you'd loose the dynamic nature of the smugmug header - logged in/out, etc...
Sign In or Register to comment.