View Full Version : Add reminder text above quick reply form?
kinkarso
07-08-2010, 06:30 PM
Hi there,
I'm trying to add a reminder text above all quick-reply forms in a particular forum, to let my members know of the key rules for posting.
Does anyone know what a workable code for this would be?
Thanks!
eSekar
07-08-2010, 06:56 PM
In SHOWTHREAD Template
Find:
<vb:if condition="$show['quickreply']">
<div id="qr_defaultcontainer" class="blockfoot floatcontainer qrcontainer<vb:if condition="$show['qr_require_click']"> qr_require_click</vb:if>">
Replace with:
<vb:if condition="$show['quickreply']">
<h4 align="center">
the key rules for posting<br />Another Line of the key rules for posting
</h4>
<div id="qr_defaultcontainer" class="blockfoot floatcontainer qrcontainer<vb:if condition="$show['qr_require_click']"> qr_require_click</vb:if>">
.Change align="center" to left or right as you wish
.Change [ the key rules for posting<br />Another Line of the key rules for posting ] to whatever you want.
Results (http://img697.imageshack.us/img697/3860/rulest.png)
Cheers.
kinkarso
07-08-2010, 09:21 PM
Thanks! However, do you happen to know how I can have it only display across a particular forum? What would be the 'if' statement for that?
Thanks!
Donny
eSekar
07-08-2010, 09:30 PM
Sure:
<vb:if condition="in_array($forum['forumid'], array(5,2,23))">
<h4 align="center">
the key rules for posting<br />Another Line of the key rules for posting
</h4>
</vb:if>
Change 5,2,23 to the forum ID's you want the content to appear on, feel free to add as many as you want in the same format.
Cheers.
kinkarso
07-08-2010, 10:13 PM
That worked perfectly. Thanks again :).
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.