Simple Machines Community Forum

General Community => Scripting Help => Aiheen aloitti: gfmorris - maaliskuu 23, 2006, 02:41:28 IP

Otsikko: Integration of Shaun Inman's Mint Tracker into SMF Themes
Kirjoitti: gfmorris - maaliskuu 23, 2006, 02:41:28 IP
I don't know how many folks here use Shaun Inman's Mint (http://haveamint.com/), but it's a fine piece of software.  It uses Javascript to feed HTTP headers to a PHP application that stores data in MySQL about the request and the user agent.

I've tried a couple of the methodologies for getting Mint recognized; the .htaccess method they recommend didn't seem to work, but what did work was editing my Theme's templates.  That seems inelegant and rife with bad possibilities.

In the WordPress world, there's a plugin called WP-Mint (http://www.dvhome.co.uk/wp-mint/) that uses some WordPress hooks to insert the code without touching templates; being unfamiliar with the SMF mod architecture, I don't know if similar solutions are popular.

Any ideas/takers?  I'm willing to answer any and all questions that I can about Mint as well as test code.  :)
Otsikko: Re: Integration of Shaun Inman's Mint Tracker into SMF Themes
Kirjoitti: jamin100 - kesäkuu 11, 2007, 07:09:34 AP
Hey, I have just upgraded to mint 2,
did you ever get mint working on your site properly? could you tell me how you did it?
Otsikko: Re: Integration of Shaun Inman's Mint Tracker into SMF Themes
Kirjoitti: gfmorris - syyskuu 24, 2007, 09:00:30 IP
Lainaus käyttäjältä: jamin100 - kesäkuu 11, 2007, 07:09:34 AP
Hey, I have just upgraded to mint 2,
did you ever get mint working on your site properly? could you tell me how you did it?

Unfortunately, no.

GFM
Otsikko: Re: Integration of Shaun Inman's Mint Tracker into SMF Themes
Kirjoitti: Tenshi/Truceco - syyskuu 21, 2008, 04:12:27 IP
^ THREAD BUMP ^

I dont know if anyone else found a way, but i did.

in all your index.template.php

find inside where is says :

<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', $context['page_title'], '" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />


and add:


<script src="http://yourURLhere.com/mint/?js" type="text/javascript"></script>
OR
<script src="http://yourURLhere.com/directory.here/mint/?js" type="text/javascript"></script>


Where ever your mint directory is just add /?js at the end
i made a MOD pack but i dont know how to submit it and also if the directory is different is has to be changed