PDA

View Full Version : Forum Home Enhancements - Add search in this forum to forumhome


hazem_aliraqi
06-10-2015, 09:00 PM
hello


Add search in this forum to forumhome

you can search in the forum about threads and posts in one forum


How to do this ??



1- open the forumhome_forumbit_level2_post template

2- find this


<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}



3- add this after it




<li class="popupmenu nohovermenu forumsearch menusearch" id="forumsearch">
<h6><a href="javascript://" class="popupctrl" title="search in this ({vb:raw forum.title}) forum about Threads and posts" >{vb:rawphrase search_this_forum}</a>search</h6>
<form action="search.php?do=process" method="get">
<ul class="popupbody popuphover">
<li>
<input type="text" class="searchbox" name="q" value="{vb:rawphrase search_dots}" />
<input type="submit" class="button" value="{vb:rawphrase search}" />
</li>
<li class="formsubmit" id="popupsearch">
<div class="submitoptions">
<label><input type="radio" name="showposts" value="0" checked="checked" /> {vb:rawphrase show_threads}</label>
<label><input type="radio" name="showposts" value="1" /> {vb:rawphrase show_posts}</label>
</div>
<div class="advancedsearchlink"><a href="search.php?{vb:raw session.sessionurl}search_type=1&amp;contenttype=vBFor um_Post&amp;forumchoice[]={vb:raw forumid}" rel="nofollow">{vb:rawphrase advanced_search}</a></div>

</li>
</ul>
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="contenttype" value="vBForum_Post" />
<input type="hidden" name="forumchoice[]" value="{vb:raw forumid}" />
<input type="hidden" name="childforums" value="1" />
<input type="hidden" name="exactname" value="1" />
</form>
</li>





save and enjoy

concepts
06-17-2015, 06:09 PM
would much rather like this as a plugin, ...yeh, I'm lazy. Easy deactivation. lol

eisb?renforum
07-09-2015, 05:40 PM
Works fine for admins but not for registered users (maybe because hidden subforums)... Breaks skin/lay-out for registered users..

Black Snow
07-10-2015, 11:53 AM
I have modified this code and placed it a bit better. Works find now and doesn't mess up the theme.

eisb?renforum
07-12-2015, 06:29 AM
Please can you share the modified version?