![]() |
Please help!
Here's what I'm trying to do in the threadbit template:
Code:
<if condition="SOME CODE TO GENERATE A RANDOM CHANCE 1:50"> Pleeease help. Thank you. |
Cheap way to do it:
PHP CODE Using this will add a value to $random. That value can be anywhere between the #1 threw the #5. PHP Code:
HTML Code:
<if condition="$random == '3'"> |
Quote:
Just tried it out... Doesn't seem to be outputting the sponsor link. Here's what I did... 1. Added a New Plugin via the Plugin Manager 2. This new plugin is called randNum and it contains this code: $random = rand(1, 5); 3. I set this to be called in the global_start. 4. I edited the template with the above template edit. Doesn't seem to be displaying the sponsor URL. Any ideas? EDIT: Nevermind. I think I got it working. Thanks for your help! This RULES! |
No problem, remember its random. Sometimes it won't show up. ;)
|
All times are GMT. The time now is 03:05 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:
|