vb.org Archive

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

amerelgen 05-02-2009 03:42 AM

Quote:

Originally Posted by davidw (Post 1802859)
Let me ask you something. Is searchresults.php going to go at the root of your site?

For example. yoursite.com/searchresults.php

If so, you can add // before the line, or delete that line altogether - save and upload.

How to install AppServ ?

amerelgen 05-02-2009 12:50 PM

1 Attachment(s)
Does not show search results
This image search results

https://vborg.vbsupport.ru/external/2009/05/163.jpg

davidw 05-02-2009 07:48 PM

Quote:

Originally Posted by amerelgen (Post 1802867)
How to install AppServ ?

I am not sure what AppServ is, so I wouldn't know how to install it.

Quote:

Originally Posted by amerelgen (Post 1803009)
Does not show search results
This image search results

https://vborg.vbsupport.ru/attachmen...1&d=1241272197

Can you PM me info where I can view this?

kronnos 05-11-2009 03:56 PM

For some reason i cant edit the search_forum template. When i click save and reload, it just takes me to a black page with the Vb copyright notice on it and that all. All other template changes work.

davidw 05-11-2009 04:36 PM

Looks like you are not the only person who is having this issue:
http://www.vbulletin.com/forum/showthread.php?t=308007
Are you able to revert back?

nomoreturn 05-16-2009 08:14 AM

hello installed but got this error

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/m****/public_html/searchresults.php on line 8

my site on main domain www.mysite.com how can i change this
chdir('/path/to/your/forums/');
i change it like chdir('/var/www/vhosts/mysite.com/');
please let me know if i'm doing wrong if so please corect me thanks

davidw 05-16-2009 10:51 AM

If you uploaded your searchresults.php file to your forum root, such as www.mysite.com/searchresults.php and your error message is this:

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/m****/public_html/searchresults.php on line 8

then the data you enter in the chdir('/path/to/your/forums/'); would be

chdir('/home/m****/public_html/');
(of course you would want all the information there)

and not

chdir('/var/www/vhosts/mysite.com/');

The second one - /var/www/vhosts/mysite.com/ was an example.

Hope that helps

nomoreturn 05-19-2009 07:03 AM

1 Attachment(s)
Quote:

Originally Posted by davidw (Post 1811735)
If you uploaded your searchresults.php file to your forum root, such as www.mysite.com/searchresults.php and your error message is this:

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/m****/public_html/searchresults.php on line 8

then the data you enter in the chdir('/path/to/your/forums/'); would be

chdir('/home/m****/public_html/');
(of course you would want all the information there)

and not

chdir('/var/www/vhosts/mysite.com/');

The second one - /var/www/vhosts/mysite.com/ was an example.

Hope that helps

Thanks for reply i did it as u said chdir('/home/m****/public_html/'); but still the same thing
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/mast**/public_html/searchresults.php on line 8

i attach pics so please have a look

davidw 05-19-2009 11:01 AM

If you are using it at the root, you can safely put // in front of that line
So
chdir('/home/m****/public_html/');
becomes
// chdir('/home/m****/public_html/');

You get a bad request due to not having the full partner-pub in there. See example in red under step one.

nomoreturn 05-19-2009 09:47 PM

Thanks davidw its working now thanks alot

davidw 05-19-2009 10:57 PM

no problem

0 Seo 0 05-20-2009 02:03 AM

this is very interest mod you made A+ We need mod like this keep up good works guys.

davidw 05-20-2009 09:41 AM

Don't forget to click install

Bravo 05-21-2009 12:12 AM

Has anyone gotten a email from google about using this?

because the vbadvanced and search page search box dont have the google branding on them? as the 1st screenshot and 4th screenshot show?

dchoi 06-11-2009 08:52 PM

I just upgraded to this one from the previous version and I can't log into the forums anymore. When I try to log in, it leads me to:

Code:

http://www.mysite.com/forums/searchresults.php?cx=partner-pub-####################&cof=FORID:9&q=&sa=Go&vb_login_username=name&vb_login_password=password&s=&securitytoken=guest&do=login&vb_login_md5password=&vb_login_md5password_utf=
and it says "Page Not Found".

I've deleted the plugin and it still does that. Can anyone please help me out?

davidw 06-11-2009 11:15 PM

Those tricky search bars can be tricky ;) I replied back :)

dchoi 06-11-2009 11:29 PM

Thanks David!

Yes, my problem was that my search bar was interfering w/ the log in process. Once I took that out, I was able to log in again.

TPTP 06-12-2009 02:04 AM

Ok, so I installed this earlier today, and I've been tinkering with it for a bit, but I'm still getting some rather unfortunate results.

First, it's not returning much for usable results. When searching for terms that should return pages of results, I can often get very few or even none. Not sure what's up with that.

Second, the results page comes up without session info, containing a login box, where it should be saying, "Welcome, so-and-so". One can either navigate from there and end up with a nasty cookie error, or one can go back, but that takes two clicks to even get off the page.

Third, neither the new search module nor the Google box in the Advanced Search contain a watermark, while the pop-up search panel does contain the watermark. Not a huge deal, but probably an indication that something is amiss.

In looking at the code that Google supplies, I noted that
Code:

<input type="hidden" name="ie" value="ISO-8859-1" />
was omitted from the mod. Was this intentional?

Also, there is no mention of which search option to use in the Google Search configuration (can be set during initial setup or adjusted later). Since the mod is expecting to display the results on the originating site, I went ahead and set it that way, and then specified http://mysite.com/forum/searchresults.php. After trying the other two settings, I get the same results.

I'm running vB 3.8.2 and vBa 3.2.0. Any ideas?

davidw 06-12-2009 02:30 PM

1) I've seen different results on different sites. Some sites produce 0 results while some sites produce thousands if not in the hundreds of thousands of results. I can't tell you how this is figured, but I suspect it is due to an indexed search rather than a direct search.

2) If you are missing navigation information, then there is something conflicting with this modification as I have yet to see this happen.

3) The watermark is due to a javascript issue with Google. During my testing I noted that when I had removed one or more of the boxes, the watermark showed up where it previously did not show.

4) This is not intentional that it is left out. This code in this modification is based on everything supplied to me at the time the modification was created. During the time it was created and now, I am more than positive that at least one or two, if not more changes have been made to the code.

5) I am not sure what you mean by search option? If you are referring to the old code (your site or Google - to choose where you want to search), that code has been changed by Google. You might be able to manipulate your PUB ID (remove partner- and the :###### parts) and use an older version of this mod (3.6 I think) to get that result.

mattonline 06-19-2009 06:41 PM

Hello, im having difficulty with this also

are we supposed to change the URL's to output the search results to searchresult.php ?

and is this interfering with googles TOS - there isn't any branding on the search bar

davidw 06-19-2009 06:57 PM

The branding is out of my control. I have tested it and when I only display it in one specific location it shows up there, but more locations, it only displays in one location, sometimes in the navbar, sometimes elsewhere.

The URL for the searchresults.php file is supposed to go in the admincp options.

mattonline 06-20-2009 11:04 AM

I know but on my forum the search is only going to the built in vbulletin search, and not searchresults.php

davidw 06-20-2009 02:29 PM

can you pm me a link to what is going on and an account to test with?

panus 07-04-2009 10:43 AM

after tried to install for a week , finally it's working now!
Thanks.

installed.

dreck 07-04-2009 03:56 PM

Great hack! thanks!

I do have a question. My page with the search results has 2 other google ads displayed. One below the navbar & the other in the footer.

When the results are displayed sometimes it will display 2 other ads. Will I run into any problems running 4 ads? Or should I disable the ads after navbar & in footer?

And how can I disable these ads only on this page?

Thanks, dreck

davidw 07-06-2009 11:04 AM

Typically, those ads are provided by Google, based on your placement preferences set up when you set up your adsense. I don't see how you can disable them.

Unless... you are referring to the ads displayed via vBulletin's built in adsense system. I don't see an issue with them personally as long as you aren't forcing the ads on the users (making them click) and as long as they aren't in a pop-up or pop-under they should be ok. The only way to effectively disable them is to replicate the navbar and footer and remove the ad code in there. You can disable them other ways such as using if conditionals (styleid - put the adsense in a certain style for example).

dreck 07-07-2009 06:29 PM

OK. I would think it would be ok. I am just not sure. I did not want to violate googles TOS. It clearly states only 3 ads units per page.

ranz 07-09-2009 12:24 AM

is the partner-pub id the whole thing or just the bit in bold?

partner-pub-0123456789012345:lnucfbm5dtp

dreck 07-09-2009 01:54 AM

whole thing

45wheelgun 07-12-2009 01:52 AM

David,

This is the best hack yet. I clicked Install and I nominated:up:

nhlchuck68 07-24-2009 11:58 PM

Can you tell me where I can edit the search drop down menu after installed? I want it to look like the search drop down found here.....

http://forums.digitalpoint.com/

unp 07-26-2009 10:37 AM

Quote:

Originally Posted by nhlchuck68 (Post 1854919)
Can you tell me where I can edit the search drop down menu after installed? I want it to look like the search drop down found here.....

http://forums.digitalpoint.com/

I would like that too !

SuperGLS 08-24-2009 09:43 PM

What do you mean when you say "resetup your adsense." What steps do I have to go through in order to do that with Google? Thanks in advance.

iguano 08-25-2009 06:48 PM

sorry for my English, I have version 3.8.4 of vbulletin, I installed everything and followed step by step guide but I have this error

Quote:

Google
Error


Bad Request
Your client has issued a malformed or illegal request.
I entered the field Google Partner-Pub ID: partner-pub-57645265793XXXXX

This is the link in the address bar: http://www.art17.it/forum/searchresu...&q=prova&sa=Go

thanks for any help

:)

SorentoUltimate 08-28-2009 12:56 AM

1 Attachment(s)
Very Good AddOn, thanks

can u help me a litle?

in your screenshot inside the textbox at search you have the logo and say Custom Search

In mine logo and custom search don't apear

See Attachments !!!

Giorgos

SuperGLS 08-28-2009 07:54 PM

Sorento, I think that is an option within Google Adsense itself, although I don't know how the mod works.

davidw 08-29-2009 12:13 AM

Quote:

Originally Posted by SuperGLS (Post 1873717)
What do you mean when you say "resetup your adsense." What steps do I have to go through in order to do that with Google? Thanks in advance.

If your pub key doesn't look like this: partner-pub-0123456789012345:lnucfbm5dtp
Then see this: https://vborg.vbsupport.ru/showpost....6&postcount=28


Quote:

Originally Posted by iguano (Post 1874270)
sorry for my English, I have version 3.8.4 of vbulletin, I installed everything and followed step by step guide but I have this error



I entered the field Google Partner-Pub ID: partner-pub-57645265793XXXXX

This is the link in the address bar: http://www.art17.it/forum/searchresu...&q=prova&sa=Go

thanks for any help

:)

Does your pub key look like this: partner-pub-57645265793XXXXX
or does it look like this: partner-pub-57645265793XXXXX:lnucfbm5dtp

Quote:

Originally Posted by SorentoUltimate (Post 1875566)
Very Good AddOn, thanks

can u help me a litle?

in your screenshot inside the textbox at search you have the logo and say Custom Search


In mine logo and custom search don't apear

See Attachments !!!

Giorgos

Logo and custom search will only appear in one search box as far as I know. If your site shows more than one, it will only show in one. Unless someone can show me a site that displays in more than one, I am convinced it appears one time (one box). However, due to the nature of the navigation bar, it may be limited to once-per-page.

SorentoUltimate 08-29-2009 08:37 AM

Quote:

Originally Posted by davidw (Post 1876107)
Logo and custom search will only appear in one search box as far as I know. If your site shows more than one, it will only show in one. Unless someone can show me a site that displays in more than one, I am convinced it appears one time (one box). However, due to the nature of the navigation bar, it may be limited to once-per-page.

i didn't know that, and i try and try and try ..... now clear !!!!

SuperGLS 08-31-2009 01:00 PM

Thanks David!

Easy install and working great on 3.8.4 so far.

Marked as installed.

Greek76 09-11-2009 11:48 PM

Installed and works great! Thanks


All times are GMT. The time now is 11:31 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.01377 seconds
  • Memory Usage 1,831KB
  • 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
  • (2)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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