vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - vB Google Adsense for Search plus Integration (https://vborg.vbsupport.ru/showthread.php?t=155199)

davidw 11-10-2007 07:59 PM

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.

powerful_rogue 11-10-2007 08:03 PM

Quote:

Originally Posted by davidw (Post 1379945)
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.

Sorry David, lost me on that one :erm:

I started from scratch on the VBA module and followed these steps:

Quote:

Step 5:
Go to Admincp => vBA CMPS => Default Settings => Under Options Portal Output Global Variables
Add (or make sure they are present) these varaiables:
template_hook
google_navadsearch
google_label_site
google_label_web
homeurl

Step 6:
Click on Edit Modules. Click on Search Forums (module).
Under Module Tools, find Select Action (very top) and choose Copy.

In your new (copy) of the Search Forums Module, change the name of your module to whatever you want (I chose "Search").
Under the Template Module Options heading, edit the adv_portal_ area.
Change it from search to search_google

Next,
Under Module Shell Template Options, in the Form Code box,
Change
Code:

<form action="{$vbulletin->options[bburl]}/search.php" method="post" name="search"> <input name="s" type="hidden" value="" /> <input name="do" type="hidden"

value="process" /> <input name="sortby" type="hidden" value="lastpost" /> <input name="forumchoice" type="hidden" value="0" />

To
Code:

<form method="get" action="http://www.yoursite.com/searchresults.php" type="hidden" name="search" target="_blank">

Make sure this URL is the correct full path to your searchresults.php file.

davidw 11-10-2007 08:27 PM

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:

powerful_rogue 11-10-2007 08:30 PM

Quote:

Originally Posted by davidw (Post 1379961)
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.

Ah right. How do I get the new template. I imported the new xml file for the mod, however at the time I still had the old vba search mod.

davidw 11-10-2007 08:35 PM

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

powerful_rogue 11-10-2007 08:39 PM

Quote:

Originally Posted by davidw (Post 1379964)
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

Superb! Thank you :D

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?

davidw 11-10-2007 08:50 PM

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>
and change the size="21" to whatever shorter size fits. 21 is what I use on my site. In the future I may make that an adminCP variable.

powerful_rogue 11-10-2007 08:56 PM

Fantastic :D

Thank you very much for all your support. This really is a fantatsic mod with excellent support. Nominated for MOTM

davidw 11-10-2007 09:00 PM

Thank you - but to be honest, I can only support it when I'm available (usually evenings and most weekends).

oldengine 11-13-2007 04:07 PM

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.


All times are GMT. The time now is 11:14 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.01314 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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