PtP
07-12-2004, 09:25 PM
This will add a MySearch module to your CMPS...
In your Admincp - Styles & Templates - Style Manager - Add a new template called "adv_portal_mysearch".
Insert this code into the template:
<script language="JavaScript" type="text/javascript">
function fiSearchFormMaxSubmit(form) {
var goToThisUrl='http://mysearch.myway.com/jsp/cfg_redir.jsp?id=AX006085&url=http://mysearch.myway.com/jsp/GGmain.jsp?';
goToThisUrl+='searchfor='+document.fiSearchForm.searchfor.value;
window.open(goToThisUrl);
return false;
}
</script>
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet] MySearch</b></span></td>
</tr>
<tr>
<td class="alt1" align="center"><br />
<a href="http://www.myway.com/" target="_blank"><img src="$stylevar[imgdir_misc]/myway.gif" border="0" alt="MyWay"></a><br /><br />
<form method="get" name="fiSearchForm" id="fiSearchForm" onsubmit='return fiSearchFormMaxSubmit(this)'>
<input type="text" name="searchfor" size="20" maxlength="255" value='' /> <br /><br />
<input type="submit" value="Search" />
<br /><br />
</td>
</tr>
</table>
<br/>
Save the template!
Still in your Admincp - vBa CMPS - Add Module
- Module Title - MySearch
- Module Identifier - Leave blank
- OR Template to Include - mysearch
- Activate and select the column you want it in.
- Save and you are done.
- Copy attached myway.gif into your style/misc directory.
- Both light and dark background transparent gifs are supplied so use the one that suits your style.
- Make sure you put the gif in every misc directory of every style you use.
In your Admincp - Styles & Templates - Style Manager - Add a new template called "adv_portal_mysearch".
Insert this code into the template:
<script language="JavaScript" type="text/javascript">
function fiSearchFormMaxSubmit(form) {
var goToThisUrl='http://mysearch.myway.com/jsp/cfg_redir.jsp?id=AX006085&url=http://mysearch.myway.com/jsp/GGmain.jsp?';
goToThisUrl+='searchfor='+document.fiSearchForm.searchfor.value;
window.open(goToThisUrl);
return false;
}
</script>
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet] MySearch</b></span></td>
</tr>
<tr>
<td class="alt1" align="center"><br />
<a href="http://www.myway.com/" target="_blank"><img src="$stylevar[imgdir_misc]/myway.gif" border="0" alt="MyWay"></a><br /><br />
<form method="get" name="fiSearchForm" id="fiSearchForm" onsubmit='return fiSearchFormMaxSubmit(this)'>
<input type="text" name="searchfor" size="20" maxlength="255" value='' /> <br /><br />
<input type="submit" value="Search" />
<br /><br />
</td>
</tr>
</table>
<br/>
Save the template!
Still in your Admincp - vBa CMPS - Add Module
- Module Title - MySearch
- Module Identifier - Leave blank
- OR Template to Include - mysearch
- Activate and select the column you want it in.
- Save and you are done.
- Copy attached myway.gif into your style/misc directory.
- Both light and dark background transparent gifs are supplied so use the one that suits your style.
- Make sure you put the gif in every misc directory of every style you use.