![]() |
That's weird - as I have it working as such on my own site and it displays results.
Edit - try reverting your adv_portal_ template if you used the 1.4 version. All the information is stored in the new template and the old template takes you to blank results. |
Quote:
I started from scratch on the VBA module and followed these steps: Quote:
|
You have the old style vba module, not the new one (from the template in 1.4). The Go button should be to the right of the text box.
This is what it should look like: |
Quote:
|
click on the old template you created and on the right side click Revert
The new template (that is created from the XML) will show up under vBadvanced CMPS Templates |
Quote:
One more question, now ive reverted the template, the VBA box is a bit wider then before - is there an easy way to edit the width? |
Yes, you can either edit the XML and reupload so that nothing has to be reverted later if changers are to be made, or edit the template.
Either way, in the template in your styles (or in the XML) find this: Code:
<input type="text" name="q" size="21" maxlength="255" value=""></input> |
Fantastic :D
Thank you very much for all your support. This really is a fantatsic mod with excellent support. Nominated for MOTM |
Thank you - but to be honest, I can only support it when I'm available (usually evenings and most weekends).
|
Has anyone come up with a way to provide this Google site search to unregistered users, but NOT give them access to the general vBulletin search tool?
(admin - usergroup manager - Can Search Forums NO) In other words, let Google do the work for unregistered users and save our server load. |
Hmm, interesting - I'll have to look into that.
|
After trying the above for a bit, I have turned my vBulletin search back on for unregistered users and I switched to the Fulltext search engine. I use the captcha for general searches and I link to the really popular "Todays Posts" from my front page.
Google search results are not totally impressive on my site. I think they are blocking "common words" and in my case, "famous" is not a common word - it's the brand name for a popular piece of equipment. My Google site: results return 166,000 pages and of course no one but Google will shape the order of those listings. Keeping server load down and keeping new readers doesn't quite mix. If I put VBSEO on, the load will go up for that too. Anyway, enough of me, I still think this is a valuable hack. Combining vB search and Google search will cover all the bases. |
I wanted to integrate this even further but there were a few restrictions with forms that prevented me from doing so. However, I am all for more ideas on adding to this :)
|
Hi
Thank you for the extension. Unfortunately, I have noticed that it Firefox works with Internet Explorer Does anybody have a solution? THANKS |
Quote:
|
Hi
I had this problem with Internet Explorer is not Google appears when I click on the Search button, but when I use Firefox to search everything will click. Example: So it is with Internet Explorer appears when I click on the Search: http://www.pcwango.de/test/ie.png So it is with Firefox when I click on the Search: http://www.pcwango.de/test/fi.png Do you have a solution? THANKS |
Have you tried logging out, clearing you cookies, and clearing your cache in Internet Explorer - then logging back in?
|
Hello
Yes, I have. I have even tested three different computers. One was even a Vista with Internet Explorer 7th But unfortunately, is the same. I even thought maybe this is only when I am connected. Unfortunately the same I do not know why |
Do you have a way for me to look at this at your site? I am curious as why your site does not work, while others do.
|
How can I remove the vBulletin search and only have the Google powered searches?
Is it possible to have this be the search tool that guests are presented with? -Raymond |
Are you using the regular version or the legacy version? Also, which location are you wanting to set the google for guests? If it is just the navigation bar, one thing you can try is going to your navbar template and finding this
Code:
<!-- header quick search form --> Code:
<!-- header quick search form --> Code:
<!-- header quick search form --> |
i am lost on how to install this. i am running 3.6.8 pl2
|
As long as you are running 3.6.8 or higher, you can use vb google search 1 4.zip rather than the legacy version.
Simplified instructions: Step 1: Open up searchresults.php and edit the location to where you will upload it (preferably to the site's root location) Upload searchresults.phpt. Example: http://www.yoursite.com/searchresults.php Step 2: Install the product Go to Admincp => Plugins & Products => Manage Products => [Add/Import Product] => Browse for product-davidw_vb_google_search.xml => Import Step 3: Configure your Admincp options Go to Admincp => vBullitin Options => vBulletin Options => Find vB Google Search (Adsense) then click [Edit Settings] Edit your Pub ID, Cof, and your desired width of the iframe for your results. I use 800 in the screenshot, but you can change this based on your needs. This information is located at the top of each of these threads. Don't forget to click install for support. If you are still having issues, PM me and I will help you out as best as I can. |
Quote:
this is teh error i get when trying to search Warning: require_once(./global.php) [function.require-once]: failed to open stream: No such file or directory in /home/gsxrforu/public_html/searchresults.php on line 19 Fatal error: require_once() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/gsxrforu/public_html/searchresults.php on line 19 also how do i get this box to match teh size of the rest of teh column |
Where is your searchresults.php file located?
Also, the line chdir('/path/to/your/forums/'); This is for your root directory. If your root directory is public_html then that line should read chdir('/home/gsxrforu/public_html/'); It will not find global.php within searchresults.php |
Quote:
|
Quote:
|
Can you PM me site details (location, location of searchresults.php, etc)?
|
Quote:
|
thanks ....
|
Hello,
I seem to be running into some problems getting this up and running under vb3.6.8 pl2. Everything seems to have installed without errors, however the google search dialogs do not appear in the nav bar drop down boxes. Now the following might be relevant, my navbar code is not in the navbar template it is in the header template. The hook for "navbar_search_menu" is present in the template so I assume this should not matter. I might be wrong, however I was under the impression that google searching options would appear in the default vBulletin search.php page. If my "impression" is right, then the search dialogs are not displayed. If I open the searchresults.php page, this opens correctly but obviously doesn't include any search results I have also tried to add this to vBadvanced CMPS v3.0 RC2, the search dialog appears but when I search I get no results (or errors for that matter) displayed in searchresults.php This is what I have done so far: 1) Downloaded vb_google_search_1_4.zip 2) Edited the searchresults.php to contain the correct forum path (line 8) 3) Uploaded searchresults.php to the root of the webserver (same directory as the VB index page) 4) Imported the product XML via AdminCP 5) Via AdminCP - vB Google Search (Adsense) set the following options - Google Pub ID - using the value from https://www.google.com/adsense/account-settings. Interestingly this is prefixed with "partner", i.e. "partner-pub-1234567", I have added this without the "partner-" part - Google cof code - Using the code as created in the adsense for search wizard in google adsense managment - Google Frame Width - Set to 90% - Image/Text for site - Set to the url of the site - Image/Text for Google - No change made, using the default value of "web" - Your Forum's Path - Entered the full URL to the searchresults.php 6) In AdminCP - vBa CMPS - Default Settings - Main Options - Portal Output Global Variables, added: template_hook google_navadsearch google_label_site google_label_web homeurl This was previously empty 7) In AdminCP - vBa CMPS - Edit Modules, selected "Search Forums" and under "Module Tools" selected "Copy" 8) Named the module copy to "Google Search" 9) In [Module] Main Options - Template Module Options - Template to Include, added "search_google" Under the Template Module Options heading, edit the adv_portal_ area. Change it from search to search_google 10) In [Module] Module Wrapper Template Options - Form Code, edited code to read: <form method="get" action="http://www.mysite.com/searchresults.php" type="hidden" name="search" target="_blank"> Thats is everything in the "Form Code" box 11) In AdminCP - vBa CMPS - Edit Modules - Google Search, selected "Add/Remove" from pages and used the normal CMPS process for adding the module to the bottom of the centre column. So anybody got any ideas? Also one other question, has anybody got this running on 3.7? EDIT : I have managed to get the CMPS not displaying results issue resolved (sort of), this was due to the configuration I had created in the google wizard, choosing the "Open results within my own site" options seems to have done the trick. However even though I selected a width of 800px the results are displayed in a thin column (around 300px). Additionally the bottom of the results is cut off and the search results page does not display a search dialog where users can re-search for other terms |
Quote:
|
Quote:
$google_navadsearch $template_hook[navbar_search_menu] Quote:
-- Admincp => Styles & Templates => Style Manager => Edit Templates (on your style) => Search Templates => search_forums => under $navbar, add $google_siteadsearch Quote:
Quote:
|
anyone get this to actually work on 3.6.8 L2?
Here is my navbar piece where I am supposed to add: Code:
<!-- NAVBAR POPUP MENUS --> |
I have it running on 3.6.8 PL2 with no issues (but it is in the navbar, not the header). Another option is to put the template code in there manually.
Where the $google_navadsearch is in your header, take that out and put in this Code:
<tr> |
um my post was about the NAV bar
|
Quote:
Quote:
For now I have followed your earlier advice and manually added the google search code to the template. So it now works, ish (see * below) Quote:
Quote:
* When search results are displayed they show in a thin column on searchresults.php which sometimes seems to be cut off. After running some tests this seems to be how google is displaying the result in the iframe. I have set the "Google Frame Width" in "AdminCP - Options - Help vB Google Search (Adsense)" to 700px. This is getting through to the page output as if I view source I see: var googleSearchFrameWidth = '700px'; However I still get the thin column and sometimes cut off results. Interestingly if I edit the following line in the google_searchresults template: <div id="googleSearchUnitIframe"></div> to <div id="googleSearchUnitIframe" style="border: 1px solid #FF0000"></div> The results are rendered with a red border around the iframe div and this border uses the "full screen". So it looks like it is the output from google that is causing the problem. However I am at a loss to explain this or find a solution |
Quote:
|
Quote:
This was my mistake, I entered the width as "700px" this should have been "700" So all working (apart from the hook not being picked up which was resolved by manually adding the search code) |
Don't forget to click install :)
|
All times are GMT. The time now is 09:35 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:
|