![]() |
Good job - I'm usually not on until evenings most of the time so I'm glad you got it sorted out.
|
what do I need to change in the xml in order to remove the site search? I would rather that people use the site search engine, but want to keep the google search plugin-based
|
If you are referring to the search.php usage, nothing will be done there (or seen) unless you put in the $google_siteadsearch - all it will be is a template. However, if you want to remove it all, just find this:
Code:
<template name="google_siteadsearch" templatetype="template" username="davidw" version="1.2"><![CDATA[<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> Code:
<plugin active="1" executionorder="5"> Btw, don't forget to click install :) |
what I was asking is how to make the google search just the www and not your site
|
oh, take that option out of the templates
Find and remove: Code:
<td> Code:
<td> Code:
<input type="hidden" name="domains" value="{$vboptions['homeurl']}"></input> |
ok thanks much!
on another note, microstats is showing this: Uncached templates: google_navadsearch (1) Uncached templates: google_siteadsearch (1) how do I fix that? |
That's weird - let me look into that tonight.
|
For some reason when I started on this project, I omitted it, this is the missing plugin -
Code:
<plugin active="1" executionorder="5"> |
Ok, latest and greatest has been uploaded :) (I won't send an update since the version difference is negligible.)
|
dear david
the $google_navadsearch i put on the navbar template but just show on on forum page.. i use vBadvanced CMPS but they not showing up on the navbar do i miss something? thanks before |
That is something I'm still working on as well - I'm having an issue with the navbar in vbadvanced with a few items that use hooks.
|
thanks for the update
|
Quote:
I found it david.. - Admin CP> vBa CMPS > Default Settings> Main Options> - Under the 'Portal Output Global Variables' setting you will need to add "google_navadsearch" and.. voilaaaa.. they show up!!!! |
That's funny - I've already put it there - I may have misspelled it on my site though. Thanks for looking into that. :)
|
Quote:
|
Hi,
Kind of managed to get it working! If you search via the drop down box (google or my site) it comes back with the following error: 1. Please specify some words or valid user names to search on. There were no matches for those that you specified. However, If I search via the search.php page it works fine! Any sugegstions at all? |
One more question!
Would it be possible to create a vbadvance module that shows the google search box? When people search using it they are then taken to the searchresults.php page. Ive tried to have a play around but could seem to get it to work. |
I actually have a vbadvanced version at vbadvanced.com (I guess I could release it here).
http://www.vbadvanced.com/forum/showthread.php?p=82852 and also post 3 - I've not updated it in a while but is still usable (just needing a couple modifications to it). |
Quote:
|
Hi,
Thanks for the reply :) My site is www.DoverLocals.co.uk Also without wishing to be a pain, is there anyway to reduce the amount of space after the results. Ive attached an image to show you. Thanks Dave |
As far as the "whitespace" below the results, that can't (currently) be altered at the moment due to the code Google supplied (unalterable iframe height). However, I am always on the lookout for new code so that this can be improved.
Looking at your site, you are using a version of vB that may not take full advantage of the full version of the code (as I have noticed with another member who had a similar issue as you). After looking into it, it was discovered that the legacy version worked best. Which version are you using? Have you tried using the legacy version? |
Im currently using the 1.3 legacy version. I also made all the alterations in the first post.
|
Can you PM me the section of code that pertains to this in your navbar? Also a temp login account to see what is going on as clicking on search just takes me to search.php. I will be back tonight (I work during the days).
|
I notice in your screen shot that the Google results are crowded up against the left hand side of the white background. I think that the previous hack by someone else did this also, but is there any margin value capability? Maybe an extra white table around it?
Great hack by the way! I just installed it and after adding an extra 1 to the GALT it works. With only 1 as in my google code, it returns an empty result screen. I am on 3.6.8 and it's also working on the current versions of PhotoPost vBGallery and vBAdvanced Links. Does anyone know the reason for GAULT 1 or 11 ? |
Quote:
Quote:
I do appreciate the compliments. In the future I will add more flexibility in a phase-in/phase-out period as I did with previous versions. |
Quote:
Is there anyway though for it to bring up the results in the searchresults.php page? |
Hi David,
i got the pub but where do you get the GALT at the adsence site?? Thank you for the help RV |
Once google has generated the search code - you can locate the GALT in that.
|
Quote:
|
Quote:
Don't forget to click Install :) |
Quote:
|
Let me see what I can do
temporarily try this... change the vba template from Code:
<tr> Code:
<tr> Code:
<form action="http://www.google.com/custom" type="hidden" method=GET name="search"> <input type="hidden" name="client" value="pub-0123456789012345"> <input type="hidden" name="forid" value="1"> <input type="hidden" name="ie" value="ISO-8859-1"> <input type="hidden" name="oe" value="ISO-8859-1"> <input name="cof" type="hidden" value="GALT:# . . .;"> <input name="domains" type="hidden" value="www.yourdomain.com"> <input type="hidden" name="hl" value="en"> Code:
<form method="get" action="{$vboptions['google_forum_path']}" target="_top"><input type="hidden" name="client" value="{$vboptions['google_pub']}"><input type="hidden" name="forid" value="1"><input type="hidden" name="ie" value="ISO-8859-1"><input type="hidden" name="oe" value="ISO-8859-1"><input type="hidden" name="cof" value="{$vboptions['google_cof']}"><input type="hidden" name="hl" value="en"> Remember make a backup of what you have before changing anything. Of course, you will also need to add any variables to the admincp just like in this post. https://vborg.vbsupport.ru/showpost....7&postcount=93 |
Is there any reason why the
vbulletin3_logo_white.gif navbits_finallink_ltr.gif navbits_start.gif Don't showup on the search results page? I've tried both versions and the same results. I have the default skin. |
No, they should show up. I am pulling $header and $navbar - do you have a link to your site I can view?
Btw, don't forget to click Install :) |
Quote:
Quote:
Was a little bit confused. Thanks anyway Dave |
One more question without wishing to be pain!
On the normal search where it shows the header - is is possible to have links open in a new tab or actually within the site itself? |
The pub is being called from the adminCP - originally the module kept it in a secondary location.
To open in a new page, you would edit this part <form method="get" action="{$vboptions['google_forum_path']}" target="_top"> and change top to blank. I may have time to work on this today. |
Quote:
|
Ok, I have a working prototype on my site now :)
Edit: I have updated the modification to add the vbadvanced (version 1.4). |
Thanks for the update :D
Ive got it all installed, however one problem with the vbadvance module. When I hit search, it takes me to the searchresults.php page, however this is blank. Is the same for searching the site and searching google, however it works fine when searching via the dropdown navbar. |
All times are GMT. The time now is 01:04 PM. |
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:
|