<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : XSAffiliates, show more then 1 random image in index.tpl</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Wed, 08 Apr 2026 07:57:57 -0000</pubDate>

		<item>
			<title>Xerora</title>
			<description><![CDATA[ooops looked over it too quick :p]]></description>
			<pubDate>Mon, 31 Aug 2009 11:18:32 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=3249&d=0#post16624]]></link>
		</item>
		<item>
			<title>DemptD</title>
			<description><![CDATA[changed it to:<br />
<br />
&lt;!-- BEGIN: XSAFF --&gt;<br />
{XSAFF_IMAGES}<br />
&lt;!-- END: XSAFF --&gt;<br />
<br />
didnt work..<br />
<br />
And with Xerora's modification the index wouldnt load  <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/tongue.gif" alt=":P" />]]></description>
			<pubDate>Mon, 31 Aug 2009 09:55:45 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=3249&d=0#post16622]]></link>
		</item>
		<item>
			<title>Kilandor</title>
			<description><![CDATA[Th block shoulda been XSAFF not AFF Mine was fine =&gt; is only for when your using an array <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" />]]></description>
			<pubDate>Mon, 31 Aug 2009 06:54:23 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=3249&d=0#post16619]]></link>
		</item>
		<item>
			<title>Xerora</title>
			<description><![CDATA[<pre class="code">
$sqlxsaff = sed_sql_query(&quot;SELECT * FROM $db_xsaff_aff WHERE aff_active='1' ORDER BY RAND() LIMIT 0,3&quot;);
while($rowxsaff = sed_sql_fetcharray($sqlxsaff))
{
	$t-&gt;assign(&quot;XSAFF_IMAGES&quot; =&gt; &quot;&lt;div class='centerall'&gt;&lt;a href='https://www.cotonti.com/plug.php?e=xsaff&amp;m=redirect&amp;id=&quot;.$rowxsaff&#091;'aff_id'&#093;.&quot;'&gt;&lt;img src='https://www.cotonti.com/plugins/xsaff/affimg/&quot;.sed_cc($rowxsaff&#091;'aff_img'&#093;).&quot;' style='width:88px;height:31px;border:0px' alt='&quot;.sed_cc($rowxsaff&#091;'aff_desc'&#093;).&quot;' /&gt;&lt;/a&gt;&lt;/div&gt;&quot;);
	$t-&gt;parse(&quot;MAIN.XSAFF&quot;);
}
</pre>
<br />
Try that.<br />
<br />
XSAFF_IMAGES wasn't getting assigned to anything in the previous post.]]></description>
			<pubDate>Mon, 31 Aug 2009 06:42:13 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=3249&d=0#post16618]]></link>
		</item>
		<item>
			<title>DemptD</title>
			<description><![CDATA[i changed the number to 3 and did it like this in index.tpl:<br />
<br />
<pre class="code">&lt;!-- BEGIN: AFF --&gt;
{XSAFF_IMAGES}
&lt;!-- END: AFF --&gt;</pre>
<br />
Is that right? it didnt work, nothing showed up then.]]></description>
			<pubDate>Mon, 31 Aug 2009 04:08:10 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=3249&d=0#post16616]]></link>
		</item>
		<item>
			<title>Kilandor</title>
			<description><![CDATA[<div class="highlight"><pre class="php">$sqlxsaff = sed_sql_query(&quot;SELECT * FROM $db_xsaff_aff WHERE aff_active='1' ORDER BY RAND() LIMIT 0,NUM_YOU_WANT_TO_SHOW&quot;);
while($rowxsaff = sed_sql_fetcharray($sqlxsaff))
{
	$t-&gt;assign(&quot;XSAFF_IMAGES&quot;, &quot;&lt;div class='centerall'&gt;&lt;a href='https://www.cotonti.com/plug.php?e=xsaff&amp;m=redirect&amp;id=&quot;.$rowxsaff&#091;'aff_id'&#093;.&quot;'&gt;&lt;img src='https://www.cotonti.com/plugins/xsaff/affimg/&quot;.sed_cc($rowxsaff&#091;'aff_img'&#093;).&quot;' style='width:88px;height:31px;border:0px' alt='&quot;.sed_cc($rowxsaff&#091;'aff_desc'&#093;).&quot;' /&gt;&lt;/a&gt;&lt;/div&gt;&quot;);
	$t-&gt;parse(&quot;MAIN.XSAFF&quot;);
}</pre></div>
<br />
Just change NUM_YOU_WANT_TO_SHOW to how many you want to see, and add a new block(begin/end) around the tag called XSAFF]]></description>
			<pubDate>Mon, 31 Aug 2009 03:28:05 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=3249&d=0#post16615]]></link>
		</item>
		<item>
			<title>DemptD</title>
			<description><![CDATA[How can i do that?<br />
<br />
Heres xsaff.index.php:<br />
<br />
<pre class="code">if (!defined('SED_CODE')) { die('Wrong URL.'); }
$sqlxsaff = sed_sql_query(&quot;SELECT * FROM $db_xsaff_aff WHERE aff_active='1' ORDER BY RAND() LIMIT 0,1&quot;);
$rowxsaff = sed_sql_fetcharray($sqlxsaff);

$t-&gt;assign(&quot;XSAFF_IMAGES&quot;, &quot;&lt;div class='centerall'&gt;&lt;a href='https://www.cotonti.com/plug.php?e=xsaff&amp;m=redirect&amp;id=&quot;.$rowxsaff&#091;'aff_id'&#093;.&quot;'&gt;&lt;img src='https://www.cotonti.com/plugins/xsaff/affimg/&quot;.sed_cc($rowxsaff&#091;'aff_img'&#093;).&quot;' style='width:88px;height:31px;border:0px' alt='&quot;.sed_cc($rowxsaff&#091;'aff_desc'&#093;).&quot;' /&gt;&lt;/a&gt;&lt;/div&gt;&quot;);

?&gt;</pre>]]></description>
			<pubDate>Sun, 30 Aug 2009 22:04:34 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=3249&d=0#post16602]]></link>
		</item>
	</channel>
</rss>