<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Extra fields</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sat, 11 Apr 2026 12:27:47 -0000</pubDate>

		<item>
			<title>oc</title>
			<description><![CDATA[Maybe these are also should be editable (to me they should) but user_location vs. is used not only on the user profile, also forums etc. So I think they should stay, at least for now. Maybe later we can delete them, like in v1 or so.]]></description>
			<pubDate>Sat, 03 Jan 2009 18:10:47 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=984&d=0#post2913]]></link>
		</item>
		<item>
			<title>esclkm</title>
			<description><![CDATA[wow!!! super !!! great work.<br />
What I also do:<br />
user_location  user_irc user_msn user_icq user_website - I think that they are also must be editable extra_fields.<br />
<br />
And may be description is also can be use: smth like this {PAGE_RELEASE_DATA_DESCRIPTION}<br />
<br />
And what happened when I want to use new extra fields in USER_REGISTER,USERSLIST FORUM, PAGES -AUTORINFO )))]]></description>
			<pubDate>Sat, 03 Jan 2009 17:31:53 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=984&d=0#post2912]]></link>
		</item>
		<item>
			<title>medar</title>
			<description><![CDATA[First version (extra field for pages) was created in <a href="http://trac.cotonti.com/changeset/128">changeset 128</a>.<br />
<br />
In <a href="http://trac.cotonti.com/changeset/240">changeset 240</a> i do this system more flexible for future tasks.<br />
<br />
Extra fields may be added for any sql table now.<br />
Table sed_extra_fields contains properities for extra fields (html displaying - column field_html, location of extra field (for example - &quot;pages&quot;, &quot;users&quot;) - column field_location).<br />
<br />
Tags for output extra fields not contains _MY_ now.<br />
<br />
If you create extra field &quot;release_data&quot; for pages, you can use the following tags on pages:<br />
On page.*.tpl: {PAGE_RELEASE_DATA}<br />
On page.add.*.tpl: {PAGEADD_FORM_RELEASE_DATA}<br />
On page.edit.*.tpl: {PAGEEDIT_FORM_RELEASE_DATA}<br />
<br />
If you create extra field &quot;jabber&quot; for users, you can use the following tags on pages:<br />
On users.profile.tpl: {USERS_PROFILE_JABBER}  <br />
On users.edit.tpl: {USERS_EDIT_JABBER} <br />
On users.details.tpl: {USERS_DETAILS_JABBER}<br />
<br />
Default extra fields (extra1 - extra5 for pages and extra1 - extra9 for users) added to database and avaiable for editing/deleting.<br />
<br />
<strong>API:</strong><br />
sed_extrafield_add($sql_table, $name, $type, $html, $variants=&quot;&quot;, $description=&quot;&quot;);<br />
sed_extrafield_update($sql_table, $oldname, $name, $type, $html, $variants=&quot;&quot;, $description=&quot;&quot;);<br />
sed_extrafield_remove($sql_table, $name);<br />
returns true if success and false if not.<br />
<br />
$sql_table - name of table, without &quot;sed_&quot; prefix.<br />
$type - now supported &quot;input&quot;, &quot;textarea&quot;, &quot;select&quot;, &quot;checkbox&quot;<br />
<br />
Example:<br />
sed_extrafield_add('pages', 'release_data', 'input', '&lt;input class=&quot;text&quot; type=&quot;text&quot; maxlength=&quot;255&quot; size=&quot;56&quot; /&gt;', '', 'this is data of album release');]]></description>
			<pubDate>Sat, 03 Jan 2009 15:04:14 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=984&d=0#post2906]]></link>
		</item>
	</channel>
</rss>