cotonti.com : Fix: DB table name change gives errors https://www.cotonti.com Neueste Themenbeiträge Cotonti en Sat, 22 Aug 2026 12:48:35 -0000 Kilandor Mo, 02 Feb 2009 19:09:13 -0000 GHengeveld
- Make a backup of your Cotonti files
- In Dreamweaver, setup a 'website' with your cotonti directory as base dir
- 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)
- Select 'Entire Current Local Site' in the 'Find in' dropdown menu

- Find: sed_
- Replace: cot_
- Options: Match case ON, the rest OFF
- Replace all (will take a while as it modifies all your Cotonti files)

- Find: _sed
- Replace all: _cot

- Find: SED_
- Replace all: COT_

- Find: _SED
- Replace all: _COT

- Find: Seditio
- Replace all: Cotonti

- Find: Copyright Neocrome
- Replace all: Copyright Cotonti Team

- Find: http://www.neocrome.net
- Replace all: http://www.cotonti.com]]>
Mo, 02 Feb 2009 19:01:56 -0000
Kilandor Mo, 02 Feb 2009 18:09:00 -0000 GHengeveld
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

To fix this, open system/core/admin/admin.forums.inc.php
On line 159, you should find:
$sqla = sed_sql_query("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<>$id AND fs_masterid<1 AND fs_category='".$fs_category."' ORDER by fn_path ASC, fs_order ASC");
Replace with:
$sqla = sed_sql_query("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<>$id AND fs_masterid<1 AND fs_category='".$fs_category."' ORDER by fn_path ASC, fs_order ASC");
On line 386 you should find:
$sqla = sed_sql_query("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<1 ORDER by fn_path ASC, fs_order ASC");
Replace with:
$sqla = sed_sql_query("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<1 ORDER by fn_path ASC, fs_order ASC");
]]>
Mo, 02 Feb 2009 18:05:50 -0000