<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Avatar In Header</title>
		<link>https://www.cotonti.com</link>
		<description>Neueste Themenbeiträge</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sat, 11 Apr 2026 18:54:14 -0000</pubDate>

		<item>
			<title>SunChase</title>
			<description><![CDATA[I had a similar problem.But for the Hidemenu.Try this:<br />
<br />
<br />
The code that calls for the avatar:<br />
<pre class="code">$sql = sed_sql_query(&quot;SELECT user_avatar FROM $db_users WHERE user_id ='&quot;.$usr&#091;'id'&#093;.&quot;'&quot;);</pre>
<br />
The code that makes a picture from it:<br />
<pre class="code">$idu=&quot;&lt;img src=https://www.cotonti.com/\&quot;&quot;.$row&#091;'user_avatar'&#093;.&quot;\&quot;&gt;&quot;;</pre>
<br />
and than just insert the %idu where you want to put the avatar.]]></description>
			<pubDate>Mo, 29 Jun 2009 19:37:57 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2904&d=0#post13567]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[It would be great if somebody listed somewhere global tags... like {PHP.row.something}. I still get them from Neocrome.<br />
<br />
The logic blocks are from the updated and enhanced Xtemplate class:<br />
<a href="http://www.cotonti.com/forums.php?m=posts&amp;q=2305">http://www.cotonti.com/forums.php?m=posts&amp;q=2305</a>]]></description>
			<pubDate>Mo, 29 Jun 2009 14:08:28 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2904&d=0#post13559]]></link>
		</item>
		<item>
			<title>Kingsley</title>
			<description><![CDATA[@ esclkm<br />
<br />
Got some more info about those 'logic blocks'?]]></description>
			<pubDate>Mo, 29 Jun 2009 07:04:14 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2904&d=0#post13556]]></link>
		</item>
		<item>
			<title>esclkm</title>
			<description><![CDATA[I think better will be logic blocks<br />
and tag {PHP.row.user_avatar}<br />
<br />
Core hack is very bad idea]]></description>
			<pubDate>Mo, 29 Jun 2009 06:31:08 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2904&d=0#post13555]]></link>
		</item>
		<item>
			<title>medj</title>
			<description><![CDATA[Thanks Kilandor.<br />
<br />
I have added the following to common.php in case anyone is wondering in the block where all the other $usr array variables are defined:<br />
<br />
<div class="highlight"><pre class="php">$usr&#091;'avatar'&#093; = $row&#091;'user_avatar'&#093;;</pre></div>
<br />
<br />
I am just wondering, would it not be worth it to add these 2 lines of code (1 to header.php and 1 to common.php) to the default cotonti?]]></description>
			<pubDate>Mo, 29 Jun 2009 06:21:57 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2904&d=0#post13554]]></link>
		</item>
		<item>
			<title>Kilandor</title>
			<description><![CDATA[Its in common.php where $usr is set, and avatar isn't one of the default ones.]]></description>
			<pubDate>Mo, 29 Jun 2009 05:17:01 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2904&d=0#post13551]]></link>
		</item>
		<item>
			<title>Lombi</title>
			<description><![CDATA[So have you tried just using avatar?<br />
<br />
The code has to be in the same file, just search for the variable troughout the file and you'll find it.]]></description>
			<pubDate>Mo, 29 Jun 2009 04:52:55 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2904&d=0#post13549]]></link>
		</item>
		<item>
			<title>medj</title>
			<description><![CDATA[Unfortunately, that doesn't work either. <br />
I tried that too noticing that the variable $usr was being used throughout header.php.<br />
<br />
Can you tell me where I would find the code that defines &quot;$usr['name']&quot;?<br />
I figure there is an SQL statement there that is getting the name of the user logged in, and all I have to do is add &quot;avatar.&quot;]]></description>
			<pubDate>Mo, 29 Jun 2009 04:47:31 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2904&d=0#post13547]]></link>
		</item>
		<item>
			<title>Lombi</title>
			<description><![CDATA[From the top of my head, try usr instead of urr, since I see that as the variable that's being parsed.]]></description>
			<pubDate>Mo, 29 Jun 2009 04:37:53 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2904&d=0#post13546]]></link>
		</item>
		<item>
			<title>medj</title>
			<description><![CDATA[I am trying to put the avatar image of a user in the header.tpl.<br />
I tried adding the following line in system/header.php<br />
<br />
<div class="highlight"><pre class="php">&quot;HEADER_USER_AVATAR&quot; =&gt; sed_build_userimage($urr&#091;'user_avatar'&#093;, 'avatar'),
</pre></div>
<br />
so that it looks like:<br />
<div class="highlight"><pre class="php">	$t-&gt;assign(array (
		&quot;HEADER_USER_NAME&quot; =&gt; $usr&#091;'name'&#093;,
		&quot;HEADER_USER_ADMINPANEL&quot; =&gt; $out&#091;'adminpanel'&#093;,
		&quot;HEADER_USER_AVATAR&quot; =&gt; sed_build_userimage($urr&#091;'user_avatar'&#093;, 'avatar'),
		&quot;HEADER_USER_LOGINOUT&quot; =&gt; $out&#091;'loginout'&#093;,
		&quot;HEADER_USER_PROFILE&quot; =&gt; $out&#091;'profile'&#093;,
		&quot;HEADER_USER_PMS&quot; =&gt; $out&#091;'pms'&#093;,
		&quot;HEADER_USER_PFS&quot; =&gt; $out&#091;'pfs'&#093;,
		&quot;HEADER_USER_PMREMINDER&quot; =&gt; $out&#091;'pmreminder'&#093;,
		&quot;HEADER_USER_MESSAGES&quot; =&gt; $usr&#091;'messages'&#093;
	));</pre></div>
<br />
Anyone have any ideas? As of right now, it doesn't work properly.]]></description>
			<pubDate>Mo, 29 Jun 2009 04:32:11 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2904&d=0#post13545]]></link>
		</item>
	</channel>
</rss>