<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Team plugin and age, set to 39 after 0.6.1 update</title>
		<link>https://www.cotonti.com</link>
		<description>Останні повідомлення в темі</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Tue, 14 Apr 2026 22:42:32 -0000</pubDate>

		<item>
			<title>Dave</title>
			<description><![CDATA[<pre class="code">$urr&#091;'user_birthdate'&#093; = sed_date2stamp($urr&#091;'user_birthdate'&#093;);</pre>
<br />
and<br />
<br />
<pre class="code">&quot;TEAM_BIRTHDATE&quot; =&gt; ($urr&#091;'user_birthdate'&#093;!=0) ? @date($cfg&#091;'formatyearmonthday'&#093;, $urr&#091;'user_birthdate'&#093;) : '',</pre>
<br />
???  <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/confused.gif" alt=":/" />]]></description>
			<pubDate>Нд, 20 Вер 2009 00:58:54 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3143&d=0#post17149]]></link>
		</item>
		<item>
			<title>DemptD</title>
			<description><![CDATA[I did it like this:<br />
<br />
<pre class="code">while($urr=sed_sql_fetcharray($sql)) {
$urr&#091;'birthdate'&#093; = sed_date2stamp($urr&#091;'birthdate'&#093;);
$urr&#091;'user_text'&#093; = sed_build_usertext(sed_cc($urr&#091;'user_text'&#093;));
$urr&#091;'user_website'&#093; = sed_build_url($urr&#091;'user_website'&#093;);
$urr&#091;'user_age'&#093; = ($urr&#091;'user_birthdate'&#093;!=0) ? sed_build_age($urr&#091;'user_birthdate'&#093;) : '';
$urr&#091;'user_birthdate'&#093; = ($urr&#091;'user_birthdate'&#093;!=0) ? @date($cfg&#091;'formatyearmonthday'&#093;, $urr&#091;'user_birthdate'&#093;) : '';
$urr&#091;'user_gender'&#093; = ($urr&#091;'user_gender'&#093;=='' || $urr&#091;'user_gender'&#093;=='U') ?  '' : $L&#091;&quot;Gender_&quot;.$urr&#091;'user_gender'&#093;&#093;;
$urr&#091;'user_journal'&#093; = ($urr&#091;'user_jrnpagescount'&#093;&gt;0 &amp;&amp; $urr&#091;'user_jrnupdated'&#093;&gt;0) ? &quot;&lt;a href=https://www.cotonti.com/\&quot;journal.php?id=&quot;.$urr&#091;'user_id'&#093;.&quot;\&quot;&gt;&lt;img src=https://www.cotonti.com/\&quot;skins/$skin/img/system/icon-journal.gif\&quot; alt=\&quot;\&quot; /&gt;&lt;/a&gt; &quot;.date($cfg&#091;'formatyearmonthday'&#093;, $urr&#091;'user_jrnupdated'&#093; + $usr&#091;'timezone'&#093; * 3600) : '';</pre>
<br />
Still shows all ages as 39.<br /><br /><b>Added 8 days later:</b><br /><br />OMG i actually fixed something myself! xD<br />
<br />
i went and had a look at users.inc.php and searched for birthdate, found this:<br />
<br />
<pre class="code">$urr = sed_sql_fetcharray($sql);
$urr&#091;'user_birthdate'&#093; = sed_date2stamp($urr&#091;'user_birthdate'&#093;);

$urr&#091;'user_text'&#093; = sed_build_usertext(htmlspecialchars($urr&#091;'user_text'&#093;));
$urr&#091;'user_website'&#093; = sed_build_url($urr&#091;'user_website'&#093;);
$urr&#091;'user_age'&#093; = ($urr&#091;'user_birthdate'&#093;!=0) ? sed_build_age($urr&#091;'user_birthdate'&#093;) : '';
$urr&#091;'user_birthdate'&#093; = ($urr&#091;'user_birthdate'&#093;!=0) ? @date($cfg&#091;'formatyearmonthday'&#093;, $urr&#091;'user_birthdate'&#093;) : '';
$urr&#091;'user_gender'&#093; = ($urr&#091;'user_gender'&#093;=='' || $urr&#091;'user_gender'&#093;=='U') ?  '' : $L&#091;&quot;Gender_&quot;.$urr&#091;'user_gender'&#093;&#093;;</pre>
<br />
Took &quot;$urr['user_birthdate']&quot; and &quot;$urr['user_birthdate']&quot; and replaced it with what was in team.php and now it shows the correct age  <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/grin.gif" alt=":D" />]]></description>
			<pubDate>Сб, 22 Сер 2009 00:33:50 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3143&d=0#post16362]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[You see this line in that code you have pasted in the first post:<br />
<div class="highlight"><pre class="php">while($urr=sed_sql_fetcharray($sql)) {</pre></div>
Right after it add another one:<br />
<div class="highlight"><pre class="php">$urr&#091;'birthdate'&#093; = sed_date2stamp($urr&#091;'birthdate'&#093;);</pre></div>
That is all you need to do and it should work fine with dates again.]]></description>
			<pubDate>Сб, 22 Сер 2009 00:23:57 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3143&d=0#post16360]]></link>
		</item>
		<item>
			<title>DemptD</title>
			<description><![CDATA[<blockquote><a href="https://www.cotonti.com/forums.php?m=posts&amp;p=15698#15698">#</a> <strong>Trustmaster :</strong>
Modify it a bit:<br />
<div class="highlight"><pre class="php">while($urr=sed_sql_fetcharray($sql)) {
$urr&#091;'birthdate'&#093; = sed_date2stamp($urr&#091;'birthdate'&#093;);</pre></div>
</blockquote>
<br />
Umm, where do i put that?<br />
<br />
<strong>Dave:</strong> heres the tpl:<br />
<br />
<div style="margin:4px 0px 4px 0px"><input type="button" value="team tpl" onclick="if(this.parentNode.getElementsByTagName('div')[0].style.display != '') { this.parentNode.getElementsByTagName('div')[0].style.display = ''; } else { this.parentNode.getElementsByTagName('div')[0].style.display = 'none'; }" /><div style="display:none" class="spoiler">&lt;!-- BEGIN: MAIN --&gt;<br />
&lt;div id=&quot;title&quot;&gt;<br />
<br />
	&lt;a href?&quot;plug.php?e=team&quot;&gt;Betalende Medlemmer&lt;/a&gt;<br />
	<br />
&lt;/div&gt;<br />
<br />
&lt;div class=&quot;&quot;&gt;<br />
<br />
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;10&quot; width=&quot;100%&quot;&gt;<br />
  &lt;tr&gt; <br />
    &lt;td height=&quot;187&quot; align=&quot;middle&quot;&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot;&gt;<br />
        &lt;!-- BEGIN: TEAM_ROW --&gt;<br />
        &lt;tr&gt; <br />
          &lt;td width=&quot;80&quot; align=&quot;center&quot; valign=&quot;top&quot; bgcolor=&quot;#333333&quot; border=&quot;1&quot;&gt;&lt;table width=&quot;100%&quot; border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;<br />
              &lt;tr&gt;<br />
                &lt;td&gt;<br />
				{TEAM_AVATAR}&lt;img src=https://www.cotonti.com/&quot;http://www.arctic-gatebil.com/datas/defaultav/blank.png&quot;&gt;<br />
				&lt;/td&gt;<br />
              &lt;/tr&gt;<br />
            &lt;/table&gt;&lt;/TD&gt;<br />
		<br />
          &lt;td align=&quot;left&quot;&gt; &lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;2&quot; cellpadding=&quot;0&quot;&gt;<br />
              &lt;tr&gt; <br />
                &lt;td&gt;{TEAM_PM} &lt;a href=https://www.cotonti.com/&quot;users.php?m=details&amp;id={TEAM_ID}&quot;&gt;{TEAM_NAME}&lt;/a&gt;&lt;/td&gt;<br />
              &lt;/tr&gt;<br />
              &lt;tr&gt; <br />
                &lt;td&gt;&lt;b&gt;Gruppe:&lt;/b&gt; {TEAM_MAINGRP}&lt;/td&gt;<br />
              &lt;/tr&gt;<br />
			  <br />
              &lt;tr&gt; <br />
                &lt;td&gt;&lt;b&gt;Alder:&lt;/b&gt; {TEAM_AGE}&lt;/td&gt;<br />
              &lt;/tr&gt;<br />
			    &lt;tr&gt; <br />
                &lt;td&gt;&lt;b&gt;Kjønn:&lt;/b&gt; {TEAM_GENDER}&lt;/td&gt;<br />
              &lt;/tr&gt;<br />
			    &lt;tr&gt; <br />
                &lt;td&gt;&lt;b&gt;Sted:&lt;/b&gt; {TEAM_LOCATION}&lt;/td&gt;<br />
              &lt;/tr&gt;<br />
            &lt;/table&gt;<br />
            <br />
          &lt;/td&gt;<br />
        &lt;/tr&gt;<br />
        &lt;!-- END: TEAM_ROW --&gt;<br />
      &lt;/table&gt;&lt;/td&gt;<br />
  &lt;/tr&gt;<br />
&lt;/table&gt;<br />
<br />
&lt;/div&gt;<br />
<br />
&lt;!-- END: MAIN --&gt;</div></div>]]></description>
			<pubDate>Пт, 21 Сер 2009 22:15:46 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3143&d=0#post16351]]></link>
		</item>
		<item>
			<title>Dave</title>
			<description><![CDATA[hey DemptD, could u pleas send me tpl of ur team plugin? i made clan roster based on it with more &quot;teams&quot; and it aint showing at all]]></description>
			<pubDate>Нд, 09 Сер 2009 16:50:39 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3143&d=0#post15739]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Modify it a bit:<br />
<div class="highlight"><pre class="php">while($urr=sed_sql_fetcharray($sql)) {
$urr&#091;'birthdate'&#093; = sed_date2stamp($urr&#091;'birthdate'&#093;);</pre></div>]]></description>
			<pubDate>Сб, 08 Сер 2009 18:17:47 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3143&d=0#post15698]]></link>
		</item>
		<item>
			<title>DemptD</title>
			<description><![CDATA[After i updated to 0.6.1 my team plugin set all ages to 39 and it doesnt change when you edit it in the profile. Im sure its something easy, heres team.php:<br />
<br />
<div style="margin:4px 0px 4px 0px"><input type="button" value="team.php" onclick="if(this.parentNode.getElementsByTagName('div')[0].style.display != '') { this.parentNode.getElementsByTagName('div')[0].style.display = ''; } else { this.parentNode.getElementsByTagName('div')[0].style.display = 'none'; }" /><div style="display:none" class="spoiler">&lt;?PHP<br />
/* ====================<br />
Seditio - Website engine<br />
Copyright Neocrome<br />
<a href="http://www.neocrome.net" rel="nofollow">http://www.neocrome.net</a><br />
<br />
[BEGIN_SED]<br />
File=plugins/team/team.php<br />
Version=102<br />
Updated=2006-apr-29<br />
Type=Plugin<br />
Author=Neocrome<br />
Description=<br />
[END_SED]<br />
<br />
[BEGIN_SED_EXTPLUGIN]<br />
Code=team<br />
Part=main<br />
File=team<br />
Hooks=standalone<br />
Tags=<br />
Minlevel=0<br />
Order=10<br />
[END_SED_EXTPLUGIN]<br />
<br />
==================== */<br />
<br />
if (!defined('SED_CODE') || !defined('SED_PLUG')) { sed_diefatal('Wrong URL.'); }<br />
<br />
//Title<br />
$t-&gt; assign(array(<br />
	&quot;TEAM_TITLE&quot; =&gt; &quot;&lt;a href=https://www.cotonti.com/\&quot;plug.php?e=$e\&quot;&gt;&quot;.$L[plu_title].&quot;&lt;/a&gt;&quot;<br />
	));<br />
<br />
//Getting team group's id's<br />
$cfggroups = explode(&quot;,&quot;, $cfg['plugin']['team']['teamgroupsid']);<br />
$nog=0;<br />
<br />
foreach($cfggroups as $x) {<br />
	$teamgroup[$nog] = trim($x); <br />
	$instruction[$nog] = &quot;WHERE user_maingrp='&quot;.$teamgroup[$nog].&quot;'&quot;;<br />
	$nog++;<br />
}<br />
<br />
//Getting users<br />
$nn=0;<br />
while ($nn&lt;$nog) {<br />
<br />
$sql = sed_sql_query(&quot;SELECT * FROM $db_users &quot;.$instruction[$nn].&quot;ORDER BY user_id ASC&quot;);<br />
sed_die(sed_sql_numrows($sql)==0);<br />
<br />
<br />
while($urr=sed_sql_fetcharray($sql)) {<br />
<br />
$urr['user_text'] = sed_build_usertext(sed_cc($urr['user_text']));<br />
$urr['user_website'] = sed_build_url($urr['user_website']);<br />
$urr['user_age'] = ($urr['user_birthdate']!=0) ? sed_build_age($urr['user_birthdate']) : '';<br />
$urr['user_birthdate'] = ($urr['user_birthdate']!=0) ? @date($cfg['formatyearmonthday'], $urr['user_birthdate']) : '';<br />
$urr['user_gender'] = ($urr['user_gender']=='' || $urr['user_gender']=='U') ?  '' : $L[&quot;Gender_&quot;.$urr['user_gender']];<br />
$urr['user_journal'] = ($urr['user_jrnpagescount']&gt;0 &amp;&amp; $urr['user_jrnupdated']&gt;0) ? &quot;&lt;a href=https://www.cotonti.com/\&quot;journal.php?id=&quot;.$urr['user_id'].&quot;\&quot;&gt;&lt;img src=https://www.cotonti.com/\&quot;skins/$skin/img/system/icon-journal.gif\&quot; alt=\&quot;\&quot; /&gt;&lt;/a&gt; &quot;.date($cfg['formatyearmonthday'], $urr['user_jrnupdated'] + $usr['timezone'] * 3600) : '';<br />
<br />
$t-&gt;assign(array(<br />
	&quot;TEAM_ID&quot; =&gt; $urr['user_id'],<br />
	&quot;TEAM_PM&quot; =&gt; sed_build_pm($urr['user_id']),<br />
	&quot;TEAM_NAME&quot; =&gt; sed_cc($urr['user_name']),<br />
	&quot;TEAM_ONLINE&quot; =&gt; sed_userisonline($id) ? &quot;Îíëàéí&quot; : &quot;Îôôëàéí&quot;,<br />
	&quot;TEAM_PASSWORD&quot; =&gt; $urr['user_password'],<br />
	&quot;TEAM_MAINGRP&quot; =&gt; sed_build_group($urr['user_maingrp']),<br />
	&quot;TEAM_MAINGRPID&quot; =&gt; $urr['user_maingrp'],<br />
	&quot;TEAM_MAINGRPSTARS&quot; =&gt; &quot;&lt;img src=https://www.cotonti.com/\&quot;skins/&quot;.$skin.&quot;/img/system/stars&quot;.(floor($urr['user_maingrp']/10)+1).&quot;.gif\&quot; alt=\&quot;\&quot; /&gt;&quot;,<br />
	&quot;TEAM_GROUPS&quot; =&gt; sed_build_groupsms($urr['user_id'], FALSE, $urr['user_maingrp']),<br />
	&quot;TEAM_COUNTRY&quot; =&gt; sed_build_country($urr['user_country']),<br />
	&quot;TEAM_COUNTRYFLAG&quot; =&gt; sed_build_flag($urr['user_country']),<br />
	&quot;TEAM_TEXT&quot; =&gt; $urr['user_text'],<br />
	&quot;TEAM_AVATAR&quot; =&gt; sed_build_userimage($urr['user_avatar']),<br />
	&quot;TEAM_PHOTO&quot; =&gt; sed_build_userimage($urr['user_photo']),<br />
	&quot;TEAM_SIGNATURE&quot; =&gt; sed_build_userimage($urr['user_signature']),<br />
	&quot;TEAM_BIL&quot; =&gt; sed_cc($urr['user_bil']),<br />
	&quot;TEAM_EXTRA1&quot; =&gt; sed_cc($urr['user_extra1']),<br />
	&quot;TEAM_EXTRA2&quot; =&gt; sed_cc($urr['user_extra2']),<br />
	&quot;TEAM_EXTRA3&quot; =&gt; sed_cc($urr['user_extra3']),<br />
	&quot;TEAM_EXTRA4&quot; =&gt; sed_cc($urr['user_extra4']),<br />
	&quot;TEAM_EXTRA5&quot; =&gt; sed_cc($urr['user_extra5']),<br />
	&quot;TEAM_EXTRA6&quot; =&gt; sed_cc($urr['user_extra6']),<br />
	&quot;TEAM_EXTRA7&quot; =&gt; sed_cc($urr['user_extra7']),<br />
	&quot;TEAM_EXTRA8&quot; =&gt; sed_cc($urr['user_extra8']),<br />
	&quot;TEAM_EXTRA9&quot; =&gt; sed_cc($urr['user_extra9']),<br />
    &quot;TEAM_BIL_TITLE&quot; =&gt; $cfg['biltitle1'],<br />
	&quot;TEAM_EXTRA1_TITLE&quot; =&gt; $cfg['extra1title'],<br />
	&quot;TEAM_EXTRA2_TITLE&quot; =&gt; $cfg['extra2title'],<br />
	&quot;TEAM_EXTRA3_TITLE&quot; =&gt; $cfg['extra3title'],<br />
	&quot;TEAM_EXTRA4_TITLE&quot; =&gt; $cfg['extra4title'],<br />
	&quot;TEAM_EXTRA5_TITLE&quot; =&gt; $cfg['extra5title'],<br />
	&quot;TEAM_EXTRA6_TITLE&quot; =&gt; $cfg['extra6title'],<br />
	&quot;TEAM_EXTRA7_TITLE&quot; =&gt; $cfg['extra7title'],<br />
	&quot;TEAM_EXTRA8_TITLE&quot; =&gt; $cfg['extra8title'],<br />
	&quot;TEAM_EXTRA9_TITLE&quot; =&gt; $cfg['extra9title'],<br />
	&quot;TEAM_EMAIL&quot; =&gt; sed_build_email($urr['user_email'], $urr['user_hideemail']),<br />
	&quot;TEAM_PMNOTIFY&quot; =&gt;  $sed_yesno[$urr['user_pmnotify']],<br />
	&quot;TEAM_SKIN&quot; =&gt; $urr['user_skin'],<br />
	&quot;TEAM_WEBSITE&quot; =&gt; $urr['user_website'],<br />
	&quot;TEAM_JOURNAL&quot; =&gt; $urr['user_journal'],<br />
	&quot;TEAM_ICQ&quot; =&gt; sed_build_icq($urr['user_icq']),<br />
	&quot;TEAM_MSN&quot; =&gt; sed_build_msn($urr['user_msn']),<br />
	&quot;TEAM_IRC&quot; =&gt; sed_cc($urr['user_irc']),<br />
	&quot;TEAM_GENDER&quot; =&gt; $urr['user_gender'],<br />
	&quot;TEAM_BIRTHDATE&quot; =&gt; $urr['user_birthdate'],<br />
	&quot;TEAM_AGE&quot; =&gt; $urr['user_age'],<br />
	&quot;TEAM_TIMEZONE&quot; =&gt; sed_build_timezone($urr['user_timezone']),<br />
	&quot;TEAM_LOCATION&quot; =&gt; sed_cc($urr['user_location']),<br />
	&quot;TEAM_OCCUPATION&quot; =&gt; sed_cc($urr['user_occupation']),<br />
	&quot;TEAM_REGDATE&quot; =&gt; @date($cfg['dateformat'], $urr['user_regdate'] + $usr['timezone'] * 3600).&quot; &quot;.$usr['timetext'],<br />
	&quot;TEAM_LASTLOG&quot; =&gt; @date($cfg['dateformat'], $urr['user_lastlog'] + $usr['timezone'] * 3600).&quot; &quot;.$usr['timetext'],<br />
	&quot;TEAM_LOGCOUNT&quot; =&gt; $urr['user_logcount'],<br />
	&quot;TEAM_POSTCOUNT&quot; =&gt; $urr['user_postcount'],<br />
	&quot;TEAM_LASTIP&quot; =&gt; $urr['user_lastip']<br />
		));<br />
	$t-&gt;parse(&quot;MAIN.TEAM_ROW&quot;);<br />
}<br />
<br />
$nn++;<br />
<br />
}<br />
<br />
?&gt;</div></div>]]></description>
			<pubDate>Сб, 08 Сер 2009 00:25:11 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=3143&d=0#post15659]]></link>
		</item>
	</channel>
</rss>