<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Extension - extract_elements]]></title>
		<link>https://punbb.informer.com/forums/topic/18431/extension-extractelements/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/18431/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Extension - extract_elements.]]></description>
		<lastBuildDate>Mon, 18 Feb 2008 13:01:40 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Extension - extract_elements]]></title>
			<link>https://punbb.informer.com/forums/post/109913/#p109913</link>
			<description><![CDATA[<div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>It doesn&#039;t really make much of a difference, I just find the one-liner neater <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></blockquote></div><p>Personally, I prefer the if clauses, (throwback to my preference of shell scripting), <img src="https://punbb.informer.com/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /> but your one liner is more in keeping with the code as written. Neater to keep things in style with the existing code. <img src="https://punbb.informer.com/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[null@example.com (MattF)]]></author>
			<pubDate>Mon, 18 Feb 2008 13:01:40 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109913/#p109913</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extension - extract_elements]]></title>
			<link>https://punbb.informer.com/forums/post/109898/#p109898</link>
			<description><![CDATA[<div class="quotebox"><cite>qubertman wrote:</cite><blockquote><p>When the checkbox is unchecked and when saving, then the &quot;Undefined index&quot; error.</p></blockquote></div><p>yea i forgot check boxes return null when unchecked. when i had to do this, i was using a drop down list so it would always return 0,1, or 2.</p><div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>Actually, I was thinking:<br /></p><div class="codebox"><pre><code>$form[&#039;new_field&#039;] = isset($_POST[&#039;form&#039;][&#039;new_field&#039;]) ? &#039;1&#039; : &#039;0&#039;;</code></pre></div></blockquote></div><p>yea id say that is the best way to do it.</p>]]></description>
			<author><![CDATA[null@example.com (Gizzmo)]]></author>
			<pubDate>Mon, 18 Feb 2008 05:45:00 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109898/#p109898</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extension - extract_elements]]></title>
			<link>https://punbb.informer.com/forums/post/109892/#p109892</link>
			<description><![CDATA[<p>It doesn&#039;t really make much of a difference, I just find the one-liner neater <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Mon, 18 Feb 2008 00:46:54 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109892/#p109892</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extension - extract_elements]]></title>
			<link>https://punbb.informer.com/forums/post/109891/#p109891</link>
			<description><![CDATA[<p>It&#039;s more in keeping with that code he posted. Must admit, I did post without paying much attention to the previous posts. T&#039;was just a quickie. <img src="https://punbb.informer.com/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[null@example.com (MattF)]]></author>
			<pubDate>Mon, 18 Feb 2008 00:28:35 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109891/#p109891</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extension - extract_elements]]></title>
			<link>https://punbb.informer.com/forums/post/109890/#p109890</link>
			<description><![CDATA[<p>Actually, I was thinking:<br /></p><div class="codebox"><pre><code>$form[&#039;new_field&#039;] = isset($_POST[&#039;form&#039;][&#039;new_field&#039;]) ? &#039;1&#039; : &#039;0&#039;;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Mon, 18 Feb 2008 00:22:20 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109890/#p109890</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extension - extract_elements]]></title>
			<link>https://punbb.informer.com/forums/post/109887/#p109887</link>
			<description><![CDATA[<p>Got it! Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (qubertman)]]></author>
			<pubDate>Sun, 17 Feb 2008 23:17:00 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109887/#p109887</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extension - extract_elements]]></title>
			<link>https://punbb.informer.com/forums/post/109885/#p109885</link>
			<description><![CDATA[<div class="codebox"><pre><code>if (isset($_POST[&#039;form&#039;][&#039;new_field&#039;]))
{
    $form[&#039;new_field&#039;] = $_POST[&#039;form&#039;][&#039;new_field&#039;];
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (MattF)]]></author>
			<pubDate>Sun, 17 Feb 2008 22:49:50 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109885/#p109885</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extension - extract_elements]]></title>
			<link>https://punbb.informer.com/forums/post/109883/#p109883</link>
			<description><![CDATA[<p>I meant use an isset on the POST value <img src="https://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /><br />And can&#039;t you just change $cur_post[&#039;is_online&#039;] to NULL at vt_post_loop_start?</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Sun, 17 Feb 2008 22:45:25 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109883/#p109883</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extension - extract_elements]]></title>
			<link>https://punbb.informer.com/forums/post/109882/#p109882</link>
			<description><![CDATA[<p>Remove the first line in that hook. The second is the correct way.</p>]]></description>
			<author><![CDATA[null@example.com (elbekko)]]></author>
			<pubDate>Sun, 17 Feb 2008 22:45:15 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109882/#p109882</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extension - extract_elements]]></title>
			<link>https://punbb.informer.com/forums/post/109881/#p109881</link>
			<description><![CDATA[<div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>qubertman: Use an isset</p></blockquote></div><p>When the checkbox is unchecked and when saving, then the &quot;Undefined index&quot; error.</p><p>&nbsp; &nbsp; &lt;hook id=&quot;pf_change_details_settings_validation&quot;&gt;&lt;![CDATA[<br />&nbsp; &nbsp; &nbsp; &nbsp; $form[&#039;show_online&#039;] = $_POST[&#039;form&#039;][&#039;show_online&#039;];<br />&nbsp; &nbsp; &nbsp; &nbsp; $form[&#039;show_online&#039;] = (isset($form[&#039;show_online&#039;])) ? 1 : 0;<br />&nbsp; &nbsp; ]]&gt;&lt;/hook&gt;</p><br /><p>In viewtopic.php (line 472), there isn&#039;t a hook to change the icon status. I can get the text to display offline, but the icon is blue indicating online.</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;user&lt;?php if ($cur_post[&#039;is_online&#039;] == $cur_post[&#039;poster_id&#039;]) echo &#039; online&#039; ?&gt;&quot;&gt;</p><p>FYI: Trying to convert the Hide User mod.</p>]]></description>
			<author><![CDATA[null@example.com (qubertman)]]></author>
			<pubDate>Sun, 17 Feb 2008 22:33:42 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109881/#p109881</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extension - extract_elements]]></title>
			<link>https://punbb.informer.com/forums/post/109868/#p109868</link>
			<description><![CDATA[<p>Gizzmo: I guess you have display_errors off on your server.<br />qubertman: Use an isset</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Sun, 17 Feb 2008 20:58:51 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109868/#p109868</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extension - extract_elements]]></title>
			<link>https://punbb.informer.com/forums/post/109856/#p109856</link>
			<description><![CDATA[<p>Yes it is.</p>]]></description>
			<author><![CDATA[null@example.com (qubertman)]]></author>
			<pubDate>Sun, 17 Feb 2008 20:11:36 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109856/#p109856</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extension - extract_elements]]></title>
			<link>https://punbb.informer.com/forums/post/109855/#p109855</link>
			<description><![CDATA[<p>well make sure your html has the correct name tag. should look something like </p><div class="codebox"><pre><code>name=&quot;form[new_field]&quot;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Gizzmo)]]></author>
			<pubDate>Sun, 17 Feb 2008 20:08:22 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109855/#p109855</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extension - extract_elements]]></title>
			<link>https://punbb.informer.com/forums/post/109853/#p109853</link>
			<description><![CDATA[<p>I am getting an &quot;Undefined index&quot; when the new field (checkbox) is unchecked. When the new field is hard coded into the array, then it works fine.</p>]]></description>
			<author><![CDATA[null@example.com (qubertman)]]></author>
			<pubDate>Sun, 17 Feb 2008 19:58:04 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109853/#p109853</guid>
		</item>
		<item>
			<title><![CDATA[Re: Extension - extract_elements]]></title>
			<link>https://punbb.informer.com/forums/post/109849/#p109849</link>
			<description><![CDATA[<p>this is how i did it </p><div class="codebox"><pre><code>$form[&#039;new_field&#039;] = $_POST[&#039;form&#039;][&#039;new_field&#039;];</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Gizzmo)]]></author>
			<pubDate>Sun, 17 Feb 2008 19:39:09 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109849/#p109849</guid>
		</item>
	</channel>
</rss>
