<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Folder storage mode conversion script.</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Tue, 05 May 2026 03:19:17 -0000</pubDate>

		<item>
			<title>DemptD</title>
			<description><![CDATA[Did a backup but the script didnt change anything :p<br />
<br />
Around 1000 files, 167 members. PHP 5<br />
<br />
PMd you :)]]></description>
			<pubDate>Tue, 28 Apr 2009 23:28:48 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2560&d=0#post11867]]></link>
		</item>
		<item>
			<title>Elgan</title>
			<description><![CDATA[eeek. Did u backup? did anything actually happen ?<br />
<br />
seems odd. How many files do you have? What version php is it?<br />
<br />
if you wish we could chat on msn or something and we could play and make it work. It could be a number of things.  pm me if so.]]></description>
			<pubDate>Tue, 28 Apr 2009 23:04:16 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2560&d=0#post11865]]></link>
		</item>
		<item>
			<title>DemptD</title>
			<description><![CDATA[Hmm it didnt work... On my server the script just goes all white and nothing happens...]]></description>
			<pubDate>Tue, 28 Apr 2009 06:05:38 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2560&d=0#post11857]]></link>
		</item>
		<item>
			<title>Elgan</title>
			<description><![CDATA[<blockquote><strong>Folder storage mode:</strong><hr />
(If enabled, will store the user files in subfolders /datas/users/USERID/... instead of prepending the USERID to the filename. Must be set at the FIRST setup of the site ONLY. As soon as a file is uploaded to any PFS, it's too late to change this. It is not recommended to change this setting for now.)<br />
</blockquote>
<br />
If you would like to turn this on. like i did. but your site has started , even ran LDU once and it would be too much too late to change to the folder method.<br />
<br />
The following lil script takes every file in a specified dir and turns it from USERID-filename (prepending the USERID to the filename) to /USERID/filename. <br />
<br />
The script runs no SQL but will provide SQL for you to run. The SQL will change all your fps_file name from ID-filename to filename. And set all page_urls from www.yourdomain.com/7-filename to www.yourdomain.com/7/filename<br />
<br />
<br />
<br />
how to use?<br />
Before any use make a backup! if you can, backup files! eek. Then you need to backup your database.<br />
tables sed_page and sed_files are only effected by the script.<br />
<br />
the script is here <br />
<a href="http://www.cotonti.com/pastebin/29">http://www.cotonti.com/pastebin/29</a><br />
<br />
save it as something.php and place it in your root.<br />
navigate to the script and it shall run.<br />
Enter the SQL.<br />
<br />
then dont forget to delete the script!<br />
<br />
eg<br />
MAKE A BACKUP!<br />
1 make a swap.php, paste in the code.<br />
2 upload to root<br />
3 navigate to www.domain.com/swap.php<br />
4 SQL &gt;<br />
5 delete www.domain.com/swap.php]]></description>
			<pubDate>Mon, 06 Apr 2009 08:32:48 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=2560&d=0#post11122]]></link>
		</item>
	</channel>
</rss>