2011-10-05, 04:07 PM
This will urge your members to use the forum search. I think it would be extremely useful on support/tutorial type sites, but can be used on any kind of MyBB Forum.
Regular Expression:
Replacement:
Useage:
Example:
Screenshot:
Regular Expression:
\[search\](.*?)\[/search\]
Replacement:
<div style="width: 320px;">
<fieldset><legend class="largetext">Did you search?</legend>
<form method="post" action="search.php" style="margin: 1px;">
<input type="text" class="textbox" name="keywords" value="$1" size="30" style="width: 230px; height: 18px;" /><input type="submit" class="button" name="submit" value="Search" /> <input type="hidden" name="action" value="do_search" /><input type="hidden" name="postthread" value="1" checked="checked" />
<input type="hidden" name="showresults" value="threads" checked="checked" />
</form>
</fieldset>
</div>
Useage:
[search]Your Search Query Goes Here[/search]
Example:
[search]adding a new mycode[/search]
Screenshot: