<?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; Projects</title>
	<atom:link href="http://www.scriptygoddess.com/archives/category/projects/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>Script Idea: Comment rating system</title>
		<link>http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/</link>
		<comments>http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/#comments</comments>
		<pubDate>Mon, 05 Apr 2004 00:51:42 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/04/04/script-idea-comment-rating-system/</guid>
		<description><![CDATA[This blog gets quite a number of comments. Some are just nice words of appreciation, others are kind of useful. Then there are some that are more valuable than the post itself! (For an example of this &#8211; check out my last few posts about CSS.) I really hope that if you&#039;ve been reading this [...]


Related posts:<ol><li><a href='http://www.scriptygoddess.com/archives/2010/05/21/the-blogger-to-wordpress-move-from-hell/' rel='bookmark' title='Permanent Link: The Blogger to WordPress move from hell!'>The Blogger to WordPress move from hell!</a> <small>One of the projects I&#039;ve been working on recently is...</small></li>
</ol>

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 blog gets quite a number of comments. Some are just nice words of appreciation, others are kind of useful. Then there are some that are <b>more valuable than the post itself!</b> (For an example of this &#8211; check out my <a href="http://www.scriptygoddess.com/archives/004975.php">last</a> <a href="http://www.scriptygoddess.com/archives/004978.php">few</a> <a href="http://www.scriptygoddess.com/archives/004986.php">posts</a> about CSS.) </p>
<p>I really hope that if you&#039;ve been reading this blog for awhile, you&#039;ve learned to comb through the comments. Sometimes the scripts get completely overhauled in there. Other times, people post other solutions, solve installation problems, etc. post helpful links.</p>
<p>Of course the difficult side of that request, is that some posts have A LOT of comments. Unfortunatley, in some cases you&#039;ll see the same question get posted over and over again &#8211; when it was already answered or addressed previously &#8211; but you&#039;d never find that answer in all the comments. Quite simply, it&#039;s difficult to find the answers you really need when there&#039;s so many comments in a single post. </p>
<p>SO &#8211; my script idea is a &#034;COMMENT&#034; rating system &#8211; much like <a href="http://www.scriptygoddess.com/archives/004025.php">this one</a> which was designed for POSTS (side note: Seems like some updates were added and <a href="http://www.them.ws/?p=894">here</a> is the most recent version). As well, there&#039;s an update with timestamps and banning <a href="http://www.toomuchsexy.org/archives/2003/07/14/adding_timestamps_and_banning_to_your_movable_type_rating_system.php">here</a>.<br />
It would be simple enough to modify those scripts to store ratings for comments. Additionally what I would add is this: if the comment is rated 50% or 75% (user choice) positively, then highlight it so it&#039;s easier for people to find. (This would probably be a simple div around each comment that has a php include in it &#8211; that checks the comment&#039;s rating and gives the div a background color for a hightlight) By 50 &#8211; 75% I mean this: for example if there are &#034;10&#034; votes on a comment and if 7 of them were + (3 of them were &#8211; - maybe from people who didn&#039;t completely agree) it would get highlighted. If it got only 3 + votes (from a total of 3 votes) &#8211; it would get hightlighted &#8211; since 3 out of 3 is 100%.</p>
<p>Here&#039;s why I haven&#039;t just jumped in and written the script.</p>
<p>1) I don&#039;t know when MT 3.0 is coming out and I don&#039;t know if maybe it already has a feature like this (My comment queue script is already going to be a waste of space &#8211; as MT 3.0 will have it baked in. For this I&#039;m glad &#8211; because it will be better that way)</p>
<p>2) Since comment stuff is changing in MT 3.0 &#8211; I&#039;m not sure what to expect and I don&#039;t want to write a script that will have to be updated/modified the day the new version comes out.</p>
<p>3) Since this script is specifically designed for posts with many comments &#8211; my original &#034;design&#034; for it meant checking the database x number of times (where x = the number of comments.) For <a href="http://www.scriptygoddess.com/archives/2003/07/24/buymusiccom-buyer-beware/">particularly popular posts</a> (I can&#039;t believe that one has <b>125</b> comments!!) &#8211; would this kill my database, bandwidth, and &#034;download&#034; speed?</p>
<p>So just wanted to throw this out there &#8211; I won&#039;t be writing this script before the MT 3.0 release&#8230; but I&#039;d REALLY like to as I think it would greatly help people trying to use scripts from this site. If anyone else has any ideas &#8211; feel free to leave a comment. <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<p>Related posts:<ol><li><a href='http://www.scriptygoddess.com/archives/2010/05/21/the-blogger-to-wordpress-move-from-hell/' rel='bookmark' title='Permanent Link: The Blogger to WordPress move from hell!'>The Blogger to WordPress move from hell!</a> <small>One of the projects I&#039;ve been working on recently is...</small></li>
</ol></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/2004/04/04/script-idea-comment-rating-system/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>mySQL call for help</title>
		<link>http://www.scriptygoddess.com/archives/2002/08/01/mysql-call-for-help/</link>
		<comments>http://www.scriptygoddess.com/archives/2002/08/01/mysql-call-for-help/#comments</comments>
		<pubDate>Thu, 01 Aug 2002 14:06:33 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/08/01/mysql-call-for-help/</guid>
		<description><![CDATA[Ok, I&#039;m just about to go insane here. I&#039;m working on a little mySQL project, and I can&#039;t even get as far as having the &#034;application&#034; (such as it is at all of just a few lines at the moment) to select the database. I&#039;ve connected to the database fine, but when it comes time [...]


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>Ok, I&#039;m just about to go insane here. I&#039;m working on a little mySQL project, and I can&#039;t even get as far as having the &#034;application&#034; (such as it is at all of just a few lines at the moment) to select the database.</p>
<p>I&#039;ve connected to the database fine, but when it comes time to select a database, it dies. I&#039;ve looked everywhere, but kind figure out why it would be happening.</p>
<p>Anyone run into this problem before? Have any suggestions? I&#039;ve tried multiple varations on the following code:<br />
<span id="more-798"></span><br />
<b>$hostname = &#034;localhost&#034;;<br />
$username = &#034;USERNAME&#034;;<br />
$password = &#034;PASSWORD&#034;;<br />
$dbName = &#034;USERNAME_DATABASENAME&#034;;</p>
<p>/* MySQL table created to store the data */<br />
$userstable = &#034;mytable&#034;;</p>
<p>/* make connection to database */<br />
mysql_connect($hostname,$username,$password) OR DIE(&#034;Unable to connect to database&#034;);</p>
<p>/* please note, I&#039;ve also tried pconnect, either way, it connects to mySQL just fine&#8230; it&#039;s the next line that dies out no matter what&#8230;. */</p>
<p>mysql_select_db($dbName) or die(&#034;Unable to select database&#034;);</b></p>
<p>I&#039;ve also tried using the function: mysql_selectdb, I&#039;ve tried having the reference to the db connection stored in a variable ($db) and then doing:<br />
mysql_select_db($dbName, $db)<br />
I&#039;ve tried putting $dbName in qoutes, $db in quotes, putting an &#034;@&#034; symbol before mysql_connect or mysql_pconnect, or before mysql_select_db (I have no idea what the significance of the &#034;@&#034; symbol is&#8230;</p>
<p>AAaaaah! Going. Insane.</p>


<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/2002/08/01/mysql-call-for-help/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Call for Help:  MySQL version of Add-A-Link</title>
		<link>http://www.scriptygoddess.com/archives/2002/07/29/call-for-help-mysql-version-of-add-a-link/</link>
		<comments>http://www.scriptygoddess.com/archives/2002/07/29/call-for-help-mysql-version-of-add-a-link/#comments</comments>
		<pubDate>Mon, 29 Jul 2002 14:10:21 +0000</pubDate>
		<dc:creator>Lynda</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/07/29/call-for-help-mysql-version-of-add-a-link/</guid>
		<description><![CDATA[With Jennifer&#039;s permission, I&#039;m recoding the addalink script to run with a mySQL database. This will mean a few more features and the alphabetizing will finally work. In addition to the current features, there will be user creation and login (which serves two purposes, one, you don&#039;t need to password protect the directory and two, [...]


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>With Jennifer&#039;s permission, I&#039;m recoding the <a href="http://www.scriptygoddess.com/archives/001093.php">addalink script</a> to run with a mySQL database.  This will mean a few more features and the alphabetizing will finally work. <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />    In addition to the current features, there will be user creation and login (which serves two purposes, one, you don&#039;t need to password protect the directory and two, you can assign more than one user to create lists.  That might come into play better in the future)  Also, you will be able to add a description to your link so you can display that with the output or just use it for yourself to keep things straight.  And you&#039;ll also be able to choose whether you&#039;d like the links to open in a new window or not (in short, think a php/mysql version of blogrolling&#8230; heh)</p>
<p>I&#039;m doing this mostly for myself, but will be giving the code back to Jennifer so she can look it over and advise whether she&#039;d like to post it (I&#039;m always wary of rewriting people&#039;s scripts and posting the results, although aside from the javascript, this is a total rewrite)</p>
<p>Anyone else interested in a mySQL version?  (If you&#039;re only allotted one mySQL database in your account, you can use one database for a number of different tables, so if you&#039;re worried about that, don&#039;t be.  If you don&#039;t have access to a mySQL database, I am assuming the text database version will continue to be worked on as well.)</p>
<p>I&#039;m mostly done the scripts, just need to test things and retest them and develop an installation script, so look for it soon.</p>
<p>Before I hand it over to Jennifer though, I&#039;d like to know if people are interested in any other features?  Besides what the script can do currently, what would you be interested in having it do?</p>


<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/2002/07/29/call-for-help-mysql-version-of-add-a-link/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Add a link development&#8230;</title>
		<link>http://www.scriptygoddess.com/archives/2002/06/18/add-a-link-development/</link>
		<comments>http://www.scriptygoddess.com/archives/2002/06/18/add-a-link-development/#comments</comments>
		<pubDate>Wed, 19 Jun 2002 02:13:15 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/06/18/add-a-link-development/</guid>
		<description><![CDATA[A few questions here. First of all &#8211; I&#039;ve figured out how to &#034;parse&#034; weblogs.com. (I&#039;m not really parsing it, and maybe that&#039;s the problem) but it&#039;s really, really,&#8230; really&#8230;. REALLY slow. See my sample here. Secondly &#8211; Blogroller is developing a personal version. Do I just pack it up, call it a day. Had [...]


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>A few questions here. First of all &#8211; I&#039;ve figured out how to &#034;parse&#034; weblogs.com. (I&#039;m not really parsing it, and maybe that&#039;s the problem) but it&#039;s really, really,&#8230; really&#8230;. REALLY slow. <a href="http://www.scriptygoddess.com/testarea/testupdated.php" target="_blank">See my sample here.</a></p>
<p>Secondly &#8211; Blogroller is developing a personal version. Do I just pack it up, call it a day. Had my fun trying to figure this stuff out, and move on? (Do I continue trying to develop this when there&#039;s something bigger and better out there already?)</p>


<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/2002/06/18/add-a-link-development/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>future use: browser and OS info</title>
		<link>http://www.scriptygoddess.com/archives/2002/05/14/future-use-browser-and-os-info/</link>
		<comments>http://www.scriptygoddess.com/archives/2002/05/14/future-use-browser-and-os-info/#comments</comments>
		<pubDate>Tue, 14 May 2002 16:35:51 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/05/14/future-use-browser-and-os-info/</guid>
		<description><![CDATA[Found this code over at www.php.net &#8211; I just packaged it up into a file you can drop on your server and look at&#8230; Not really useful on its own&#8230; but maybe on a future project, it might be (like a hit tracking app?) Download the file here. See it working here. No related posts. [...]


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>Found this code over at www.php.net &#8211; I just packaged it up into a file you can drop on your server and look at&#8230;</p>
<p>Not really useful on its own&#8230; but maybe on a future project, it might be (like a hit tracking app?)</p>
<p><a href="http://www.scriptygoddess.com/downloads/browsertest.zip" target="_blank">Download the file here.</a></p>
<p><a href="http://www.scriptygoddess.com/tutorialpages/browsertest.php" target="_blank">See it working here.</a></p>


<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/2002/05/14/future-use-browser-and-os-info/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Scriptygoddess redesign: call for feedback :)</title>
		<link>http://www.scriptygoddess.com/archives/2002/05/08/scriptygoddess-redesign-call-for-feedback/</link>
		<comments>http://www.scriptygoddess.com/archives/2002/05/08/scriptygoddess-redesign-call-for-feedback/#comments</comments>
		<pubDate>Wed, 08 May 2002 17:03:01 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/05/08/scriptygoddess-redesign-call-for-feedback/</guid>
		<description><![CDATA[Over the next few days I&#039;ll be planning out a re-design of this site to encorporate some of the feedback we&#039;ve been getting. For example some things on the to do list: -add search feature -add &#034;side bar&#034; forum (just for general questions and script requests) -add download &#034;section&#034; for all scripts&#8230; One thing I&#039;m [...]


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>Over the next few days I&#039;ll be planning out a re-design of this site to encorporate some of the feedback we&#039;ve been getting. For example some things on the to do list:</p>
<p>-add search feature<br />
-add &#034;side bar&#034; forum (just for general questions and script requests)<br />
-add download &#034;section&#034; for all scripts&#8230;</p>
<p>One thing I&#039;m thinking of doing with some of our scripts &#8211; rather than do a traditional readme &#8211; Lynda&#039;s readme was REALLY cool on that comment-subscription script. I&#039;m thinking about doing all readme&#039;s that way. It makes figuring out what you have to copy and paste SO CLEAR&#8230;.</p>
<p>So&#8230; here&#039;s your chance to put your $.02 in&#8230; Can&#039;t guarantee that I can give you everything you ask for <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  but I&#039;d love to get your feedback on how this site could be made more useful for you&#8230;</p>


<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/2002/05/08/scriptygoddess-redesign-call-for-feedback/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Brainstorm: session IDs</title>
		<link>http://www.scriptygoddess.com/archives/2002/05/06/brainstorm-session-ids/</link>
		<comments>http://www.scriptygoddess.com/archives/2002/05/06/brainstorm-session-ids/#comments</comments>
		<pubDate>Mon, 06 May 2002 17:09:35 +0000</pubDate>
		<dc:creator>amy</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/05/06/brainstorm-session-ids/</guid>
		<description><![CDATA[I&#039;ve got session IDs working on &#039;cat.net (it&#039;s one of the cookies I set), but I haven&#039;t decided what, exactly, I want to do with them. I haven&#039;t really decided where I want to take this project, so if you&#039;ve got some ideas that could incorporate session IDs, I&#039;d welcome them. No related posts. Related [...]


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>I&#039;ve got session IDs working on &#039;cat.net (it&#039;s one of the cookies I set), but I haven&#039;t decided what, exactly, I want to do with them.  I haven&#039;t really decided where I want to take this project, so if you&#039;ve got some ideas that could incorporate session IDs, I&#039;d welcome them.</p>


<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/2002/05/06/brainstorm-session-ids/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Subscribe to comments (in MT): Call for help</title>
		<link>http://www.scriptygoddess.com/archives/2002/05/04/subscribe-to-comments-in-mt-call-for-help/</link>
		<comments>http://www.scriptygoddess.com/archives/2002/05/04/subscribe-to-comments-in-mt-call-for-help/#comments</comments>
		<pubDate>Sat, 04 May 2002 16:57:22 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/05/04/subscribe-to-comments-in-mt-call-for-help/</guid>
		<description><![CDATA[Ok.. this CAN be done&#8230; I KNOW it can&#8230; I&#039;m close&#8230; but not quite there&#8230; Here&#039;s my &#034;plan&#034; for the code: Create an intermediate &#034;processing&#034; file that will be the &#034;action&#034; instead of the mt-comments.cgi. On this page I will: 1) see if a &#034;subsribe email list&#034; file exists. 2) if so, parse it into [...]


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>Ok.. this CAN be done&#8230; I KNOW it can&#8230; I&#039;m close&#8230; but not quite there&#8230; Here&#039;s my &#034;plan&#034; for the code:</p>
<p>Create an intermediate &#034;processing&#034; file that will be the &#034;action&#034; instead of the mt-comments.cgi. On this page I will:<br />
1) see if a &#034;subsribe email list&#034; file exists.<br />
2) if so, parse it into an array<br />
3) iterate through the array sending emails to each person&#039;s email (that&#039;s whats in the array &#8211; it&#039;s an array of emails of people who have subscribed to the comments for that post) with just the Author and text of the comment<br />
5) We&#039;ll load all the values of the comment form (from the previous page) into hidden form elements.<br />
4) Then onLoad, we&#039;ll submit the form like normal &#8211; to mt-comments.cgi so that the comment is logged, and the blog author gets their comment notification, etc.</p>
<p>Creating a &#034;subscribe to comments&#034; form has still yet to be completed, but that, I would imagine would be pretty simple&#8230; on the page itself create a secondary form &#8211; creating that subscribe email list (with the post ID in the filename to seperate it from other posts).</p>
<p>Ok, here&#039;s where I am, and here&#039;s the problems I&#039;m having:<b> (Everyone and anyone is free to comment and help out with the script! This is all in the name of fun and learning, and all are welcome to participate!!!)</b><br />
<span id="more-710"></span><br />
Here&#039;s the code I came up with&#8230; it&#039;s not really complete&#8230; but you get the idea&#8230;</p>
<h3>&lt;?<br />
$fileString = &#034;/honme/PATH_TO_COMMENTSUBSCRIBE_FOLDER/commentsubscribe/&#034;;<br />
$fileString .= &#034;$entry_id&#034;;<br />
$fileString .= &#034;email.ini&#034;;<br />
if (file_exists($fileString)) {<br />
  $emailList = parse_ini_file(&#034;$fileString&#034;);<br />
  $count = count($emailList);<br />
}<br />
if (!strcasecmp($isSent, &#034;false&#034;)) {<br />
	for ($i = 0; $i &lt; $count; $i++) {<br />
	  mail(&#034;$emailList[$i]&#034;, &#034;New Comment on $entry_id&#034;, &#034;Author: $author&#92;ncomment: $text&#034;, &#034;From: scriptyATscriptygoddessDOTcom&#034;);<br />
	}<br />
$submitForm = &#034;document.comments_form.submit()&#034;;<br />
$isSent = true;<br />
} else {<br />
$submitForm = &#034;document.location=&#039;YOUR_HOME_PAGE&#039;&#034;;<br />
/*<br />
I put this here in case someone tried to reload THIS page&#8230;<br />
that way the $isSent variable is set to true (at the bottom)&#8230;<br />
and the form won&#039;t process again post the comment again<br />
and annoy people with bogus emails<br />
*/<br />
}<br />
?&gt;<br />
&lt;html&gt;&lt;head&gt;&lt;title&gt;&lt;/title&gt;&lt;/head&gt;&lt;body onLoad=&#034;&lt;? echo $submitForm ?&gt;&#034;&gt;<br />
&lt;form method=&#034;post&#034; action=&#034;PATH_TO_YOUR_MTCOMMENTSFILE/mt-comments.cgi&#034; name=&#034;comments_form&#034;&gt;<br />
        &lt;input type=&#034;hidden&#034; name=&#034;static&#034; value=&#034;&lt;? echo $static ?&gt;&#034; /&gt;<br />
        &lt;input type=&#034;hidden&#034; name=&#034;entry_id&#034; value=&#034;&lt;? echo $entry_id ?&gt;&#034; /&gt;<br />
        &lt;input type=&#034;hidden&#034; name=&#034;ipadd&#034; value=&#034;&lt;? echo $ip ?&gt;&#034; /&gt;<br />
        &lt;input type=&#034;hidden&#034; name=&#034;author&#034; value=&#034;&lt;? echo $author ?&gt;&#034; /&gt;<br />
	&lt;input type=&#034;hidden&#034; name=&#034;email&#034; value=&#034;&lt;? echo $email ?&gt;&#034; /&gt;<br />
	&lt;input type=&#034;hidden&#034; name=&#034;url&#034; value=&#034;&lt;? echo $url ?&gt;&#034; /&gt;<br />
	&lt;input type=&#034;hidden&#034; name=&#034;text&#034; value=&#034;&lt;? echo $text ?&gt;&#034; /&gt;<br />
	&lt;input type=&#034;hidden&#034; name=&#034;post&#034; value=&#034;submit&#034; /&gt;<br />
&lt;/form&gt;<br />
&lt;?<br />
$isSent = &#034;true&#034;;<br />
?&gt;<br />
&lt;/body&gt;</h3>
<p>Problem #1:<br />
That $isSent failover&#8230; doesn&#039;t work.. it processes the comment again<br />
Problem #2:<br />
I did some bug-testing feedback thingys and it doesn&#039;t seem to be parsing the email list file (I set up a temporary one manually)</p>
<p>However, the comment DOES go through&#8230; so once we get this page working, it should work!</p>
<p>Thoughts? Comments? Ideas???</p>


<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/2002/05/04/subscribe-to-comments-in-mt-call-for-help/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Project: Subscribe to comments (in MT): Brainstorm</title>
		<link>http://www.scriptygoddess.com/archives/2002/04/30/project-subscribe-to-comments-in-mt-brainstorm/</link>
		<comments>http://www.scriptygoddess.com/archives/2002/04/30/project-subscribe-to-comments-in-mt-brainstorm/#comments</comments>
		<pubDate>Wed, 01 May 2002 02:24:43 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/04/30/project-subscribe-to-comments-in-mt-brainstorm/</guid>
		<description><![CDATA[This is a project I&#039;ve been meaning to get to for awhile, but I figured I&#039;d open up a brainstorming session for it (everyone is welcome to post ideas, thoughts, things you&#039;ve tried). Christine had &#034;requested&#034; a script where you could &#034;subscribe&#034; to comments&#8230; ie. you leave a comment on someone&#039;s site, but you don&#039;t [...]


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 a project I&#039;ve been meaning to get to for awhile, but I figured I&#039;d open up a brainstorming session for it (everyone is welcome to post ideas, thoughts, things you&#039;ve tried). Christine had &#034;requested&#034; a script where you could &#034;subscribe&#034; to comments&#8230; ie. you leave a comment on someone&#039;s site, but you don&#039;t want to have to keep going back to the comments section of that one post to see if anyone else replied. You&#039;d just get an email (kind of like the one MT sends the author) that says &#8211; new comment &#8211; maybe it even HAS the comments in it&#8230;</p>
<p>So my original plan of attack was&#8230;<br />
<span id="more-703"></span><br />
to take a look at mt-comments.cgi. See what makes it email comments when a comment is posted. Maybe capture email addresses on the comments form (from people who want to subscribe to the comments) and make an array (in an external &#034;flat file&#034;) of the email addresses &#8211; and when the comment is mailed to the author, have it also mailed to the mailing list (in that array)</p>
<p>Anyway &#8211; those are just my initial thoughts/plans of attack. Probably won&#039;t get to seriously play around with this until this weekend &#8211; but thought I&#039;d open it up for anyone who&#039;s up for the challenge.</p>


<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/2002/04/30/project-subscribe-to-comments-in-mt-brainstorm/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Category next/previous &#8211; Call for help&#8230;</title>
		<link>http://www.scriptygoddess.com/archives/2002/04/17/category-nextprevious-call-for-help/</link>
		<comments>http://www.scriptygoddess.com/archives/2002/04/17/category-nextprevious-call-for-help/#comments</comments>
		<pubDate>Wed, 17 Apr 2002 12:14:07 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2002/04/17/category-nextprevious-call-for-help/</guid>
		<description><![CDATA[Well, as you may or may not have noticed, I&#039;ve been futzing around with the pages here. Robyn and Christine both asked about category next/previous links in MT&#8230; and though it was said (on the MT boards) that it can&#039;t be done, I&#039;ve gotten *very very* close. But! no cigar&#8230; So, welcome to another part [...]


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>Well, as you may or may not have noticed, I&#039;ve been futzing around with the pages here. <a href="http://www.blogblogbaby.com" target="_blank">Robyn</a> and <a href="http://www.blahblahblog.com" target="_blank">Christine</a> both asked about category next/previous links in MT&#8230; and though it was said (on the MT boards) that it can&#039;t be done, I&#039;ve gotten *<b>very very</b>* close. But! no cigar&#8230;</p>
<p>So, welcome to another part of this blog &#8211; as collaboration tool. Here&#039;s what I&#039;ve got so far:<br />
<span id="more-680"></span><br />
My thought was I&#039;d create an array with a list of links. A different array for each category. (An additional array &#8211; a list of IDs was created to be parallel to the links array &#8211; you&#039;ll see why in a minute)</p>
<p>So I created a seperate index page with this code:</p>
<h3>&lt;?<br />
$i = 0;<br />
$j = 0;<br />
$k =0;<br />
$l = 0;<br />
$m = 0;<br />
?&gt;<br />
&lt;MTCategories&gt;<br />
&lt;MTEntries&gt;<br />
&lt;?<br />
if (&#034;&lt;$MTEntryCategory$&gt;&#034;==&#034;how to&#039;s&#034;) {<br />
  $howtoidarraytemp[$i] = &#034;&lt;$MTEntryID encode_php=&#034;qq&#034;$&gt;&#034;;<br />
  $howtolinkarraytemp[$i] = &#034;&lt;$MTEntryLink encode_php=&#034;qq&#034;$&gt;&#034;;<br />
  $i++;<br />
} else if (&#034;&lt;$MTEntryCategory$&gt;&#034;==&#034;MT hacks&#034;) {<br />
  $mthacksidarraytemp[$j] = &#034;&lt;$MTEntryID encode_php=&#034;qq&#034;$&gt;&#034;;<br />
  $mthackslinkarraytemp[$j] = &#034;&lt;$MTEntryLink encode_php=&#034;qq&#034;$&gt;&#034;;<br />
  $j++;<br />
} else if (&#034;&lt;$MTEntryCategory$&gt;&#034;==&#034;bookmarks&#034;) {<br />
  $bookmarksidarraytemp[$k] = &#034;&lt;$MTEntryID encode_php=&#034;qq&#034;$&gt;&#034;;<br />
  $bookmarkslinkarraytemp[$k] = &#034;&lt;$MTEntryLink encode_php=&#034;qq&#034;$&gt;&#034;;<br />
  $k++;<br />
} else if (&#034;&lt;$MTEntryCategory$&gt;&#034;==&#034;lessons learned&#034;) {<br />
  $lessonsidarraytemp[$l] = &#034;&lt;$MTEntryID encode_php=&#034;qq&#034;$&gt;&#034;;<br />
  $lessonslinkarraytemp[$l] = &#034;&lt;$MTEntryLink encode_php=&#034;qq&#034;$&gt;&#034;;<br />
  $l++;<br />
} else if (&#034;&lt;$MTEntryCategory$&gt;&#034;==&#034;suggested reading&#034;) {<br />
  $readingidarraytemp[$m] = &#034;&lt;$MTEntryID encode_php=&#034;qq&#034;$&gt;&#034;;<br />
  $readinglinkarraytemp[$m] = &#034;&lt;$MTEntryLink encode_php=&#034;qq&#034;$&gt;&#034;;<br />
  $m++;<br />
}<br />
?&gt;<br />
&lt;/MTEntries&gt;<br />
&lt;/MTCategories&gt;</h3>
<p>So the idea was to include the page above on the individual entries page. Since each category has it&#039;s own array &#8211; I would<br />
1) check which category we were looking at<br />
2) transfer the category specific arrays into a standard array<br />
2) get the key in which the current ID lives (in the current ID array)<br />
3) add 1 to that key to get the next link, subtract 1 to get the previous link<br />
4) display the links&#8230;</p>
<p>So here&#039;s that code:</p>
<h3>&lt;?<br />
include(&#034;/home/pathtofile/categoryArrays.php&#034;);<br />
if (&#034;&lt;$MTEntryCategory$&gt;&#034;==&#034;how to&#039;s&#034;) {<br />
  $idarraytemp = each($howtoidarraytemp);<br />
  $linkarraytemp = each($howtolinkarraytemp);<br />
} else if (&#034;&lt;$MTEntryCategory$&gt;&#034;==&#034;MT hacks&#034;) {<br />
  $idarraytemp = each($mthacksidarraytemp);<br />
  $linkarraytemp = each($mthackslinkarraytemp);<br />
} else if (&#034;&lt;$MTEntryCategory$&gt;&#034;==&#034;bookmarks&#034;) {<br />
  $idarraytemp = each($bookmarksidarraytemp);<br />
  $linkarraytemp = each($bookmarkslinkarraytemp);<br />
} else if (&#034;&lt;$MTEntryCategory$&gt;&#034;==&#034;lessons learned&#034;) {<br />
  $idarraytemp = each($lessonsidarraytemp);<br />
  $linkarraytemp = each($lessonslinkarraytemp);<br />
} else if (&#034;&lt;$MTEntryCategory$&gt;&#034;==&#034;suggested reading&#034;) {<br />
  $idarraytemp = each($readingidarraytemp);<br />
  $linkarraytemp = each($readinglinkarraytemp);<br />
} else {<br />
$abort = &#034;true&#034;;<br />
// this prevents errors from occuring if<br />
// it&#039;s a category that doesn&#039;t have an array associated with it<br />
}<br />
<br />
//$idarray = array_reverse($idarraytemp);<br />
//$linkarray = array_reverse($linkarraytemp);<br />
<br />
if (!$abort ==&#034;true&#034;); {<br />
<br />
print(&#034;&lt;p&gt;&#034;);<br />
<br />
$thisKey = array_search(&#034;&lt;$MTEntryID$&gt;&#034;, $idarraytemp);<br />
$thisKeyNext = $thisKey + 1;<br />
$thisKeyPrevious = $thisKey &#8211; 1;<br />
<br />
if ($thisKeyPrevious &lt; 0) {<br />
// do nothing<br />
} else {<br />
print(&#039;&lt;a href=&#034;&#039;);<br />
print($linkarraytemp[$thisKeyPrevious]);<br />
print(&#039;&#034;&gt;see the previous post in this category&lt;/a&gt;&#039;);<br />
$previouslinkshown = &#034;true&#034;;<br />
}<br />
<br />
if ($thisKeyNext &gt;= count($linkarraytemp)) {<br />
// do nothing<br />
} else {<br />
   if ($previouslinkshown == &#034;true&#034;) {<br />
      print(&#034; || &#034;);<br />
   }<br />
print(&#039;&lt;a href=&#034;&#039;);<br />
print($linkarraytemp[$thisKeyNext]);<br />
print(&#039;&#034;&gt;see the next post in this category&lt;/a&gt;&#039;);<br />
}<br />
print(&#034;&lt;br&gt;&#034;);<br />
print(&#034;This current category is: &#034;);<br />
print(&#034;&lt;$MTEntryCategory$&gt;&#034;);<br />
print(&#034;&lt;/p&gt;&#034;);<br />
}<br />
?&gt;</h3>
<p>As you can tell&#8230; it&#039;s not working. Something I think I might be doing wrong &#8211; the way I&#039;m transfering the values of the array into that standard-named array&#8230; I know the array is currently reversed&#8230; I commented out the &#039;fix&#039; for now.</p>
<p>If you have any suggestions&#8230; leave &#039;em in the comments, and I&#039;ll give it a try.</p>
<p><i>Some notes &#8211; I&#039;m only paying attention to MAIN categories here, I decided for simplicity sake (ha!) to ignore the mutliple categories thing&#8230; that&#039;s why I&#039;m using the MT tags that you see &#8211; MTCategoryLabel will display ALL categories&#8230; etc.</i></p>


<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/2002/04/17/category-nextprevious-call-for-help/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>

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