NetRover
07-20-2008, 10:00 PM
First step is to get the profile field you want search results for:-
To do use this log into you admin CP. Go to User Profile Fields | User Profile Manager and make note of the field name ie: field1
Second Step is to get your google search box code:-
Login to your adsense and generate the usual google search box with your adsense ads how you want them. If you already have adsense for search box I would generate a new one so you can track results separetly for this postbit mod. Copy the google search code.
Third Step
You need the url of your search results. All I did was create a new page in my html editor and pasted the code between the body tags and preview the page throught my browser. Peform a search with any keyword at this stage as you will replace this with your profile field. Copy the search url from the browser.
eg: http://www.yourdomain.co.uk/my-search-results?cx=partner-pub-your-id-number-will-be-here=FORID%3A10&ie=ISO-8859-1&q=yourkeyword&sa=Search#1123
Note:- The url I have shown is for my domain because I am having the results showing in my own web site. If you create your adsense code the normal way it will be google as the domain name.
Fourth Step
Replace yourkeyword in the url with $post[the field number you made note of earlier] as like field 1 below.
http://www.yourdomain.co.uk/my-search-results?cx=partner-pub-your-id-number-will-be-here=FORID%3A10&ie=ISO-8859-1&q=$post[field1]&sa=Search#1123
Fith Step
Place your final url with the field number as in step 4 into the code below replacing and including *** until ***
<div><if condition="$post['field1']">Search: <a href="***http://www.yourdomain.co.uk/my-search-results?cx=partner-pub-your-id-number-will-be-here=FORID%3A10&ie=ISO-8859-1&q=$post[field1]&sa=Search#1123***">Google $post[field1] Info</a></if></div>
and your final task:-
In your admin cp go to Styles and Templates | Style Manager and select edit templates from your used style.
Open up Postbit templates and edit postbit
Look for <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
and just place your completed code from step five below.
Searching two words:-
You could also combine two words from the profile fields with eg:-
$post[field1]+$post[field2] in the url
To do use this log into you admin CP. Go to User Profile Fields | User Profile Manager and make note of the field name ie: field1
Second Step is to get your google search box code:-
Login to your adsense and generate the usual google search box with your adsense ads how you want them. If you already have adsense for search box I would generate a new one so you can track results separetly for this postbit mod. Copy the google search code.
Third Step
You need the url of your search results. All I did was create a new page in my html editor and pasted the code between the body tags and preview the page throught my browser. Peform a search with any keyword at this stage as you will replace this with your profile field. Copy the search url from the browser.
eg: http://www.yourdomain.co.uk/my-search-results?cx=partner-pub-your-id-number-will-be-here=FORID%3A10&ie=ISO-8859-1&q=yourkeyword&sa=Search#1123
Note:- The url I have shown is for my domain because I am having the results showing in my own web site. If you create your adsense code the normal way it will be google as the domain name.
Fourth Step
Replace yourkeyword in the url with $post[the field number you made note of earlier] as like field 1 below.
http://www.yourdomain.co.uk/my-search-results?cx=partner-pub-your-id-number-will-be-here=FORID%3A10&ie=ISO-8859-1&q=$post[field1]&sa=Search#1123
Fith Step
Place your final url with the field number as in step 4 into the code below replacing and including *** until ***
<div><if condition="$post['field1']">Search: <a href="***http://www.yourdomain.co.uk/my-search-results?cx=partner-pub-your-id-number-will-be-here=FORID%3A10&ie=ISO-8859-1&q=$post[field1]&sa=Search#1123***">Google $post[field1] Info</a></if></div>
and your final task:-
In your admin cp go to Styles and Templates | Style Manager and select edit templates from your used style.
Open up Postbit templates and edit postbit
Look for <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
and just place your completed code from step five below.
Searching two words:-
You could also combine two words from the profile fields with eg:-
$post[field1]+$post[field2] in the url