![]() |
Google/Adsense Site Search Navbar Integration
Since the vbadvanced google/adsense integration I came out with a while back I had wanted to think of a way to do this to the navbar, but I didn't really care for the old navbar's search - until the 3.6 version came out. I like this new version and I've now decided to come write my own based on what I did with my original for vbadvanced.
It's fairly simple... Go to your admincp => Styles & Templates => Style Manager => look for your style to do this to and under All Style Options click Edit Templates In your navigation bar, find Code:
<!-- header quick search form --> Code:
<!-- header quick search form --> In the line <input name="cof" type="hidden" value="GALT:">, Replace value="GALT:" with your information (this contains information that controls how your search results are displayed - this won't necessarily start with GALT:). Replace www.yoursite.com with your website in both places Replace Yoursite.com with your website I have updated this for 3.6.7 - there is a small change, but enough for an update. There is a hook as well, $template_hook[navbar_search_menu], which I have a product that you can just install, but for some reason ibproarcade is conflicting with this new product. |
WOOHOO I am first!
|
LOL spoke too soon...what is GALT? :)
|
It looks something like this:
Code:
GALT:#9A2C06;GL:1;DIV:#33FFFF;VLC:D03500;AH:center;BGC:99CCFF;LBGC:CCE5F9;ALC:440066;LC:440066;T:336699;GFNT:223472;GIMP:223472;FORID:1; |
Quote:
|
Don't forget to click install :D
Edit, now that I think about it - I believe it has everything to do with what the page looks like when you click the Go button - on the search results. |
i have a custom style and when i put the code in the navbar it doesnt show up.
this isnt the only time this has happend. i think something is not letting me edit the search drop down in this 1 style. any ideas where i can look to edit the search field? |
it may be in your header - I've had styles that did that before.
|
very nice, thanks!
|
Thank you so much Christianb. :)
|
Quote:
|
I installed the hack works great but what is the GALT and where do I find it?
|
Months ago, when I first signed on to the Google Adsense for search [ those who have never used Google Adsense - here's a link - https://www.google.com/adsense/ws-overview ], it went through a wizard (one part was a customization of the display on how things looked whenever someone used the search feature) and when I was done it gave me several items including the GALT - seeing how the galt contains hex figures, I assume this controls how your search displayed results look once the search is completed. The original adsense for search code you received should have this information, however if it doesn't feel free to use what I have and modify it for your own. As long as you have your own adsense information for your revenue, that is what matters.
Now that I think about it, it probably isn't even called GALT, but its just that mine started with that. :) This may also help: https://www.google.com/support/adsen...f&topic=&type= |
*Installed*
Nice hack |
Seems like a nice hack.
Quote:
Edit Syles Options conatins Edit Setting |
Awesome Mod - Installed 3.6.2 - Thank you!
|
Quote:
It should be: => Styles & Templates => Style Manager => look for your style to do this to and under All Style Options click Edit Templates |
UPDATE: No Matter it works....NICE MOD
Peace |
In the google search or in the regular search part?
|
^^i got it fixed, i forgot to end the form for the thread search part.....all good now....
Cheers |
That's good - don't forget to hit install :)
|
Beautiful, thanks
|
I installed this hack and lost functioning in the "Go" button.
However, the advanced feature works. Is there any way to fix the "Go" button? Please help thanks. |
Quote:
|
Hmm........alrighty.
Thanks. Any idea where I can start looking to hopefully address the problem? The problem is annoying because it is isolated to only the "Go" button. Should I start in the navbar?/ |
Most likely it will reside in the navbar - do you have a test account I can look at to see how it functions on your site?
|
Hey, you were right. The problem was in the Navbar. I fixed it!
It works great now and so does this hack, I love the increased earnings. This is the code I used to repair it: PHP Code:
How do I create a test account? |
You won't have to now, since you fixed it - but if you ever do, just go to your admincp => Users => Add new user
|
I don't want to have the option to search my site as it just a board and the vB search does that. How would I change the "Search Site/Google" title to just "Search Google" and remove the radio button choice of "my site" and "Google"?
|
Try this
PHP Code:
|
What does this have to do with google adsense? I mean? It's just a google search performed on your site, isn't it?
|
You could look at it that way, however, you have both options - search your site OR search the web with your adsense information. Adsense does not have to be a box with ads in it. This is called Adsense for Search.
Here's an overview: https://www.google.com/adsense/ws-overview |
Aah, now I get it ;).
I thought of the box with ads yes :D. And where do I find the GELT? |
the GALT, from what I understand is how the results display on your page. Much like properties of <td> and <div> tags, it appears to define the properties. It is displayed initially when you sign up for the adsense code. For example, here is mine
PHP Code:
PHP Code:
PHP Code:
|
Aah... So I really do need an adsense account?
|
Yes, to make money off the searches (you need the pub-#). Of course, you could always use mine :P
|
What if making money off of the searches isn't necessarially a concern?
If I just wanted a google search feature for the forum. Is that possible with this mod or do I need to look elsewhere? |
Quote:
|
This works either way :) If you just wanted to search the site rather than search the web, you could remove the ability to search the web. (the radio button).
Edit: Find: PHP Code:
PHP Code:
Find and Remove: PHP Code:
|
So then this would just allow a google style search on the site it's self. No need to have an ad sense account?
If so, this would probably end up working much better. We're finding that the search feature that's built in doesn't work very well. |
All times are GMT. The time now is 06: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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|