CJ |
|
---|---|
ok so GOM Team use to have this http://custom.simplemachines.org/mods/index.php?mod=909 it randomizes the images {Random} Image 1 | Image 2 | Image 3 {/random} ({} = [])
but i didnt add it to the LDU another guy did, im wondering how i would added it to the Sed files (cotonti) |
pieter |
|
---|---|
Where do you want to use it?
Maybe there is another solution for it. ... can we help you ...
|
CJ |
|
---|---|
6.1.5? is my cotonti. I found another 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. now my Images between [rand] Tags Dont show 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.. |
|
Dit bericht is bewerkt door CJ (2011-06-05 15:27, 13 jaren ago) |
Kingsley |
|
---|---|
think this plugin from EZ does what you want |
CJ |
|
---|---|
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.
|
urlkiller |
|
---|---|
Sorry if i may sound stupid. but what's the use of a random bbcode thing?
Added 58 seconds later: anyway you could do that with a plugin i guess. check out the bbcode documentation that will give you some leads i think. Added 51 seconds later: URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
|
CJ |
|
---|---|
we used it before so that we all could have a roating siggy
and thanks for tha link |
urlkiller |
|
---|---|
yeah as it is for a signature you could think about the following.
1. add a extra field to the users URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
|
CJ |
|
---|---|
but would that work for any user ? Added 56 minutes later: ok i have a code to put in the Functions.Php its for BBCode how would i add it ??
if($name == 'random') { $parts = explode('|',$inner); return $parts[mt_rand(0,count($parts) - 1)]; } if($name == 'noparse') return $inner; how would i add that to the PhP so it doesnt kill my site |
|
Dit bericht is bewerkt door CJ (2011-06-29 14:19, 13 jaren ago) |
urlkiller |
|
---|---|
ok. so. i never done that before but it seems that is working properly...
1. go to admin.php?m=bbcode on your site
http://www.cotonti.com/datas/users/bbcode_39.png
1st field: \[random\](.+?)\[/random\] URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
|
CJ |
|
---|---|
now in my Signature area it says $arr = explode('|',$input[1]); return $arr[mt_rand(0,count($arr) - 1)];
... Added 29 minutes later: Nvm i got it working ! thanks for the HELP !! |
|
Dit bericht is bewerkt door CJ (2011-06-30 15:27, 13 jaren ago) |
urlkiller |
|
---|---|
and does it work like you wanted? URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
|
CJ |
|
---|---|
Once question i added it to a news post but its not changing the image, but its working on my Siggy |
urlkiller |
|
---|---|
hmm... URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
|
CJ |
|
---|---|
Yeah it only works on Profiles not News postes or Forum posts. |