Staredit Network

Staredit Network -> Computers and Technical -> Trigger Code HTML
Report, edit, etc...Posted by sharf on 2006-05-23 at 23:14:02
whats the HTML of this
Trigger
Players:
¤ 
Conditions:
¤ 
Actions:
¤ 

Report, edit, etc...Posted by Pie_Sniper on 2006-05-23 at 23:41:22
Stop being lazy, push the View Source button. tongue.gif
CODE
<table align="center" border="1">
 <tbody>
   <tr>
     <td class="maintitle" align="center">Trigger</td>
   </tr>
   <tr>
     <td class="titlemedium" width="400"><b>Players:</b></td>
   </tr>
   <tr>
     <td>¤&nbsp;</td>
   </tr>
   <tr>
     <td class="titlemedium" width="400"><b>Conditions:</b></td>
   </tr>
   <tr>
     <td>¤&nbsp;</td>
   </tr>
   <tr>
     <td class="titlemedium" width="400"><b>Actions:</b></td>
   </tr>
   <tr>
     <td>¤&nbsp;</td>
   </tr>
 </tbody>
</table>

The CSS is most likely irrevelant to your purposes.
Report, edit, etc...Posted by sharf on 2006-05-24 at 15:16:43
i didnt know how to get the code tongue.gif i would have accepted teh code(thx) or how t oget it biggrin.gif

ADDITION:
um wait huh.gif do i put that in css? were?(i have invision FREE free ver of IPB(this board)) or somewhere else? also, is that the code and where is the view source button?
Report, edit, etc...Posted by Centreri on 2006-05-24 at 15:41:47
That was a custom script inserted into the IPB here. You'll have to include some php happy.gif.
Report, edit, etc...Posted by sharf on 2006-05-24 at 15:44:50
i know it was custom, can some1 just tell me how to put it in they use same stuff a what i have.
Report, edit, etc...Posted by Centreri on 2006-05-24 at 16:09:34
Well, I don't know how IPB works or exactly how you want it to work, but it would be something like this, if sent.
CODE

<?php
echo("
<table>
<tr>
 <td style=\"background-color: green;height:
30px;\"><center>Trigger</center></td>
</tr>
<tr>
 <td style=\"background-color: gray;height: 20px;\">Players</td>
</tr>
<tr>
 <td>" . $_POST['players'] . " </td>
</tr>
<tr>
 <td style=\"background-color: gray;height: 20px;\">Conditions</td>
</tr>
<tr>
 <td>" . $_POST['conditions'] . " </td>
</tr>
<tr>
 <td style=\"background-color: gray;height: 20px;\">Actions</td>
</tr>
<tr>
 <td>" . $_POST['actions'] . " </td>
</tr>
</table>
");

?>

This should work, assuming that the information is passed through $_POST, which it probably isn't. You replace the $_POST['players'] and all with whatever IPB uses. You still need to format everything else; as said before, if I had information about how IPB works, it would be much easier. You need to insert it in the PHP document where it processes BBcode.
Report, edit, etc...Posted by Shmeeps on 2006-05-24 at 18:22:00
First off, you'd use preg_replace in the view post function, or BBCODE parsing function.

Secondly, unless you're talking about the downloadable package, you can't edit those files. If you do ave the downloadable package, look on google for custom BBCODEs in IPB.
Report, edit, etc...Posted by RexyRex on 2006-05-24 at 21:15:41
IPB has a custom BBCode feature, but I think Michael (one of them wink.gif) played with the source a bit to have it work the way it does.
Report, edit, etc...Posted by xMCx on 2006-05-24 at 21:24:36
Mini Moose has a tutorial on the coding of this site.
Report, edit, etc...Posted by Centreri on 2006-05-25 at 14:51:23
Really? WHERE!?
Next Page (1)