<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[PunBB Forums - Show the real name at the userinfo]]></title>
	<link rel="self" href="http://punbb.informer.com/forums/feed/atom/topic/21520/"/>
	<updated>2009-04-20T09:29:53Z</updated>
	<generator>PunBB</generator>
	<id>http://punbb.informer.com/forums/topic/21520/show-the-real-name-at-the-userinfo/</id>
		<entry>
			<title type="html"><![CDATA[Re: Show the real name at the userinfo]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/127016/#p127016"/>
			<content type="html"><![CDATA[<p>1) Replace 187 line of viewtopic.php with this:<br /></p><div class="codebox"><pre><code>$result = $db-&gt;query(&#039;SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online, u.realname FROM &#039;.$db-&gt;prefix.&#039;posts AS p INNER JOIN &#039;.$db-&gt;prefix.&#039;users AS u ON u.id=p.poster_id INNER JOIN &#039;.$db-&gt;prefix.&#039;groups AS g ON g.g_id=u.group_id LEFT JOIN &#039;.$db-&gt;prefix.&#039;online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=&#039;.$id.&#039; ORDER BY p.id LIMIT &#039;.$start_from.&#039;,&#039;.$pun_user[&#039;disp_posts&#039;], true) or error(&#039;Unable to fetch post info&#039;, __FILE__, __LINE__, $db-&gt;error());</code></pre></div><p>2) Go to 223 line of viewtopic.php and replace it with this peace of code:<br /></p><div class="codebox"><pre><code>if ($pun_config[&#039;o_show_user_info&#039;] == &#039;1&#039;)
{
    if (!empty($cur_post[&#039;realname&#039;]))
        $user_info[] = &#039;&lt;dd&gt;Realname: &#039;.$cur_post[&#039;realname&#039;];</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Slavok]]></name>
				<uri>http://punbb.informer.com/forums/user/13265/</uri>
			</author>
			<updated>2009-04-20T09:29:53Z</updated>
			<id>http://punbb.informer.com/forums/post/127016/#p127016</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Show the real name at the userinfo]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/126951/#p126951"/>
			<content type="html"><![CDATA[<p>Hi!</p><p>Currently my place, the date of signment, ... are displayed beside every post. Now I want just add the real name into this &quot;list&quot;. How can I do it?</p><p>Thanks!</p>]]></content>
			<author>
				<name><![CDATA[Klappspaten]]></name>
				<uri>http://punbb.informer.com/forums/user/12988/</uri>
			</author>
			<updated>2009-04-18T16:28:30Z</updated>
			<id>http://punbb.informer.com/forums/post/126951/#p126951</id>
		</entry>
</feed>
