tips and tricks for movable type
entries with most comments
October 03, 2002
And another from Scriptygoddess: Most Commented on Entries.
Here's a little tip: use MT to create and manage the comments.php script.
1. Create a new Template Module and link it to a file. Since I have a special folder which I created for my phpscripts (and a subfolder for this script in particular because I wanted both comments.php and comments.inc in one place to keep things organized), I linked my file like this:
2. Paste the comments.php code into the module body window.
3. Save the Template Module, and MT creates the comments.php file on your server for you!
Why did I do it this way? I wanted to be able to make a few little changes to the display of the listing on my blog page, and having it in MT makes it more accessible. I don't have to modify the file in a text editor and then FTP it to my site, over and over until I get what I want.
TrackBack: 5
(URL: http://www.thegirliematters.com/sf/mt-track.cgi/97)
» Carla, Tabitha, Jayme:
Excerpt: I've installed the MT Authors hack, so now everything gets all nice and sorted by author. This means that
Weblog: gym.blog
Tracked: 01.03.03 08:04 PM
» Movable Type Enhancements
Excerpt: In trying to determine whether Movable Type (MT) was a feasible backend for OK/Cancel, I found a variety of sites and discovered just how big the MT community really was. If there's a function you can think of (and many...
Weblog: my:dentity
Tracked: 09.28.03 11:32 AM
» Faithjean dot com's photolog is up!
Excerpt: Thanks to Gabriel for helping me:-) 2 do list: *The comment on this page doesn't work right now! Hopefully I'll figure it out soon...:-) Scripts: *Add: Most commented - entries & Most commented - visitors script *Last 50 referrers(pop up)...
Weblog: .::faithjean.com::.
Tracked: 01.06.04 05:30 PM
» 20 things on My 2 Do list
Excerpt: 1. Add smilies in the 2. | Category | 3. Counting for (x) Recent entries 4. Statistics: " x entries", "x comments", "x users online", "x on this page" script 5. Last 50 referrers 6. 10 most commented entriescomments 7....
Weblog: .::faithjean.com::.
Tracked: 01.08.04 02:26 PM
» 20 things on My 2 Do list
Excerpt: 1. Add smilies in the comments 2. | Category | 3. Counting for (x) Recent entries 4. Statistics: " x entries", "x comments", "x users online", "x on this page" script 5. Last 50 referrers 6. 10 most commented entries7....
Weblog: .::faithjean.com::.
Tracked: 01.08.04 02:29 PM
Comments
do you have to have your whole site php because I cant get the code to execute on the .html but if i go to comments.php it works
Yes, in order to use the script, the page which you're including comments.php into has to have a .php extension.
There is a way to use an htaccess file to tell your server to execute html files as php files, but I thought I'd stick with the simple solution (for me anyway).
Do I have to change all the extentions to .html instead because I put MT on the index its not in a folder
The location of MT doesn't have anything to do with the extension you use on your files.
Maybe I'm not understanding your question??
Is there any possible way to do this without php?
wow I'll finally be able to use this scrip :-D
Oh how does that link with the most commented visitor work? Is the URL cached because I am at a new domain and it's still showing my previous URL
I think theres a way to do it without PHP
so very posh: most commented entries
but you have to use SQL
That version does use PHP.
And Lynda also wrote the script I linked to in my original post.