<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Adding a specific link into each user's post]]></title>
		<link>https://punbb.informer.com/forums/topic/24187/adding-a-specific-link-into-each-users-post/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/24187/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Adding a specific link into each user's post.]]></description>
		<lastBuildDate>Tue, 05 Jul 2011 08:17:00 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Adding a specific link into each user's post]]></title>
			<link>https://punbb.informer.com/forums/post/140571/#p140571</link>
			<description><![CDATA[<p>Many many thanks Koos, works excellent. <img src="https://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[null@example.com (antonio)]]></author>
			<pubDate>Tue, 05 Jul 2011 08:17:00 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/140571/#p140571</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding a specific link into each user's post]]></title>
			<link>https://punbb.informer.com/forums/post/140562/#p140562</link>
			<description><![CDATA[<p>Hi antonio, this should do the trick:</p><div class="codebox"><pre><code>#
#---------[ 1. OPEN ]---------------------------------------------------------
#

viewtopic.php


#
#---------[ 2. FIND (line: 244) ]---------------------------------------------
#

            if ($cur_post[&#039;url&#039;] != &#039;&#039;)
                $user_contacts[] = &#039;&lt;a href=&quot;&#039;.pun_htmlspecialchars($cur_post[&#039;url&#039;]).&#039;&quot;&gt;&#039;.$lang_topic[&#039;Website&#039;].&#039;&lt;/a&gt;&#039;;


#
#---------[ 3. AFTER, ADD ]---------------------------------------------------
#

            if (!$pun_user[&#039;is_guest&#039;])
                $user_contacts[] = &#039;&lt;a href=&quot;uploadimg_view.php?view=gallery&amp;id=&#039;.$cur_post[&#039;poster_id&#039;].&#039;&quot;&gt;&#039;.&#039;Gallery&#039;.&#039;&lt;/a&gt;&#039;;</code></pre></div><p>This will show a <strong>Gallery</strong> link for each user in viewtopic, but will not be visible for guests.</p><p>You will also have to edit <strong>uploadimg_view.php</strong> to allow all users to view each other&#039;s galleries. You can do this by deleting or commenting out the following two lines:</p><div class="codebox"><pre><code>    if (!in_array($pun_user[&#039;g_title&#039;], $Allow_Stats))
        message($lang_common[&#039;No permission&#039;]);</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Koos)]]></author>
			<pubDate>Mon, 04 Jul 2011 21:58:24 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/140562/#p140562</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding a specific link into each user's post]]></title>
			<link>https://punbb.informer.com/forums/post/140511/#p140511</link>
			<description><![CDATA[<p>No one? This is part of code of <em>viewtopic.php</em> where I need to put it. Ideally invisible for guests.</p><div class="codebox"><pre><code>&lt;dt&gt;&lt;strong&gt;&lt;?php echo $username ?&gt;&lt;/strong&gt;&lt;/dt&gt;
&lt;dd class=&quot;usertitle&quot;&gt;&lt;strong&gt;&lt;?php echo $user_title ?&gt;&lt;/strong&gt;&lt;/dd&gt;
&lt;dd class=&quot;postavatar&quot;&gt;&lt;?php echo $user_avatar ?&gt;&lt;/dd&gt;

&lt;?php if (count($user_info)) echo &quot;\t\t\t\t\t&quot;.implode(&#039;&lt;/dd&gt;&#039;.&quot;\n\t\t\t\t\t&quot;, $user_info).&#039;&lt;/dd&gt;&#039;.&quot;\n&quot;; ?&gt;
&lt;?php if (count($user_contacts)) echo &quot;\t\t\t\t\t&quot;.&#039;&lt;dd class=&quot;usercontacts&quot;&gt;&#039;.implode(&#039;&amp;nbsp;&amp;nbsp;&#039;, $user_contacts).&#039;&lt;/dd&gt;&#039;.&quot;\n&quot;; ?&gt;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (antonio)]]></author>
			<pubDate>Tue, 28 Jun 2011 12:16:06 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/140511/#p140511</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding a specific link into each user's post]]></title>
			<link>https://punbb.informer.com/forums/post/140462/#p140462</link>
			<description><![CDATA[<p>I reckon it would be pretty easy, however not for me. Only thing I am able to do is put the resulting code on the right place, that&#039;s why I ask.</p><p>Edit: Should I rather hang it on punres?</p>]]></description>
			<author><![CDATA[null@example.com (antonio)]]></author>
			<pubDate>Thu, 23 Jun 2011 15:39:17 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/140462/#p140462</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding a specific link into each user's post]]></title>
			<link>https://punbb.informer.com/forums/post/140452/#p140452</link>
			<description><![CDATA[<p>You can write an extension to do this pretty easily, do you know php?</p>]]></description>
			<author><![CDATA[null@example.com (hklown)]]></author>
			<pubDate>Thu, 23 Jun 2011 02:38:59 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/140452/#p140452</guid>
		</item>
		<item>
			<title><![CDATA[Adding a specific link into each user's post]]></title>
			<link>https://punbb.informer.com/forums/post/140449/#p140449</link>
			<description><![CDATA[<p>Hey guys,</p><p>I use <a href="http://www.punres.org/files.php?pid=362">this extension</a> as my image gallery, version 1.2 I suppose... each link to user&#039;s gallery consist of &quot;<em>my_website/uploadimg_view.php?view=gallery&amp;id=<strong>NUMBER</strong></em>&quot; where the &quot;number&quot; is same as profil number of the user (<em>my_website/profile.php?id=<strong>NUMBER</strong></em>).</p><p>So I need help with adding such link into each user&#039;s post, just below e-mail or website link. But how to do it?</p><p>Many thanks</p>]]></description>
			<author><![CDATA[null@example.com (antonio)]]></author>
			<pubDate>Wed, 22 Jun 2011 17:35:20 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/140449/#p140449</guid>
		</item>
	</channel>
</rss>
