I am using preg_replace() because I have a small set
and I wanted to have control over what was going on.
Assuming this is the plugin code:
<!-- Express Response Plugin Begin -->
<span style="font-size:14px;font-weight:bold;color:black;">
<center>Pick Up Our Free Newsletter</center></span>
<form name="regis"action="http://expressresponse.net/leads.php"
method="POST"><span><input type="hidden" name="xrkey"
value="gs44s9023d8957z44ej"></span><span><b>Name:</b>
</span><span><INPUT name="x_name" value='' size="20"
maxlength="30" type="text"></span><br><span>
<b>Email:</b></span><span><INPUT name="x_email"
value='' size='20' maxlength='60' type='text'></span>
<br><br><center><input type='submit' value='SUBSCRIBE'>
</center><span style="font-size:6x;"><br>
<a href="http://www.expressresponse.net">
Free Autoresponder Plugin</a></span></form><br>
<!-- Express Response Plugin End -->
I am thinking of creating a new bbcode:
[autoresp]gs44s9023d8957z44ej [/autoresp]
And then use my bbcode.php to preg_replace() and re-build the form.
Maybe I need a container for it with a width, so it could be:
[autoresp]gs44s9023d8957z44ej,200 [/autoresp]
And then I can create:
<div style="float:left; width:200px">
<form name="regis"action="http://expressresponse.net/leads.php"
method="POST"><span><input type="hidden" name="xrkey"
value="gs44s9023d8957z44ej"></span><span><b>Name:</b>
</span><span><INPUT name="x_name" value='' size="20"
maxlength="30" type="text"></span><br><span>
<b>Email:</b></span><span><INPUT name="x_email"
value='' size='20' maxlength='60' type='text'></span>
<br><br><center><input type='submit' value='SUBSCRIBE'>
</center><span style="font-size:6x;"><br>
<a href="http://www.expressresponse.net">
Free Autoresponder Plugin</a></span></form>
</div>
That will leave the user free to add their own heading in whatever style
they want.
Only downside to this method is that the input sizes and layout are fixed.
I could add a "float option" and "font size" as well:
[autoresp]gs44s9023d8957z44ej,left, 200,12 [/autoresp]
But this may be the best method.
Any thoughts ?
.