Welcome Visitor, Please Login or Register Now Friday, April 19, 2024 12:17 AM 
Forums Index > Mewsoft Products > Searchawy > Extracting Search Terms
New Topic   New Reply
Search for:
Author Message
petervw petervw's personal page
Registered Member
Posts: 32 Display member's posts
Joined: 04-19-24 12:17 AM
Member Offline
View Member's Profile Send private message
 
Back to top
Extracting Search Terms Edit Delete Reply with quote Quote
First Post Posted on: 02-22-11 09:31 AM next post first post
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 mewsoft's personal page
Administrator Team Member
Posts: 5381 Display member's posts
Joined: 04-19-24 12:17 AM
Location: knxoville, TN, USA
Member Offline
View Member's Profile Visit member's website Mewsoft Corporation Send private message ICQ Messenger: ICQ AIM Messenger: AIM YIM Messenger: Yahoo MSN Messenger: MSN
 
Back to top
Re: Extracting Search Terms Edit Delete Reply with quote Quote
Reply #: 1 Posted on: 02-22-11 10:49 AM next post previous post

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    Select All    Expand All
<br /><br />&lt;!--CLASS::SearchTerms--&gt;</p><p>


Mewsoft Support
www.mewsoft.com

petervw petervw's personal page
Registered Member
Posts: 32 Display member's posts
Joined: 04-19-24 12:17 AM
Member Offline
View Member's Profile Send private message
 
Back to top
Re: Extracting Search Terms Edit Delete Reply with quote Quote
Reply #: 2 Posted on: 02-22-11 01:08 PM last post previous post
Thanks it worked.\ \ You made my day, I am very grateful.
Page 1 of 1
Go to page:

New Topic   New Reply Mark Unread
Jump to:  
Delete   Move     Lock   +Favorits   +Notify   Print