Forums Index > Mewsoft Products > Searchawy > Extracting Search Terms
petervw First Post Posted on: 02-22-11 09:31 AM
Extracting Search Terms

Hi,\ \ I am using software called AdRevenue. I don't know how to pass the search terms inserted in the search form to the advert code.\ \ The advert code looks like this:javascript src="http://www.sportaircraft.webezy.net/avads/index.php?section=sense&id=68&q=search_term"/script\ \ Where you see search_term is where the input from the search form must be placed.\ \ I have done this successfully in my other PHP search engine. I have no knowledge of PERL so I am quite lost here.\ \ I know that the @Terms is an array for the search terms but how I grab the terms inserted into the form named 'Search_Main' and 'Search_Category' I don't know.\ \ http://www.w3matter.com/support/adrevenue/help/keywords explains some details on getting keywords from the search engine.\ \ Do you have any suggestions?
mewsoft Reply #: 1 Posted on: 02-22-11 10:49 AM
Re: Extracting Search Terms

Try this:

in the file displaymgr.pm

insert this line

$Plugins{SearchTerms} = $Param{Terms};

after this line:

$Plugins{Extra} = &Translate($Global{Extra});

around line number 304 in the file.

Now the SearchTerms is a  general class you can use it anywhere in your templates to display or insertthe search term, so insert this class where you want to put your search terms:


Code: HTML
<br /><br />&lt;!--CLASS::SearchTerms--&gt;</p><p>


Mewsoft Support
www.mewsoft.com

petervw Reply #: 2 Posted on: 02-22-11 01:08 PM
Re: Extracting Search Terms

Thanks it worked.\ \ You made my day, I am very grateful.