![]() |
Is there a way to exclude certain forums from coming up in the search results?
I'd like to exclude my forum id 61 for example. I assume it'd have to be something like &exclude=61 somewhere in the code but I can't seem to get it. :confused: |
Quote:
|
Is there anyway to customise this so that you have two radio buttons one for "site" one for "www".
When site is selected the keywords are searched through the normal VB search system and results returned within a page. When www is selected the keywords are searched through google and the results displayed in your VB page that this mod currently does. What I'm having trouble with is settting up the two radio buttons so when either is selected it goes though the right search. Anyone care to help? I like this mod but am finding that the search results within my own site are poor, but I still want th opportunity to earn some money! |
Quote:
Is there a way to make a forum non searchable, while still keeping it open to the public? Just a general option somehow? EDIT: Nevermind, I realized in Forum Manager, "Index New Posts in Search Engine " I just set that to No. |
My search results are not from my domain, but from the web. I have done everything in the instructions. Does it take a while for the search to kickin? Google shows most of my pages are indexed. Have I missed something? On the search setup I have specified my forums etc. Thanks
|
Very useful mod.
You can use conditional to make present the google search to unregistered/not logged users and the native vb search to logged users. |
Quote:
|
How do I rename the search.php without messing up any other code that references search.php?
|
I have this working on vB 4.1.8 and wonder if anyone has found out how to prevent it from showing adds above the search results. I would like to show them on the right side only because with the way it is currently set, it is extremely hard to differentiate between what is an add and what isn't.
Google has been crawling my site for over a year now so it has had time to index it pretty well, however when I search for common terms used on my site www.boatinghowto.com , it only shows one maybe two results, any ideas? thanks |
Thanks, works beautifully, especially with the additions on page 3.
|
just installed on 4.1.11 and works well.
|
This still works with vB 4.2. The specific details on page 3 were really helpful. The only small change I had to make is Google Custom Search now has new code.
So on Semper's instruction on page 3 of this thread (Step 4), I had to replace the partner-pub id code with my search engine's "Search Engine Unique ID" which can be found in the Control Panel of your Google Custom Search account. Should look something like xxxxxxxxxxxxxxxxx:xxxxxxxx Then I had to click "Make Money" in the left column of the Google Custom Search Control panel and sync my AdSense account to my Google Custom Search account. The Search Engine Unique ID has now replaced the partnerpub ID. But the partner-pub still works if you're using it. |
It doesn't works for me -> here is my navbar code:
Code:
<div id="navbar" class="navbar"> 400. That’s an error. Your client has issued a malformed or illegal request. That’s all we know. |
Quote:
|
Does this show using an iframe within the site template? Or open in a new window?
|
Quote:
After hour and a half of trying to figure out why I'm getting a blank page, Sonata saves me from pulling out my hair. :) Also, thanks to OP for the mod. Very much appreciated. :up: techbytes |
There is an update for this with the latest (v2) version of google custom search. I really like the google cse in vbulletin. It's much faster and with some styling in the css even the Google cse v2 will work in vbulletin 4.2
This short instruction will help if you use a two-page CSE as shown in the documentation at Multiple search boxes and results sections. Already mentioned here: 1. Create the google.php file as mentioned on page 3 in this thread. 2. Create the GOOGLE template as mentioned on page 3 in this thread. Now the new stuff. 1. headinclude template copy the script-snippet at the bottom of your headinclude template. Code:
<!-- google cse --> 2. navbar template Display the search form in the navigation Search for <form action="search.php .... comment the normal search form Code:
<vb:comment><form action Code:
<div id="globalsearch" class="globalsearch"> but first edit the 3. GOOGLE Template Should look like this: Code:
<div class="blockrow"> If you only want to show the search results you can use <gcse:searchresults-only></gcse:searchresults-only> 4. additional.css template The search form will look broken at first. You should modify at least the following styles: Code:
input.gsc-input { |
Quote:
Thank you very much! :D:D:D |
Installed and works for my forum, check the link to see.:)
http://www.railtransit-cbtc.com/CBTC...ity/forum.php? |
SemperFideles's instructions on the 3rd page worked for my 4.2 forum. Thanks SemperFideles!!!
|
Confirmed working on 4.2 as per SemperFideles instructions:
http://www.supermotoforum.co.uk/ Thanks for the help! |
Managed to get this working with two issues:
- it breaks my header style - logo not showing up, forumhome sidebar shows on the bottom of the page, and it shows a large blank space below the results. |
Thanks first for the great effort and trying to share the good stuff...
I believe there is something missing here, which is google.php connection to the search box. I tested your way, but not really working as I expected. It opens new page on google search while actually we want the search to be taking place in the forum itself using the google.php... what I did is the following: 1- created google.php "or whatever you like to call it" 2- created a template for google search as mentioned earlier. 3- placed google script in headeinclude template from my google custom search similar to this one: Code:
<script> Code:
<form action Code:
<form method="get" action="http://www.YOUR VB LINK.com/google.php" target="_blank" class="navbar_search"> 5- Last step, I added <gcse:search></gcse:search> in my google.php custom page... Save the whole work and check it out... I tested it and works perfect. Thanks, and good luck. :) Quote:
|
Quote:
It works fine for my site although i had to make a couple of style mods. My one question is: I have linked my CSE to my Adsense Account, but the ads are not displaying in the search results page, although adsense is working perfectly on my actual site. Is this an adsense problem, or is there something I still need to do? |
I have no idea how that should work, sorry about that, mate
|
The mod is working great on VB 4.2
However I have an issue. It is working ONLY on the custom theme and not on the default theme. Any idea how do I fix this? Thanks |
I followed the instructions but doesn't work (eMesitis.gr vB4.2.2).
Unfortunately I get a blank page. I would appreciate any help.:) 1) I created a new Template called "GOOGLE": PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
See mostly is happens when your running site on folder of root server..
In Google.php file uncomment below line Quote:
|
Thanks mate but it didn't work.
I found my forum path using the following php: PHP Code:
After that I followed your instructions and uncomment the path line in google.php: PHP Code:
In google.php there are three lines: PHP Code:
Should I change the 'test' on the first line? |
try to create only test.php there were some tutorials here see you have blank page on that too . If you have same problem on test.php then tell your host to fix permissions on your account
cause the problem you would be getting is 500 internal server error which would be either permission or path error |
Thanks for your support.
Finally I solved my issues with this mod: https://vborg.vbsupport.ru/showthread.php?t=297548 |
No matter WHAT I do, the search always goes to the Google Custom Search Page rather than appearing on one of my site's pages. Users have to hit "back" to get back onto my site. Others have tried to find the cause of this unsuccessfully. I am stumped.
Here is the code that is doing this: The GOOGLE template: Code:
{vb:stylevar htmldoctype} The headerinclude template: Code:
<meta http-equiv="Content-Type" content="text/html; charset={vb:stylevar charset}" /> Code:
<div id="navbar" class="navbar"> Code:
<?php It ALWAYS goes to the Google Custom Search Page. Help, PLEASE! Thanks! Nelson |
Can anyone help me on this please?
Thanks, Nelson |
Okay I have a good one for you. Custom search works fine but when the results display on my page the links cannot be clicked, they are underlined but don't seem to be working.
fixed: it appears that I had an iframe height value that was locking things up making the hyperlinks real slow to show up. |
Does anyone know how to incorporate custom search into a forum block? I'd like to have the search box in a block at the top of my sidebar if that's possible?
|
Quote:
Just add the code to an html block. I believe you have to add one portion of the code to your header or head includes as well. |
Thanks very much. I'll give that a go :up:
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|