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)

jlew24asu 07-15-2008 11:46 AM

edit

jlew24asu 07-15-2008 11:47 AM

Quote:

Originally Posted by davidw (Post 1570942)
How big, what size, location, etc. did you have in mind?

same size as it is now. just below the navbar. :):cool: :up:

davidw 07-15-2008 12:28 PM

Do you just want a small search box with a go button? Also, do you want it any specific location? (left side/right side?)

jlew24asu 07-15-2008 01:38 PM

Quote:

Originally Posted by davidw (Post 1575886)
Do you just want a small search box with a go button? Also, do you want it any specific location? (left side/right side?)

small search box with go button, yes. I believe it should say google search inside the box. left side will work.

:up:

davidw 07-15-2008 02:32 PM

let me see what I can do (when I get a chance).

djbaxter 07-15-2008 02:37 PM

Quote:

I've done an overhaul on this and you will need to resetup your adsense for search account for this to work. If you aren't happy with that, please use the 3.6 version of this, which works fine for 3.7 from what I've been told.

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.
I'm not sure I understand this. First, why is this required? Second, how do I do it, since I have an existing AdSense publisher account and don't want to have to change it for all my sites.

davidw 07-15-2008 03:46 PM

If your account looks similar to the example - then no worries :)
Example: partner-pub-0123456789012345:lnucfbm5dtp

If you need to do that, just go log into your Google adsense account - adsense for search it should prompt you.

The reason why it is required is because if you do not have the extended information (after the colon : ) then you will get a Bad Request error message from Google. This is only for the latest version - if yours works fine, then don't worry about it.

davidw 07-15-2008 06:44 PM

Quote:

Originally Posted by jlew24asu (Post 1575946)
small search box with go button, yes. I believe it should say google search inside the box. left side will work.

:up:

I've got a prototype working - but for some reason it is NOT showing the Google wording inside as it should. Try this one out and let me know - put $google_anywhere where you want it. I've got it working on my forumhome (left side). It is possible it is because the script is already being called in the navbar - that I've not tested.

jlew24asu 07-15-2008 07:02 PM

nice, thanks. I'll try it out. do I need to remove the original?

where exactly do I put $google_anywhere

find...

add below/after....

davidw 07-15-2008 07:25 PM

No, just import and overwrite.

You can put it where you like.

I added mine to my forumhome template just below the <!-- Main --> area.

jlew24asu 07-15-2008 07:37 PM

hmmm. ok that worked. but it doesnt say google search anywhere. (thanks again for the quick response on my requests)

edit: it now says Google custom search in the box. (didnt at first)

I like yours better though from your site. you have a custom field above the box that says google search.

davidw 07-15-2008 11:04 PM

I can't really control the javascript as it comes from Google, but if you are getting it to work - Great!

Quote:

Originally Posted by jlew24asu (Post 1576231)
I like yours better though from your site. you have a custom field above the box that says google search.

From which do you see this?

jlew24asu 07-15-2008 11:16 PM

Quote:

Originally Posted by davidw (Post 1576373)
I can't really control the javascript as it comes from Google, but if you are getting it to work - Great!

yup. good work!


Quote:

Originally Posted by davidw (Post 1576373)
From which do you see this?

on Christianboards.org on the upper left. although I'm guessing that isnt this hack...

davidw 07-16-2008 12:04 AM

can you post a screenshot :) - I can probably help you out either way - if it is on the home page this it is this hack (its the Step 5 above)

jlew24asu 07-16-2008 12:33 AM

Quote:

Originally Posted by davidw (Post 1576397)
can you post a screenshot :) - I can probably help you out either way - if it is on the home page this it is this hack (its the Step 5 above)

oooo its (step5) for vbadvanced. got it. I'll be installing this again on another bpard im making as we speak. i'll let you know how that goes. thanks for your help!!!

davidw 07-16-2008 12:41 AM

No problem :)

jlew24asu 07-18-2008 09:08 PM

ok david. I followed the instructions but its not showing up on my CPMS homepage

davidw 07-18-2008 11:06 PM

What version of vbadvanced is that?

jlew24asu 07-18-2008 11:38 PM

v3.0.1

this is for a forum I just created

www.sundeviltalk.com

davidw 07-19-2008 12:19 AM

Did you disable your current search for the home page and enable the new one you created (set active). The one I see goes to search.php page rather than searchresults.php.

jlew24asu 07-19-2008 12:58 AM

Quote:

Originally Posted by davidw (Post 1578752)
Did you disable your current search for the home page and enable the new one you created (set active). The one I see goes to search.php page rather than searchresults.php.

how do I do that? :)

davidw 07-19-2008 11:46 AM

Assuming you have created the module in the last step above, to disable the old,
vBa CMPS => Edit Modules => [Search Forums] Click Go next to Edit Module
Under Main Options
Active => Set to No
Click Save

Then go back, and make sure the other Google Search module is set to active.

Also, check your Quick Permissions Editor (and look under Modules) - Find your Google Search and make sure everyone you want to be able to view it can.

jlew24asu 07-19-2008 12:20 PM

ah. ok. done! thanks again. you are very helpful

jlew24asu 07-19-2008 12:43 PM

how anyone would not want this on their site is beyond me

davidw 07-19-2008 12:59 PM

Thanks :)
Btw, if you want me to look at your CMPS setup, PM me enough info to get me access to the CMPS in the admin and I'll look at it when I get a chance. I may sit down this week and totally rewrite the instructions.

jlew24asu 07-20-2008 02:00 AM

actually something is wrong. when doing a search it comes up www.yoursite/forums/seachresults.php (etc etc)

did I not edit the php correctly?

davidw 07-20-2008 11:59 AM

That is an admincp option (last option). Your forum's path.
or
That is Module Wrapper Template Options (last step above)
Form Code Replace default code with ...
(you've got to put your site in there)

jlew24asu 07-20-2008 05:04 PM

getting closer :) now I get

Not Found
The requested URL /asu_forum/searchresults.php was not found on this server.

but it is there!

MadK 07-20-2008 09:24 PM

I have about 7 queries done today, but my Google Adsense Search report shows $0.00.

Is everything alright with the way I setup the custom search? All were from different IPs.

Is it a problem if my searchresults.php is hosted in the root folder (www.mafia-mp.com) and my forum is hosted on /forum/ ? The search results show up properly.

davidw 07-21-2008 11:16 AM

Quote:

Originally Posted by jlew24asu (Post 1579959)
getting closer :) now I get

Not Found
The requested URL /asu_forum/searchresults.php was not found on this server.

but it is there!

It needs to be the full URL
http://www. ... /asu_forum/searchresults.php

Quote:

Originally Posted by MadK (Post 1580172)
I have about 7 queries done today, but my Google Adsense Search report shows $0.00.

Is everything alright with the way I setup the custom search? All were from different IPs.

Is it a problem if my searchresults.php is hosted in the root folder (www.mafia-mp.com) and my forum is hosted on /forum/ ? The search results show up properly.

I am not sure how long it takes to show up, but as long as you have your full partner-pub- number and there are no errors and the user does the full click-through by Google's standards, you will/should get what credits that are appropriate. I know I did a couple tests a while back and one showed up, and one didn't - it was for a couple pennies, but it still worked. If there are no errors, I would have to say that there is a small waiting period (days probably). But I've not really looked on that side of things. I do not get that much traffic, but I have still earned a few dollars in the past couple months.

jlew24asu 07-21-2008 11:36 AM

Quote:

Originally Posted by davidw (Post 1580508)
It needs to be the full URL
http://www. ... /asu_forum/searchresults.php

ok, so where am I going wrong? I have the full URL in admincp, and in the code in the CMPS module. :(

djbaxter 07-21-2008 11:37 AM

Quote:

Originally Posted by MadK (Post 1580172)
I have about 7 queries done today, but my Google Adsense Search report shows $0.00.

Is everything alright with the way I setup the custom search? All were from different IPs.

Is it a problem if my searchresults.php is hosted in the root folder (www.mafia-mp.com) and my forum is hosted on /forum/ ? The search results show up properly.

First, your AdSense stats aren't updated immediately.

Second, you don't get paid per query. You get paid when someone clicks on one of the advertising links appearing in the search results.

davidw 07-21-2008 01:00 PM

Quote:

Originally Posted by jlew24asu (Post 1580518)
ok, so where am I going wrong? I have the full URL in admincp, and in the code in the CMPS module. :(

Your searchresults.php file is located
Here: http://www. ... /searchresults.php
not here: http://www. ... /asu_forum/searchresults.php

MadK 07-21-2008 01:01 PM

Quote:

Originally Posted by djbaxter (Post 1580519)
First, your AdSense stats aren't updated immediately.

Second, you don't get paid per query. You get paid when someone clicks on one of the advertising links appearing in the search results.

I know my AdSense stats are not updated immediately, and I thank you for clearing that up. My thanks go to davidw, too! :)

jlew24asu 07-21-2008 01:36 PM

Quote:

Originally Posted by davidw (Post 1580558)
Your searchresults.php file is located
Here: http://www. ... /searchresults.php
not here: http://www. ... /asu_forum/searchresults.php

as always, you come through. thank you for your patience with me :) all is working now!

davidw 07-21-2008 01:53 PM

No problem

MissKalunji 07-21-2008 06:08 PM

Thanks david you saved me the time to do it all by myself.
*thumbs up*

davidw 07-21-2008 06:53 PM

Glad it worked out for you :)

MadK 07-21-2008 07:30 PM

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)

Here's what I tried:

Search the entire web but emphasize included sites.

In the sites section, I added forum.+++++-mp.com, +++++-mp.com, wiki.+++++-mp.com

jlew24asu 07-21-2008 08:50 PM

Quote:

Originally Posted by MadK (Post 1580172)
I have about 7 queries done today, but my Google Adsense Search report shows $0.00.

Is everything alright with the way I setup the custom search? All were from different IPs.

Is it a problem if my searchresults.php is hosted in the root folder (www.mafia-mp.com) and my forum is hosted on /forum/ ? The search results show up properly.

how much clicks came from those searches? this has happened to be before as well. I dont think you are doing anything wrong. it has something to do with google on how they run things. (thats my guess)


All times are GMT. The time now is 06:49 PM.

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.01522 seconds
  • Memory Usage 1,828KB
  • 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
  • (17)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