Webmaster resources for use on Excoboard
Add smilies/images to quick reply
Catchow wrote:
This is VIV's script. I am going to post it a little differently so that it will be easier for people to get it right the first time.
In your custom templates, under thread, find this code snippet.
Quote:
<!-- BEGIN iftrue_qreply -->
<tr>
<form method="POST" action="postreply.php" name="reply">
<td colspan="2" width="100%" class="Heading" align="center">
<span class="HeadingText"><b>Quick Reply</b></span>
</span></td>
</tr>
<tr><td colspan="2" width="100%" class="FirstAlt" align="center">
<textarea class="TextAreaField" rows="7" name="message" cols="80"></textarea><br>
<input type="hidden" name="fieldusername" value="{iftrue_qreply.usr}"><input type="hidden" name="fieldpassword" value="{iftrue_qreply.pwd}">
<input type="submit" class="SubmitButtons" value="Reply" name="B1"><input type="reset" class="SubmitButtons" value="Reset" name="B2"><input type="hidden" value="postreply" name="action"><input type="hidden" value="{threadid}" name="threadid"><input type="hidden" value="{forumid}" name="forumid">
</span></td>
</form>
</tr>
<!-- END iftrue_qreply -->
|
Replace the whole thing with this. . .
Quote:
<!-- BEGIN iftrue_qreply -->
<tr>
<form method="POST" action="postreply.php" name="reply">
<td colspan="2" width="100%" class="Heading" align="center">
<span class="HeadingText"><b>Quick Reply</b></span>
</span></td>
</tr>
<tr><td colspan="2" width="100%" class="FirstAlt" align="center">
<textarea class="TextAreaField" rows="7" name="message" cols="80"></textarea><br>
<span class="SmallText"><a href="#" onclick="var win =
window.open('smilies.php?boardid={boardid}'
,'','menubar=no,toolbar=no,location=no,personalbar=no,directories=no,'
+'status=no,resizable=no,scrollbars=yes,left=30,top=30,width=416,'
+'height=410'); win.opener = window; if (win.focus) win.focus();
return false;">Smilies</a></span><input type="hidden" name="fieldusername" value="{iftrue_qreply.usr}"><input type="hidden" name="fieldpassword" value="{iftrue_qreply.pwd}">
<input type="submit" class="SubmitButtons" value="Reply" name="B1"><input type="reset" class="SubmitButtons" value="Reset" name="B2"><input type="hidden" value="postreply" name="action"><input type="hidden" value="{threadid}" name="threadid"><input type="hidden" value="{forumid}" name="forumid"><span class="SmallText"><a href="#" onclick="var win =
window.open('gallery.php?boardid={boardid}'
,'','menubar=no,toolbar=no,location=no,personalbar=no,directories=no,'
+'status=no,resizable=no,scrollbars=yes,left=30,top=30,width=416,'
+'height=410'); win.opener = window; if (win.focus) win.focus();
return false;">Insert image from
image gallery</a></span>
</span></td>
<!-- END iftrue_qreply -->
|
You can change the wording about the smilies and image gallery if you wish but do not try to change anything else. I personally have put images instead of the words on a couple of boards. This bit here. . .
code:
return false;">Smilies</a></span>
I changed to read
code:
return false;"><img src="http://YOUR IMAGE URL HERE" border="0"></a></span>
And then for the image gallery. . .
code:
return false;">Insert image from
image gallery</a></span>
</span></td>
I replaced it with this
code:
return false;"> <img src="http://YOUR IMAGE URL HERE" border="0"></a></span>
I used a smilie for the smilie menu and a very small framed picture for the image gallery on one board.