<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[PunBB Forums - Полезные моды]]></title>
	<link rel="self" href="http://punbb.informer.com/forums/feed/atom/topic/10233/"/>
	<updated>2006-09-13T15:11:35Z</updated>
	<generator>PunBB</generator>
	<id>http://punbb.informer.com/forums/topic/10233/poleznye-mody/</id>
		<entry>
			<title type="html"><![CDATA[Re: Полезные моды]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/77123/#p77123"/>
			<content type="html"><![CDATA[<p>?? ???????? Private Messaging System 1.2.x 1.2.2 <br />??????? ????????? ? ????????????? ???????? ??????? ? ???? ??????.<br />??? ?????? PunBB 1.2.12<br />? ???????????? ????????? ? ????? ?????, ?? ?? ???? ??????, ??? ????? ????????</p><p>Reputation 2.2.0 ??? ?????????? ??????? ?????????, ??? ?? ?? ???????? ? ??????? ???? 1.2.11<br />???? ??????? ??? PunBB 1.2.12?</p>]]></content>
			<author>
				<name><![CDATA[сoordinator]]></name>
				<uri>http://punbb.informer.com/forums/user/8388/</uri>
			</author>
			<updated>2006-09-13T15:11:35Z</updated>
			<id>http://punbb.informer.com/forums/post/77123/#p77123</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Полезные моды]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/62432/#p62432"/>
			<content type="html"><![CDATA[<p>À åñòü ìîä, êîòîðûé ïîêàçûâàåò, êòî ñåé÷àñ òåìó ïðîñìàòðèâàåò ?</p>]]></content>
			<author>
				<name><![CDATA[Zevs]]></name>
				<uri>http://punbb.informer.com/forums/user/5152/</uri>
			</author>
			<updated>2006-02-15T14:40:12Z</updated>
			<id>http://punbb.informer.com/forums/post/62432/#p62432</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Полезные моды]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/61829/#p61829"/>
			<content type="html"><![CDATA[<p>Image Verification<br />Îäíîçíà÷íî ñòîèò. Èíà÷å ïîÿâèòñÿ íà ôîðóìå äîôèãà þçåðîâ-ñïàìáîòîâ.</p>]]></content>
			<author>
				<name><![CDATA[KCEOH]]></name>
				<uri>http://punbb.informer.com/forums/user/6286/</uri>
			</author>
			<updated>2006-02-06T13:29:45Z</updated>
			<id>http://punbb.informer.com/forums/post/61829/#p61829</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Полезные моды]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/61460/#p61460"/>
			<content type="html"><![CDATA[<p>áóäóò îòçûâû ïî ýòîìó ìîäó? Ñòîèò åãî ñòàâèòü?<br /><strong>Sub Forum Mod 1.0.4</strong><br /><a href="http://www.punres.org/viewtopic.php?id=594">http://www.punres.org/viewtopic.php?id=594</a></p><p>Image Verification-1.0.3 - ñòîèò ëè åãî ñòàâèòü? Îïðàâäàí? ß òàê ïîíèìàþ ýòî ïðè ðåãèñòðàöèè íàäî ÷èñëî ñ êàðòèíêè ïîäòâåðäèòü.</p><p>Êàêîé ìîä ïî âàøåìó ëó÷øå âñåãî äëÿ ãàëåðåè ïîäîéäåò?<br />Òàê æå åñòü ëè ìîä äëÿ ôîòîãðàôèè â ïðîôèëå? Ò.å. áóäåò àâòàð + ôîòî</p>]]></content>
			<author>
				<name><![CDATA[Spy]]></name>
				<uri>http://punbb.informer.com/forums/user/3467/</uri>
			</author>
			<updated>2006-01-31T15:54:42Z</updated>
			<id>http://punbb.informer.com/forums/post/61460/#p61460</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Полезные моды]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/61458/#p61458"/>
			<content type="html"><![CDATA[<p>÷åãî-òî ìíå ýòîò ìîä ïåðåíîñà ïîñòîâ íå ïîíðàâèëñÿ. È ñ ×ÏÓ íå ðàáîòàåò îí ó ìåíÿ.</p>]]></content>
			<author>
				<name><![CDATA[Spy]]></name>
				<uri>http://punbb.informer.com/forums/user/3467/</uri>
			</author>
			<updated>2006-01-31T15:22:15Z</updated>
			<id>http://punbb.informer.com/forums/post/61458/#p61458</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Полезные моды]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/61133/#p61133"/>
			<content type="html"><![CDATA[<p>?? ?? ???? ???? ????????:<br />Line 186, replace : <br />?????????<br />? ?????<br />By :<br />?????????</p><p>?? ??? ??????:<br />?????? ???:<br />?????????<br />?? ???:<br />?????????</p>]]></content>
			<author>
				<name><![CDATA[HitMan]]></name>
				<uri>http://punbb.informer.com/forums/user/3875/</uri>
			</author>
			<updated>2006-01-26T12:48:36Z</updated>
			<id>http://punbb.informer.com/forums/post/61133/#p61133</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Полезные моды]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/61129/#p61129"/>
			<content type="html"><![CDATA[<p>??.</p><p>?????? ?????? ???, ? ??? ???-??? ?? ???????? ??????.<br />?????? ? ???? ????? ???? ??? ????????: Line 314, replace :</p>]]></content>
			<author>
				<name><![CDATA[HitMan]]></name>
				<uri>http://punbb.informer.com/forums/user/3875/</uri>
			</author>
			<updated>2006-01-26T11:55:25Z</updated>
			<id>http://punbb.informer.com/forums/post/61129/#p61129</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Полезные моды]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/61127/#p61127"/>
			<content type="html"><![CDATA[<p>by - ??? ??????.<br />add - ???????? ???? ?</p>]]></content>
			<author>
				<name><![CDATA[Spy]]></name>
				<uri>http://punbb.informer.com/forums/user/3467/</uri>
			</author>
			<updated>2006-01-26T11:49:44Z</updated>
			<id>http://punbb.informer.com/forums/post/61127/#p61127</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Полезные моды]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/61118/#p61118"/>
			<content type="html"><![CDATA[<p>???: ??????? ????????? ?????? (??????? ??? ?.?. ? ?????? ??? ?? ??????????):</p><p>VIEWTOPIC.PHP<br /></p><div class="codebox"><pre><code>Line 186, replace : 
$result = $db-&gt;query(&#039;SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM &#039;.$db-&gt;prefix.&#039;posts AS p INNER JOIN &#039;.$db-&gt;prefix.&#039;users AS u ON u.id=p.poster_id INNER JOIN &#039;.$db-&gt;prefix.&#039;groups AS g ON g.g_id=u.group_id LEFT JOIN &#039;.$db-&gt;prefix.&#039;online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=&#039;.$id.&#039; ORDER BY p.id LIMIT &#039;.$start_from.&#039;,&#039;.$pun_user[&#039;disp_posts&#039;], true) or error(&#039;Unable to fetch post info&#039;, __FILE__, __LINE__, $db-&gt;error());</code></pre></div><p>By : <br /></p><div class="codebox"><pre><code>$result = $db-&gt;query(&#039;SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM &#039;.$db-&gt;prefix.&#039;posts AS p INNER JOIN &#039;.$db-&gt;prefix.&#039;users AS u ON u.id=p.poster_id INNER JOIN &#039;.$db-&gt;prefix.&#039;groups AS g ON g.g_id=u.group_id LEFT JOIN &#039;.$db-&gt;prefix.&#039;online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=&#039;.$id.&#039; ORDER BY p.id LIMIT &#039;.$start_from.&#039;,&#039;.$pun_user[&#039;disp_posts&#039;]) or error(&#039;Unable to fetch post info&#039;, __FILE__, __LINE__, $db-&gt;error());
Line 311, after : 
            $signature = parse_signature($cur_post[&#039;signature&#039;]);
            $signature_cache[$cur_post[&#039;poster_id&#039;]] = $signature;
        }
    }</code></pre></div><p>Add : <br />&nbsp; &nbsp; </p><div class="codebox"><pre><code>$resultb = $db-&gt;query(&#039;SELECT id FROM &#039;.$db-&gt;prefix.&#039;posts WHERE topic_id=&#039;.$id.&#039; ORDER BY posted LIMIT 1&#039;) or error(&#039;Unable to fetch post info&#039;, __FILE__, __LINE__, $db-&gt;error());
    $topic_post_id = $db-&gt;result($resultb);
    $is_topic_post = ($cur_post[&#039;id&#039;] == $topic_post_id) ? true : false;
Line 314, replace : 
    &lt;h2&gt;&lt;span&gt;&lt;span class=&quot;conr&quot;&gt;#&lt;?php echo ($start_from + $post_count) ?&gt; &lt;/span&gt;&lt;a href=&quot;viewtopic.php?pid=&lt;?php echo $cur_post[&#039;id&#039;].&#039;#p&#039;.$cur_post[&#039;id&#039;] ?&gt;&quot;&gt;&lt;?php echo format_time($cur_post[&#039;posted&#039;]) ?&gt;&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;</code></pre></div><p>By : <br />&nbsp; &nbsp; </p><div class="codebox"><pre><code>&lt;h2&gt;&lt;span&gt;&lt;span class=&quot;conr&quot;&gt;#&lt;?php echo ($start_from + $post_count) ?&gt; &lt;/span&gt;&lt;?php if($is_admmod &amp;&amp; !$is_topic_post) : ?&gt;&lt;input type=&quot;checkbox&quot; name=&quot;ps&lt;?php echo $cur_post[&#039;id&#039;] ?&gt;&quot; class=&quot;postselection&quot; /&gt;&lt;?php endif; ?&gt;&lt;a href=&quot;viewtopic.php?pid=&lt;?php echo $cur_post[&#039;id&#039;].&#039;#p&#039;.$cur_post[&#039;id&#039;] ?&gt;&quot;&gt;&lt;?php echo format_time($cur_post[&#039;posted&#039;]) ?&gt;&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;
Line 350, after : 
        &lt;ul&gt;&lt;li&gt;&lt;a href=&quot;index.php&quot;&gt;&lt;?php echo $lang_common[&#039;Index&#039;] ?&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt; » &lt;a href=&quot;viewforum.php?id=&lt;?php echo $cur_topic[&#039;forum_id&#039;] ?&gt;&quot;&gt;&lt;?php echo pun_htmlspecialchars($cur_topic[&#039;forum_name&#039;]) ?&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt; » &lt;?php echo pun_htmlspecialchars($cur_topic[&#039;subject&#039;]) ?&gt;&lt;/li&gt;&lt;/ul&gt;</code></pre></div><p>Add : <br />&nbsp; &nbsp; &nbsp; &nbsp; </p><div class="codebox"><pre><code>&lt;?php if($is_admmod) : ?&gt;
        &lt;p class=&quot;postlink conr&quot; style=&quot;width:50%&quot;&gt;
        &lt;?php echo $lang_topic[&#039;Select label&#039;] ?&gt; :
        &lt;select name=&quot;postselection_action&quot; onchange=&quot;var urlget=&#039;&#039;;var chps=document.getElementsByTagName(&#039;input&#039;);for(var i=0;i&lt;chps.length;++i){if(chps[i].className==&#039;postselection&#039;&amp;&amp;chps[i].checked==true) urlget+=&#039;&amp;p&#039;+chps[i].name.substring(2)} document.location=&#039;moderate.php?fid=&lt;?php echo $cur_topic[&#039;forum_id&#039;] ?&gt;&amp;ptid=&lt;?php echo $id ?&gt;&amp;actionposts=&#039;+this.value+urlget&quot;&gt;
        &lt;optgroup label=&quot;&lt;?php echo $lang_topic[&#039;Select label groupe&#039;] ?&gt;&quot;&gt;
            &lt;option style=&quot;font-style:italic&quot;&gt;&lt;?php echo $lang_topic[&#039;Select Action&#039;] ?&gt;&lt;/option&gt;
            &lt;option value=&quot;move&quot;&gt;&lt;?php echo $lang_topic[&#039;Select Deplacer&#039;] ?&gt;&lt;/option&gt;
            &lt;option value=&quot;delete&quot;&gt;&lt;?php echo $lang_topic[&#039;Select Supprimer&#039;] ?&gt;&lt;/option&gt;
            &lt;option value=&quot;fusion&quot;&gt;&lt;?php echo $lang_topic[&#039;Select Fusionner&#039;] ?&gt;&lt;/option&gt;
        &lt;/optgroup&gt;
        &lt;/select&gt;&lt;/p&gt;
        &lt;?php endif; ?&gt;
MODERATE.PHP
Line 451, after : 
            &lt;p&gt;&lt;input type=&quot;submit&quot; name=&quot;delete_topics_comply&quot; value=&quot;&lt;?php echo $lang_misc[&#039;Delete&#039;] ?&gt;&quot; /&gt;&lt;a href=&quot;javascript:history.go(-1)&quot;&gt;&lt;?php echo $lang_common[&#039;Go back&#039;] ?&gt;&lt;/a&gt;&lt;/p&gt;
        &lt;/form&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;?php

    require PUN_ROOT.&#039;footer.php&#039;;
}</code></pre></div><p>Add : <br /></p><div class="codebox"><pre><code>// Traitement de posts en masse
else if (isset($_GET[&#039;actionposts&#039;]))
{

    // Recuperation et serialization des posts concern?s
    if(!isset($_POST[&#039;confirm&#039;])) {
        foreach($_GET as $key =&gt; $value) {
            if(empty($value))
                $aposts[] = substr($key,1,strlen($key));
        }
        if(!isset($aposts))
            message($lang_misc[&#039;Erreur posts selection&#039;]);
        $posts = serialize($aposts);
    }

    switch($_GET[&#039;actionposts&#039;]) {

        // D?placement de posts
        case &#039;move&#039; :

            if(!isset($_POST[&#039;confirm&#039;])) {

                //confirm_referrer(&#039;viewtopic.php&#039;); // Bug IE
                $page_title = pun_htmlspecialchars($pun_config[&#039;o_board_title&#039;]).&#039; / &#039;.$lang_misc[&#039;Moderate&#039;];
                require PUN_ROOT.&#039;header.php&#039;;

                ?&gt; &lt;div class=&quot;blockform&quot;&gt;
                    &lt;h2&gt;&lt;?php echo $lang_misc[&#039;Deplacer posts&#039;] ?&gt;&lt;/h2&gt;
                    &lt;div class=&quot;box&quot;&gt;
                        &lt;form method=&quot;post&quot; action=&quot;moderate.php?fid=&lt;?php echo $fid ?&gt;&amp;ptid=&lt;?php echo $_GET[&#039;ptid&#039;] ?&gt;&amp;actionposts=move&quot;&gt;
                            &lt;input type=&quot;hidden&quot; name=&quot;posts&quot; value=&quot;&lt;?php echo urlencode($posts) ?&gt;&quot; /&gt;
                            &lt;div class=&quot;inform&quot;&gt;
                                &lt;fieldset&gt;
                                    &lt;legend&gt;&lt;?php echo $lang_misc[&#039;Choisir topic&#039;] ?&gt;&lt;/legend&gt;
                                    &lt;div class=&quot;infldset&quot;&gt;
                                        &lt;p&gt;&lt;?php echo $lang_misc[&#039;Topic destination&#039;] ?&gt;&lt;br /&gt;
                                        &lt;input type=&quot;text&quot; style=&quot;width:50%&quot; name=&quot;postsmoveto&quot; /&gt;&lt;br /&gt;
                                        &lt;br /&gt;
                                        &lt;input type=&quot;checkbox&quot; name=&quot;anterieurs&quot; value=&quot;1&quot; /&gt; &lt;?php echo $lang_misc[&#039;Avertissement date&#039;] ?&gt;&lt;/p&gt;
                                    &lt;/div&gt;
                                &lt;/fieldset&gt;
                            &lt;/div&gt;
                            &lt;p&gt;&lt;input type=&quot;submit&quot; name=&quot;confirm&quot; value=&quot;&lt;?php echo $lang_misc[&#039;Deplacer posts ok&#039;] ?&gt;&quot; /&gt;&lt;a href=&quot;javascript:history.go(-1)&quot;&gt;&lt;?php echo $lang_common[&#039;Go back&#039;] ?&gt;&lt;/a&gt;&lt;/p&gt;
                        &lt;/form&gt;
                    &lt;/div&gt;
                &lt;/div&gt; &lt;?

                require PUN_ROOT.&#039;footer.php&#039;;
                break;

            } else {

                confirm_referrer(&#039;moderate.php&#039;);
                require PUN_ROOT.&#039;include/search_idx.php&#039;;

                // Extraction de l&#039;id du topic de destination
                preg_match(&#039;/id=([0-9]+)/&#039;,$_POST[&#039;postsmoveto&#039;], $postsmoveto);
                if(empty($postsmoveto[1]))
                    message($lang_misc[&#039;Erreur topic destination&#039;]);
                $posts = unserialize(urldecode(stripslashes($_POST[&#039;posts&#039;])));

                $result = $db-&gt;query(&#039;SELECT id FROM &#039;.$db-&gt;prefix.&#039;posts WHERE topic_id=&#039;.$postsmoveto[1].&#039; ORDER BY posted LIMIT 1&#039;);
                $topic_post_id = $db-&gt;result($result);
                for($i=0; $i &lt; count($posts); $i++) {
                    // On r??crit les messages qui sont plus anciens que le topic ou tous si anterieurs a ?t? coch? pour avoir un id r?cent
                    if($posts[$i] &lt; $topic_post_id || isset($_POST[&#039;anterieurs&#039;])) {
                        $post = $db-&gt;fetch_assoc($db-&gt;query(&#039;SELECT * FROM &#039;.$db-&gt;prefix.&#039;posts WHERE id=&#039;.$posts[$i]));
                        $db-&gt;query(&#039;INSERT INTO &#039;.$db-&gt;prefix.&#039;posts(poster,poster_id,poster_ip,poster_email,message,hide_smilies,posted,edited,edited_by,topic_id) VALUES(&quot;&#039;.$post[&#039;poster&#039;].&#039;&quot;, &quot;&#039;.$post[&#039;poster_id&#039;].&#039;&quot;, &quot;&#039;.$post[&#039;poster_ip&#039;].&#039;&quot;, &#039;.(!isset($post[&#039;poster_email&#039;]) ? &#039;NULL&#039; : &#039;&quot;&#039;.$post[&#039;poster_email&#039;].&#039;&quot;&#039;).&#039;, &quot;&#039;.$post[&#039;message&#039;].&#039;&quot;, &quot;&#039;.$post[&#039;hide_smilies&#039;].&#039;&quot;, &quot;&#039;.time().&#039;&quot;, &#039;.(!isset($post[&#039;edited&#039;]) ? &#039;NULL&#039; : &#039;&quot;&#039;.$post[&#039;edited&#039;].&#039;&quot;&#039;).&#039;, &#039;.(!isset($post[&#039;edited_by&#039;]) ? &#039;NULL&#039; : &#039;&quot;&#039;.$post[&#039;edited_by&#039;].&#039;&quot;&#039;).&#039;, &quot;&#039;.$postsmoveto[1].&#039;&quot;)&#039;);
                        // On supprime les doublons qui comportent l&#039;ancienne date
                        delete_post($posts[$i], $_GET[&#039;ptid&#039;]);
                        // On supprime la cl? du topic qui n&#039;est plus ? ?crire
                        unset($posts[$i]);
                    }
                }

                // Si il reste des topic qui sont ? ins?rer avec leur date initiale
                if(!empty($posts))
                    $db-&gt;query(&#039;UPDATE &#039;.$db-&gt;prefix.&#039;posts SET topic_id=&#039;.$postsmoveto[1].&#039; WHERE id=&#039;.implode(&#039; OR id=&#039;,$posts));

                redirect(&#039;viewtopic.php?id=&#039;.$postsmoveto[1], $lang_misc[&#039;Posts deplaces&#039;]);
                break;

            }


        // Supprimer des posts
        case &#039;delete&#039; :

            if(!isset($_POST[&#039;confirm&#039;])) {

                //confirm_referrer(&#039;viewtopic.php&#039;); // Bug IE
                $page_title = pun_htmlspecialchars($pun_config[&#039;o_board_title&#039;]).&#039; / &#039;.$lang_misc[&#039;Moderate&#039;];
                require PUN_ROOT.&#039;header.php&#039;;

                ?&gt; &lt;div class=&quot;blockform&quot;&gt;
                    &lt;h2&gt;&lt;?php echo $lang_misc[&#039;Supprimer posts&#039;] ?&gt;&lt;/h2&gt;
                    &lt;div class=&quot;box&quot;&gt;
                        &lt;form method=&quot;post&quot; action=&quot;moderate.php?fid=&lt;?php echo $fid ?&gt;&amp;ptid=&lt;?php echo $_GET[&#039;ptid&#039;] ?&gt;&amp;actionposts=delete&quot;&gt;
                            &lt;input type=&quot;hidden&quot; name=&quot;posts&quot; value=&quot;&lt;?php echo urlencode($posts) ?&gt;&quot; /&gt;
                            &lt;div class=&quot;inform&quot;&gt;
                                &lt;fieldset&gt;
                                    &lt;legend&gt;&lt;?php echo $lang_misc[&#039;Confirmer&#039;] ?&gt;&lt;/legend&gt;
                                    &lt;div class=&quot;infldset&quot;&gt;
                                        &lt;p&gt;&lt;?php echo $lang_misc[&#039;Confirmer suppression&#039;] ?&gt;&lt;br /&gt;
                                    &lt;/div&gt;
                                &lt;/fieldset&gt;
                            &lt;/div&gt;
                            &lt;p&gt;&lt;input type=&quot;submit&quot; name=&quot;confirm&quot; value=&quot;&lt;?php echo $lang_misc[&#039;Supprimer posts ok&#039;] ?&gt;&quot; /&gt;&lt;a href=&quot;javascript:history.go(-1)&quot;&gt;&lt;?php echo $lang_common[&#039;Go back&#039;] ?&gt;&lt;/a&gt;&lt;/p&gt;
                        &lt;/form&gt;
                    &lt;/div&gt;
                &lt;/div&gt; &lt;?

                require PUN_ROOT.&#039;footer.php&#039;;
                break;

            } else {

                confirm_referrer(&#039;moderate.php&#039;);
                require PUN_ROOT.&#039;include/search_idx.php&#039;;

                $posts = unserialize(urldecode(stripslashes($_POST[&#039;posts&#039;])));

                // On v?rifie que le post initial du topic ne fait pas partie de la s?lection
                $result = $db-&gt;query(&#039;SELECT id FROM &#039;.$db-&gt;prefix.&#039;posts WHERE topic_id=&#039;.$_GET[&#039;ptid&#039;].&#039; ORDER BY posted LIMIT 1&#039;);
                $topic_post_id = $db-&gt;result($result);
                if(isset($posts[$topic_post_id]))
                    unset($posts[$topic_post_id]);

                // On supprime les topics concern?s
                foreach($posts AS $post)
                    delete_post($post, $_GET[&#039;ptid&#039;]);

                redirect(&#039;viewtopic.php?id=&#039;.$_GET[&#039;ptid&#039;], $lang_misc[&#039;Posts supprimes&#039;]);
                break;

            }


        // Fusionner des posts
        case &#039;fusion&#039; :

            if(!isset($_POST[&#039;confirm&#039;])) {

                //confirm_referrer(&#039;viewtopic.php&#039;); // Bug IE
                $page_title = pun_htmlspecialchars($pun_config[&#039;o_board_title&#039;]).&#039; / &#039;.$lang_misc[&#039;Moderate&#039;];
                require PUN_ROOT.&#039;header.php&#039;;

                ?&gt; &lt;div class=&quot;blockform&quot;&gt;
                    &lt;h2&gt;&lt;?php echo $lang_misc[&#039;Fusionner posts&#039;] ?&gt;&lt;/h2&gt;
                    &lt;div class=&quot;box&quot;&gt;
                        &lt;form method=&quot;post&quot; action=&quot;moderate.php?fid=&lt;?php echo $fid ?&gt;&amp;ptid=&lt;?php echo $_GET[&#039;ptid&#039;] ?&gt;&amp;actionposts=fusion&quot;&gt;
                            &lt;input type=&quot;hidden&quot; name=&quot;posts&quot; value=&quot;&lt;?php echo urlencode($posts) ?&gt;&quot; /&gt;
                            &lt;div class=&quot;inform&quot;&gt;
                                &lt;fieldset&gt;
                                    &lt;legend&gt;&lt;?php echo $lang_misc[&#039;Confirmer&#039;] ?&gt;&lt;/legend&gt;
                                    &lt;div class=&quot;infldset&quot;&gt;
                                        &lt;p&gt;&lt;?php echo $lang_misc[&#039;Separer fusion&#039;] ?&gt;&lt;br /&gt;
                                        &lt;textarea name=&quot;fusion_sep&quot;&gt;&lt;/textarea&gt;&lt;br /&gt;
                                        &lt;br /&gt;
                                        &lt;?php echo $lang_misc[&#039;Avertissement fusion&#039;] ?&gt;
                                    &lt;/div&gt;
                                &lt;/fieldset&gt;
                            &lt;/div&gt;
                            &lt;p&gt;&lt;input type=&quot;submit&quot; name=&quot;confirm&quot; value=&quot;&lt;?php echo $lang_misc[&#039;Fusionner posts ok&#039;] ?&gt;&quot; /&gt;&lt;a href=&quot;javascript:history.go(-1)&quot;&gt;&lt;?php echo $lang_common[&#039;Go back&#039;] ?&gt;&lt;/a&gt;&lt;/p&gt;
                        &lt;/form&gt;
                    &lt;/div&gt;
                &lt;/div&gt; &lt;?

                require PUN_ROOT.&#039;footer.php&#039;;
                break;

            } else {

                confirm_referrer(&#039;moderate.php&#039;);
                require PUN_ROOT.&#039;include/search_idx.php&#039;;

                $posts = unserialize(urldecode(stripslashes($_POST[&#039;posts&#039;])));
                sort($posts);
                reset($posts);

                // On r?cup?re et on concat?ne les diff?rents messages
                $message_add = &#039;&#039;;
                for($i=0; $i &lt; count($posts); $i++)
                    $message_add .= $db-&gt;result($db-&gt;query(&#039;SELECT message FROM &#039;.$db-&gt;prefix.&#039;posts WHERE id=&#039;.$posts[$i])).$_POST[&#039;fusion_sep&#039;];

                // On ?crit la concat?nation ? la place du message du plus ancien post
                $db-&gt;query(&#039;UPDATE &#039;.$db-&gt;prefix.&#039;posts SET message=&quot;&#039;.$message_add.&#039;&quot; WHERE id=&#039;.$posts[0]);

                // On supprime tous les messages sauf le plus ancien
                unset($posts[0]);
                foreach($posts AS $post)
                    delete_post($post, $_GET[&#039;ptid&#039;]);

                redirect(&#039;viewtopic.php?id=&#039;.$_GET[&#039;ptid&#039;], $lang_misc[&#039;Posts fusionnes&#039;]);
                break;

            }


        // Destination par d?faut - Erreur
        default :
            message($lang_misc[&#039;Erreur action&#039;]);

    }
}
LANG/ENGLISH/MISC.PHP
At the end, replace : 
);</code></pre></div><p>By : <br /></p><div class="codebox"><pre><code>,
// Mass post management
&#039;Erreur action&#039;            =&gt;    &#039;Error: The wished action isn\&#039;t available&#039;,
&#039;Erreur posts selection&#039;    =&gt;    &#039;Error: You haven&#039;t select any post&#039;,
&#039;Deplacer posts&#039;        =&gt;    &#039;Move posts&#039;,
&#039;Choisir topic&#039;            =&gt;    &#039;Choose the destination topic&#039;,
&#039;Topic destination&#039;        =&gt;    &#039;Destination topic URL&#039;,
&#039;Avertissement date&#039;        =&gt;    &#039;Apply the current date to display the posts at the bottom (in the contrary case, the order of publication will be respected)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Caution&lt;/strong&gt;, the oldest posts than the topic destination will be automatically placed at the end of this one.&#039;,
&#039;Deplacer posts ok&#039;        =&gt;    &#039;Move&#039;,
&#039;Erreur topic destination&#039;    =&gt;    &#039;Error: The destination topic URL isn&#039;t valid&#039;,
&#039;Posts deplaces&#039;        =&gt;    &#039;The posts were indeed moved&#039;,
&#039;Supprimer posts&#039;        =&gt;    &#039;Delete posts&#039;,
&#039;Confirmer&#039;            =&gt;    &#039;Confirm&#039;,
&#039;Confirmer suppression&#039;        =&gt;    &#039;Confirm to delete the selected posts ?&#039;,
&#039;Supprimer posts ok&#039;        =&gt;    &#039;Delete&#039;,
&#039;Posts supprimes&#039;        =&gt;    &#039;The posts were indeed deleted&#039;,
&#039;Fusionner posts&#039;        =&gt;    &#039;Amalgamate posts&#039;,
&#039;Separer fusion&#039;        =&gt;    &#039;Separate the posts by&#039;,
&#039;Avertissement fusion&#039;        =&gt;    &#039;&lt;strong&gt;Note :&lt;/strong&gt; The finally post will have the most older post informormations.&#039;,
&#039;Fusionner posts ok&#039;        =&gt;    &#039;Amalgamate&#039;,
&#039;Posts fusionnes&#039;        =&gt;    &#039;The posts were indeed amalgamated&#039;
);
LANG/ENGLISH/TOPIC.PHP
At the end, replace : 
);</code></pre></div><p>By : <br /></p><div class="codebox"><pre><code>,
&#039;Select label&#039;            =&gt;    &#039;For the selection&#039;,
&#039;Select label groupe&#039;        =&gt;    &#039;Selection management&#039;,
&#039;Select Action&#039;            =&gt;    &#039;Action&#039;,
&#039;Select Deplacer&#039;        =&gt;    &#039;Move posts&#039;,
&#039;Select Supprimer&#039;        =&gt;    &#039;Delete posts&#039;,
&#039;Select Fusionner&#039;        =&gt;    &#039;Amalgamate posts&#039;
);</code></pre></div><p>STYLE/IMPORTS/BASE.CSS<br /></p><div class="codebox"><pre><code>At the end, add : 
INPUT.postselection {
    MARGIN-TOP: -5px;
    MARGIN-RIGHT: 5px
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[HitMan]]></name>
				<uri>http://punbb.informer.com/forums/user/3875/</uri>
			</author>
			<updated>2006-01-26T10:38:06Z</updated>
			<id>http://punbb.informer.com/forums/post/61118/#p61118</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Полезные моды]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/61081/#p61081"/>
			<content type="html"><![CDATA[<p>??? ?? ??? ???? ??? ?? ???????? <img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>?????? ? ?????? ?????? ????. ? ??? ?????? ???? ? ????????? ???-?? ???? ?????:</p><p>PunBB Topic Preview</p><p>????? ? ???? ? zip ?????? ???:<br />punbb_mod_topic_preview_1_1.zip</p>]]></content>
			<author>
				<name><![CDATA[HitMan]]></name>
				<uri>http://punbb.informer.com/forums/user/3875/</uri>
			</author>
			<updated>2006-01-25T20:11:15Z</updated>
			<id>http://punbb.informer.com/forums/post/61081/#p61081</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Полезные моды]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/61077/#p61077"/>
			<content type="html"><![CDATA[<p><img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /> ? Punres ?????? ?????? ?? ?????</p>]]></content>
			<author>
				<name><![CDATA[Spy]]></name>
				<uri>http://punbb.informer.com/forums/user/3467/</uri>
			</author>
			<updated>2006-01-25T19:28:22Z</updated>
			<id>http://punbb.informer.com/forums/post/61077/#p61077</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Полезные моды]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/61073/#p61073"/>
			<content type="html"><![CDATA[<p>????.<br />??? ???????? ????? ???? ????: viewforum.php ? ???? ??????.<br />? ??? ?????????? ? ???. <img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[HitMan]]></name>
				<uri>http://punbb.informer.com/forums/user/3875/</uri>
			</author>
			<updated>2006-01-25T19:07:44Z</updated>
			<id>http://punbb.informer.com/forums/post/61073/#p61073</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Полезные моды]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/61068/#p61068"/>
			<content type="html"><![CDATA[<p>? ???./????. ?????? ?????? ???? ????? ?? ????? ???????? - ??? ?? ????? ?????? ???, ? ????? ????? ????????, ?? ???? ?????? ?????? ?????.</p>]]></content>
			<author>
				<name><![CDATA[Spy]]></name>
				<uri>http://punbb.informer.com/forums/user/3467/</uri>
			</author>
			<updated>2006-01-25T18:11:31Z</updated>
			<id>http://punbb.informer.com/forums/post/61068/#p61068</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Полезные моды]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/61059/#p61059"/>
			<content type="html"><![CDATA[<p>?? ??????? ?????? ???????? ??????????? ????? ?????????. ?? ??? ?? 5-10 Kb<br />?? ??? ????? ???????????? ??????????? ????????? ??????. ????? ????? ???????????? ??? ????????. ???????? ???: ?????? ? ????????? ???? ?????, ??? ?????? ????????? ??? ?????? ??????. ?????????????? ???? ?? ??????? ????? ???????? ?????????????.<br />?? ?? ?????.<br />?????? ??? ??????? ??? ?? ??? ???????? ??? ? ????? ??? ? ? ?????? ? ?????????????? ? IE ????.</p>]]></content>
			<author>
				<name><![CDATA[HitMan]]></name>
				<uri>http://punbb.informer.com/forums/user/3875/</uri>
			</author>
			<updated>2006-01-25T16:04:53Z</updated>
			<id>http://punbb.informer.com/forums/post/61059/#p61059</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Полезные моды]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/61057/#p61057"/>
			<content type="html"><![CDATA[<p>? ??? ????? ???/???? ?<br />?????? ???????? ?????</p>]]></content>
			<author>
				<name><![CDATA[Spy]]></name>
				<uri>http://punbb.informer.com/forums/user/3467/</uri>
			</author>
			<updated>2006-01-25T15:42:22Z</updated>
			<id>http://punbb.informer.com/forums/post/61057/#p61057</id>
		</entry>
</feed>
