<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Randomizing Image</title>
		<link>https://www.cotonti.com</link>
		<description>Neueste Themenbeiträge</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sat, 02 May 2026 13:44:36 -0000</pubDate>

		<item>
			<title>CJ</title>
			<description><![CDATA[<p>
	its ok, its good enough i just really wanted siggys which is waht i got, Thank you !</p>
]]></description>
			<pubDate>Fr, 01 Jul 2011 13:28:53 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6378&d=0#post30005]]></link>
		</item>
		<item>
			<title>urlkiller</title>
			<description><![CDATA[<p>
	no idea sorry.. maybe ask someone from the dev team...<br />
	 </p>
]]></description>
			<pubDate>Do, 30 Jun 2011 16:23:42 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6378&d=0#post29989]]></link>
		</item>
		<item>
			<title>CJ</title>
			<description><![CDATA[<p>
	nope Markitup</p>
]]></description>
			<pubDate>Do, 30 Jun 2011 16:21:33 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6378&d=0#post29988]]></link>
		</item>
		<item>
			<title>urlkiller</title>
			<description><![CDATA[<p>
	you don't use ckedit, do you?</p>
]]></description>
			<pubDate>Do, 30 Jun 2011 16:18:53 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6378&d=0#post29987]]></link>
		</item>
		<item>
			<title>CJ</title>
			<description><![CDATA[<p>
	in forum posts if i post like how i amd now it doesnt show but the siggy is changin. but not the post it self</p>
<p>
	 </p>
<p>
	in the news post it does the same i have 4 images [random]Image1|image2|ectect[/random but nothing happens</p>
<p>
	 </p>
<p>
	 </p>
]]></description>
			<pubDate>Do, 30 Jun 2011 16:07:25 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6378&d=0#post29986]]></link>
		</item>
		<item>
			<title>urlkiller</title>
			<description><![CDATA[<p>
	hmm...  well. i dont really know how that bbcodes get parsed by the system.<br />
	its really wierd since it <u>should </u>get parsed for every text output. (if you activated bbcode parsing of course)<br /><br />
	i hope somebody from the core dev will say something about that.<br /><br />
	(but your solution isnt the most elegant .. so maybe think about another way? as plan b :D )</p>
<p>
	 </p>
<p>
	what exactly happens when you use it on pages and forums. it shows you a random item from the array? or does it show nothing?<br />
	how does it react?</p>
]]></description>
			<pubDate>Do, 30 Jun 2011 16:04:16 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6378&d=0#post29985]]></link>
		</item>
		<item>
			<title>CJ</title>
			<description><![CDATA[<p>
	Yeah it only works on Profiles not News postes or Forum posts.</p>
]]></description>
			<pubDate>Do, 30 Jun 2011 15:59:19 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6378&d=0#post29984]]></link>
		</item>
		<item>
			<title>urlkiller</title>
			<description><![CDATA[<p>
	hmm...<br />
	try it please with multiple post.<br />
	it had the behaviour that it only changes the value when the post was submited. only refreshing the page wont work... [this was for me, maybe your's behave differntly]<br />
	(bare with me this is my first time working with bbcode system ever. i usualy use html markup for most user freetext fields like here on cot now)</p>
]]></description>
			<pubDate>Do, 30 Jun 2011 15:56:06 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6378&d=0#post29983]]></link>
		</item>
		<item>
			<title>CJ</title>
			<description><![CDATA[<p>
	Once question i added it to a news post but its not changing the image, but its working on my Siggy</p>
]]></description>
			<pubDate>Do, 30 Jun 2011 15:52:18 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6378&d=0#post29982]]></link>
		</item>
		<item>
			<title>urlkiller</title>
			<description><![CDATA[<p>
	and does it work like you wanted?<br />
	you can really do a lot with only the build in features of the framework...<br /><br />
	nice, eh?<br />
	 </p>
]]></description>
			<pubDate>Do, 30 Jun 2011 15:48:08 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6378&d=0#post29981]]></link>
		</item>
		<item>
			<title>CJ</title>
			<description><![CDATA[<p>
	now in my Signature area it says $arr = explode('|',$input[1]); return $arr[mt_rand(0,count($arr) - 1)];</p>
<p>
	 </p>
<p>
	...</p>
<p><strong>Added 29 minutes later:</strong></p><p>
	Nvm i got it working ! thanks for the HELP !!</p>
]]></description>
			<pubDate>Do, 30 Jun 2011 14:58:17 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6378&d=0#post29979]]></link>
		</item>
		<item>
			<title>urlkiller</title>
			<description><![CDATA[<p>
	ok. so. i never done that before but it seems that is working properly...<br /><br />
	so some little steps for you to do:</p>
<p>
	1. go to admin.php?m=bbcode on your site<br />
	2. add a new field with the following settings:</p>
<p>
	<a href="http://www.cotonti.com/datas/users/bbcode_39.png">http://www.cotonti.com/datas/users/bbcode_39.png</a><br /><br />
	here is the complete code you have to paste on the right place (see above):</p>
<p>
	1st field: <span style="background-color:#ff8c00;">\[random\](.+?)\[/random\]</span><br />
	2nd field: <span style="background-color:#ff8c00;">$arr = explode('|',$input[1]); return $arr[mt_rand(0,count($arr) - 1)];</span><br /><br />
	this allows users on your site to add an random code like<span style="background-color:#ff0000;"> [random]one|two|three|four|...[/random]</span></p>
]]></description>
			<pubDate>Do, 30 Jun 2011 03:48:00 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6378&d=0#post29977]]></link>
		</item>
		<item>
			<title>CJ</title>
			<description><![CDATA[<p>
	but would that work for any user ?</p>
<p><strong>Added 56 minutes later:</strong></p><p>
	ok i have a code to put in the Functions.Php its for BBCode how would i add it ??</p>
<p>
	 </p>
<pre class="brush:php;">
    if($name == 'random')
    {
        $parts = explode('|',$inner);
        return $parts[mt_rand(0,count($parts) - 1)];
    }
    if($name == 'noparse') return $inner;

</pre>
<p>
	how would i add that to the PhP so it doesnt kill my site</p>
]]></description>
			<pubDate>Mi, 29 Jun 2011 13:22:39 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6378&d=0#post29969]]></link>
		</item>
		<item>
			<title>urlkiller</title>
			<description><![CDATA[<p>
	yeah as it is for a signature you could think about the following.</p>
<p>
	1. add a extra field to the users<br />
	2. make a really small plugin (sounds scary? it isnt!)<br />
	2a. the plugin only reads the string from the new extra field (e.g.: var1;var2;var3;var4)<br />
	2b. make an array out of that<br />
	2c. randomize the array<br />
	3. output only one var<br /><br />
	that should do the trick... then you would only need one field...<br /><br />
	but if you only want some fancy signatures you can check that &lt;marquee&gt; <a href="http://de.selfhtml.org/html/text/anzeige/marquee.htm" rel="nofollow">http://de.selfhtml.org/html/text/anzeige/marquee.htm</a><br />
	and also. since everyone could use html in their signature they can add even this to animate or make it more interesting.</p>
]]></description>
			<pubDate>Mi, 29 Jun 2011 02:51:05 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6378&d=0#post29958]]></link>
		</item>
		<item>
			<title>CJ</title>
			<description><![CDATA[<p>
	we used it before so that we all could have a roating siggy</p>
<p>
	 </p>
<p>
	and thanks for tha link</p>
]]></description>
			<pubDate>Di, 28 Jun 2011 11:27:33 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6378&d=0#post29948]]></link>
		</item>
		<item>
			<title>urlkiller</title>
			<description><![CDATA[<p>
	Sorry if i may sound stupid. but what's the use of a random bbcode thing?<br /><br />
	[random]one|two|three[/random] and then it returns only one of the 3 vars?<br />
	i really cant figure out a plausible reason that would explain why... <img alt="surprise" height="20" src="http://www.cotonti.com/plugins/ckeditor/lib/plugins/smiley/images/omg_smile.gif" title="surprise" width="20" /></p>
<p>
	 </p>
<p>
	 </p>
<p><strong>Added 58 seconds later:</strong></p><p>
	anyway you could do that with a plugin i guess. check out the bbcode documentation that will give you some leads i think.</p>
<p><strong>Added 51 seconds later:</strong></p><p>
	<a href="http://www.cotonti.com/articles/14">http://www.cotonti.com/articles/14</a></p>
]]></description>
			<pubDate>Mo, 27 Jun 2011 01:46:46 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6378&d=0#post29928]]></link>
		</item>
		<item>
			<title>CJ</title>
			<description><![CDATA[<p>
	no... thats not want, what i want is a script (bbcode) that randomizies the images in the tags [random][/random] and anyone can use it in there signature. as i said we use to have it on out site befor we switched to SED.</p>
<p>
	 </p>
]]></description>
			<pubDate>So, 05 Jun 2011 13:47:12 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6378&d=0#post29788]]></link>
		</item>
		<item>
			<title>Kingsley</title>
			<description><![CDATA[<p>
	think <a href="http://www.cotonti.com/extensions/files-media/EZSlider">this</a> plugin from EZ does what you want</p>
]]></description>
			<pubDate>So, 05 Jun 2011 13:41:12 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6378&d=0#post29787]]></link>
		</item>
		<item>
			<title>CJ</title>
			<description><![CDATA[<p>
	6.1.5? is my cotonti.</p>
<p>
	I found another</p>
<p>
	 </p>



Create a new file (bbcode.php):




Upload it to your main forums URL where index.php, etc is located.

Remove the javascript and replace it with the following (in the bbcode section of the admin cp):



You can now use [rand]Test1||Test2[/rand] and no longer "%"'s.




<p>
	now my Images between [rand] Tags Dont show</p>
<p>
	im looking for other ways but i really wana get this working alot of the guys on the site use to have this and we loved it, its been used in out shoutbox news forums downloads Ect on LDU but now on SED idk how to get this to work..</p>
]]></description>
			<pubDate>So, 05 Jun 2011 13:25:56 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6378&d=0#post29786]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[<p>
	Where do you want to use it?</p>
<p>
	Maybe there is another solution for it.<br />
	In which version do you want to add it?</p>
]]></description>
			<pubDate>So, 05 Jun 2011 13:12:24 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6378&d=0#post29785]]></link>
		</item>
		<item>
			<title>CJ</title>
			<description><![CDATA[<p>
	ok so GOM Team use to have this <a href="http://custom.simplemachines.org/mods/index.php?mod=909" rel="nofollow">http://custom.simplemachines.org/mods/index.php?mod=909</a> it randomizes the images {Random} Image 1 | Image 2 | Image 3 {/random} ({} = [])</p>
<p>
	 </p>
<p>
	but i didnt add it to the LDU another guy did, im wondering how i would added it to the Sed files (cotonti)</p>
]]></description>
			<pubDate>So, 05 Jun 2011 12:59:15 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6378&d=0#post29784]]></link>
		</item>
	</channel>
</rss>