Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: ɔɔɔɔɔɔuɥoɾ on October 15, 2009, 05:00:34 AM

Title: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: ɔɔɔɔɔɔuɥoɾ on October 15, 2009, 05:00:34 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2201)

Google: Adsense for Search and Custom Search Integration - JohnCcCcCc

This mod allows the Google "Adsense for Search" and "Custom Search" features to be added easily with no coding at all on your part.

This mod will ad the Google search on the top of every page (if you choose that option), if you have a portal mod installed you can use a portal block to put the search box where ever you want.

First off, Install this mod, after installing this mod, there will be no changes that are visible to you on your forum yet.

This mod makes everything simple for you, once you set up your ad at Google's site, choose the option which says "view search results in my own site" or "Host results on my website using an iframe".

You will then have 2 sets of code to use.
Forget the second code, you will only need the 1st code, "Search box code". Click the code in the form and it will automatically be all selected, copy the code to you clipboard. (CTRL+C or right click, copy).

Now you have that done, Go to your admin setting in modifications page (see image below)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi33.tinypic.com%2F281ylh4.png&hash=677706e5f8f10a209cd5a5816fb74b220d679b87)
Paste that code into the form like on the image, scroll to the bottom of the modifications page, click save.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi33.tinypic.com%2F33ma1eh.png&hash=e21cf4c2375ae4af1265d81e44627a90db6ed1e2)
You will immediately notice that you now have a search box in the upper body area of the forum, it will be on the left side by default, adding center tags
will make it center, I have added center tags in the image to show how. ;)

Search results code, wondering what to do with it, nothing, don't worry about it, your integration is already complete, search for something and see
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi36.tinypic.com%2F2r6368k.png&hash=9ada2ffc93c520e715ea3fe2a2a9f2232a8886b8)

The background color is initially white, does not look to good, changing the background color is done in the Google control panel. Note you can also change the link color the border color and many other things to match your theme too.

This mod had been tested on SMF 2 RC2 and works fine.
______________________________________________________________________________________________

Version 1.1 released.

changelog
Version 1.1:
Added ability to change Search Results width from modification area instead of making changes in index.template.php yourself.
Title: Re: Google: Adsense for Search and Custom Search Integration
Post by: Afro on October 15, 2009, 05:54:52 AM
nice one , welldone
Title: Re: Google: Adsense for Search and Custom Search Integration
Post by: -=[Vyorel]=- on October 15, 2009, 06:40:50 AM
Very nice mod! ;) 8)
Title: Re: Google: Adsense for Search and Custom Search Integration
Post by: ɔɔɔɔɔɔuɥoɾ on October 15, 2009, 12:02:26 PM
Thanks, Glad you like it. :)
Title: Re: Google: Adsense for Search and Custom Search Integration
Post by: Sabre™ on October 15, 2009, 12:05:11 PM
Heeyy congratulations mate! (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.getsmile.com%2Femoticons%2Fsmileys-91853%2Faiw%2Fyahoo.gif&hash=fd29b670aabf8a0444ccd128593ab762e355ed97)
I don't use ads, but this sounds like a pretty good idea.
Title: Re: Google: Adsense for Search and Custom Search Integration
Post by: ɔɔɔɔɔɔuɥoɾ on October 15, 2009, 12:08:40 PM
Yea, it is, using portals and ad management mods will only work for the "search bar" it will not not work for results code, that code needs to be hard coded into index.template.php.

Fortunately, the search results code is the same all the time, with the exception of the width setting for the results, which I have added instructions for on this topic and in the php file itself :).

Oh this is not such for ads, it can actually help your members search your site :)
Title: Re: Google: Adsense for Search and Custom Search Integration
Post by: Sabre™ on October 15, 2009, 12:44:00 PM
Nice, do you have a demo up n running mate, to have a glance at?
Title: Re: Google: Adsense for Search and Custom Search Integration
Post by: Afro on October 15, 2009, 12:48:41 PM
does this really need a demo ?
Title: Re: Google: Adsense for Search and Custom Search Integration
Post by: Sabre™ on October 15, 2009, 12:53:04 PM
Well I just asked for one champ because I don't use anything like this.
Is seeing how it works a crime?
Title: Re: Google: Adsense for Search and Custom Search Integration
Post by: Afro on October 15, 2009, 01:20:09 PM
not really, but i guess its just adding a code for a search box to appear. i m just wondering what the sc will look like.

i can get sc for you if you need it so much , lol

Title: Re: Google: Adsense for Search and Custom Search Integration
Post by: ɔɔɔɔɔɔuɥoɾ on October 15, 2009, 04:47:52 PM
Well, I have not got a demo setup, but I do have the images of what the mod looks like in action, It's pretty much is as good as a demo :)
Title: Re: Google: Adsense for Search and Custom Search Integration
Post by: Sabre™ on October 15, 2009, 05:40:52 PM
Ah ok cool, I had something completely different pictured in my head.
Thanks for that, it is much clearer what you're providing now.

Cheers mate :)
Title: Re: Google: Adsense for Search and Custom Search Integration
Post by: ɔɔɔɔɔɔuɥoɾ on October 15, 2009, 09:20:52 PM
Version 1.1 released.

changelog
Version 1.1:
Added ability to change Search Results width from modification area instead of making changes in index.template.php yourself.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: Shades. on October 15, 2009, 11:42:11 PM
I installed this and it centered everything on my forum! :o
(Uninstalled for now) ;)
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: ɔɔɔɔɔɔuɥoɾ on October 16, 2009, 12:42:12 AM
Quote from: BoZilla on October 15, 2009, 11:42:11 PM
I installed this and it centered everything on my forum! :o
(Uninstalled for now) ;)

when you used <center> did you make sure to close </center> after, thats the only reason why it would center the whole forum.

Instead of using those center tags, you should use

<div style="text-align: center;">
Your Search box Code here
</div>


This way if you change to right, left or justify, you only need to type it once :)
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: Shades. on October 16, 2009, 12:43:08 PM
I installed via the package installer! Should I have installed it manually then?
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: ɔɔɔɔɔɔuɥoɾ on October 16, 2009, 12:45:30 PM
no install it normally, just when centering things in the Searchbox form, make sure to close the tag when done

<center>
My searchbox code
wefwerf
erferfer
rferef
</center>
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: kappazuhk on October 16, 2009, 04:03:45 PM
Hello, I can not use the ad mang mod on my site. I Can not find a way to manually add my ad sense to my forum so I downloaded and installed your mod. I read that adsense would not work only adsearch. But i put the code in anyway just to see what would happen, adsense is receiving the adsense page impressions. Does this mean the adsens ads will work this way or is only going to allow it to log the impressions?
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: ɔɔɔɔɔɔuɥoɾ on October 16, 2009, 04:40:49 PM
As long as you can see the ad being displayed on the page your getting the impressions, there are no permissions on this mod, thus everyone will see your ad.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: kappazuhk on October 16, 2009, 04:51:42 PM
That is ok for every one to see. I was just not sure if it will allow the register of the click properly. But I thought it would if it is registering the impressions. This will be a life saver if this works! There are no problems with google spiders crawling the pages with this mod? Useing portals, no bot can crawl my forum. Ad manager will not install and it would be too much trouble to fix the issues.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: ɔɔɔɔɔɔuɥoɾ on October 16, 2009, 05:19:10 PM
Well, this is not primarily used for displaying ads, although it can be used for that, it will be very similar to using a portal or ad management to display an ad.

Adsense does not have any problems when ads are displayed on a portal or ad management.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: PalmBeachPreps on October 19, 2009, 10:38:51 PM
So, in effect I will Have TWO searchboxes?
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: ɔɔɔɔɔɔuɥoɾ on October 19, 2009, 11:13:09 PM
Two, well if you count the one used in SMF yes.

The search box for Google is used to make money with the ads that are displayed with search results, this mod will make the whole Google "Adsense for search" integration easy for you
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: PalmBeachPreps on October 20, 2009, 01:29:23 AM
OK, I see.

I may as well attempt to put it into the template(yeah right) because I wouldn't want the default SMF search box anymore.

Seems like a nice mod though.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: ɔɔɔɔɔɔuɥoɾ on October 20, 2009, 11:15:39 AM
You don't have to use the search box part, you can put the search box anywhere you like using a portal or ad management mod. I have made the mod so you can have the option to display the google search box or not, of course if you choose not to use the options to add the Google Search box, it will not be there, Its been designed like this so you can use a portal to display your search box code anywhere you like since the results code is already in index.template.php it will always show the results wherever you decide to put your search box.

Maybe I will make a mod to remove the smf search box  ::)
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: old goat on October 24, 2009, 12:36:09 AM
I found the standard "Google Custom Search" text too small and so I changed the wording and the text size.

For members who don't know coding, open the Configurations > Miscellaneous > Modifications where you placed your original code ( or other location where you put the code) and then...

To change the text size find <div class="cse-branding-text"> and add <font size=3> so that code now reads <div class="cse-branding-text"><font size=3> Note: you can use another number beside 3 for font size, but 3 is pretty large for most people.

To change the text, just replace whatever text there is following <font size=3> with any message you wish. 
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: ɔɔɔɔɔɔuɥoɾ on October 24, 2009, 11:49:18 AM
Quote from: old goat on October 24, 2009, 12:36:09 AM
I found the standard "Google Custom Search" text too small and so I changed the wording and the text size.

For members who don't know coding, open the Configurations > Miscellaneous > Modifications where you placed your original code ( or other location where you put the code) and then...

To change the text size find <div class="cse-branding-text"> and add <font size=3> so that code now reads <div class="cse-branding-text"><font size=3> Note: you can use another number beside 3 for font size, but 3 is pretty large for most people.

To change the text, just replace whatever text there is following <font size=3> with any message you wish. 

I can probably add options like that into the configuration area, maybe in next version :)
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: LOVELORD on October 26, 2009, 09:30:07 PM
Any 1.1.19 version?
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: ɔɔɔɔɔɔuɥoɾ on October 27, 2009, 01:22:21 AM
Quote from: LOVELORD on October 26, 2009, 09:30:07 PM
Any 1.1.19 version?

I may add support for SMF 1.x.x.x later, its not a priority at the moment though.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: LOVELORD on October 27, 2009, 10:19:00 AM
Only parts witch must change is this: ./Sources/ManageSettings.php

Find:
// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!

Add after:
            //Google: Adsense for Search and Custom Search Integration - johncccccc
            array('large_text', 'Google_SearchBox'),
            array('int', 'Google_Results_Width'),


any idea where to add this code? ModSettings? I will try to make this mod for 1.1.10. This is oinly part witch is critical.

Regrets.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: ɔɔɔɔɔɔuɥoɾ on October 27, 2009, 10:52:06 AM
Quote from: LOVELORD on October 27, 2009, 10:19:00 AM
Only parts witch must change is this: ./Sources/ManageSettings.php

Find:
// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!

Add after:
            //Google: Adsense for Search and Custom Search Integration - johncccccc
            array('large_text', 'Google_SearchBox'),
            array('int', 'Google_Results_Width'),


any idea where to add this code? ModSettings? I will try to make this mod for 1.1.10. This is oinly part witch is critical.

Regrets.

This mod will be ported to 1.x.x.x when ready to be ported.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: Afro on October 27, 2009, 11:51:20 AM
hmm, that sounds like permission denied
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: kappazuhk on October 31, 2009, 12:59:30 PM
Quote from: BoZilla on October 15, 2009, 11:42:11 PM
I installed this and it centered everything on my forum! :o
(Uninstalled for now) ;)

Same problem, but only in IE8, I installed it from the pack and made no change to the code, did not add any thing to it. Firefox is ok, it is only with IE8. Every thing is now centered.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: ɔɔɔɔɔɔuɥoɾ on October 31, 2009, 02:50:23 PM
Quote from: kappazuhk on October 31, 2009, 12:59:30 PM
Quote from: BoZilla on October 15, 2009, 11:42:11 PM
I installed this and it centered everything on my forum! :o
(Uninstalled for now) ;)

Same problem, but only in IE8, I installed it from the pack and made no change to the code, did not add any thing to it. Firefox is ok, it is only with IE8. Every thing is now centered.

Once again, as stated in above post, you probably did not close the center tag.
example:
<center>
SOME CODE HERE
</center>
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: kappazuhk on October 31, 2009, 02:54:23 PM
Did not add center tag as "I" said before. Even with nothing in the code box, only install mod IE8 centers. Tried enter the code, added center tag and close, does not make any difference.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: ɔɔɔɔɔɔuɥoɾ on October 31, 2009, 02:58:17 PM
Quote from: kappazuhk on October 31, 2009, 02:54:23 PM
Did not add center tag as "I" said before. Even with nothing in the code box, only install mod IE8 centers. Tried enter the code, added center tag and close, does not make any difference.

I just re added IE to my system, and yes, everything does center when using IE, damn IE...

Firefox is fine, I will find out and once again, add a handicap for that stupid browser.

I assumed that it was the missing close tag since another member had forgot it too, and IE I don't use for testing lol.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: kappazuhk on October 31, 2009, 03:01:51 PM
Thank you! Please let us know when you figure it out, I hate IE and only use Firefox myself, So I didnt see this until now by accident. I would not care but so many people us IE and It make the forum look terrible. Hope you can fix this because this is one of the best mods out for Adsens!
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2
Post by: ɔɔɔɔɔɔuɥoɾ on October 31, 2009, 03:09:35 PM
I have fixed it

I will add it as 1.2 on the mod site.

New Update.

Fixed "Everything Centered" on IE browsers.
Google: Adsense for Search and Custom Search Integration Version 1.2

Be sure to Uninstall your previous version 1st.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: kappazuhk on October 31, 2009, 03:40:23 PM
WooHoo!!! Thank you!!! Works perfect!
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.1
Post by: ɔɔɔɔɔɔuɥoɾ on October 31, 2009, 04:33:31 PM
Forever making changes for IE to work right...

Your Welcome.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2
Post by: gumnaam on November 01, 2009, 10:06:09 PM
actualy i joined here just now, so plz advise me in which directory i need to install adsense mod, then the file which i need to edit, some one plz give me this detail.
thanks
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2
Post by: ɔɔɔɔɔɔuɥoɾ on November 01, 2009, 11:46:36 PM
Quote from: gumnaam on November 01, 2009, 10:06:09 PM
actualy i joined here just now, so plz advise me in which directory i need to install adsense mod, then the file which i need to edit, some one plz give me this detail.
thanks

The instructions are all available on the mod site for this mod, images are included, if you require further assistance, you will need to be more specific on what you need help with.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2
Post by: ken123 on November 02, 2009, 03:59:39 PM
Nice. Waiting for it to support 1.1.10.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2
Post by: JBDynamics on November 08, 2009, 06:44:06 PM
How would I go about creating a Simple Portal 2.3.1 block on SMF 2.0 RC1.2 for the Google Adsense search integration mod? I have the Google Adsense Search and Custom Search Integration v1.2 package installed in the default theme as well as my custom theme. I am awaiting to hear back from Google for opening my account so I do not have the code to insert into the Admin -> Configuration -> Modifications -> General page yet.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2
Post by: ɔɔɔɔɔɔuɥoɾ on November 08, 2009, 06:55:02 PM
Quote from: JBDynamics on November 08, 2009, 06:44:06 PM
How would I go about creating a Simple Portal 2.3.1 block on SMF 2.0 RC1.2 for the Google Adsense search integration mod? I have the Google Adsense Search and Custom Search Integration v1.2 package installed in the default theme as well as my custom theme. I am awaiting to hear back from Google for opening my account so I do not have the code to insert into the Admin -> Configuration -> Modifications -> General page yet.

Just Create a HTML block with your "Search Box" code in it.
The search results will be displayed as usual :)
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2
Post by: JBDynamics on November 09, 2009, 05:35:53 PM
It is really that easy? I thought I was going to have to write my own php functions for the block that would integrate with your mod, so yesterday I was paging through all the file modifications and included source files to see how I could integrate it into a block. A lot of work not necessary on my behalf, so thanks for making the mod installation and integration easy. I guess I have always done things the hard way, as I'm a stubborn learner. 

What makes this mod really great is that end users do not have to code or tag anything for full Google Adsense and search integration.

Thanks for this wonderful mod!
And thanks for your help JohnCcCcCc  :)
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2
Post by: ɔɔɔɔɔɔuɥoɾ on November 09, 2009, 08:54:49 PM
Quote from: JBDynamics on November 09, 2009, 05:35:53 PM
It is really that easy? I thought I was going to have to write my own php functions for the block that would integrate with your mod, so yesterday I was paging through all the file modifications and included source files to see how I could integrate it into a block. A lot of work not necessary on my behalf, so thanks for making the mod installation and integration easy. I guess I have always done things the hard way, as I'm a stubborn learner. 

What makes this mod really great is that end users do not have to code or tag anything for full Google Adsense and search integration.

Thanks for this wonderful mod!
And thanks for your help JohnCcCcCc  :)

Yes its really that easy,

The whole Idea is to enable the search results code (hard code required).
Then I actually encourage to not use the Searchbox admin area, but to use a portal block (HTML) to choose where ever you want to search box to be.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: ɔɔɔɔɔɔuɥoɾ on November 10, 2009, 09:14:40 AM
Tested mod on SMF RC2, working fine! :)
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: worldnet on November 25, 2009, 08:25:39 PM
I put the code in, and no search box? I am new at Adsense, but I believe I have everything correct. Any ideas?
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: ɔɔɔɔɔɔuɥoɾ on November 26, 2009, 12:08:30 AM
What is the code you inserted into the form?

Maybe you used the search results code in the search box area, try the other code. (Search Box) the codes do look similar but just check that 1st.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: kappazuhk on December 24, 2009, 10:11:24 AM
The mod does work in RC2 but, if you use the curve theme, it breaks the themes graphic background and looks terrible. Have you found a way to change that?
Title: simple machines 1.1.11
Post by: gibsongk55 on December 29, 2009, 06:11:39 AM
Hi,

Will this work with version 1.1.11?  I tried installing your previous version for 1.1 and it said the settings file was missing?

Thanks,

Gibs
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: ɔɔɔɔɔɔuɥoɾ on December 29, 2009, 11:55:40 AM
Quote from: gibsongk55 on December 29, 2009, 06:11:39 AM
Hi,

Will this work with version 1.1.11?  I tried installing your previous version for 1.1 and it said the settings file was missing?

Thanks,

Gibs


No, its for 2.x only.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: ɔɔɔɔɔɔuɥoɾ on February 14, 2010, 06:18:45 PM
I dont think I have much time for supporting these mods, if anyone would like to take over feel free, just send me a PM :)
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: Leemy on March 07, 2010, 12:14:32 AM
Does this only search site:yourdomain.com or it basically just googles? how do you get the ad revenue
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: ɔɔɔɔɔɔuɥoɾ on March 09, 2010, 02:29:28 PM
This searches Google, thus people who click sponsored links within the Google search results (when searched within your site) will get the revenue
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: giveaway365.com on April 14, 2010, 05:31:38 AM
will it work on RC3?
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: ɔɔɔɔɔɔuɥoɾ on April 18, 2010, 11:03:33 PM
Quote from: giveaway365.com on April 14, 2010, 05:31:38 AM
will it work on RC3?

I have not tried it yet, I know it worked on RC2 fine though
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: derby on July 07, 2010, 03:52:56 PM
PLEASE I NID A MOD THAT WILL ADD...CUSTOM GOOGLE ADS SEARCH..HELP
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: ɔɔɔɔɔɔuɥoɾ on July 07, 2010, 04:24:31 PM
Quote from: derby on July 07, 2010, 03:52:56 PM
PLEASE I NID A MOD THAT WILL ADD...CUSTOM GOOGLE ADS SEARCH..HELP

I think your in the right place, hence the name of this mod "Google: Adsense for Search and Custom Search Integration"
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: derby on July 08, 2010, 04:11:09 PM
i want to install it for SMF RC3 ?
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: derby on July 15, 2010, 01:25:06 PM
HELP INSTALLING THIS MOD ON RC3
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: ɔɔɔɔɔɔuɥoɾ on July 15, 2010, 07:22:04 PM
Quote from: derby on July 15, 2010, 01:25:06 PM
HELP INSTALLING THIS MOD ON RC3

Shouting will not get you anywhere..

Which errors are you getting while attempting to install?
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: derby on July 16, 2010, 09:37:48 AM
THIS IS THE ERROR I GET
   Execute Modification    ./Sources/ManageSettings.php     Test failed
      1.    Add After           ./Sources/ManageSettings.php     Test failed
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: ɔɔɔɔɔɔuɥoɾ on July 16, 2010, 11:30:31 AM
Quote from: derby on July 16, 2010, 09:37:48 AM
THIS IS THE ERROR I GET
   Execute Modification    ./Sources/ManageSettings.php     Test failed
      1.    Add After           ./Sources/ManageSettings.php     Test failed

Now I know the error, I can work on it, expect a reply in a few hours
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: hash899 on July 17, 2010, 08:08:53 PM
Hi, I was wondering will this replace the search function that's already built into the website with the google search because thats what I'm looking for. appreciate the help :)
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: ɔɔɔɔɔɔuɥoɾ on July 17, 2010, 08:36:48 PM
This does not actually replace anything, it will add the custom code required to display the search results in your own forum, and also add a search box, note that you can use your search box code anywhere on the forum using a portal block also.

I'm Currently updating this for RC3 at the moment, it should work, but will probably require a manual edit or 2.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: derby on July 17, 2010, 09:19:38 PM
Quote from: ♪ JohnCcCcCc ♫ on July 17, 2010, 08:36:48 PM
This does not actually replace anything, it will add the custom code required to display the search results in your own forum, and also add a search box, note that you can use your search box code anywhere on the forum using a portal block also.

I'm Currently updating this for RC3 at the moment, it should work, but will probably require a manual edit or 2.
In other words wat u re saying,is dat i can do ahead with the installation that it will have no effect oR I wait for the update coming for RC3
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: ɔɔɔɔɔɔuɥoɾ on July 17, 2010, 11:41:45 PM
Quote from: derby on July 17, 2010, 09:19:38 PM
Quote from: ♪ JohnCcCcCc ♫ on July 17, 2010, 08:36:48 PM
This does not actually replace anything, it will add the custom code required to display the search results in your own forum, and also add a search box, note that you can use your search box code anywhere on the forum using a portal block also.

I'm Currently updating this for RC3 at the moment, it should work, but will probably require a manual edit or 2.
In other words wat u re saying,is dat i can do ahead with the installation that it will have no effect oR I wait for the update coming for RC3

If you do the manual edits I see no reason why it would not work, its your choice, you can do the manual edits or you can wait, either way it should be the same result.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: derby on July 25, 2010, 04:37:46 PM
what do i edit and change?
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: ɔɔɔɔɔɔuɥoɾ on July 25, 2010, 04:43:45 PM
Quote from: derby on July 25, 2010, 04:37:46 PM
what do i edit and change?

I actually tested this mod on RC3 already, it works perfectly. Not even any manual edits required.

Attach the files with the failed tests, I will add them for you if you want :)
ManageSettings.php I believe it was.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: derby on July 26, 2010, 02:55:04 PM
here it is....plz i want it to replace the default search
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: ActivePatriot on July 29, 2010, 08:32:48 PM
I tried downloading the package for 2-rc3 from the packages/download packages/ simple machines package server and Google for Search does not show up in Feature Enhancements.

So, I downloaded the package off the mod site then uploaded it to my server in the packages folder.

Now it's listed when I select Browse Packages but, when I click Install Mod, I get this error:  Unable to find package file!

Any suggestions, sure would like to use this mod.


**EDIT**
Realized Feature Enhancement was the wrong place.  Deleted File, Downloaded in SMF from New Feature,  Says file appears to be empty.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: watchhorse on August 18, 2010, 04:27:29 PM
How set this for guests only???
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: ɔɔɔɔɔɔuɥoɾ on August 18, 2010, 06:19:34 PM
I have not implemented that feature yet, I can give you the code you would add to make it only for guests if you like;

Code ( Find) Select

if(!empty($modSettings['Google_SearchBox']))

Code ( Replace with) Select

if(!empty($modSettings['Google_SearchBox']) &&($context['user']['is_guest']))


This will make the search bar only visible to guests.
The other code will always be their, but its not visually changing anything, its just for the results when its used to search.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: Dzonny on August 19, 2010, 05:48:33 AM
Great mod, it would be great to have this for 1.1.11 version too :)
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: arty5 on August 29, 2010, 06:10:32 AM
The search results page is not loading, its only working with the default theme any suggestions?
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: ɔɔɔɔɔɔuɥoɾ on August 29, 2010, 01:19:41 PM
That means you didn't install it in your custom theme, you options are;

Uninstall the mod, then re=install it again, making sure to select the +Install in other themes option.

If that fails, because of the custom theme changing the code, simply copy the code for search results from the index.template.php file in default theme to the index.template.php in your custom theme, the codes are clearly labeled with a comment, simply add it to the main content area in index.template.php, below the comment that says " //The main content should go here."
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: Hack-King on November 14, 2010, 09:16:38 AM
Please I want a mod for my illustrative theme on this custom search thingy!!!
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: PLAYBOY on November 19, 2010, 12:52:02 PM
Does it work for 1.1.x?
Does it dsable the default search bar or it just adds the google custom bar there too?
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: divinrob on May 24, 2011, 06:17:52 PM
I'm getting the error below..

!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Install Actions
Installations actions for "Google Search Box With Results":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
2. Execute Modification ./Sources/ManageSettings.php File not found
3. Execute Modification ./Themes/default/index.template.php Test successful

Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: technica on March 31, 2012, 12:50:27 PM
Have anybody tried this MOD on SMF 1.1.16 version?

Anybody has the files?

I need this mod for smf 1.1.16 version.
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: Fabiolas on April 14, 2012, 07:54:51 AM
Great mod :)
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: desai_amogh on March 28, 2014, 06:56:32 AM
please update this for 2.0.7 !!!!!
Title: Re: Google: Adsense for Search and Custom Search Integration Version 1.2 - RC2!
Post by: swaggaderby on October 17, 2014, 10:05:09 AM
just the perfect mod i need but please how can i remove the default search box and add this one der?