PDA

View Full Version : CMPS Module - Quick Search


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).

Roms
10-14-2004, 09:08 PM
Nice, thanks. :)

*would click install button if you had one...

Our Sponsors
 

Polo
01-27-2005, 10:50 AM
wonderful, i would also click install if there was a "install button" lol thanks brain

Vevina
04-16-2005, 05:58 PM
sweet installed :)

Our Sponsors
 

johnstires
05-23-2006, 02:12 PM
This is great, would it be a similar method to creating a module for the member's list search feature?