![]() |
[variable] within a bbcode
I am trying to use a random number variable within a custom bbcode.
basically I have a tag called [rand] that produces random numbers from 1 - 15 The php code looks like this PHP Code:
All my smilies for this bbcode are named the same with numbers at the end such as sign1.png, sign2.png, sign3.png, etc etc What I want to do is make the smilies change by randomly calling up a different number. This is what I'm currently running for the sign. HTML Code:
<table border="0" cellspacing="0" cellpadding="0"> This obviously doesn't work. I've tried having my custom bbcode look something like this [sign=[rand]]blah blah[/sign] and obviously this doesnt work. Could someone tell me what I could do to accomplish this? I'd appreciate any help on this. Someone must know this Someone must know Anyone? |
All times are GMT. The time now is 01:33 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|