January 03, 2004

Mobloging or Mobile Bloging

Just playing with a pop to movabletype perl thingy to accept and post entries from the mobile phone.
Was recked with bugs, so fixing that..

Posted by wizard at 03:24 PM | Comments (25) | TrackBack

January 02, 2004

MovableType Auto Master Authors List

Using inspiration from scriptygoddess ® (great gal) i poked around a bit and came up with the following solution to automatically generating authors list and the entries by author page (authors.php)
I use 2 plugins MTCollate and MTAuthors. The MTCollate is optional i just liked it alot becuase of the added sorting etc.

Using this in any sidebars where i want to link to the authors page;


<div class="side">
<MTCollateCollect>
<MTAuthors>
<MTCollateRecord>
<MTCollateSetField name="name"><MTAuthorName></MTCollateSetField>
<MTCollateSetField name="nick"><MTAuthorNickname></MTCollateSetField>
<MTCollateSetField name="url"><MTAuthorURL></MTCollateSetField>
<MTCollateSetField name="posts"><MTAuthorEntryCount></MTCollateSetField>
</MTCollateRecord>
</MTAuthors>
</MTCollateCollect>
<MTCollateList sort="name:+">
<a href="authors.php?author=<MTCollateField name="name">">
<MTCollateField name="name"> (<MTCollateField name="posts">)
</a><br />
</MTCollateList>
</div>

and this code in authors.php since MTAuthors has the nice sideeffect of setting the MTEntries context to the current author being listed.


<MTAuthors>
<? if($author == "<MTAuthorName>") { ?>
 	<h2 class="date">
 	<strong><MTAuthorName> (<MTAuthorEntryCount> posts)</strong>
       	</h2>
 <MTEntries>
 <$MTEntryDate format="%x"$> <a href="<$MTEntryLink$>"><$MTEntryTitle$></a><br />
 </MTEntries>
 <? } ?>
</MTAuthors>

Hope it helps someone.

Posted by wizard at 08:34 PM | Comments (7) | TrackBack