<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><h3><br></h3><h3><span class="Apple-style-span" style="font-size: medium; font-weight: normal; ">Hi there. i wonder if this following might of any use to anyone currently using attachtable.php? i've modified Eemeli's recipe so that in the far left column there are buttons that quickly post the necessary attach/embed code for each file into the edit window. i've been using a modified version of an earlier attachtable recipe with buttons enabled for years without a hitch. i just updated to the newest version of the recipe, and added and refined my modifications. here's how to test it:</span></h3><h3><br></h3><h3><span class="Apple-style-span" style="font-size: medium; font-weight: normal; ">1. download the code (available for now at the bottom of the Attachtable-Talk page - <a href="http://www.pmwiki.org/wiki/Cookbook/Attachtable-Talk">http://www.pmwiki.org/wiki/Cookbook/Attachtable-Talk</a>)</span></h3><p class="vspace">2. substitute my version of <code>cookbook/attachtable/attachtable.php</code> for the one normally used with the last distribution <br>3. add <code>cookbook/attachtable/attachFileBtn03.php</code> <br>4. in your <code>pub/</code> directory, add the embedBtns folder (i have the origial .ai files in case folks want to mess with the design of the buttons)<br>5. when adding or updating an attachtable (for instance on Site.EditForm), simply add <code>embedBtn=1</code> or <code>attachBtn=1</code>:</p><p class="vspace"><font class="Apple-style-span" face="monospace"><br></font></p><p class="vspace"><span class="Apple-style-span" style="font-family: monospace; ">(:attachtable NAME embedBtn=1 ... :)</span></p><p class="vspace"><span class="Apple-style-span" style="font-family: monospace; "><span class="Apple-style-span" style="font-family: Verdana; ">this will add a button next to each filename - the ones that can be embedded in the page (via <code class="escaped">(:quicktime:)</code>, <code class="escaped">(:flash:)</code>, or as an image) are assigned an "embed" button. all other files are given a "link" button which simply posts the file using the "<code class="escaped">Attach:</code>" markup.</span></span></p><p class="vspace"><br></p><p class="vspace"><span class="Apple-style-span" style="font-family: monospace; "><span class="Apple-style-span" style="font-family: Verdana; "><span class="Apple-style-span" style="font-family: monospace; ">(:attachtable NAME attachBtn=1 ... :)</span></span></span></p><p class="vspace"><span class="Apple-style-span" style="font-family: monospace; "><span class="Apple-style-span" style="font-family: Verdana; "><span class="Apple-style-span" style="font-family: monospace; "><span class="Apple-style-span" style="font-family: Verdana; ">this will add a button next to each filename - all files will be posted using the simple "Attach:" markup, except for images, which will be embedded in the page.</span></span></span></span></p><p class="vspace"><br></p><p class="vspace"><span class="Apple-style-span" style="font-family: monospace; "><span class="Apple-style-span" style="font-family: Verdana; "><span class="Apple-style-span" style="font-family: monospace; "><span class="Apple-style-span" style="font-family: Verdana; ">i can provide more in-depth info later. the buttons are using code by PM from guiedit.php. i haven't done extensive testing on this newer version, so there may be some bugs i've missed. if you think this would be an interesting feature to add to the core of the recipe, i'd be happy to write-up more extensive documentation that could be added to the main page. otherwise, maybe i should just post it somewhere else as an alternative version of the recipe?</span></span></span></span></p><p class="vspace">thanks for the feedback.</p><p class="vspace">adam</p><p class="vspace"><br></p><p class="vspace"><br></p></div></body></html>