stargeek
PHP news website logo.
home    PHP scripts    articles    seo tools    links    search    contact    shop    realtors


Edit This Post Button in Movable Type







Edit This Post Button in Movable Type

Edit This Post Button in Movable Type 04/13/2004 10:20 PM

Keith posted a question, and the answer to that same question:

How do I add an 'edit this page' button to a Movable Type weblog?

Very cool. Thanks Keith.




This is a GrokNews Entry: (what is grok?)





Similar Items

Edit This Post Button in Movable Type

Grok Headline matches for Edit This Post Button in Movable Type

Movable Type Publishing Platform:
Movable Type 3.11 Released: Bugs fixed


Movable Type Publishing Platform:
Movable Type 3.11 Released: Bugs fixed
09/04/2004 05:18 PM
Movable Type 3.11 Released: Bugs fixed .. released

movabletype.org/news/2004/09/movable_type_311_released.shtm l
track this site | 3 links


Movable Type News: Workflow for Movable
Type released


Movable Type News: Workflow for Movable
Type released
04/15/2005 10:47 PM
Workflow, a new plugin for Movable Type 3.1x, has just been released by David Raynes. While we don't usually feature new plugins as part of our news about the Movable Type platform, we thought it was worth pointing out because...

Movable Type Publishing Platform:
Movable Type 3.1 Launched


Movable Type Publishing Platform:
Movable Type 3.1 Launched
08/31/2004 05:31 PM
Movable Type 3.1 Launched .. new version

movabletype.org/news/2004/08/movable_type_31_launched.shtml< br />track this site | 4 links


Movable Type Publishing Platform:
Movable Type 3.14 released


Movable Type Publishing Platform:
Movable Type 3.14 released
12/22/2004 01:05 AM
Movable Type Publishing Platform: Movable Type 3.14 released .. new version of Movable Type

movabletype.org/news/2004/12/movable_type_314_release.shtml
track this site | 4 links


Movable Type Publishing Platform:
Movable Type 3.1: What's New


Movable Type Publishing Platform:
Movable Type 3.1: What's New
07/30/2004 05:26 PM
Movable Type Publishing Platform: Movable Type 3.1: What’s New .. new version of Moveable Type

movabletype.org/news/2004/07/movable_type_31_whats_new.shtml
track this site | 4 links


Movable Type News: Movable Type 3.17
released


Movable Type News: Movable Type 3.17
released
06/06/2005 12:11 AM
Today we are releasing Movable Type 3.17. This release addresses four issues that do not affect the majority of installations, but are critical for users with certain configurations. Version 3.17 is not a required upgrade if your Movable Type installation...

Movable Type News: Movable Type 3.16
released


Movable Type News: Movable Type 3.16
released
04/18/2005 04:41 PM
The Movable Type team has been hard at work and we have some very exciting things coming in the 2005 release schedule. To kick things off we are proud to introduce Movable Type 3.16. Movable Type 3.16 sports significant improvements...

The 24 hour edit queue and the spam
button


The 24 hour edit queue and the spam
button
03/21/2003 01:36 PM
We've had a 24 hour edit queue with a spam button for long enough to get a feel for it, perhaps long enough so that new members might not even know that the prior method had a fixed 2 hour time limit, and no spam button. There has been a smattering of opinion on it scattered among other articles, and I suggest that to help rusty out, it's time to collect some comprehensive feedback on whether we feel that this has improved K5, and whether it could be improved further.

"Movable Type 3"


"Movable Type 3" 06/03/2004 12:52 AM

"SMI und Movable Type 3.0"


"SMI und Movable Type 3.0" 04/27/2004 03:55 PM

Movable Type 3.1


Movable Type 3.1 07/27/2004 12:42 AM

Six Apart has announced what will be included in MT 3.1 I am highly disappointed that the feature list is not longer. Time will tell if they are able to keep up with the competition. [MovableTyp e]


Movable Type 3.0


Movable Type 3.0 12/22/2003 05:37 AM
We realize that official news has been scarce over the last 6-9 months. During this time, our company has grown...

"Movable Type 3.0"


"Movable Type 3.0" 05/15/2004 02:22 PM

Movable Type Pro


Movable Type Pro 03/13/2003 10:15 AM
Now that version 2.6 is released, we're pleased to announce that Movable Type Pro is in development for a summer...

Movable Type RIP


Movable Type RIP 05/13/2004 10:48 AM
I'm done with Movable Type. After months of little useful communications about their plans, Ben and Mena have for all intents and purposes ditched the free version of their once-shining weblogging software. Now, MT is a "publishing platform" that costs at least $69 (with limited functionality). Lucky for us that, while MT slept, we have discovered a much improved and free Blogger, a truly open source WordPress, and a similarly priced but more powerful ExpressionEngine.

"Movable Type 2.64"


"Movable Type 2.64" 12/17/2003 03:46 PM

How I am using Movable Type


How I am using Movable Type 05/18/2004 04:20 AM
In answer to Mena's question regarding Movable Type, asking "How are you using the tool?", I thought I'd explain a...

Movable Type 3.1: What's New


Movable Type 3.1: What's New 07/27/2004 09:21 PM
Following Ben and Mena’s demonstration on Friday at the BlogOn conference, we’re glad to give everyone a small peek at...

Get Movable Type


Get Movable Type 05/13/2004 03:43 PM
acceso a las licencias completas .. announced their pricing scheme .. new pricing structure .. Movable Type Free .. Preisliste .. limitless

secure.sixapart.com
track this site | 9 links


Movable Type 3.01d (bug fixes!)


Movable Type 3.01d (bug fixes!) 07/11/2004 06:34 AM
atest version of Movable Type .. entry on the MT Site

movabletype.org/news/2004_07.shtml#001138
track this site | 3 links


Movable Type 3.01D bug fix release


Movable Type 3.01D bug fix release 07/09/2004 09:45 PM
We've just released Movable Type 3.01D. You can download the new version by logging into your Movable Type Account...

Movable Type 3.1 Launched


Movable Type 3.1 Launched 08/31/2004 03:31 PM
We're happy to announce that this afternoon we released Movable Type 3.1. We're extremely excited about this new release, and...

First details on Movable Type 3.1


First details on Movable Type 3.1 07/26/2004 09:15 PM
We've just posted Movable Type 3.1: What's New, a quick review of some of the new features in our upcoming...

Movable Type 3.0 Screenshots


Movable Type 3.0 Screenshots 05/20/2004 04:14 PM

Movable Type 3.0 Developer Edition review: Here's a review of MT3 with something I've been looking for: lots of screenshots. The new interface is nice — very TypePad-ish.

Click here to comment on this entry


Using PHP for Movable Type Searches


Using PHP for Movable Type Searches 07/04/2004 01:38 PM

A lot of people want to roll their own search with Movable Type. Us, for instance — Gadgetopia has a two-tiered search system based on whether the search term appears in the title, keywords, or body of the entry (see this post for more information).

Our search is done in with SQL and PHP, abandoning the MT search system completely. The probem with this method is rendering the search results. If you don't use MT, then you lose two things:

(1) Auto-creation of the permalink. The URL isn't stored anywhere in the database, so you have to recreate it. If your URLs are just based on the entry ID, then it's not hard. However, look at our URLs — they're a conglomoration of the date and the entry title. We'd have to create a PHP function to recreate this scheme — and if we ever changed the URL structure from within MT, we'd have to change the PHP function separately.

(2) Text filters. If you're just converting line breaks, the text filter is not so hard to re-produce. However, if you're using Textile or some other plug-in to filter your text, you're going to have to reproduce that in PHP as well so the previews render correctly.

You can avoid all this, however, by simply using PHP includes and an extra Individual Entry Archive. The result is an elegant solution that blends PHP and MT to eliminate the tedium of recreating MT functionality in PHP.

First, create a folder in your site called "search_fragments."

Next, create a new Individual Entry Archive in MT called "search_fragment." This template should contain the just HTML to create a single search listing. Like this:


<tr class="title">
  <td class="title">
    <a href="<MTEntryPermalink>"><MTEntryTitle></a>
  </td>
  <td class="date">
    <MTEntryDate format="%m/%d/%Y">
  </td>
</tr>
<tr class="excerpt">
  <td colspan="2">
    <MTEntryExcerpt>
  </td>
</td>

Configure this template to generate a file in the "search_fragments" directory named for the entry ID only. You don't even have add an extention, though you can if you like (if so, you'll need the change the PHP code listed below). So the entry in the archiving configuration would be something like:

search_fragments/<MTEntryID>

Now when an entry rebuilds, it will create two files: (1) its normal archive file, and (2) a search result fragment file called "1", "2", "348", etc. Notice that since we're using standard MT templates to create the fragment, the permalink will be created by MT, and the exceprt text will be formatted according to the text filter the entry is using.

Now, when you use your SQL to get your search results, just SELECT the entry ID, then spin through those and use PHP to include the matching search fragment file. Like this:


<table>
  <?php
    while ($r = mysql_fetch_assoc($keywordResults)) {
      @include "search_fragments/" . $r['entry_id'];
    }
  ?>
</table>

This will dump the contents of each search fragment file in the table. Since each file contained two rows, the resulting table will be valid HTML. Notice we're surpressing any errors on the inclusion line just in case a file is missing for some reason.

We've be using this system here for months, and it works great.

Click here to comment on this entry


Movable Type News


Movable Type News 05/13/2004 04:57 PM
dernire mouture de l'outil de blogging MovableType .. Movable Type 3.0 Developer Edition .. Six Apart announced .. out

movabletype.org/news/2004_05.shtml#001048
track this site | 6 links


Movable Type Tutorials


Movable Type Tutorials 05/20/2004 10:05 AM

Learning Movable Type: I didn't dig too deep into these, but they look good. Via Lockergnome.

Learning Movable Type is a growing set of tutorials aimed at helping beginners to the Movable Type content management system. These tutorials are geared for those with a basic understanding of HTML and CSS, but who are not necessarily programmers or web designers.

Click here to comment on this entry


Movable Type Scaling


Movable Type Scaling 11/05/2003 03:39 PM
MovableType Scaling problems. Metablogging this for people I know who use MT but might miss this. [Radio Free Blogistan]

Learning Movable Type


Learning Movable Type 08/08/2004 11:58 AM
Learning Movable Type: Tips and tricks and helpful things I've learned while using the Movable Type web publishing system .. A Blog about Learning MT .. Elise

elise.com/mt
track this site | 2 links


Movable Type 3.1 released


Movable Type 3.1 released 08/31/2004 10:48 PM

We (Six Apart) relea sed Movable Type 3.1 today. Some important new features including a dynamic pages and sub-categories. It comes with a plugin pack which includes MTBlackList 2.0. MTBlackList 2.0 is my favorite comment spam zapper. (More on Mena's Corner.)

Comment - TrackBack

Movable Type 3.0 and Eating


Movable Type 3.0 and Eating 05/13/2004 01:51 PM
tim appnel is a developer who makes money providing services around Movable Type

Movable Type Meetup


Movable Type Meetup 10/28/2003 11:09 PM
Looking for a way to hang out with other Movable Type users in real life? To talk about the writing...

Movable Type 3.15 released


Movable Type 3.15 released 02/01/2005 08:54 PM
Version 3.15 fixes a vulnerability in the mail sending packages for all Movable Type versions in which the user has...

Movable Type RIP | Metafilter


Movable Type RIP | Metafilter 05/14/2004 01:39 AM
Metafilter thread on Movable Type going to a pay model .. that just isn't good enough .. Answer

metafilter.com/mefi/33072
track this site | 5 links


Launched: Movable Type 3.1


Launched: Movable Type 3.1 08/31/2004 04:51 PM
We're happy to announce that this afternoon we released Movable Type 3.1. We're extremely excited about this new release, and...

Crossposter for Movable Type


Crossposter for Movable Type 12/30/2004 08:58 AM
Some code, then: Crossposter for Movable Type. I have write access to quite a few weblogs (more than in that code, by miles, actually), and I like to write to all of them. But I've found a curious psychological drawback...

Plug In to Movable Type


Plug In to Movable Type 05/17/2004 11:53 AM
the hard part is choosing between dual G5s or dual LCD monitors

Movable Type Upgrading


Movable Type Upgrading 03/11/2003 09:43 AM
I always wait a while to upgrade Movable Type (the software I use to publish this site). The wisdom of this approach was borne out when a security fix had...

Movable Type 3.14 released


Movable Type 3.14 released 12/22/2004 01:17 AM
We've just released Movable Type 3.14, which addresses the server load issues we've been discussing for the past few days....
Grok Description matches for Edit This Post Button in Movable Type
GrokA matches for Edit This Post Button in Movable Type

Edit This Post Button in Movable Type

The following phrases have been identified by the grok system as matching this entry:

















Also check out:


Grok

Ipod Porn on the
Rise

Brief Abstract of
Wikipedia's
Mesothelioma Cancer
page

Get first aid
instructions in your
cell phone

IE is crap
JSPWiki gains
podcasting support

Microsoft Identifies
Serious New Security
Flaws
(washingtonpost.com)

Observer: Textual
relations (FT.com)

Marines Investigate
Photo Posted on Web
(AP)

Hardware vendors
inch forward on
utility computing

Computers are
engines of
productivity - at
last

Marines investigate
photograph of
soldier, two Iraqi
children circulating
on Internet

Bush Vows on Iraq
Handover; U.S.
Troops Outside Najaf

Intel profit soars
89pc

Intel failures
Clinton's fault -
Ashcroft

Intel's Q1 Profit
Nearly Doubles

Positive,
insightful:
Microsoft ace teams
experience in Pune

Proper 3G services,
please

reorg coming to the
MT forums

PyPedal
Open License
Daily Custom Updates
2004

mrPostman 2.0.0
jose Chess Database
1.3

Spring Jam Vol. 1
1.0

Urly 0.9
ProximityMines 1.0.0
Poof! 2.0
SightSpeed Video
Messenger 2.0

PowerQuote 10.0
Trapeze 1.0
LuaLua Mac OS X
Desktop Icons - For
Dog Lovers 1.0

Jaws!!!... Jaws
thems!!!

MIT Offers new
Insights into Vision

CNN.com -
Firm cheers loss of
robot in Iraq - Apr
12, 2004

Boing Boing: Boing
Boing add Technorati
support

Bush May Accept a
Settlement Plan

Lung Cancer Affects
Sexes Differently

the other side
Intel shrugs off
Intergraph for
strong Q1

Brain Implants
Political Web Sites
Redone

Building
Applications with
AppleScript and
FaceSpan

Chip maker alleges
antitrust in
Qualcomm suit

Complete Registry
Cleaner v2.0

Bush Vows to Stay
the Course in Iraq
(Reuters)

Bush: Iraqi Handover
Fixed, Willing to
Add Troops (Reuters)

Phelps Named
Nation's Top Amateur
Athlete (AP)

Four Unidentified
Bodies Found in Iraq
(AP)

U.S. Deploys for
Showdown With Cleric
(AP)

FBI Missed Chances,
9/11 Commission Says
(AP)

Outlook-to-Notes
Link Updated (PC
World)

Google Says
Anti-Semitic Site
Offends, But to Stay
(Reuters)

Lessig Online
Tomorrow to Discuss
Copyright and the
Internet

CyberTuesday Final:
Vonage Launches
Canadian VoIP
Service; Google
Gambit: Stop
Limiting Trademark
Sales; Ex-B-

Online Tax Prep,
Filing Up
'Significantly':
Study

what is grok?