View Single Post
  #154  
Old 02-28-2008, 05:15 PM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MrEyes View Post
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.
As long as your header template contains the relevant hook location navbar_search_menu then it should work ? if it is not present, it will not work. You could try editing your template and ensuring both are present just in case.
$google_navadsearch
$template_hook[navbar_search_menu]

Quote:
Originally Posted by MrEyes View Post
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.
This will display once you add the variable $google_siteadsearch

-- Admincp => Styles & Templates => Style Manager => Edit Templates (on your style) => Search Templates => search_forums => under $navbar, add $google_siteadsearch

Quote:
Originally Posted by MrEyes View Post
If I open the searchresults.php page, this opens correctly but obviously doesn't include any search results
Just opening the searchresults.php page will do just that. If you see the header, footer, etc., but no results, from just opening the page with no reference, its working correctly.

Quote:
Originally Posted by MrEyes View Post
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
I?ve not tested this with vbadvanced 3.0 or 3.7 (yet) but that is coming up shortly.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01678 seconds
  • Memory Usage 1,794KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete