<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>scriptygoddess &#187; MT Tips n Tricks</title>
	<atom:link href="http://www.scriptygoddess.com/archives/category/movable-type/mt-tips-n-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com</link>
	<description></description>
	<lastBuildDate>Tue, 24 Aug 2010 13:58:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Updated Show/Hide script &#8211; (with additional links in the same line)</title>
		<link>http://www.scriptygoddess.com/archives/2003/12/30/updated-showhide-script-with-additional-links-in-the-same-line/</link>
		<comments>http://www.scriptygoddess.com/archives/2003/12/30/updated-showhide-script-with-additional-links-in-the-same-line/#comments</comments>
		<pubDate>Tue, 30 Dec 2003 16:19:08 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[MT Tips n Tricks]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/12/30/updated-showhide-script-with-additional-links-in-the-same-line/</guid>
		<description><![CDATA[Long title. Sorry. Someone wanted to use the show/hide comments script but have more than just the &#034;show comments&#034;/&#034;hide comments&#034; text in the same line. Basically &#8211; what they wanted was : Permalink &#124; Show Comments(3) &#124; Add Comment &#124; Trackback(2) Where the &#034;Show Comments&#034; would drop down and do the show/hide comments &#8211; and [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Long title. Sorry. <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
Someone wanted to use the show/hide comments script but have more than just the &#034;show comments&#034;/&#034;hide comments&#034; text in the same line. Basically &#8211; what they wanted was :</p>
<p><b>Permalink | Show Comments(3) | Add Comment | Trackback(2)</b></p>
<p>Where the &#034;Show Comments&#034; would drop down and do the show/hide comments &#8211; and it would only be there IF there had been comments to display. (for this last part, to use this script, you need to be running PHP on your page)</p>
<p>I know this is a very particular case &#8211; but there&#039;s pieces in here you could probably cut, mix, and match.<br />
<span id="more-1168"></span><br />
First, you need to get the updated version of the show more comments script <a href="http://tweezersedge.com/archives/2003/11/000173.html">here</a>. (Side note: to Mr. Tweezer&#039;s complaint <strike>in his post about my not making it easier for him to use my scripts&#8230; I&#039;m sorry- I&#039;ll refund your money&#8230; oh wait &#8211; this site is <b>free</b> and actually here for my OWN PERSONAL reference&#8230; Sometimes I even drop code here without explanation &#8211; just so I can grab it later. The &#034;disclaimer&#034; in the sidebar also says <b>&#034;we are volunteers, not paid tech support. In the end, you&#039;re on your own.&#034;</b></strike> Seems he decided to take that part down. How nice.)</p>
<p>In any case instead of using the show more comments function I&#039;ve posted previously, use his revised one instead (function name changed to work seperately for comments):</p>
<h3>&lt;script type=&#034;text/javascript&#034;&gt;<br />
  function showMoreComments(entryID, entryLink, htmlObj) {<br />
    extTextDivID = (&#039;extText&#039; + (entryID));<br />
    extLinkDivID = (&#039;extLink&#039; + (entryID));<br />
    if( document.getElementById ) {<br />
      if( document.getElementById(extTextDivID).style.display ) {<br />
        if( entryLink != 0 ) {<br />
          document.getElementById(extTextDivID).style.display = &#034;block&#034;;<br />
          document.getElementById(extLinkDivID).style.display = &#034;none&#034;;<br />
          htmlObj.blur();<br />
        } else {<br />
          document.getElementById(extTextDivID).style.display = &#034;none&#034;;<br />
          document.getElementById(extLinkDivID).style.display = &#034;block&#034;;<br />
        }<br />
      } else {<br />
        location.href = entryLink;<br />
        return true;<br />
      }<br />
    } else {<br />
      location.href = entryLink;<br />
      return true;<br />
    }<br />
  }<br />
&lt;/script&gt;</h3>
<p>Now put this code below your entries in your template:</p>
<h3>&lt;div id=&#034;extLink&lt;$MTEntryID$&gt;&#034;&gt;<br />
&lt;a href=&#034;&lt;$MTEntryPermalink$&gt;&#034;&gt;Permalink&lt;/a&gt;<br />
&lt;MTEntryIfAllowComments&gt;<br />
&lt;?php if (&lt;$MTEntryCommentCount$&gt; &gt; 0) { ?&gt;<br />
 | &lt;a href=&#034;&lt;$MTEntryPermalink$&gt;&#034; name=&#034;ext&lt;$MTEntryID pad=&#034;1&#034;$&gt;&#034; onclick=&#034;showMoreComments(&lt;$MTEntryID$&gt;,&#039;&lt;$MTEntryPermalink$&gt;&#039;, this);return false;&#034;&gt;Show Comments (&lt;$MTEntryCommentCount$&gt;)&lt;/a&gt;<br />
&lt;?php } ?&gt;<br />
 | &lt;a href=&#034;&lt;$MTEntryPermalink$&gt;#comments&#034;&gt;Add your comment&lt;/a&gt;<br />
&lt;/MTEntryIfAllowComments&gt;<br />
&lt;MTEntryIfAllowPings&gt;<br />
 | &lt;a href=&#034;&lt;$MTCGIPath$&gt;&lt;$MTTrackbackScript$&gt;?__mode=view&#038;entry_id=&lt;$MTEntryID$&gt;&#034; onclick=&#034;OpenTrackback(this.href); return false&#034;&gt;TrackBack (&lt;$MTEntryTrackbackCount$&gt;)&lt;/a&gt;<br />
&lt;/MTEntryIfAllowPings&gt;<br />
&lt;/div&gt;<br />
&lt;div id=&#034;extText&lt;$MTEntryID$&gt;&#034; style=&#034;display: none&#034;&gt;<br />
&lt;a href=&#034;&lt;$MTEntryPermalink$&gt;&#034;&gt;Permalink&lt;/a&gt;<br />
&lt;MTEntryIfAllowComments&gt;<br />
 | &lt;a href=&#034;#ext&lt;$MTEntryID pad=&#034;1&#034;$&gt;&#034; onclick=&#034;showMoreComments(&lt;$MTEntryID$&gt;,0, this);return true;&#034;&gt;Hide Comments&lt;/a&gt;<br />
 | &lt;a href=&#034;&lt;$MTEntryPermalink$&gt;#comments&#034;&gt;Add your comment&lt;/a&gt;<br />
&lt;/MTEntryIfAllowComments&gt;<br />
&lt;MTEntryIfAllowPings&gt;<br />
 | &lt;a href=&#034;&lt;$MTCGIPath$&gt;&lt;$MTTrackbackScript$&gt;?__mode=view&#038;entry_id=&lt;$MTEntryID$&gt;&#034; onclick=&#034;OpenTrackback(this.href); return false&#034;&gt;<br />
TrackBack (&lt;$MTEntryTrackbackCount$&gt;)<br />
&lt;/a&gt;<br />
&lt;/MTEntryIfAllowPings&gt;<br />
&lt;MTEntryIfAllowComments&gt;<br />
&lt;MTComments&gt;<br />
&lt;$MTCommentBody$&gt;<br />
&lt;p&gt;Posted by &lt;$MTCommentAuthorLink show_email=&#034;0&#034;$&gt; at &lt;$MTCommentDate$&gt;&lt;/p&gt;&lt;br&gt;<br />
&lt;/MTComments&gt;<br />
&lt;/MTEntryIfAllowComments&gt;<br />
&lt;a href=&#034;&lt;$MTEntryPermalink$&gt;&#034;&gt;Permalink&lt;/a&gt;<br />
&lt;MTEntryIfAllowComments&gt;<br />
 | &lt;a href=&#034;#ext&lt;$MTEntryID pad=&#034;1&#034;$&gt;&#034; onclick=&#034;showMoreComments(&lt;$MTEntryID$&gt;,0, this);return true;&#034;&gt;Hide Comments&lt;/a&gt;<br />
 | &lt;a href=&#034;&lt;$MTEntryPermalink$&gt;#comments&#034;&gt;Add your comment&lt;/a&gt;<br />
&lt;/MTEntryIfAllowComments&gt;<br />
&lt;MTEntryIfAllowPings&gt;<br />
 | &lt;a href=&#034;&lt;$MTCGIPath$&gt;&lt;$MTTrackbackScript$&gt;?__mode=view&#038;entry_id=&lt;$MTEntryID$&gt;&#034; onclick=&#034;OpenTrackback(this.href); return false&#034;&gt;TrackBack (&lt;$MTEntryTrackbackCount$&gt;)&lt;/a&gt;<br />
&lt;/MTEntryIfAllowPings&gt;<br />
&lt;/div&gt;</h3>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2003/12/30/updated-showhide-script-with-additional-links-in-the-same-line/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Calendar modification</title>
		<link>http://www.scriptygoddess.com/archives/2003/12/28/calendar-modification/</link>
		<comments>http://www.scriptygoddess.com/archives/2003/12/28/calendar-modification/#comments</comments>
		<pubDate>Mon, 29 Dec 2003 01:24:11 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[MT Tips n Tricks]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/12/28/calendar-modification/</guid>
		<description><![CDATA[This is very basic &#8211; but I wanted to save the code somewhere. The default &#034;Calendar&#034; template has the dates linked to the last entry on that calendar day (mtpermalink) &#8211; but it would make more sense to have those links point to the DAILY ARCHIVE page (this assumes you have &#034;daily&#034; checked off as [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>This is <i>very</i> basic &#8211; but I wanted to save the code somewhere. The default &#034;Calendar&#034; template has the dates linked to the last entry on that calendar day (mtpermalink) &#8211; but it would make more sense to have those links point to the DAILY ARCHIVE page (this assumes you have &#034;daily&#034; checked off as one of your archiving types in your weblog settings/archiving)<br />
<span id="more-1164"></span><br />
Here&#039;s the whole thing, just so you have it for reference. I only changed the one line in bold:</p>
<h3>&lt;div align=&#034;center&#034; class=&#034;calendar&#034;&gt;<br />
&lt;table border=&#034;0&#034; cellspacing=&#034;4&#034; cellpadding=&#034;0&#034; summary=&#034;Monthly calendar with links to each day&#039;s posts&#034;&gt;<br />
&lt;caption class=&#034;calendarhead&#034;&gt;&lt;$MTDate format=&#034;%B %Y&#034;$&gt;&lt;/caption&gt;<br />
&lt;tr&gt;<br />
&lt;th abbr=&#034;Sunday&#034; align=&#034;center&#034;&gt;&lt;span class=&#034;calendar&#034;&gt;Sun&lt;/span&gt;&lt;/th&gt;<br />
&lt;th abbr=&#034;Monday&#034; align=&#034;center&#034;&gt;&lt;span class=&#034;calendar&#034;&gt;Mon&lt;/span&gt;&lt;/th&gt;<br />
&lt;th abbr=&#034;Tuesday&#034; align=&#034;center&#034;&gt;&lt;span class=&#034;calendar&#034;&gt;Tue&lt;/span&gt;&lt;/th&gt;<br />
&lt;th abbr=&#034;Wednesday&#034; align=&#034;center&#034;&gt;&lt;span class=&#034;calendar&#034;&gt;Wed&lt;/span&gt;&lt;/th&gt;<br />
&lt;th abbr=&#034;Thursday&#034; align=&#034;center&#034;&gt;&lt;span class=&#034;calendar&#034;&gt;Thu&lt;/span&gt;&lt;/th&gt;<br />
&lt;th abbr=&#034;Friday&#034; align=&#034;center&#034;&gt;&lt;span class=&#034;calendar&#034;&gt;Fri&lt;/span&gt;&lt;/th&gt;<br />
&lt;th abbr=&#034;Saturday&#034; align=&#034;center&#034;&gt;&lt;span class=&#034;calendar&#034;&gt;Sat&lt;/span&gt;&lt;/th&gt;<br />
&lt;/tr&gt;<br />
&lt;MTCalendar&gt;<br />
&lt;MTCalendarWeekHeader&gt;<br />
&lt;tr&gt;<br />
&lt;/MTCalendarWeekHeader&gt;<br />
&lt;td align=&#034;center&#034;&gt;&lt;span class=&#034;calendar&#034;&gt;<br />
&lt;MTCalendarIfEntries&gt;<br />
&lt;MTEntries lastn=&#034;1&#034;&gt;<br />
<b>&lt;a href=&#034;&lt;$MTEntryLink archive_type=&#034;Daily&#034;$&gt;&#034;&gt;</b><br />
&lt;$MTCalendarDay$&gt;<br />
&lt;/a&gt;<br />
&lt;/MTEntries&gt;<br />
&lt;/MTCalendarIfEntries&gt;<br />
&lt;MTCalendarIfNoEntries&gt;<br />
&lt;$MTCalendarDay$&gt;<br />
&lt;/MTCalendarIfNoEntries&gt;<br />
&lt;MTCalendarIfBlank&gt;<br />
&nbsp;<br />
&lt;/MTCalendarIfBlank&gt;<br />
&lt;/span&gt;<br />
&lt;/td&gt;<br />
&lt;MTCalendarWeekFooter&gt;<br />
&lt;/tr&gt;<br />
&lt;/MTCalendarWeekFooter&gt;<br />
&lt;/MTCalendar&gt;<br />
&lt;/table&gt;<br />
&lt;/div&gt;</h3>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2003/12/28/calendar-modification/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.465 seconds -->
