June 25, 2005

Sitemeter + Categories

1. I follow Sitemeter's instructions perfectly for MT, but cannot rebuild the Sitemeter template. MT doesn't recongize it/see it.

2. I've inserted pertinent e-mails into my categories, but when I click on those categories, I get a "page is not found" notice.

Posted by Mark N at June 25, 2005 08:18 AM
Comments
#1

Mark;

re: Sitemeter. Where are you putting the code? Because I don't see the raw code in your template anywhere. (or do you mean that if you put the code in, the template fails on rebuild and you have to take it out again?) When you put the code in your template - I'm assuming index template to start - are you hitting the save button at the bottom of the template page before rebuilding?

re: categories. I don't understand what you mean by putting emails into categories. Do you mean adding addresses to be notified each time a particular category is updated? And have you specifically enabled categories in your blog's configuration? (They're not turned on by default, if i remember correctly.)

Sorry if I'm sounding a bit dense here... It's not clear to me what you're trying to do.

Paul

Posted by Light & Dark at June 25, 2005 05:53 PM
#2

Sorry, it's possible I didn't explain myself too clearly.

Regarding Sitemeter, I removed the code because it was not showing Sitemeter on my webpage.

Yes, I did hit the save button before rebuilding.

I followed Sitemeter's directions exactly. One of them involved creating a template and naming it "Sitemeter." In that template, we're to insert one of two parts of code. After inserting all the code in the proper spots, I then save and rebuild. Everything is rebuilt properly except the "Sitemeter" template." MT doesn't recognize that template or says that it does not exist.

*****

Regarding categories, if my category is "X" and I wrote a post on X, I would click the "Select" button in the drop down menu at the top of the post, and then select "X." The post would then be in that category.

I successfully placed a bunch of posts in their proper categories, BUT when I click the category link on the webpage, it gives me one of those "The page cannot be displayed" messages, leading me to think I botched something up in this extremely "user-friendly" coding that MT uses.

I didn't know we had to ENABLE categories. How to do that?

Posted by Mark N at June 26, 2005 08:07 AM
#3

Mark, to enable categories, from the main menu click on Weblog Config on the left hand side, then click on Archiving at the top of the displayed screen. Make sure you have "Category" archiving selected. That will create category archives each time you rebuild.

Posted by Ted at June 26, 2005 04:39 PM
#4

Mark;

Thanks for the clarification - it was your reference to 'e-emails' in your categories that threw me off. Did Ted's rundown of how to enable categories take care of that?

Note that, even with categories enabled, you'll need to put a tag in your main index template if you want your list of categories to show up (as links in your sidebar for example.) Let us know if that's an issue.

As far as your sitemeter issue, if you're getting that error, then the 'sitemeter template' hasn't generated correctly. Just to make sure.... after you create a new template, name it, and past in the 12 or so lines of code, are you saving the new template at that point? You'll have done 2 saves by the time you're finished. You can do just 1 rebuild at the end of the process to cover everything, but you must save after each step - you can't just do that once at the end.

After you've created the sitemeter template, go back to the Templates page of your blog's control panel and scroll down to the Template Modules section - you should now see an entry below that title that lists your new sitemeter module. NOTE! The name you gave the template MUST be
SITEMETER
Capitalisation is irrelevant, but the title must be that, and only that.

Next, insert the
<$MTInclude module="SiteMeter"$>
code into your main index template just before the final </body> tag, then save and rebuild.

That should do it. If it doesn't, post the exact contents of the error you get when rebuilding, & we'll see what else we can check.

Paul

Posted by Light & Dark at June 26, 2005 07:17 PM
#5

Paul,

Thanks alot for the help. I'm guessing I didn't save twice. Sitemeter works now. :)

Now I'll work on those categories.

Posted by Mark at June 26, 2005 10:27 PM
#6

Glad that cleared it up, mark. One last little detail...

To get Sitemeter to be anywhere near accurate, you'll need to also add the code to your archive templates, so if people come to a specific post (that's off your main page) from an external link, Sitemeter will see that too.

I'd suggest putting it on your individual entry archive, your category archive, and your date-based archive. if you're using any other archive formats, you'll want to consider them as well.

Just paste the 1-line MTInclude into those templates just like you did for the main index template. That's the reason for having created the new template - you won't have to keep repeating the big chunk of code in each template, just 'call it' using the Include.

Paul

Posted by Light & Dark at June 26, 2005 10:57 PM
Live Comment Preview
Post a comment









Remember personal info?