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 09-11-2008 10:29 PM

Glad you like.

dtv100 09-12-2008 12:05 AM

[QUOTE=davidw;1619390]Originally Posted by dtv100
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]

hope you get better soon and when you do please I would love to have a manual template
that way google search is on top and my members use it more often make my site load lower .
thanks again for reply .

davidw 09-12-2008 12:12 AM

It will probably be towards this weekend - but shouldn't be too hard. I might even have time tomorrow if it is slow.

Pete2007 09-14-2008 12:28 PM

Quote:

resetup your adsense for search account for this to work
What will happen if I don't resetup my adsense account? And use my current account ID?

Videx 09-15-2008 12:29 PM

Quote:

Originally Posted by Pete2007 (Post 1621902)
What will happen if I don't resetup my adsense account? And use my current account ID?

First, your nose will fall off for not taking the time to read older posts. As very clearly explained about a thousand times already, if you try to use an older style ID number you'll get errors.

Pete2007 09-15-2008 12:57 PM

Quote:

Originally Posted by Videx (Post 1622585)
First, your nose will fall off for not taking the time to read older posts. As very clearly explained about a thousand times already, if you try to use an older style ID number you'll get errors.

I do apologise.

One last question, is this legal, and perfectly ok with google?

davidw 09-16-2008 03:32 PM

Yes, this is perfectly legal. All I did was use google's code and modified it for integration with vBulletin. Everything goes through Google (it is set up that way). This modification only alters how it is displayed.

davidw 09-16-2008 03:34 PM

Quote:

Originally Posted by dtv100 (Post 1617252)
any way to move google search on top of forum search ?

I should have this done this week. I'm behind due to being sick and other issues.

davidw 09-18-2008 05:09 PM

Find this in your navbar template:
Code:

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

        <if condition="$show['searchbuttons']">
        <!-- header quick search form -->
        <div class="vbmenu_popup" id="navbar_search_menu" style="display:none" align="$stylevar[left]">
                <table cellpadding="4" cellspacing="1" border="0">

Add after:
Code:

<tr>
        <form action="{$vboptions['google_forum_path']}" id="cse-search-box" target="_top"><td class="thead">Search Site / Google</td>
</tr>
<tr>
        <td class="vbmenu_option" title="nohilite">
                <table border="0">
                        <tr>
                                <td nowrap="nowrap">
                                        <div>
                                                <input type="hidden" name="cx" value="{$vboptions['google_pub']}" />
                                                <input type="hidden" name="cof" value="FORID:9" />
                                                <input type="text" name="q" size="{$vboptions['google_box_width_nav']}" />
                                                <input type="submit" name="sa" value="Go" />
                                        </div>
                                </td>
                        </tr>
                </table>
        </td></form><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>
</tr>

Save and reload.

dtv100 09-18-2008 06:17 PM

thank you so much .

davidw 09-18-2008 06:44 PM

No problem.

sarum 10-11-2008 03:44 PM

Quote:

Originally Posted by davidw (Post 1624969)
Find this in your navbar template:
Code:

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

        <if condition="$show['searchbuttons']">
        <!-- header quick search form -->
        <div class="vbmenu_popup" id="navbar_search_menu" style="display:none" align="$stylevar[left]">
                <table cellpadding="4" cellspacing="1" border="0">

Add after:
Code:

<tr>
        <form action="{$vboptions['google_forum_path']}" id="cse-search-box" target="_top"><td class="thead">Search Site / Google</td>
</tr>
<tr>
        <td class="vbmenu_option" title="nohilite">
                <table border="0">
                        <tr>
                                <td nowrap="nowrap">
                                        <div>
                                                <input type="hidden" name="cx" value="{$vboptions['google_pub']}" />
                                                <input type="hidden" name="cof" value="FORID:9" />
                                                <input type="text" name="q" size="{$vboptions['google_box_width_nav']}" />
                                                <input type="submit" name="sa" value="Go" />
                                        </div>
                                </td>
                        </tr>
                </table>
        </td></form><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>
</tr>

Save and reload.

and uncheck:
Code:

vB Google Search - Navbar          global_setup_complete
in manage plugins

if you dont you'll end up with two google search windows

The Realist 10-12-2008 03:17 PM

For members whom are getting search errors when it comes to this part of the 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

In order to get the new adsense code as above you need to do the following within your adsense account to get hold of the new partner code.

Do the following:

1) Login to adsense
2) Click Adsense setup
3) Click "AdSense for Search" and pick what options you need and continue clicking next.
4) At the end you will get "Submit and get code"
5) Click the submit button and look at the code.

Within the code displayed you will get your new full partner adsense code that needs to be inputed within the "vB Google Search (Adsense)" under vbullletin options.

Hope this helps.

Regards.

badheeu 10-12-2008 11:59 PM

Thankx hack is great,

Demo

Best Regards

KMA FORUM

Wizardjv 10-16-2008 11:26 PM

Anyway to make this search your site? I mean it seems to be searching google and not the site it is on? Or would that stop from making anything in adsense? Just curious?

davidw 10-17-2008 12:01 AM

When you set it up, you choose where you want it to search. You can default it to Google, or you can list a set of sites (including Google). If your search terms are relevant, depending on how strong of the search terms, they will show up closer to front/top of the list - as long as your site is in the list.

netzrate 10-17-2008 03:36 PM

great, installd and it works!!

davidw 10-20-2008 12:51 AM

Thanks

Chunky Monkey 11-05-2008 04:04 PM

Is this still working for everyone? I installed it, added my new partner-pub-xxxxx:xxxx id, and verified in Google Analystics that searchresults.php is receiving traffic, but AdSense is showing no impressions or clicks...

Does it matter that none of my other adsense ads have "partner-" before the "pub"?

please help.

Chunky Monkey 11-05-2008 04:05 PM

Also, the "FORID: X" in the code AdSense tells me to add to the side is different from the "FORID: X" displayed for the search when I view the vbulletin page source. Does that matter?

davidw 11-05-2008 10:17 PM

What you need to have entered in your admincp is this:

partner-pub-0123456789012345:lnucfbm5dtp

but it looking like yours.

I just checked my Adsense (for search) page with Google, and surprisingly, I actually made money (which I usually don't.

Quote:

Today's Earnings: $0.03
View payment history
TIP

If you have any payments questions, we encourage you to check out the Payment section of our support site: Learn more...
View:

Queries Clicks CTR eCPM [?] Earnings
AdSense for Search 32 1 3.12% $0.80 $0.03
view all AdSense for Search channels ?

AdSense for Content - Get started
AdSense for Mobile Content - Get started
AdSense for Feeds - Get started
Total Earnings $0.03
Keep in mind this will NOT have any bearing with your Adsense Ads (this is search only). Your Google Adsense for Content is different - and I've not checked to see if they use the same pub IDs as I don't use Adsense for Content. This is something I will be exploring in the near future.

Chunky Monkey 11-05-2008 11:56 PM

Thank you. Do you know if it matters whether the X in FORID: X is the same in the code your plugin produces vs the code Google Adsense for Search provides? I copied the code you provided for how to put the adsense search above the default forum search, which may be why my X is different?

davidw 11-06-2008 02:13 AM

You should be able to ignore that. That is why there is there is
lnucfbm5dtp
at the end of
partner-pub-0123456789012345:lnucfbm5dtp
The old style used that.

demoniavbh 11-18-2008 01:05 PM

Can something be done to have a different search results page for each style?
I have many styles in my board and I'd like to have the search results page showing accordly in each of them...
Is it possible?

thanks

davidw 11-18-2008 03:58 PM

Is this not working for each style? The way google's search itself is displayed is static, whereas the style the results are displayed in is dynamic to your style of your site. As far as the display page itself it should change depending on whatever style the user is using. As far as the results go, unfortunately I can only see one instance of a style - and that is based on your adsense setup. That is the part located here:

partner-pub-0123456789012345:lnucfbm5dtp

I hope that helps.

demoniavbh 11-18-2008 09:16 PM

But I want to know if it's possible to have a different pub number for each style. i don't want my page to appear as in the third attachtment, with the search background in white and all that, I want it to fit my style, and I can only do that in the adsense setup as you said.

So, could it be possible to do it but changing templates, puting the pub code in templates? Something like in your other mod, in the 3.6. It would be like a mixture of both

davidw 11-19-2008 11:11 AM

Can you show me an example of this? If you are using the old style pub number this will not work (this is based on the new pub number - as per example).

demoniavbh 11-20-2008 09:30 AM

Well, I have a skin that is like attachment nr 1, dark blue, and I configured my adsense search results to look like that to fit my style.

But then, when I changed skin It looks like att. nr2, horrible.

So, I'd like to know if there could be the posibility of changing the pub ID for each style, so I can have style nr1 like the first attachment and style nr 2 like in att. nr3 (here I have changed the pub code to look as I want, but style nr 1 would be messed up)...

davidw 11-20-2008 10:56 AM

The style itself is changing; the results themselves are a direct result of your pub code. They aren't part of your style but are actually in an iframe. That information is derived from google and the display is generated by the pub code. As far as I know you can only have one variant of the pub code - the most current one.

It might be possible to "trick" Google, by using several different pub codes by going to google.com/adsense and getting all the different variations that you want and then using those, but two things you have to think of...
1) This is displaying in an iframe so an iframe's results are going to be independent regardless of what style you are using and which condition applies
2) That it could be against Google's ToS.

While an if condition (if style = x) might work, there is no guarantee.

popowich 11-20-2008 02:07 PM

Is it possible to move the "Search Site / Google" box above "Search Forums" in the search dropdown?

I'd like to make it more likely that members and visitors use the google search.

-Raymond

symptome 11-21-2008 11:23 AM

Hi
Nice mod ... but

I just downloaded, installed and get to run. But in the configuration of the Google PUB ID still stays the text "starting with pub-" which isn't correct, as you already mentioned here in the thread.
Perhaps you want to correct it.

But the main thing:
I get 99% of my revenue from google.
If I would be banned because something of
http://www.google.com/coop/docs/cse/...ml?gl=CH&hl=de
wouldn't be correct, it would be a catastrophy.

First, I wanted to ask, if you did notice all the rules of google. But then I saw, that you didn't. The search field in the advanced search doesn't show the google picture which is absolutely needed, as I think.

There are possibly other things. It would be great, if you could check this.
And last: users of this google search box have to write something in their board rules (privacy). You could note that too.

;)

Marcel

davidw 11-21-2008 12:09 PM

On your statement about the rules, your link points to rules for Google Custom Search. This modification is for Google Adsense for Search. Google Custom Search is a different type of search, of which I do not use (although another member has created a modification for: https://vborg.vbsupport.ru/showthread.php?t=162072 ).

Secondly, javascript images displayed (if any) within the search boxes come from Google, not supplied in this modification.

To add to that, all images displayed within boxes will show up depending on the javascript you have running on your site. Certain styles will prevent the image from displaying as well as certain javascript running on websites - this has already previously been addressed.

In order to use this modification, you MUST use the full

partner-pub-0123456789012345:lnucfbm5dtp

number. If you do not have it, then either
A) you are using the wrong pub number
1) the pub number you are using is outdated
2) the pub number you are using is for a different Google search/application
B) you need to set up/reset your pub number by going to http://www.google.com/adsense

On your last statement - it is assumed that anything that you type in through this modification has the same level of privacy as if you went directly to Google.

davidw 11-21-2008 12:15 PM

Quote:

Originally Posted by symptome (Post 1669967)
still stays the text "starting with pub-" which isn't correct, as you already mentioned here in the thread.

If you can point out which post states that, I will correct it.

symptome 11-21-2008 12:27 PM

Quote:

Originally Posted by davidw (Post 1669989)
If you can point out which post states that, I will correct it.

--> 48/49 ;)

symptome 11-21-2008 12:39 PM

Quote:

On your statement about the rules, your link points to rules for Google Custom Search. This modification is for Google Adsense for Search.
When I setup adsense I have to accept exactly those rules. (???)

Also: I see the google-image (custom search) in the navbar search. But there is no google-image in the advanced search.
Everything is running fine, so it can't be something with my browser ...

davidw 11-21-2008 12:53 PM

Quote:

Originally Posted by symptome (Post 1669996)
--> 48/49 ;)

Readme.txt file fixed

Quote:

Originally Posted by symptome (Post 1670003)
When I setup adsense I have to accept exactly those rules. (???)

Also: I see the google-image (custom search) in the navbar search. But there is no google-image in the advanced search.
Everything is running fine, so it can't be something with my browser ...

I read the rules when I set up adsense to make sure this [modification] would be allowed under ToS and nothing stated against it. When I looked up Custom Search (to make a modification for that) I decided against it.

For the image:
https://vborg.vbsupport.ru/showpost....&postcount=144
https://vborg.vbsupport.ru/showpost....&postcount=145

symptome 11-21-2008 01:03 PM

Quote:

Originally Posted by davidw (Post 1670011)
Readme.txt file fixed

check the configuration area too:
Found on https://www.google.com/adsense/account-settings under Property Information. starts with pub-
(you must start it with pub- and then your number).



Besides:
I had to change the templates like google_navadsearch to insert the following:
<input type="hidden" name="ie" value="ISO-8859-1" />

Without it, some words with swiss special characters couldn't be searched. Perhaps you want to make this choosable too.

davidw 11-21-2008 01:17 PM

Wierd - see my attached image (partner-pub)

davidw 11-21-2008 01:19 PM

Quote:

Originally Posted by symptome (Post 1670017)
I had to change the templates like google_navadsearch to insert the following:
<input type="hidden" name="ie" value="ISO-8859-1" />

I originally had something like this in a previous beta build - but it wasn't universal, so I had to drop this - at least until I got it working for everyone.

symptome 11-21-2008 01:23 PM

I can absolutely understand ;)
At this point you have a posting at least, that informs about that :)

I don't understand what you mean with post 198 ...


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.01346 seconds
  • Memory Usage 1,850KB
  • 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
  • (5)bbcode_code_printable
  • (13)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