<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Some modifications for online consultation]]></title>
		<link>https://punbb.informer.com/forums/topic/22038/some-modifications-for-online-consultation/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/22038/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Some modifications for online consultation.]]></description>
		<lastBuildDate>Wed, 09 Sep 2009 06:35:42 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Some modifications for online consultation]]></title>
			<link>https://punbb.informer.com/forums/post/130468/#p130468</link>
			<description><![CDATA[<p>Here is the short plan of extension.<br /><strong>Installation.</strong><br />You should add new column to the table &quot;forums&quot;. The code will look like:<br /></p><div class="codebox"><pre><code>&lt;install&gt;&lt;![CDATA[
     $forum_db-&gt;add_field(&#039;forums&#039;, &#039;consult_url&#039;, &#039;VARCHAR(200)&#039;, true);
]]&gt;&lt;/install&gt;</code></pre></div><p><strong>Viewforum page.</strong><br />You need to get consult_url of forum. The best place to do it - hook &quot;vf_qr_get_forum_info&quot;. The code of extensions will look like:<br /></p><div class="codebox"><pre><code>        
&lt;hook id=&quot;vt_qr_get_topic_info&quot;&gt;&lt;![CDATA[
      $query[&#039;SELECT&#039;] .= &#039;, f.consult_url&#039;;
]]&gt;&lt;/hook&gt;</code></pre></div><p>The consult_url stored in $cur_forum[&#039;consult_url&#039;] now.<br />For output link you can use hook &quot;vf_pre_topic_loop_start&quot;.<br /><strong>Forums page.</strong> Study out the code of &quot;&lt;FORUM_ROOT&gt;/admin/forums.php&quot; (lines 251-400). You can find here how to update forums parameters. If you have some questions, we will help you <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Slavok)]]></author>
			<pubDate>Wed, 09 Sep 2009 06:35:42 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/130468/#p130468</guid>
		</item>
		<item>
			<title><![CDATA[Re: Some modifications for online consultation]]></title>
			<link>https://punbb.informer.com/forums/post/130444/#p130444</link>
			<description><![CDATA[<p>Any thoughts?&nbsp; I didn&#039;t think this would be a complicated extension.</p>]]></description>
			<author><![CDATA[null@example.com (melat0nin)]]></author>
			<pubDate>Tue, 08 Sep 2009 14:59:37 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/130444/#p130444</guid>
		</item>
		<item>
			<title><![CDATA[Re: Some modifications for online consultation]]></title>
			<link>https://punbb.informer.com/forums/post/130208/#p130208</link>
			<description><![CDATA[<p>Bump</p><p>Any ideas?&nbsp; I think the first issue is easy - just templating. But how about the second?&nbsp; Should be pretty simple for an extension - it&#039;s just adding a database field to each forum to contain a URL, which is displayed below the forum as a link.</p>]]></description>
			<author><![CDATA[null@example.com (melat0nin)]]></author>
			<pubDate>Fri, 04 Sep 2009 10:06:28 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/130208/#p130208</guid>
		</item>
		<item>
			<title><![CDATA[Re: Some modifications for online consultation]]></title>
			<link>https://punbb.informer.com/forums/post/129813/#p129813</link>
			<description><![CDATA[<div class="quotebox"><cite>KeyDog wrote:</cite><blockquote><p>RE 1.</p><p>Pretty good idea; you want <br />&#039;forum_desc&#039;&nbsp; taken out of <br />index.php&nbsp; lines after&nbsp; // Setup the forum description and mod list<br />then add it to<br />viewforum.php&nbsp; &nbsp;maybe near // Setup main header</p><p>Would be a neat ext.</p></blockquote></div><p>Excellent, I will give it a try.&nbsp; </p><p>How about the second one?&nbsp; I&#039;m guessing all that&#039;s needed is to assign a variable, say $ext_url to the forum&#039;s attributes, then spit this out in a link in the template, something like this:</p><div class="codebox"><pre><code>&lt;a href=&quot;&lt;?php echo $ext_url; ?&gt;&quot;&gt;Click here to complete the survey&lt;/a&gt;</code></pre></div><p><em>Adding</em> to the software&#039;s core is a bit harder than just shuffling about template elements tho <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 (melat0nin)]]></author>
			<pubDate>Fri, 21 Aug 2009 07:54:42 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/129813/#p129813</guid>
		</item>
		<item>
			<title><![CDATA[Re: Some modifications for online consultation]]></title>
			<link>https://punbb.informer.com/forums/post/129784/#p129784</link>
			<description><![CDATA[<p>RE 1.</p><p>Pretty good idea; you want <br />&#039;forum_desc&#039;&nbsp; taken out of <br />index.php&nbsp; lines after&nbsp; // Setup the forum description and mod list<br />then add it to<br />viewforum.php&nbsp; &nbsp;maybe near // Setup main header</p><p>Would be a neat ext.</p>]]></description>
			<author><![CDATA[null@example.com (KeyDog)]]></author>
			<pubDate>Thu, 20 Aug 2009 21:31:48 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/129784/#p129784</guid>
		</item>
		<item>
			<title><![CDATA[Some modifications for online consultation]]></title>
			<link>https://punbb.informer.com/forums/post/129781/#p129781</link>
			<description><![CDATA[<p>Hello all</p><p>There are a couple of simple features I&#039;d like to modify PunBB to achieve.&nbsp; They are pretty simple so I&#039;m not sure a full-blown extension is required, which is why I&#039;m posting here.&nbsp; Anyway, here they are:</p><p>1.&nbsp; Display the forum description on the forum page.&nbsp; This is to allow an introductory paragraph above the topics.&nbsp; Pretty simple, I&#039;m sure.&nbsp; I&#039;d like to remove the description from the category (home) page, because the descriptions will be pretty long in my forum, and place them instead above the table of topics on the forum page.</p><p>2.&nbsp; Allow each forum to have a link set, which will appear below the table of topics.&nbsp; In other words, in the Edit screen of a forum, have a field at the bottom where the administrator can paste in a URL, which will appear as a link below the topics.&nbsp; The URL will link to a PDF survey, or an online survey, or whatever.</p><p>...the idea being that the category page lists the various consultations (&#039;forums&#039;), the forum page has a long description of the project that is being consulted on, users can discuss their ideas and forum their opinions, then they can click the link at the bottom of the project (&#039;forum&#039;) page to go to the consultation itself (either in the forum of a document they fill out and email in, or an online survey, or whatever).</p><p>I imagine the first one is pretty simple, because it should just involve placing the template element which displays the description on the forum page instead of the category page.&nbsp; The second one, I&#039;m not so sure about.&nbsp; I don&#039;t know how easy it would be to add an extra field to a forum&#039;s properties.</p><p>Any help or suggestions would be much appreciated!</p><p>-melat0nin</p>]]></description>
			<author><![CDATA[null@example.com (melat0nin)]]></author>
			<pubDate>Thu, 20 Aug 2009 20:25:01 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/129781/#p129781</guid>
		</item>
	</channel>
</rss>
