<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="2.0">
<channel>
	<title>SOS Invision - Tutoriais: Modificações</title>
	<link><![CDATA[http://forum.sosinvision.com.br/index.php?app=tutorials&cat=29]]></link>
	<pubDate>Sun, 01 Aug 2010 05:58:19 +0000</pubDate>
	<ttl>1800</ttl>
	<description>Tutoriais de modificações dos arquivos fonte do IP.Board</description>
	<item>
		<title><![CDATA[[3.1.2] Adicionando "Menu de Acesso Rápido" no ACP]]></title>
		<link><![CDATA[http://forum.sosinvision.com.br/index.php?app=tutorials&article=2152]]></link>
		<description><![CDATA[No ACP o do 3.1.2 não vem menu de "Acesso Rápido" que tinha no ACP das versões anteriores.<br />
Para quem não sabe qual é o menu, é este:<br />
<br />
<img src='http://forum.sosinvision.com.br/uploads/images/SOS-1279732326-U5271.png' alt='Imagem' class='bbc_img' /><br />
<br />
Para por ele devolta no 3.1.2 faça o processo abaixo:<br />
<br />
Abra o arquivo <strong class='bbc'>cp_skin_mycp.php</strong> na pasta <strong class='bbc'>admin/applications/core/skin_cp</strong>, após localize:<br />
<br />
<pre class='prettyprint'>&lt;div id='dashboard'&gt;</pre><br />
<br />
Adicione abaixo:<br />
<br />
<pre class='prettyprint'>&lt;div id='quick_start'&gt;	
		&lt;table width='100%' cellpadding='0' cellspacing='0'&gt;
			&lt;tr&gt;
				&lt;td&gt;
					&lt;a href='{$this-&gt;settings&#91;'_base_url'&#93;}app=members&amp;module=members&amp;section=members' title='{$this-&gt;lang-&gt;words&#91;'cp_managemembers'&#93;}'&gt;&lt;img src='{$this-&gt;settings&#91;'skin_acp_url'&#93;}/_newimages/icons/user_edit.png' alt='{$this-&gt;lang-&gt;words&#91;'cp_managemembers'&#93;}' /&gt; {$this-&gt;lang-&gt;words&#91;'cp_managemembers'&#93;}&lt;/a&gt;
				&lt;/td&gt;
				&lt;td&gt;
					&lt;a href='{$this-&gt;settings&#91;'_base_url'&#93;}app=core&amp;module=tools&amp;section=settings&amp;do=settingsview' title='{$this-&gt;lang-&gt;words&#91;'cp_editsettings'&#93;}'&gt;&lt;img src='{$this-&gt;settings&#91;'skin_acp_url'&#93;}/_newimages/icons/cog_edit.png' alt='{$this-&gt;lang-&gt;words&#91;'cp_editsettings'&#93;}' /&gt; {$this-&gt;lang-&gt;words&#91;'cp_editsettings'&#93;}&lt;/a&gt;
				&lt;/td&gt;
				&lt;td&gt;
					&lt;a href='{$this-&gt;settings&#91;'_base_url'&#93;}app=core&amp;module=templates&amp;section=skinsets' title='{$this-&gt;lang-&gt;words&#91;'cp_skinmanager'&#93;}'&gt;&lt;img src='{$this-&gt;settings&#91;'skin_acp_url'&#93;}/_newimages/icons/folder_palette.png' alt='{$this-&gt;lang-&gt;words&#91;'cp_skinmanager'&#93;}' /&gt; {$this-&gt;lang-&gt;words&#91;'cp_skinmanager'&#93;}&lt;/a&gt;
				&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
				&lt;td&gt;
					&lt;a href='{$this-&gt;settings&#91;'_base_url'&#93;}app=members&amp;module=groups&amp;section=groups&amp;do=groups_overview' title='{$this-&gt;lang-&gt;words&#91;'cp_managegroups'&#93;}'&gt;&lt;img src='{$this-&gt;settings&#91;'skin_acp_url'&#93;}/_newimages/icons/group.png' alt='{$this-&gt;lang-&gt;words&#91;'cp_managegroups'&#93;}' /&gt; {$this-&gt;lang-&gt;words&#91;'cp_managegroups'&#93;}&lt;/a&gt;
				&lt;/td&gt;
				&lt;td&gt;
					&lt;a href='{$this-&gt;settings&#91;'_base_url'&#93;}app=members&amp;module=members&amp;section=tools&amp;do=validating' title='{$this-&gt;lang-&gt;words&#91;'cp_managevalidating'&#93;}'&gt;&lt;img src='{$this-&gt;settings&#91;'skin_acp_url'&#93;}/_newimages/icons/user_warn.png' alt='{$this-&gt;lang-&gt;words&#91;'cp_managevalidating'&#93;}' /&gt; {$this-&gt;lang-&gt;words&#91;'cp_managevalidating'&#93;}&lt;/a&gt;
				&lt;/td&gt;
				&lt;td&gt;
					&lt;a href='{$this-&gt;settings&#91;'_base_url'&#93;}app=core&amp;module=languages&amp;section=manage_languages' title='{$this-&gt;lang-&gt;words&#91;'cp_langmanager'&#93;}'&gt;&lt;img src='{$this-&gt;settings&#91;'skin_acp_url'&#93;}/_newimages/icons/book_next.png' alt='{$this-&gt;lang-&gt;words&#91;'cp_langmanager'&#93;}' /&gt; {$this-&gt;lang-&gt;words&#91;'cp_langmanager'&#93;}&lt;/a&gt;
				&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
				&lt;td&gt;
					&lt;a href='{$this-&gt;settings&#91;'_base_url'&#93;}app=forums&amp;module=forums&amp;section=forums' title='{$this-&gt;lang-&gt;words&#91;'cp_manageforums'&#93;}'&gt;&lt;img src='{$this-&gt;settings&#91;'skin_acp_url'&#93;}/_newimages/icons/comments.png' alt='{$this-&gt;lang-&gt;words&#91;'cp_manageforums'&#93;}' /&gt; {$this-&gt;lang-&gt;words&#91;'cp_manageforums'&#93;}&lt;/a&gt;
				&lt;/td&gt;
				&lt;td&gt;
					&lt;a href='{$this-&gt;settings&#91;'_base_url'&#93;}app=members&amp;module=bulkmail&amp;section=bulkmail&amp;do=bulk_mail' title='{$this-&gt;lang-&gt;words&#91;'cp_bulkmailer'&#93;}'&gt;&lt;img src='{$this-&gt;settings&#91;'skin_acp_url'&#93;}/_newimages/icons/email_add.png' alt='{$this-&gt;lang-&gt;words&#91;'cp_bulkmailer'&#93;}' /&gt; {$this-&gt;lang-&gt;words&#91;'cp_bulkmailer'&#93;}&lt;/a&gt;
				&lt;/td&gt;
				&lt;td&gt;
					&lt;a href='{$this-&gt;settings&#91;'_base_url'&#93;}app=core&amp;module=posts&amp;section=emoticons' title='{$this-&gt;lang-&gt;words&#91;'cp_emoticonmanager'&#93;}'&gt;&lt;img src='{$this-&gt;settings&#91;'skin_acp_url'&#93;}/_newimages/icons/emoticon_grin.png' alt='{$this-&gt;lang-&gt;words&#91;'cp_emoticonmanager'&#93;}' /&gt; {$this-&gt;lang-&gt;words&#91;'cp_emoticonmanager'&#93;}&lt;/a&gt;
				&lt;/td&gt;
			&lt;/tr&gt;
		&lt;/table&gt;
	&lt;/div&gt;</pre><br />
<br />
Salve, e volte com o arquivo para o servidor.<br />
Agora, veja como ficou seu ACP no 3.1.2:<br />
<br />
<img src='http://forum.sosinvision.com.br/uploads/images/SOS-1279732485-U5271.png' alt='Imagem' class='bbc_img' /><br />
<br />
<br />
<strong class='bbc'>Autor: </strong><a href='http://forum.sosinvision.com.br/index.php?showuser=5271' class='bbc_url' title='Link externo' rel='nofollow external'>Tulio</a>]]></description>
		<pubDate>Wed, 21 Jul 2010 17:15:43 +0000</pubDate>
		<guid isPermaLink="false">2152</guid>
		<creator>Tulio</creator>
		<category>29</category>
	</item>
	<item>
		<title><![CDATA[Adjusting Today's Top Posters]]></title>
		<link><![CDATA[http://forum.sosinvision.com.br/index.php?app=tutorials&article=2140]]></link>
		<description><![CDATA[A quick tutorial on how to adjust the number of members shown in the 'Today's Top Posters' hook on the board index. This is for IP.Board 3.1.x<br />
<br />
A small file edit is required. Connect via FTP.<br />
<br />
Open /hooks/boardIndexTopPosters_**number**.php<br />
<br />
Find...(around line 61)<br />
<pre class='prettyprint'>'limit'	   =&gt; array( 0, 9 ),</pre><br />
<br />
Adjust the 9 there, taking care not to disturb the rest of the syntax or any other lines.<br />
<br />
Save.<br />
<br />
I would recommend you stay with a multiple of 3 to keep it tidy, the most common value here to replace the default of 9 is typically 6 or 3.<br />
<br />
You will need to re-perform this edit if the hook is recached (such as an upgrade) but it will only take a moment to do so.]]></description>
		<pubDate>Sun, 11 Jul 2010 19:40:14 +0000</pubDate>
		<guid isPermaLink="false">2140</guid>
		<creator>AndyF</creator>
		<category>29</category>
	</item>
	<item>
		<title>Adusting the number of Recently Added Topics</title>
		<link><![CDATA[http://forum.sosinvision.com.br/index.php?app=tutorials&article=2134]]></link>
		<description><![CDATA[To adjust the number of Recently Added Topics displayed on the index sidebar hook on IP.Board 3.1, a small file edit is required.<br />
<br />
Connect via FTP.<br />
<br />
Look in &#092;admin&#092;applications&#092;forums&#092;sources&#092;classes&#092;forums&#092;<br />
<br />
Edit class_forums.php, around line 2495, find...<br />
<pre class='prettyprint'>$_topics = array_slice( $topicIDs, 0, 5 );</pre><br />
<br />
Adjust the <strong class='bbc'>5</strong> there to what you require (3 or 10 seems to be popular choices, although setting this too high can cause performance issues) and save, taking care not to disturb any other lines or the syntax.]]></description>
		<pubDate>Tue, 06 Jul 2010 11:13:06 +0000</pubDate>
		<guid isPermaLink="false">2134</guid>
		<creator>AndyF</creator>
		<category>29</category>
	</item>
	<item>
		<title><![CDATA[Restoring the 'About Me' tab as default]]></title>
		<link><![CDATA[http://forum.sosinvision.com.br/index.php?app=tutorials&article=2132]]></link>
		<description><![CDATA[It's very easy to restore the About Me tab as the default when viewing a members profile.<br />
<br />
Two small files edits are needed.<br />
<br />
Connect via FTP<br />
<br />
Open /admin/applications/members/extensions/profileTabs/status.conf.php<br />
<br />
Find...(about line 50)<br />
<pre class='prettyprint'>$CONFIG&#91;'plugin_order'&#93; = 1;</pre><br />
<br />
Change to...<br />
<pre class='prettyprint'>$CONFIG&#91;'plugin_order'&#93; = 2;</pre><br />
<br />
Save.<br />
<br />
<br />
Open /admin/applications/members/extensions/profileTabs/aboutme.conf.php<br />
<br />
Find...(about line 50)<br />
<pre class='prettyprint'>$CONFIG&#91;'plugin_order'&#93; = 2;</pre><br />
<br />
Change to...<br />
<pre class='prettyprint'>$CONFIG&#91;'plugin_order'&#93; = 1;</pre><br />
<br />
Save.<br />
<br />
<br />
You are done. <img src='http://forum.sosinvision.com.br/public/style_emoticons/default/smile.gif' class='bbc_emoticon' alt=':)' /> , two quick screenshots of before and after:<br />
<br />
<img src='http://img.photobucket.com/albums/v294/yellow_spider/ipb_tutorials/change_profile_tab_default_1.png' alt='Imagem' class='bbc_img' /><br />
<br />
<img src='http://img.photobucket.com/albums/v294/yellow_spider/ipb_tutorials/change_profile_tab_default_2.png' alt='Imagem' class='bbc_img' />]]></description>
		<pubDate>Mon, 05 Jul 2010 12:33:59 +0000</pubDate>
		<guid isPermaLink="false">2132</guid>
		<creator>AndyF</creator>
		<category>29</category>
	</item>
	<item>
		<title><![CDATA[[IP.Board 3.1.X] Adicionar o nome do fórum ao nome dos Anexos]]></title>
		<link><![CDATA[http://forum.sosinvision.com.br/index.php?app=tutorials&article=2130]]></link>
		<description><![CDATA[Para inserir o nome do fórum ao nome dos Anexos do fórum, abra o arquivo <strong class='bbc'>admin/applications/core/sources/classes/attach/class_attach.php</strong> e localize:<br />
 <br />
<pre class='prettyprint'>			if( IPSText::isUTF8( $upload-&gt;original_file_name ) )
			{
				$attach_data&#91;'attach_file'&#93;   	= IPSText::convertCharsets( $upload-&gt;original_file_name, "UTF-8", IPS_DOC_CHAR_SET );
			}
			else
			{
				$attach_data&#91;'attach_file'&#93;   	= $upload-&gt;original_file_name;
			}</pre><br />
Substitua por:<br />
<br />
<pre class='prettyprint'>			if( IPSText::isUTF8( $upload-&gt;original_file_name ) )
			{
				$attach_data&#91;'attach_file'&#93;   	= IPSText::convertCharsets( $this-&gt;settings&#91;'board_name'&#93;."-".$upload-&gt;original_file_name, "UTF-8", IPS_DOC_CHAR_SET );
			}
			else
			{
				$attach_data&#91;'attach_file'&#93;    		= $this-&gt;settings&#91;'board_name'&#93;."-".$upload-&gt;original_file_name;
			}</pre><br />
<br />
Desta forma, será criado o anexo tendo como início, o nome do fórum de onde foi baixado!<br />
<br />
Exemplo:<br />
<br />
<img src='http://forum.sosinvision.com.br/uploads/images/SOS-1278289545-U1.png' alt='Imagem' class='bbc_img' /><br />
<br />
Autor: <a href='index.php?showuser=1' target='_blank'>Adriano</a><br />
<br />
 <img src='http://forum.sosinvision.com.br/public/style_emoticons/default/wink.gif' class='bbc_emoticon' alt=';)' />]]></description>
		<pubDate>Mon, 05 Jul 2010 00:26:08 +0000</pubDate>
		<guid isPermaLink="false">2130</guid>
		<creator>Adriano</creator>
		<category>29</category>
	</item>
	<item>
		<title>Adjusting the total number of status updates</title>
		<link><![CDATA[http://forum.sosinvision.com.br/index.php?app=tutorials&article=2127]]></link>
		<description><![CDATA[Adjusting the number of status updates displayed is very easy to do with just a tiny edit. This quick article is for 3.1.x only as adjusting it on 3.0.5 a simple matter of editing the hook itself, whereas 3.1 has it in a different location.<br />
<br />
Connect via FTP.<br />
<br />
Look in /admin/applications/members/sources/classes/hooks/gateway.php<br />
<br />
Find (near the end of the file, around line 84)...<br />
<pre class='prettyprint'>$statuses = $statuses = $this-&gt;registry-&gt;getClass('memberStatus')-&gt;fetch( $this-&gt;memberData, array( 'limit' =&gt; 10, 'status_is_latest' =&gt; 1 ) );</pre><br />
<br />
Change the 10 there to what you require (3 or 5 seems to be a popular choice), taking care not to disturb any of the syntax and save. <img src='http://forum.sosinvision.com.br/public/style_emoticons/default/smile.gif' class='bbc_emoticon' alt=':)' />]]></description>
		<pubDate>Sun, 04 Jul 2010 20:04:43 +0000</pubDate>
		<guid isPermaLink="false">2127</guid>
		<creator>AndyF</creator>
		<category>29</category>
	</item>
	<item>
		<title><![CDATA[[IP.Board 3.1.X] Limitar o número de caracteres na visualização dos status na index]]></title>
		<link><![CDATA[http://forum.sosinvision.com.br/index.php?app=tutorials&article=2099]]></link>
		<description><![CDATA[Se os usuários do seu fórum postam status muito grandes, você pode reduzi-los na exibição. Para isso, abra o arquivo <strong class='bbc'>admin/sources/classes/member/status.php</strong> e localize:<br />
<br />
<pre class='prettyprint'>			$row&#91;'status_content'&#93; = IPSText::getTextClass( 'bbcode' )-&gt;preDisplayParse( IPSText::getTextClass( 'bbcode' )-&gt;preDbParse( $row&#91;'status_content'&#93; ) );</pre><br />
Substitua por:<br />
<br />
<pre class='prettyprint'>			$row&#91;'status_content'&#93; = IPSText::getTextClass( 'bbcode' )-&gt;preDisplayParse( IPSText::getTextClass( 'bbcode' )-&gt;preDbParse( IPSText::truncate( $row&#91;'status_content'&#93;, 45 ) ) );</pre><br />
Se quiser aumentar o diminuir o número de caracteres, mude o 45 no  script.<br />
<br />
Resultado:<br />
<br />
<img src='http://forum.sosinvision.com.br/uploads/images/SOS-1276585513-U1.png' alt='Imagem' class='bbc_img' /><br />
<br />
Autor: <a href='index.php?showuser=1' target='_blank'>Adriano</a>]]></description>
		<pubDate>Tue, 15 Jun 2010 07:05:46 +0000</pubDate>
		<guid isPermaLink="false">2099</guid>
		<creator>Adriano</creator>
		<category>29</category>
	</item>
	<item>
		<title><![CDATA[[IP.Board 3.1.X] Aumentar o número de STATUS ATUALIZADOS RECENTEMENTE na index]]></title>
		<link><![CDATA[http://forum.sosinvision.com.br/index.php?app=tutorials&article=2093]]></link>
		<description><![CDATA[Por padrão o IP.Board 3.1.X mostra 10 status na index. Para mudar este número, abra o arquivo <strong class='bbc'>admin/applications/members/sources/classes/hooks/gateway.php</strong> e localize:<br />
<br />
<pre class='prettyprint'>		/* Fetch */
		$statuses = $statuses = $this-&gt;registry-&gt;getClass('memberStatus')-&gt;fetch( $this-&gt;memberData, array( 'limit' =&gt; 10, 'status_is_latest' =&gt; 1 ) );</pre><br />
Mude o <strong class='bbc'>10</strong> para o número que achar melhor.<br />
<br />
<br />
Autor: <a href='index.php?showuser=1' target='_blank'>Adriano</a>]]></description>
		<pubDate>Sat, 12 Jun 2010 00:51:01 +0000</pubDate>
		<guid isPermaLink="false">2093</guid>
		<creator>Adriano</creator>
		<category>29</category>
	</item>
	<item>
		<title>Ordenar os usuários online na index por ordem alfabética</title>
		<link><![CDATA[http://forum.sosinvision.com.br/index.php?app=tutorials&article=2090]]></link>
		<description><![CDATA[Por padrão, o IP.Board ordena os usuários online na index do fórum por ordem de última atividade. Se quiser mostrar por ordem alfabética, abra o arquivo <strong class='bbc'>admin&#092;applications&#092;forums&#092;modules_public&#092;forums&#092;boards.php </strong>e localize:<br />
<br />
<pre class='prettyprint'>			$this-&gt;DB-&gt;build( array( 
											'select' =&gt; 'id, member_id, member_name, seo_name, login_type, running_time, member_group, uagent_type',
											'from'   =&gt; 'sessions',
											'where'  =&gt; "running_time &gt; $time",
								)	);</pre><br />
Substitua por:<br />
<br />
<pre class='prettyprint'>			$this-&gt;DB-&gt;build( array( 
											'select' =&gt; 'id, member_id, member_name, seo_name, login_type, running_time, member_group, uagent_type',
											'from'   =&gt; 'sessions',
											'where'  =&gt; "running_time &gt; $time",
											'order''   =&gt; "member_name",
								)	);</pre><br />
Localize:<br />
<br />
<pre class='prettyprint'>			krsort( $rows );</pre><br />
Substitua por:<br />
<br />
<pre class='prettyprint'>			//krsort( $rows );</pre><br />
<br />
Autor: <a href='index.php?showuser=1' target='_blank'>Adriano</a>]]></description>
		<pubDate>Fri, 11 Jun 2010 11:30:45 +0000</pubDate>
		<guid isPermaLink="false">2090</guid>
		<creator>Adriano</creator>
		<category>29</category>
	</item>
	<item>
		<title>Hook MEMBERS REGISTERED TODAY: ordenar os usuários por data/hora do registro</title>
		<link><![CDATA[http://forum.sosinvision.com.br/index.php?app=tutorials&article=2085]]></link>
		<description><![CDATA[Por padrão, o hook ordena os usuários por odem alfabética. Este tutorial ordenará por ordem de data/hora do registro<br />
<br />
Abra o arquivo que começa com o nome <strong class='bbc'>boardIndexMembersRegisteredToday_</strong> que está pasta <strong class='bbc'>hooks</strong> em seu FTP.<br />
<br />
Localize:<br />
<br />
<pre class='prettyprint'>							     	'order'  =&gt; "members_display_name ASC",</pre><br />
Substitua por:<br />
<br />
<pre class='prettyprint'>							     	'order'  =&gt; "joined DESC",</pre><br />
<br />
Autor: <a href='index.php?showuser=1' target='_blank'>Adriano</a>]]></description>
		<pubDate>Sun, 06 Jun 2010 20:33:13 +0000</pubDate>
		<guid isPermaLink="false">2085</guid>
		<creator>Adriano</creator>
		<category>29</category>
	</item>
</channel>
</rss>