05-17-2005, 08:14 PM
Zap worked up some code awhile ago so that quickhost can be built right into your forum, meaning as someone's about to post, they can upload something directly from the forum they are posting on an add it to the post. When Zap wrote it I promised I'd give the code out, but didn't, so I guess I'll do that now.
If you want to see what it looks like, we have it set up at fbtk (only under the subsilver style).
Anyway, if you'd like to mod it into your forum (and if you wouldn't want to add it to your forum, then skip over all this text and move to some other post), here's what you need to.
In posting_body.tpl, right after
add
Text and link color can be controlled by changing
to
Where #hex is a hexadecimal color code (like 99FFCC, no preceding #). Either of the two arguments can be included or not by wish, if they arent, text & link will have default colors (black and blue). The only possible value for the <i>layout</i> argument so far is 1.
If you want to see what it looks like, we have it set up at fbtk (only under the subsilver style).
Anyway, if you'd like to mod it into your forum (and if you wouldn't want to add it to your forum, then skip over all this text and move to some other post), here's what you need to.
In posting_body.tpl, right after
Code:
<tr>
<td>
<input type="checkbox" name="delete" />
</td>
<td><span class="gen">{L_DELETE_POST}</span></td>
</tr>
<!-- END switch_delete_checkbox
<!-- BEGIN switch_type_toggle
<tr>
<td></td>
<td><span class="gen">{S_TYPE_TOGGLE}</span></td>
</tr>
<!-- END switch_type_toggle
</table>
</td>
</tr>
add
Code:
<tr>
<th class="thHead" colspan="2">Upload file to QuickHost</th>
</tr>
<tr>
<td class="row1" colspan="2">
<iframe src="http://qh2.qbtk.com/upload_form.php?layout=1"
allowtransparency="true"
frameborder="0"
scrolling="no"
width="100%"
height="190">
Your browser does not support iFrames, so you will have to go to the <a href="http://qh2.qbtk.com">QuickHost Website</a> to upload files.
</iframe>
</td>
</tr>
Text and link color can be controlled by changing
Code:
src="http://qh2.qbtk.com/upload_form.php?layout=1"
to
Code:
src="http://qh2.qbtk.com/upload_form.php?layout=1&text_color=hex&link_color=hex"
Where #hex is a hexadecimal color code (like 99FFCC, no preceding #). Either of the two arguments can be included or not by wish, if they arent, text & link will have default colors (black and blue). The only possible value for the <i>layout</i> argument so far is 1.