<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Fix: DB table name change gives errors</title>
		<link>https://www.cotonti.com</link>
		<description>Последние сообщения в теме</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Wed, 08 Apr 2026 21:53:50 -0000</pubDate>

		<item>
			<title>Kilandor</title>
			<description><![CDATA[Yes this will be all handled and changed for 0.1.0, but thanks for that interesting info you have tried it with no ill effects :)]]></description>
			<pubDate>пн, 02 фев 2009 19:09:13 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=1838&d=0#post6256]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[Something I did with my local installation is replace every instance of 'sed' with 'cot', including all functions, database table names and comments/copyright. I've tested a bit and it seems to work just fine. Here's what I did:<br />
<br />
- Make a backup of your Cotonti files<br />
- In Dreamweaver, setup a 'website' with your cotonti directory as base dir<br />
- Without opening any file, hit CTRL-F to open the search dialog (you may have to select a file in the File dialog, just dont open it)<br />
- Select 'Entire Current Local Site' in the 'Find in' dropdown menu<br />
<br />
- Find: sed_<br />
- Replace: cot_<br />
- Options: Match case ON, the rest OFF<br />
- Replace all (will take a while as it modifies all your Cotonti files)<br />
<br />
- Find: _sed<br />
- Replace all: _cot<br />
<br />
- Find: SED_<br />
- Replace all: COT_<br />
<br />
- Find: _SED<br />
- Replace all: _COT<br />
<br />
- Find: Seditio<br />
- Replace all: Cotonti<br />
<br />
- Find: Copyright Neocrome<br />
- Replace all: Copyright Cotonti Team<br />
<br />
- Find: <a href="http://www.neocrome.net" rel="nofollow">http://www.neocrome.net</a><br />
- Replace all: <a href="http://www.cotonti.com">http://www.cotonti.com</a>]]></description>
			<pubDate>пн, 02 фев 2009 19:01:56 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=1838&d=0#post6255]]></link>
		</item>
		<item>
			<title>Kilandor</title>
			<description><![CDATA[Thanks, nice catch :) I will fix this in the svn.]]></description>
			<pubDate>пн, 02 фев 2009 18:09:00 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=1838&d=0#post6241]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[On my local installation I renamed all database tables in config.php from sed_something to cot_something. I also edited the SQL to suit these names before importing it.<br />
<br />
Most of the site works fine but I have found at least one case of the code requesting access to a table named sed_forum_structure, which occurred when opening admin.php?m=forums<br />
<br />
To fix this, open system/core/admin/admin.forums.inc.php<br />
On line 159, you should find:<br />
<pre class="code">$sqla = sed_sql_query(&quot;SELECT s.fs_id, s.fs_title, s.fs_category FROM $db_forum_sections AS s LEFT JOIN sed_forum_structure AS n ON n.fn_code=s.fs_category WHERE fs_id&lt;&gt;$id AND fs_masterid&lt;1 AND fs_category='&quot;.$fs_category.&quot;' ORDER by fn_path ASC, fs_order ASC&quot;);</pre>
Replace with:<br />
<pre class="code">$sqla = sed_sql_query(&quot;SELECT s.fs_id, s.fs_title, s.fs_category FROM $db_forum_sections AS s LEFT JOIN $db_forum_structure AS n ON n.fn_code=s.fs_category WHERE fs_id&lt;&gt;$id AND fs_masterid&lt;1 AND fs_category='&quot;.$fs_category.&quot;' ORDER by fn_path ASC, fs_order ASC&quot;);</pre>
On line 386 you should find:<br />
<pre class="code">$sqla = sed_sql_query(&quot;SELECT s.fs_id, s.fs_title, s.fs_category FROM $db_forum_sections AS s LEFT JOIN sed_forum_structure AS n ON n.fn_code=s.fs_category WHERE fs_masterid&lt;1 ORDER by fn_path ASC, fs_order ASC&quot;);</pre>
Replace with:<br />
<pre class="code">$sqla = sed_sql_query(&quot;SELECT s.fs_id, s.fs_title, s.fs_category FROM $db_forum_sections AS s LEFT JOIN $db_forum_structure AS n ON n.fn_code=s.fs_category WHERE fs_masterid&lt;1 ORDER by fn_path ASC, fs_order ASC&quot;);</pre>]]></description>
			<pubDate>пн, 02 фев 2009 18:05:50 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=1838&d=0#post6240]]></link>
		</item>
	</channel>
</rss>