|
I just today came up with this solution that lets people choose either their forum album or their photopost gallery when making a post. It pops up a window where you can navigate thru your galleries/albums and drag & drop images into your post.
Just add this at the bottom of the editor_smiliebox template. You can change the settings to suit your site. You may need to change the $bbuserinfo variable as I have that in my global.php as a global variable.
And of course change the URLs to your site's.
Bug fix: Make sure you keep the <input> section on one line for it to work right in I.E. (I had to paste it directly into the template database table for it to work!)
<fieldset id="photobox" title="My Photos">
<legend>My Photos</legend>
<table cellpadding="4" cellspacing="0" border="0" align="center">
<tr>
<td class="smallfont" colspan="$vboptions[smcolumns]" align=center>
<center><FORM>
<INPUT type="button" value="Photopost Gallery" onClick="window.open('http://www.yourgallery.com/showgallery.php/cat/500/ppuser/$bbuserinfo[userid]','mywindow','width=600,height=600,scrollbars=yes,resizable=yes')">
</FORM>
</td></tr></tr><td class="smallfont" colspan="$vboptions[smcolumns]">
<FORM>
<INPUT type="button" value="Forum Albums" onClick="window.open('http://www.yourforums.com/forums/album.php?u=$bbuserinfo[userid]','mywindow2','width=600,height=600,scrollbars=yes,resizable=yes')">
</FORM><br>Just click and drag images into your post!</center>
</td></tr>
</table>
</fieldset>
It could be more elegant, but this will do fine until a proper integration is done.
Last edited by Skip2; June 3rd, 2008 at 08:16 PM.
|