<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[PunBB Forums - [SEO_mod for PunBB] Meta Keyword and meta description for each post]]></title>
	<link rel="self" href="http://punbb.informer.com/forums/feed/atom/topic/17181/"/>
	<updated>2009-02-16T14:15:04Z</updated>
	<generator>PunBB</generator>
	<id>http://punbb.informer.com/forums/topic/17181/seomod-for-punbb-meta-keyword-and-meta-description-for-each-post/</id>
		<entry>
			<title type="html"><![CDATA[Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/124702/#p124702"/>
			<content type="html"><![CDATA[<p>translate from french <img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /> for punbb 1.2.20</p><p><a href="http://www.punbb.fr/forums/viewtopic.php?pid=72222">http://www.punbb.fr/forums/viewtopic.php?pid=72222</a></p>]]></content>
			<author>
				<name><![CDATA[gorsan]]></name>
				<uri>http://punbb.informer.com/forums/user/13930/</uri>
			</author>
			<updated>2009-02-16T14:15:04Z</updated>
			<id>http://punbb.informer.com/forums/post/124702/#p124702</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/119008/#p119008"/>
			<content type="html"><![CDATA[<p>there is a topic on punbb fr that solves this just search on google</p>]]></content>
			<author>
				<name><![CDATA[gorsan]]></name>
				<uri>http://punbb.informer.com/forums/user/13930/</uri>
			</author>
			<updated>2008-11-09T01:03:21Z</updated>
			<id>http://punbb.informer.com/forums/post/119008/#p119008</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/117987/#p117987"/>
			<content type="html"><![CDATA[<p>looking for a hero to make this hack work in punBB 1.2.20&nbsp; <img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />it does not work for latest versions. Can someone write a tutorial again <br />in my opinion everyone using 1.2 needs this<br />and there is no other seo hack like this one</p>]]></content>
			<author>
				<name><![CDATA[gorsan]]></name>
				<uri>http://punbb.informer.com/forums/user/13930/</uri>
			</author>
			<updated>2008-10-06T11:40:02Z</updated>
			<id>http://punbb.informer.com/forums/post/117987/#p117987</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/102639/#p102639"/>
			<content type="html"><![CDATA[<p>ahhh... i am not picturing the viewtopic.php very clearly now. But are you sure you can move the template catch code to the end of the script?</p><p>Fantasma: Sorry i took so long to repply, i forgot about this thread.<br />I would do this some other time, but at this time i cant afford to put time on small code project. I would do it for a some money, but to be honest i feel kind of heavy conscience charging for a plugin to something that is kindly available for free.<br />But, more important than that there is another problem.<br />This module would require code hacking and database hacking, which basically means that you would have to manually make all the painfull changes when you update your forum. And it would all probably be useless when punbb 1.3 comes.</p><p>version 1.3 will have hooks and the plugins will be stored in the database. That will be the perfect conditions for the development of a mod like this.</p><p>If you can wait until 1.3 I think this mod should not take so long to pop up. Probably coded by me... i dunno.</p>]]></content>
			<author>
				<name><![CDATA[pedrotuga]]></name>
				<uri>http://punbb.informer.com/forums/user/7146/</uri>
			</author>
			<updated>2007-10-27T01:39:15Z</updated>
			<id>http://punbb.informer.com/forums/post/102639/#p102639</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/102408/#p102408"/>
			<content type="html"><![CDATA[<p>This mod doesn&#039;t work&nbsp; with 1.2.15 because of the following change:<br /></p><div class="quotebox"><blockquote><p>* Moved template tag replacement of pun_include to the top of all replacements to prevent exploitation via XSS vulnerabilities. On top of this, all included files must have one of the file extensions .php, .php4, .php5, .inc, .html, .htm or .txt.</p></blockquote></div><p>So, if you want to use this mod you could undo this change by cutting the following code</p><div class="codebox"><pre><code>// START SUBST - &lt;pun_include &quot;*&quot;&gt;
while (preg_match(&#039;#&lt;pun_include &quot;([^/\\\\]*?)\.(php[45]?|inc|html?|txt)&quot;&gt;#&#039;, $tpl_main, $cur_include))
{
    if (!file_exists(PUN_ROOT.&#039;include/user/&#039;.$cur_include[1].&#039;.&#039;.$cur_include[2]))
        error(&#039;Unable to process user include &#039;.htmlspecialchars($cur_include[0]).&#039; from template main.tpl. There is no such file in folder /include/user/&#039;);

    ob_start();
    include PUN_ROOT.&#039;include/user/&#039;.$cur_include[1].&#039;.&#039;.$cur_include[2];
    $tpl_temp = ob_get_contents();
    $tpl_main = str_replace($cur_include[0], $tpl_temp, $tpl_main);
    ob_end_clean();
}
// END SUBST - &lt;pun_include &quot;*&quot;&gt;</code></pre></div><p>from header.php</p><p>and pasting it into footer.php before</p><div class="codebox"><pre><code>// Close the db connection (and free up any result data)
$db-&gt;close();</code></pre></div><p>But since this may cause a security issue I would appreciate advice on how to insert</p><div class="codebox"><pre><code>if($post_count == 1) $description = $cur_post[&#039;message&#039;];</code></pre></div><p>in viewtopic.php so that $description is available when template tag replacement of pun_include is made.</p><p>Any ideas?</p>]]></content>
			<author>
				<name><![CDATA[maxcaban]]></name>
				<uri>http://punbb.informer.com/forums/user/11654/</uri>
			</author>
			<updated>2007-10-23T11:10:36Z</updated>
			<id>http://punbb.informer.com/forums/post/102408/#p102408</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/101980/#p101980"/>
			<content type="html"><![CDATA[<p>yes i need this cand you do it?</p>]]></content>
			<author>
				<name><![CDATA[fantasma]]></name>
				<uri>http://punbb.informer.com/forums/user/5116/</uri>
			</author>
			<updated>2007-10-15T16:10:20Z</updated>
			<id>http://punbb.informer.com/forums/post/101980/#p101980</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/101965/#p101965"/>
			<content type="html"><![CDATA[<p>that would require database hacking.<br />Now you are talking about something that can actually pull your site up in search engines.<br />But not by itself. You would need something like a tag cloud and modrewrite to take some advantage of those manually inserted meta tags.</p>]]></content>
			<author>
				<name><![CDATA[pedrotuga]]></name>
				<uri>http://punbb.informer.com/forums/user/7146/</uri>
			</author>
			<updated>2007-10-15T12:46:33Z</updated>
			<id>http://punbb.informer.com/forums/post/101965/#p101965</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/101818/#p101818"/>
			<content type="html"><![CDATA[<p>this mod will be do!!! help</p>]]></content>
			<author>
				<name><![CDATA[fantasma]]></name>
				<uri>http://punbb.informer.com/forums/user/5116/</uri>
			</author>
			<updated>2007-10-12T15:27:55Z</updated>
			<id>http://punbb.informer.com/forums/post/101818/#p101818</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/101813/#p101813"/>
			<content type="html"><![CDATA[<p>Nice mod this one - Subscribed for developments</p>]]></content>
			<author>
				<name><![CDATA[Abercrombie]]></name>
				<uri>http://punbb.informer.com/forums/user/11572/</uri>
			</author>
			<updated>2007-10-12T14:23:13Z</updated>
			<id>http://punbb.informer.com/forums/post/101813/#p101813</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/101684/#p101684"/>
			<content type="html"><![CDATA[<p>i not have html allow</p>]]></content>
			<author>
				<name><![CDATA[fantasma]]></name>
				<uri>http://punbb.informer.com/forums/user/5116/</uri>
			</author>
			<updated>2007-10-10T14:13:21Z</updated>
			<id>http://punbb.informer.com/forums/post/101684/#p101684</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/101683/#p101683"/>
			<content type="html"><![CDATA[<p>Do you have the allow_html mod ?<br />There should be no html code, the variable $description that we get from viewtopic with if($post_count == 1) $description = $cur_post[&#039;message&#039;]; contains BBcode that is removed in meta.php by the function parser_del_bbcode(). if you have html tags in your description that means they were in $cur_post[&#039;message&#039;] which is not possible for a standard punBB.</p>]]></content>
			<author>
				<name><![CDATA[yemgi]]></name>
				<uri>http://punbb.informer.com/forums/user/10135/</uri>
			</author>
			<updated>2007-10-10T13:32:23Z</updated>
			<id>http://punbb.informer.com/forums/post/101683/#p101683</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/101682/#p101682"/>
			<content type="html"><![CDATA[<p>this mod not work with the version 1.2.15</p>]]></content>
			<author>
				<name><![CDATA[fantasma]]></name>
				<uri>http://punbb.informer.com/forums/user/5116/</uri>
			</author>
			<updated>2007-10-10T11:46:50Z</updated>
			<id>http://punbb.informer.com/forums/post/101682/#p101682</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/101681/#p101681"/>
			<content type="html"><![CDATA[<p>no more ideas??</p>]]></content>
			<author>
				<name><![CDATA[fantasma]]></name>
				<uri>http://punbb.informer.com/forums/user/5116/</uri>
			</author>
			<updated>2007-10-10T11:40:56Z</updated>
			<id>http://punbb.informer.com/forums/post/101681/#p101681</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/101581/#p101581"/>
			<content type="html"><![CDATA[<p>Hello guys!!!</p><p>bumb this discussion!!!!</p>]]></content>
			<author>
				<name><![CDATA[fantasma]]></name>
				<uri>http://punbb.informer.com/forums/user/5116/</uri>
			</author>
			<updated>2007-10-08T13:34:36Z</updated>
			<id>http://punbb.informer.com/forums/post/101581/#p101581</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/101562/#p101562"/>
			<content type="html"><![CDATA[<p>hello</p><p>yes yemgi&nbsp; i done the modifications in viewtopic.php </p><p>but i think may be there is Conflict with another mods</p>]]></content>
			<author>
				<name><![CDATA[basell]]></name>
				<uri>http://punbb.informer.com/forums/user/11547/</uri>
			</author>
			<updated>2007-10-07T13:51:06Z</updated>
			<id>http://punbb.informer.com/forums/post/101562/#p101562</id>
		</entry>
</feed>
