Brian
10-02-2004, 01:17 PM
This will allow you to add a simple search box (similar to the forums search module) where your members can quickly search your links directory.
Add a new template called 'adv_portal_linksearch' with the following content:
<form action="/links/search.php" method="post">
<input name="s" type="hidden" value="$session[sessionhash]" />
<input name="do" type="hidden" value="searchresults" />
<input name="quicksearch" type="hidden" value="1" />
<input name="catid[]" type="hidden" value="0" />
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet] Search Links</strong></span></td>
</tr>
<tr>
<td class="alt1">
<input class="bginput" name="string" size="15" type="text" />$gobutton<br />
<span class="smallfont"><a href="/links/search.php?$session[sessionurl]">$vbphrase[advanced_search]</a></span>
</td>
</tr>
</table>
</form>
<br />
(Note: If you have changed the location of your links directory from /links then you will need to modify the two places you see this in the code above to the location of your links directory.)
Add a new module with these options:
Module Title: Links Search
Template to Include: linksearch
(Set the other options accordingly).
Add a new template called 'adv_portal_linksearch' with the following content:
<form action="/links/search.php" method="post">
<input name="s" type="hidden" value="$session[sessionhash]" />
<input name="do" type="hidden" value="searchresults" />
<input name="quicksearch" type="hidden" value="1" />
<input name="catid[]" type="hidden" value="0" />
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet] Search Links</strong></span></td>
</tr>
<tr>
<td class="alt1">
<input class="bginput" name="string" size="15" type="text" />$gobutton<br />
<span class="smallfont"><a href="/links/search.php?$session[sessionurl]">$vbphrase[advanced_search]</a></span>
</td>
</tr>
</table>
</form>
<br />
(Note: If you have changed the location of your links directory from /links then you will need to modify the two places you see this in the code above to the location of your links directory.)
Add a new module with these options:
Module Title: Links Search
Template to Include: linksearch
(Set the other options accordingly).