Jump to content

Download: [HQ] Google CSE -lite-


InvisionHQ

Recommended Posts

  • 3 weeks later...
  • Replies 215
  • Created
  • Last Reply
Posted

I've been through all the templates I can find also, and nothing obvious - this is actually a great shame because this mod is fantastic and solves a major problem for me, but at the same time it gives me a problem because it opens in a seperate page/tab which isn't ideal - I'd love to use this mod but can't because of the issue at the moment !! Please HELP!! :smile:
Marko

Ahaaaaa ...
Just changed the following and it seems to work:

In "public/js/ips.googleSearch.js"

Change:

//customSearchControl.setLinkTarget( google.search.Search.LINK_TARGET_BLANK );[/CODE]

to

customSearchControl.setLinkTarget( google.search.Search.LINK_TARGET_SELF );

(note the removal of the // at the beginning of the line) and then change:

customSearchControl.setSearchCompleteCallback( ipb, ipb.googleSearch.pageChangeScrollTop );

to

//customSearchControl.setSearchCompleteCallback( ipb, ipb.googleSearch.pageChangeScrollTop );[/code]

(note the ADDITION of the // at the beginning of the line!)


Posted

Now, if I could only understand what is meant by "associate adsense with the CSE" and how to do that I'd be one happy camper !! (Can anyone elaborate please?)



https://www.google.com/adsense/static/en/Afs.html
Posted

Hi Martin, thanks for that link but it doesn't really take me anywhere other than to log into adsense - let me explain my situation in the hope you may be able to advise further - I already have an adsense account and I've already created (was actually using it previous to installing your mod) a custom search engine, but I'm still at a loss as to what's meant by merging my adsense with CSE (custom search engine) - are you able to explain further please?
Thanks in advance, oh and thanks for this mod, it's solving a major problem I was having using the CSE on it's own :)
Cheers
Marko

Posted

When logged in to CSE you should see a link on the left side that says "Earn Money", or something like that. I am unable to switch the language CSE use to English, so I can't give you any correct directions.

Posted

Think we could be looking or meaning different things here Martin - when I set up a CSE, it will automatically serve ads from my "results" page. The process of setting up a CSE in google (for me anyway) is entering the details and we then are given code for the actual "quick-search" box and code for the results page. I used to have the results page in IPContent, but now I'm using your mod they open in a popup window (which I find really good) - there isn't anyway I can see that I would "merge" or "associate" my CSE with adsense because as far as I can see, it already is. However, if I leave the CSE ID section blank in the ACP, the search works fine (obviously no ads are shown) but if I enter the ID for the CSE I created then no results are shown at all. This is what is confusing me :)

Posted


Thank you for a great hook/mod....


I have one problem (not really a problem but rather need help with it)


My site is using diffrent language and even my custom search specified the language in custom search on google, but your hook is not using interface language from google it is in English...



How can I use the custome search language on your hook to get the search interface from google in my site language????



Thanks (I turned it off untill fix this)


Thank you %7Boption%7D



____________________________________________________



I will look into this issue as soon as I can.




Any news on this issue Martin? Thanks
  • 1 month later...
Posted

Any info on 3.3 compatibility? Wouldn't want to upgrade without it (and as I think I've said before, this is one plug-in I'd pay for).

Posted

I upgraded to 3.3 just yesterday and everything looks fine with the mod, that's not to say someone else may not have issues with it, I don't know - but as far as I'm concerned the upgrade went ahead without any issues regarding the mod :)

Posted

I can't get it to work after upgrading. Tried uninstalling and reinstalling. Recached skin, still not appearing. Received this error when I tried to update the settings on the hook:

Fatal error: Using $this when not in object context in /{invision admin folder}/sources/base/core.php(1558) : eval()'d code on line 13

Posted

I can't get it to work after upgrading. Tried uninstalling and reinstalling. Recached skin, still not appearing. Received this error when I tried to update the settings on the hook:



Fatal error[color=#000000]: Using $this when not in object context in [/color]/{invision admin folder}/sources/base/core.php(1558) : eval()'d code[color=#000000] on line [/color]13



I can confirm that error when updating the hook settings.
Posted

I can't get it to work after upgrading. Tried uninstalling and reinstalling. Recached skin, still not appearing. Received this error when I tried to update the settings on the hook:



Fatal error[color=#000000]: Using $this when not in object context in [/color]/{invision admin folder}/sources/base/core.php(1558) : eval()'d code[color=#000000] on line [/color]13




I can confirm that error when updating the hook settings.




I am running IPB 3.3.0 and get the same eval() error. Disabled hook.



Fixed.
Posted

Thank you for a great hook/mod....


I have one problem (not really a problem but rather need help with it)


My site is using diffrent language and even my custom search specified the language in custom search on google, but your hook is not using interface language from google it is in English...



How can I use the custome search language on your hook to get the search interface from google in my site language????



Thanks (I turned it off untill fix this)


Thank you [img]

[/img]



____________________________________________________



I will look into this issue as soon as I can.



Any news on this issue Martin? Thanks

Please :)
  • 2 weeks later...
Posted

Can anyone tell me a way of opening results in a new page?. The mod works great, but I'm noticing that on some mobile devices (iphone, for example) the search popup is located in an inaccesible part of the screen and render the mod virtually unusable?
Cheers
Marko

Posted

thank you for this great hook,

i have just small issue that i dont understand, adverts are not show in the first page, even if we go to the differents pages (1 2 3 ..),
it work only after i clic on the other tabs such as "web" tab, if i clic on this tab and return to my custom search tab i can see adverts !

its a js problem or java purhapse !?

Posted

Thanks for this great hook, Martin. It's a welcome addition to my forums.

A question about the position of the Google search popup window.

I would like to move the popup window up and have it scroll.

I am able to do this using Firebug, by changing the top value and changing position to "absolute":

id="googleSearchPopup_popup" class="popupWrapper" style="z-index: 10001; top: 112.25px; left: 170.5px; position: fixed;">




How would i implement this into the imGoogleSearchJs template?

I tried it myself and it's not working out as i expected.

Posted

Sorry for the double post.

Can't edit my posts here after a certain time.

They should use concurrent post merge here.


Anyway, I am able to move the googleSearchPopup_inner up, but not the popupwrapper.

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...