vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Integration with vBulletin - vB Google Adsense for Search plus Integration (https://vborg.vbsupport.ru/showthread.php?t=180277)

davidw 07-21-2008 11:28 PM

Quote:

Originally Posted by MadK (Post 1580845)
davidw, could you tell me how you made it for Google and your own site results to show up. I have tried to modify it in Google Custom Search site, but it shows Google results and my forum results at the end (page 10)

Using your sites, this is what I did. I went to the Adsense setup and put in your sites along with Google (for my account, I used my website). See screenshot.

Caddyman 07-22-2008 11:05 AM

ok im installed on talkdelaware.com

edit the path in searchresults.php
added the right pub id in ACP
all good

now

if i search anything on the navbar dropdown, it brings me to my vB page for no results
this page http://www.talkdelaware.com/search.php?do=process
says this
Quote:

Please specify some words or valid user names to search on. There were no matches for those that you specified.
if i search from your box that i added on that page i then get the google results in a iframe like i should.

why is this? sorry if asked before :(

davidw 07-22-2008 12:12 PM

Make sure your entry in the admincp options says this:
http://www.talkdelaware.com/searchresults.php

Caddyman 07-22-2008 12:16 PM

yup, that is right in the ACP :(

davidw 07-22-2008 12:43 PM

Do you have a test account I can use to look at it? PM me the info if you have one.

MadK 07-22-2008 02:04 PM

Quote:

Originally Posted by davidw (Post 1580986)
Using your sites, this is what I did. I went to the Adsense setup and put in your sites along with Google (for my account, I used my website). See screenshot.

This is what I've done; however, my forum results are in the end. Not first, like I expected them to be.

davidw 07-22-2008 02:47 PM

Have you tried reversing the order of the sites? It's possible Google just works that way.

tpearl5 07-22-2008 04:39 PM

Ah, I had already done something similar to this but not as integrated. I will check this out.

MadK 07-22-2008 05:11 PM

Quote:

Originally Posted by davidw (Post 1581455)
Have you tried reversing the order of the sites? It's possible Google just works that way.

Nope! :(

davidw 07-22-2008 06:44 PM

Do you have a test account I can look at?

gwerzal 07-30-2008 12:34 AM

Sorry if its a stupid question but how do you resetup your adsense for search?

Do you mean set up another acount?

Will you get in trouble with google if you have 2 acounts?

Cheers

Ben

Videx 07-30-2008 12:38 AM

Quote:

Originally Posted by gwerzal (Post 1587082)
Sorry if its a stupid question but how do you resetup your adsense for search?

Do you mean set up another acount?

No. Just log in to adsense and go to Adsense Setup>Adsense for Search. Presumably you could set up a thousand of these if you wanted.

davidw 07-30-2008 12:42 AM

Exactly - it will prompt you for new user information only if you are on the old account setup, but just like Videx said.

scoles15 08-05-2008 03:52 PM

Installed and working great:up::up: Thanks. I am using vBa 3.01 and I decided to integrate searchresults.php. No joy:(. Basically, I get about 3 warning messages that say the 3 array_merges in vba_cmps_include_template.php $phasegroups, $specialtemplates, and $globaltemplates are not valid arrays. Of course they are and the integration seems to work for any other page I have used. Any ideas??

BTW, I did add the three variables mentioned in the instructions.

Thanks

davidw 08-05-2008 05:24 PM

Do you have a test account I can use with a location to where this is occurring? When do you see the warning (at what point - after you click Go?)

scoles15 08-05-2008 10:56 PM

It is after you press Go and when it goes to searchresults.php Just in case, I wasn't clear. It works fine, except admincp->vBa CMPS->Integration. I just put it back that way so you can see the failure. I am not using vBa Module for the search form.

www.ncwoodworker.net I'll send account info in a few minutes via PM. I'll make you an Admin so you play with the vBa CMPS settings and/or plugin settings

zelnik 08-08-2008 09:49 AM

Hi hoping you can help me, Have installed the addon and everything is setup in the admincp

When i click search or if i try and access searchresults.php by itself I get the following error:

Quote:

Content Encoding Error


The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

The page you are trying to view cannot be

shown because it uses an invalid or unsupported form of compression.


* Please contact the web site owners to inform them of this problem
I have tried uploading a fresh unedited file to see if at least that error would stop but I get the same..

Please help!

davidw 08-08-2008 10:57 AM

Part of the reason is the unedited file. The file must be edited.

Step 1:
Edit chdir('/path/to/your/forums/'); in searchresults.php - put the correct value then upload to your forum's root.

If you have to, check with other applications or with your server to find out what the correct value should be - an error message will sometimes show you the correct value.

Also, make sure your adsense partner code looks like this partner-pub-0123456789012345:lnucfbm5dtp

If you want, PM me the site where this is happening and a test login for looking at it.

zelnik 08-08-2008 04:05 PM

Thank you David everything working just great now.

You were correct it was a path issue and had to ask my host for the full path as when you ftp in it doesn't show you!

Thanks once again!

davidw 08-08-2008 04:50 PM

Your welcome - glad I could help :)

GavM 08-13-2008 09:45 PM

Can someone help me here? I'm not sure how to resetup my account to get the extra bit of code on the end?

Step by step instructions would be greatly appreciated :D!!!

davidw 08-13-2008 09:56 PM

Go to http://www.google.com/adsense/ and login
Click on the Adsense Setup tab
Click on AdSense for Search Improved! link
Fill this out how you want and at the end you will get your new code.

davidw 08-18-2008 12:25 AM

Did that help?

smirkley 08-27-2008 03:10 AM

One heck ofa hack! kudos!

And thanks.

Two questions,...

1 - is there a way to make the google search result popup in a new window when you click on one of the results in the listing? I am just trying to keep my members with my site still there, and not redirected away, know what I mean?

2 - and this may be a bug or install issue. But concerning step 4 and integrating the google search on the advanced search page. The google box shows up, but without the google custom search watermark inside the search box. Also, I noticed that I get a mouseover from an alt text in the whole google search block, that says nohilite.
Step 4 looked easy enough to do, but I fear I musta missed something somewhere as these items are anomolies from your images you posted in this topic here.

Thanks in advance.

davidw 08-27-2008 11:00 AM

1 - The page stays within your site (that's the reason for the iframe) - if for some reason you are being taken to google's site, show me where this is happening and I will help you fix this.

2 - Some people can get the Google Custom Search image to show up while others don't. On my site, it shows up on some styles while other styles won't show it. I believe this has to do with other code running as it has no issues on my site with the default style. However, I am not 100% certain on this, just a guess. I'll look into the nohilite issues.

smirkley 08-27-2008 05:07 PM

Thank for your reply.

1 - I need to clarify,.. The search feature and results page of google links DO IN FACT show up embedded within my site. I was basically wondering if there was a way to make a clicked-on result link on that page, pop up into a new browser window. Or is that a function of the google result page code? Right now, when one clicks on a google result link that is in fact inside my site page, the user is taken to the clicked on links site, as expected, but it loads in the same browser window and not in its own pop up browser. This may in fact be normal operation, and may not be alterable.

2 - Thanks for looking into it. I may try some fiddling on my install to see if I can find a way to make the watermark in the search box work properly too. Hopefully we can find a way. I am currently testing on VB default style, and as of today, on 3.7.3, but I do have some other modifications I am testing concurrently on the same site.

Regardless, the mod works great overall.

davidw 08-27-2008 10:57 PM

Ahh, it might be possible to do such but my code was based on theirs and how it functioned. This is something I can look into as a javascript popup of a page shouldn't be that hard to code - call vs popup isn't that much difference. However, after tonight it will probably be next week before I can look into this as I will be out of pocket.

I am glad you appreciate this mod. I am looking into the idea of other adsense ideas in the future.

Idlehearts 09-07-2008 11:07 AM

Quote:

Google Error

Bad Request

Your client has issued a malformed or illegal request.

how to rectify this

davidw 09-07-2008 11:27 PM

Quote:

Originally Posted by Instructions
When you resetup your adsense, you will get a new pub ID - this one includes your previous pub and tacks on your GALT (which is set up when you resetup your adsense account).

Example: partner-pub-0123456789012345:lnucfbm5dtp

You will need this for step 3. If you do not have this, you will see an error.

You have seen this error. Google is looking for your information.

luket79 09-08-2008 03:04 AM

Is the idea to have it search just your site or the whole web? The title of the search box suggests both, what should I do? Also, my template doesnt have the search dropdown box, how do I enable that?

davidw 09-08-2008 03:13 AM

You can have it search whatever you want. When you set it up, you get the choice to search whatever you put in the box
Site 1
Site 2
Site 3
et al.

I set mine up as
my site
Google.com

But what you do is totally your choice. Which template doesn't have the search dropdown box? Navbar?

Idlehearts 09-08-2008 06:56 AM

Quote:


Google Error

Bad Request

Your client has issued a malformed or illegal request.


how to rectify this
Any help

davidw 09-08-2008 09:17 AM

<a href="https://vborg.vbsupport.ru/showpost.php?p=1617006&postcount=149" target="_blank">https://vborg.vbsupport.ru/showp...&postcount=149</a>

dtv100 09-08-2008 09:30 AM

any way to move google search on top of forum search ?
also those ads that show in page result are ours of someone else?

thanks for this addon .

Idlehearts 09-08-2008 03:41 PM

I dint get what do you mean by that sentence

what google is looking out,

i entered the correct and new pub id as you're example over there

thanks

Quote:

Originally Posted by davidw (Post 1617006)
You have seen this error. Google is looking for your information.


luket79 09-08-2008 08:56 PM

Quote:

Originally Posted by davidw (Post 1617084)
You can have it search whatever you want. When you set it up, you get the choice to search whatever you put in the box
Site 1
Site 2
Site 3
et al.

I set mine up as
my site
Google.com

But what you do is totally your choice. Which template doesn't have the search dropdown box? Navbar?

Thanks for the heads up. I didn't even think of putting google.com in the list of sites.

My url is dnlodge. The Navbar holds the search button. I've looked in the manual but it seems to have all of the necessary js called.

Thanks for any help.

davidw 09-10-2008 08:26 PM

Sorry for the delay everyone, I've been sick - still am sick.
Quote:

Originally Posted by dtv100 (Post 1617252)
any way to move google search on top of forum search ?
also those ads that show in page result are ours of someone else?

thanks for this addon .

I'm using the hook, but I can probably make a manual template. Those ads are from google - they are part of the adsense as I don't have a way to disable them.

Quote:

Originally Posted by Idlehearts (Post 1617510)
I dint get what do you mean by that sentence

what google is looking out,

i entered the correct and new pub id as you're example over there

thanks

You entered the correct and new pub id and are still having a bad request? Can you PM me where this is happening?

Quote:

Originally Posted by luket79 (Post 1617696)
Thanks for the heads up. I didn't even think of putting google.com in the list of sites.

My url is dnlodge. The Navbar holds the search button. I've looked in the manual but it seems to have all of the necessary js called.

Thanks for any help.

Ahh, your site's Search drop down box has been altered. What you can do is create a new default style and copy the contents of the navbar to your normal style and then make whatever changes you need to. This will give you your Search drop-down. (or even easier - click revert on the navbar template - and then go back and make necessary changes).

luket79 09-10-2008 10:52 PM

Is there a way to change the "Search Google / Search Forums Using Google" text to something else? I see it in the xml file but do I have to re-install to change that?

davidw 09-11-2008 10:57 AM

Reuploading the product is the cleanest way to do it, but is not the only way to do it. You can also edit your google_siteadsearch template and change it there. Until I have everything phrased, these are the two ways to do it. If you change it in the template, you will have to revert the template if there are major changes to the template, which doesn't occur often.

luket79 09-11-2008 10:09 PM

Thanks! Great MOD!


All times are GMT. The time now is 04:24 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01257 seconds
  • Memory Usage 1,830KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete