The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Hi All,
I am looking for a "Search this thread box" that I can physically put at the top and bottom of my forum. The drop down menu one is getting overlooked by my users. I am looking at putting a table? around the box and for me to be able to add some text (Title and a little write up about it) and then Place the "Search (this THREAD) box along with a 'Go' or Search button at the side of it. I am new to it all and would be grateful if some one would tell me what code I need and where to put it please? I would only like this on one or two selected Threads/forums - So would this be possible too please? Many Thanks. PS. I have attached screen shots of where I would like them positioned. I would be happy with the standard vB table, Title in the Blue border, with a little desciption below. (Please bear in mind that I only want these to show in Select threads. Is it possible to do them based on a thread ID for example, please? |
#2
|
||||
|
||||
![]()
Do you know what I mean?
![]() |
#3
|
|||
|
|||
![]()
Search threads?
What does this accomplish that Ctrl + F doesn't? ![]() |
#4
|
||||
|
||||
![]()
Not all my members are familiar with short cuts like that and it would look more professional to have it as I have described. Even though there is one via the drop down menu (That always gets over looked).
--------------- Added [DATE]1253133912[/DATE] at [TIME]1253133912[/TIME] --------------- Forgot to add that CTRL & F only searches the page that you are looking at - I need it to search the whole of a given thread. ![]() |
#5
|
||||
|
||||
![]()
Forgot to mention that I am running vB 3.8.1 PL1
|
#6
|
||||
|
||||
![]()
Have you tried just copying the form for the Search this Thread that is currently displayed on the page? (Give the other forms a unique id, of course.)
|
#7
|
||||
|
||||
![]()
I haven't a clue on how to do what you suggest, Lynne.
If you have the patients and time to explain on here (So everyone can benefit) then I would be grateful. ![]() Thank You. --------------- Added [DATE]1253363250[/DATE] at [TIME]1253363250[/TIME] --------------- Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat"> <if condition="$show['searchthread']">$vbphrase[search_thread] - <a href="showthread.php?$session[sessionurl]t=$threadinfo[threadid]">$threadinfo[title]</a><else />$vbphrase[search_forums]</if> </td> </tr> <tr> <td class="panelsurround" align="center"> <table class="panel" cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%"> <tr> <td align="$stylevar[left]" valign="top" width="50%"> <fieldset class="fieldset" style="margin:0px"> <legend>$vbphrase[search_by_key_word]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <tr> <td colspan="2"> <div>$vbphrase[key_words]:</div> <div><input type="text" class="bginput" name="query" size="35" value="$query" style="width:250px" /></div> </td> </tr> <if condition="!$show['searchthread']"> <tr> <td> <select name="titleonly"> <option value="0" $titleonlyselected[0]>$vbphrase[search_entire_posts]</option> <option value="1" $titleonlyselected[1]>$vbphrase[search_titles_only]</option> </select><if condition="$show['nocache']"> <label for="cb_nocache"><input type="checkbox" name="nocache" value="1" id="cb_nocache" />$vbphrase[do_not_use_cached_results]</label></if> </td> </tr> </if> </table> </fieldset> </td> I believe that is what I need, Yes? I would like it to search and show individual posts please. What would I need to do and where do I place this code please? Would it be possible to add this just to search the whole thread that I need it for? To search thread ID34212 for example. --------------- Added [DATE]1253363846[/DATE] at [TIME]1253363846[/TIME] --------------- I have scaled it down to this: Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat"> <if condition="$show['searchthread']">$vbphrase[search_thread] - <a href="showthread.php?$session[sessionurl]t=$threadinfo[threadid]">$threadinfo[title]</a><else />$vbphrase[search_forums]</if> </td> </tr> <tr> <td class="panelsurround" align="center"> <table class="panel" cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%"> <tr> <td align="$stylevar[left]" valign="top" width="50%"> <fieldset class="fieldset" style="margin:0px"> <legend>Search this thread</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <tr> <td colspan="2"> <div>Please enter any search word, Ie: Name, Address, Post Code etc:</div> <div><input type="text" class="bginput" name="query" size="35" value="$query" style="width:250px" /></div> </td> </tr> <if condition="!$show['searchthread']"> <tr> <td> </select> </label></if> </td> </tr> </if> </table> </fieldset> </td> Would this work Lynne? I can't see to actually enter the unique ThreadID of the only thread that I would like this to work on? Is the above code correct to search a thread and show the actual posts, Please? Many Thanks. --------------- Added [DATE]1253365168[/DATE] at [TIME]1253365168[/TIME] --------------- Scrap the above codes... What do you think of the following... Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat"> </td> </tr> <tr> <td class="panelsurround" align="center"> <table class="panel" cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%"> <tr> <td align="$stylevar[left]" valign="top" width="50%"> <fieldset class="fieldset" style="margin:0px"> <legend>Search this thread</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <tr> <td colspan="2"> <tr> <form action="search.php?do=process&searchthreadid=5" method="post"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">Please enter any search word, Ie: Name, Address, Post Code etc:<a name="goto_threadsearch"></a></td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <input type="hidden" name="s" value="" /> <input type="hidden" name="securitytoken" value="9-fe0c255" /> <input type="hidden" name="do" value="process" /> <input type="hidden" name="searchthreadid" value="5" /> <input type="text" class="bginput" name="query" size="25" /><input type="submit" class="button" value="Go" /><br /> </td> </tr> <tr> </tr> </table> </form> <td> </select> </label></if> </td> </tr> </if> </table> </fieldset> </td> Where would I place this, just to search the threadID that I will correct, to the one that I need (The one now '5' is an example). I need it to show on all the current pages and any future pages too. (top and bottom). Where would I place the code please? Many Thanks. |
#8
|
||||
|
||||
![]()
Your code is a bit different from mine. This is from my SHOWTHREAD template. This is the part you see in the top bar - it's just basic javascript to create the dropdown (in the same manner dropdowns are made in the navbar):
HTML Code:
<if condition="$show['search']"> <td class="vbmenu_control" id="threadsearch" nowrap="nowrap"> <a href="$show[nojs_link]#goto_threadsearch">$vbphrase[search_this_thread]</a> <if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadsearch"); </script></if> </td> </if> HTML Code:
<if condition="$show['search']"> <!-- thread search menu --> <div class="vbmenu_popup" id="threadsearch_menu" style="display:none"> <form action="search.php?do=process&searchthreadid=$threadid" method="post"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">$vbphrase[search_this_thread]<a name="goto_threadsearch"></a></td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> <input type="hidden" name="do" value="process" /> <input type="hidden" name="searchthreadid" value="$threadid" /> <input type="text" class="bginput" name="query" size="25" />$gobutton<br /> </td> </tr> <tr> <td class="vbmenu_option"><a href="search.php?$session[sessionurl]searchthreadid=$threadid">$vbphrase[advanced_search]</a></td> </tr> </table> </form> </div> <!-- / thread search menu --> </if> |
#9
|
||||
|
||||
![]()
Thanks Lynne.
How would I actually find the Template (If that is the correct word) of the forum that I need to add it to, And where would I need to place that code in order to have it in the correct positions as my two Attachments in my OP Please? Many Thanks. |
#10
|
|||
|
|||
![]()
Admin CP -> vBulletin Options -> General Settings -> Add Template Name in HTML Comments -> Yes
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|