Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-17 03:58:27

axle_foley00
Member
From: Jamaica
Registered: 2004-07-29
Posts: 42
Website

Getting Measure Map setup correctly with TXP

Hello everyone,

Just wondering if there was anyone out there testing Measure Map who has been able to set it up correctly for TXP? There is a section asking for the template language code used to represent comment and post unique id and I am not sure what to use. Does TXP have a tag for getting the unique id of a post or comment?

Any help would be greatly appreciated.

Thanks.

Offline

#2 2005-11-21 01:16:37

aloicious
New Member
Registered: 2005-08-25
Posts: 7
Website

Re: Getting Measure Map setup correctly with TXP

Hi,

This should do the trick:
<code>
<script type=“text/javascript”><!—
if(!mmposts){var mmposts=[];}mmposts[mmposts.length]=”<txp:article_id />”;
//—></script>
<!— mmp mmid:<txp:article_id /> mmdate:<txp:posted /> mmurl:<txp:permlink /> mmtitle:<txp:title /> —>
</code>

Offline

#3 2005-11-21 01:34:19

axle_foley00
Member
From: Jamaica
Registered: 2004-07-29
Posts: 42
Website

Re: Getting Measure Map setup correctly with TXP

thanks aloicious, unfortunately that didn’t seem to work. I wonder if I am doing something else wrong.

Where exactly did you place the code?

Offline

#4 2005-11-21 01:42:41

aloicious
New Member
Registered: 2005-08-25
Posts: 7
Website

Re: Getting Measure Map setup correctly with TXP

I placed the code in my ‘default’ (article) form, just above where the default <code><hr class=“separator” /></code> sits.

Offline

#5 2005-11-21 02:58:38

axle_foley00
Member
From: Jamaica
Registered: 2004-07-29
Posts: 42
Website

Re: Getting Measure Map setup correctly with TXP

sigh…still doesn’t seem to work. This is what I have in my ‘default’ (article) form:

  1. <h2><txp:permlink><txp:title /></txp:permlink></h2>
  2. <small><txp:posted /> · <txp:permlink>permalink</txp:permlink></small>
  3. <txp:if_individual_article>
  4. <txp:body />
  5. </txp:if_individual_article>
  6. <txp:if_article_list>
  7. <txp:kgr_safe_excerpt words="50" linktext=" read more..." />
  8. </txp:if_article_list>
  9. <!-- Measure Map-->
  10. <script type="text/javascript"> < !--
  11. if(!mmposts){var mmposts=[];}mmposts[mmposts.length]="<txp:article_id />";
  12. //--></script>
  13. <!-- mmp mmid:<txp:article_id /> mmdate:<txp:posted /> <txp:posted format="%Y%m%d%H%M%S" /> mmurl:<txp:permlink /> mmtitle:<txp:title /> -->
  14. <div class="horiz-sep"><img src="/images/horiz-sep.gif" alt="Horizontal Seperator" /></div>

Any ideas as to what seems wrong?

Note: Please see below for correct date format

Last edited by axle_foley00 (2005-11-21 03:21:24)

Offline

#6 2005-11-21 03:05:22

aloicious
New Member
Registered: 2005-08-25
Posts: 7
Website

Re: Getting Measure Map setup correctly with TXP

Well I’m not sure actually… in fact I just discovered that I’m not logging ‘posts’ in MM. I think perhaps the mmdate variable isn’t using a correct date format and could be spoiling the tracker somehow.

Offline

#7 2005-11-21 03:12:38

axle_foley00
Member
From: Jamaica
Registered: 2004-07-29
Posts: 42
Website

Re: Getting Measure Map setup correctly with TXP

Nevermind, it seems to be working now. Thanks a whole lot aloicious. Much appreciated. I got a response from the guys at MM and this is should work:

<txp:posted format="%Y%m%d%H%M%S" />

Hope that helps also.

Last edited by axle_foley00 (2005-11-21 03:26:06)

Offline

#8 2005-11-21 03:22:47

aloicious
New Member
Registered: 2005-08-25
Posts: 7
Website

Re: Getting Measure Map setup correctly with TXP

Excellent! Thanks :)

Offline

#9 2005-11-21 03:26:34

axle_foley00
Member
From: Jamaica
Registered: 2004-07-29
Posts: 42
Website

Re: Getting Measure Map setup correctly with TXP

No problem, glad we were able to help each other out, along with help from the MM crew. Are your comments being tracked?

Offline

#10 2005-11-21 03:34:39

aloicious
New Member
Registered: 2005-08-25
Posts: 7
Website

Re: Getting Measure Map setup correctly with TXP

No, not yet. I’m trying to discover a way of getting the comment unique id…

Offline

#11 2005-11-21 03:43:38

axle_foley00
Member
From: Jamaica
Registered: 2004-07-29
Posts: 42
Website

Re: Getting Measure Map setup correctly with TXP

Well this is what the guys at MM said to try:

<txp:comment_id />

Though I still haven’t got my comments stats working yet either.

Offline

#12 2005-11-21 04:55:27

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Getting Measure Map setup correctly with TXP

Glad the original problem was resolved. Please create new threads for any existing issues, so that others will be able to find and help you fix the problem(s). :)

Offline

Board footer

Powered by FluxBB