Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 09-17-2014, 11:05 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tbworld View Post
@nelson58, needs to spend a bit more time reading and asking more exacting questions. So far we are just messaging among ourselves.
But this is so much fun.
Reply With Quote
Благодарность от:
CAG CheechDogg
  #12  
Old 09-17-2014, 11:07 PM
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Location: Riverside, California USA
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
But this is so much fun.
It is fun! lol .... how you guys doing ?
Reply With Quote
Благодарность от:
tbworld
  #13  
Old 09-18-2014, 02:10 AM
Nelson58 Nelson58 is offline
 
Join Date: Oct 2011
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tbworld View Post
@nelson58, needs to spend a bit more time reading and asking more exacting questions. So far we are just messaging among ourselves.
I've spent a LOT of time reading wiseguy, but YOUR post was the one that wasn't worth the time it took to read. Why don't you do us all a favor and crawl back under your rock.

--------------- Added [DATE]1411009881[/DATE] at [TIME]1411009881[/TIME] ---------------

Quote:
Originally Posted by ozzy47 View Post
I wonder if Nelson has one, if he don't, it of course will not show.
Yes, I have an account, and I created the code. I tried to enter it into two templates as I was advised, and nothing showed.


Nelson
Reply With Quote
  #14  
Old 09-18-2014, 02:15 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The message was not directed to you, so I do not understand why you took it personally. I was replying to @Ozzy and @Cag Cheechdog. Sorry, you took offense, but whatever.
Reply With Quote
  #15  
Old 09-18-2014, 02:44 AM
Nelson58 Nelson58 is offline
 
Join Date: Oct 2011
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CAG CheechDogg View Post
Here is what to do to get this on your site my Man ....

Step 1:

Create a new template and name it "GOOGLE", make sure it's in all CAPS ! in that template add the following:

Code:
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
  <head>
    <title>{vb:raw vboptions.bbtitle} - {vb:raw pagetitle}</title>
    {vb:raw headinclude}
    {vb:raw headinclude_bottom}
  </head>
  <body>
    
    {vb:raw header}
    
    {vb:raw navbar}
    
    <div id="pagetitle">
      <h1>{vb:raw pagetitle}</h1>
    </div>
    
    <h2 class="blockhead">Your Site's Name Custom Search Results</h2>
    <div class="blockbody">
      <div class="blockrow">

<div class="blockrow">

<gcse:search></gcse:search>

      </div>

      </div>
    </div>
    
    {vb:raw footer}
  </body>
</html>

Step 2: In your "headinclude" template add the following at the very end:

Code:
<!-- google cse -->
<script>
  (function() {
    var cx = 'partner-pub-0000000000000000:0000000000'; ///////////////CHANGE THIS TO YOUR OWN ID //// 
    var gcse = document.createElement('script');
    gcse.type = 'text/javascript';
    gcse.async = true;
    gcse.src = (document.location.protocol == 'https' ? 'https:' : 'http:') +
        '//www.google.com/cse/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(gcse, s);
  })();
</script>
<!-- / google cse -->
Step 3: In your "navbar" template locate the following :

Code:
<div id="globalsearch" class="globalsearch">
Right below that remove the following code:

Code:
<form action="search.php?{vb:raw session.sessionurl}do=process" method="post" id="navbar_search" class="navbar_search">
				<vb:comment><input type="hidden" name="s" value="{vb:raw session.sessionurl}" /></vb:comment>
				<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
				<input type="hidden" name="do" value="process" />
				<span class="textboxcontainer"><span><input type="text" value="" name="query" class="textbox" tabindex="99"/></span></span>
				<span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search<vb:if condition="$stylevar['textdirection'] == 'rtl'">_rtl</vb:if>.<vb:if condition="is_browser('ie') AND !is_browser('ie', 7)">gif<vb:else />png</vb:if>" name="submit" onclick="document.getElementById('navbar_search').submit;" tabindex="100"/></span></span>
			</form>
and replace it with this :

Code:
<gcse:searchbox-only></gcse:searchbox-only>
			<form method="get" action="http://www.yoursite.com/your-forums-path/google.php" target="_blank" class="navbar_search">
            <input type="hidden" name="sitesearch" value="yoursite.com/your-forums-path/forum.php"  id="pn"/>
            
        <input type="hidden" name="domains" value="yoursite.com/your-forums-path/forum.php"/>
</form>
Then upload the following php file to your forums root:

Code:
<?php

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################

define('THIS_SCRIPT', 'test');
define('CSRF_PROTECTION', true);  
// change this depending on your filename

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array('GOOGLE',
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
// if your page is outside of your normal vb forums directory, you should change directories by uncommenting the next line
// chdir ('/path/to/your/forums');
require_once('./global.php');

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

$navbits = construct_navbits(array('' => 'yoursite.com Site Search'));
$navbar = render_navbar_template($navbits);

// ###### YOUR CUSTOM CODE GOES HERE #####
$pagetitle = 'yoursite.com Custom Search';

// ###### NOW YOUR TEMPLATE IS BEING RENDERED ######

$templater = vB_Template::create('GOOGLE');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
print_output($templater->render());

?>
In the php file above replace your site with your site's name and you should be good to go !!!!! If you have any questions feel free to ask away ...

--------------- Added [DATE]1410998655[/DATE] at [TIME]1410998655[/TIME] ---------------



Yes he does, but hopefully this will help him get this done lol .....
Entered everything exactly. Named the .PHP file "google.php" and changed the line from 'test' to 'google' as required.

Nothing is showing up on the page. I checked the Google code and it is correct. I entered my code exactly as from the Google site. I must be doing something wrong. Is there anything I should try?
Reply With Quote
  #16  
Old 09-18-2014, 03:00 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CAG CheechDogg View Post
It is fun! lol .... how you guys doing ?
I see what happened, the op has two threads open about the exact same thing and I had commented in both threads, but intermixed them when I posted in this thread.

https://vborg.vbsupport.ru/showthread.php?t=314370
https://vborg.vbsupport.ru/showthread.php?t=314268

--------------- Added 17 Sep 2014 at 21:13 ---------------

Quote:
Originally Posted by CAG CheechDogg View Post
Here is what to do to get this on your site my Man ....
Nice Post!, I could not like it. Your too likeable.
Reply With Quote
  #17  
Old 09-18-2014, 03:37 AM
Nelson58 Nelson58 is offline
 
Join Date: Oct 2011
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, here is why it wasn't working...

If you have the modification Dbtech VBNavtabs installed, which I did,

You need to go to the dbtech_vbnavtabs_navbar template and make the same changes you recommended in the navbar template or it will not work.

In any event, thanks for helping me to get this to work CAG CheechDogg. Much obliged.

I have one more question. The custom search results page is not showing up, instead the Google page shows up and the user has to hit "back" to get back to the site.

Any idea why that is happening?
Reply With Quote
  #18  
Old 09-18-2014, 04:10 AM
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Location: Riverside, California USA
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you make all the changes in the code regarding your forums domain name and all? If you didn't do those changes that is why it goes to the google search page and not the custom one on your forums ...
Reply With Quote
  #19  
Old 09-18-2014, 10:51 AM
Nelson58 Nelson58 is offline
 
Join Date: Oct 2011
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CAG CheechDogg View Post
Did you make all the changes in the code regarding your forums domain name and all? If you didn't do those changes that is why it goes to the google search page and not the custom one on your forums ...
Yes, I did make all of the changes. I will double check though to make sure. Is there anything else that I could have missed that needs to be changed?

Nelson

--------------- Added [DATE]1411042691[/DATE] at [TIME]1411042691[/TIME] ---------------

GOOGLE template:

Code:
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
  <head>
    <title>{vb:raw vboptions.bbtitle} - {vb:raw pagetitle}</title>
    {vb:raw headinclude}
    {vb:raw headinclude_bottom}
  </head>
  <body>
    
    {vb:raw header}
    
    {vb:raw navbar}
    
    <div id="pagetitle">
      <h1>{vb:raw pagetitle}</h1>
    </div>
    
    <h2 class="blockhead">The Hobby-Machinist's Custom Search Results</h2>
    <div class="blockbody">
      <div class="blockrow">

<div class="blockrow">

<gcse:search></gcse:search>

      </div>

      </div>
    </div>
    
    {vb:raw footer}
  </body>
</html>
DBTech dbtech_vbnavtabs_navbar

Code:
<div id="navbar" class="navbar">
	<ul id="navtabs" class="navtabs floatcontainer<vb:if condition="$show['member'] AND $notifications_total"> notify</vb:if>">
		{vb:raw template_hook.navtab_start}
		{vb:raw navigation}
		{vb:raw template_hook.navtab_end}

<vb:if condition="$vboptions['dbtech_vbnavtabs_420_search_tab']">
<vb:if condition="(is_member_of($bbuserinfo, $vboptions['dbtech_vbnavtabs_420_guests_search_tab']))">
            <vb:if condition="$vboptions['dbtech_vbnavtabs_420_hover']">
            <li class="popupmenu hovermenu forumsearch menusearch" id="forumsearch">
            <vb:else />
            <li class="popupmenu forumsearch menusearch" id="forumsearch">
            </vb:if>
				<h6><a href="javascript://" class="popupctrl navtab" style="color:{vb:raw vboptions.dbtech_vbnavtabs_420_search_color};">
                    <vb:if condition="$vboptions['dbtech_vbnavtabs_420_search_tab_image']"><img src="dbtech/vbnavtabs_420/images/{vb:raw vboptions.dbtech_vbnavtabs_420_search_img_img}"  style="margin-bottom:.25em; vertical-align:middle; padding:{vb:stylevar dbtech_vbnavtabs_420_image_padding};" ></vb:if>{vb:rawphrase dbtech_vbnavtabs_420_search}<img src="images/misc/arrow.png" style="margin-bottom:.25em; vertical-align:middle; padding-left:2px; margin-right:-10px;" ></a></h6>
        				<form action="search.php?do=process" method="get">
        					<ul class="popupbody popuphover">
        						<li><input type="text" class="searchbox" name="query" value="{vb:rawphrase dbtech_vbnavtabs_420_search_search}" tabindex="1" /></li>
            						<li class="formsubmit">
							<input type="submit" class="button" value="{vb:rawphrase dbtech_vbnavtabs_420_search_button}" tabindex="2" />
						</li>
					<li class="formsubmit">
						<div class="submitoptions">
							<label><input type="radio" name="showposts" value="0" checked="checked" /> {vb:rawphrase dbtech_vbnavtabs_420_show_threads}</label>
							<label><input type="radio" name="showposts" value="1" /> {vb:rawphrase dbtech_vbnavtabs_420_show_posts}</label>
						</div>
						<div class="advancedsearchlink"><a href="search.php?">{vb:rawphrase dbtech_vbnavtabs_420_advanced_search}</a></div>

					</li>
				</ul>
				<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
				<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
				<input type="hidden" name="do" value="process" />
				<input type="hidden" name="contenttype" value="vBForum_Post" />
				<input type="hidden" name="exactname" value="1" />
				</form>
			</li>
</vb:if>
</vb:if>

	</ul>
<vb:if condition="!$vboptions['dbtech_vbnavtabs_420_hide_search']">
	<vb:if condition="$vboptions['enablesearches']">
		<div id="globalsearch" class="globalsearch">
			<gcse:searchbox-only></gcse:searchbox-only>
			<form method="get" action="http://www.hobby-machinist.com/google.php" target="_blank" class="navbar_search">
            <input type="hidden" name="sitesearch" value="www.hobby-machinist.com/forum.php"  id="pn"/>
            
        <input type="hidden" name="domains" value="www.hobby-machinist.com/forum.php"/>
</form>
			<ul class="navbar_advanced_search">
				<li><a href="search.php{vb:raw session.sessionurl_q}" accesskey="4">{vb:rawphrase advanced_search}</a></li></vb:if>
				{vb:raw template_hook.navbar_advanced_search}
			</ul>
		</div>
	</vb:if>
</div>

{vb:raw template_hook.navtab_multi}
{vb:raw template_hook2.navtab_multi}

</div><!-- closing div for above_body -->

<div class="body_wrapper">
<div id="breadcrumb" class="breadcrumb">
	<ul class="floatcontainer">
		<li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li>
		{vb:raw navbits.breadcrumb}
		{vb:raw navbits.lastelement}
	</ul>
	<hr />
</div>

{vb:raw ad_location.ad_navbar_below}
{vb:raw ad_location.global_below_navbar}

<vb:if condition="$show['notices'] AND THIS_SCRIPT != 'register'">
	<form action="profile.php?do=dismissnotice" method="post" id="notices" class="notices">
		<input type="hidden" name="do" value="dismissnotice" />
		<input type="hidden" name="s" value="{vb:raw session.sessionurl}" />
		<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
		<input type="hidden" id="dismiss_notice_hidden" name="dismiss_noticeid" value="" />
		<input type="hidden" name="url" value="{vb:raw return_link}" />
		<ol>
			{vb:raw notices}
		</ol>
	</form>
</vb:if>
headinclude template:

Code:
<meta http-equiv="Content-Type" content="text/html; charset={vb:stylevar charset}" />
<meta id="e_vb_meta_bburl" name="vb_meta_bburl" content="{vb:raw vboptions.bburl}" />
<base href="{vb:raw basepath}" /><!--[if IE]></base><![endif]-->
<meta name="generator" content="vBulletin {vb:raw vboptions.templateversion}" />
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<vb:if condition="$stylevar['favicon']">
	<link rel="Shortcut Icon" href="{vb:stylevar favicon}" type="image/x-icon" />
</vb:if>
<vb:if condition="$show['threadinfo']">

<vb:elseif condition="$show['foruminfo']" />
		<meta name="keywords" content="{vb:raw foruminfo.title_clean}, {vb:raw vboptions.keywords}" />
		<meta name="description" content="<vb:if condition="$pagenumber > 1">{vb:rawphrase page_x, {vb:raw pagenumber}}-</vb:if>{vb:raw foruminfo.description_clean}" />
<vb:else />
		<meta name="keywords" content="{vb:raw vboptions.keywords}" />
		<meta name="description" content="{vb:raw vboptions.description}" />
</vb:if>

<vb:if condition="$show['fb_opengraph']">
	{vb:raw facebook_opengraph}
</vb:if>

<vb:if condition="$show['remoteyui']">
	<vb:if condition="$show['remoteyuicombo']">
		<script type="text/javascript" src="{vb:stylevar yuicombopath}?{vb:stylevar yuiversion}/build/yuiloader-dom-event/yuiloader-dom-event.js&amp;{vb:stylevar yuiversion}/build/connection/connection-min.js"></script>
	<vb:else />
		<script type="text/javascript" src="{vb:stylevar yuipath}/yuiloader-dom-event/yuiloader-dom-event.js"></script>
	</vb:if>
</vb:if>
<script type="text/javascript">
<!--
	if (typeof YAHOO === 'undefined') // Load ALL YUI Local
	{
		document.write('<script type="text/javascript" src="clientscript/yui/yuiloader-dom-event/yuiloader-dom-event.js?v={vb:raw vboptions.simpleversion}"><\/script>');
		document.write('<script type="text/javascript" src="clientscript/yui/connection/connection-min.js?v={vb:raw vboptions.simpleversion}"><\/script>');
		var yuipath = 'clientscript/yui';
		var yuicombopath = '';
		var remoteyui = false;
	}
	else	// Load Rest of YUI remotely (where possible)
	{
		var yuipath = '{vb:stylevar yuipath}';
		var yuicombopath = '{vb:stylevar yuicombopath}';
		var remoteyui = true;
		if (!yuicombopath)
		{
			document.write('<script type="text/javascript" src="{vb:stylevar yuipath}/connection/connection-min.js?v={vb:raw vboptions.simpleversion}"><\/script>');
		}
	}
	var SESSIONURL = "{vb:raw session.sessionurl_js}";
	var SECURITYTOKEN = "{vb:raw bbuserinfo.securitytoken}";
	var IMGDIR_MISC = "{vb:stylevar imgdir_misc}";
	var IMGDIR_BUTTON = "{vb:stylevar imgdir_button}";
	var vb_disable_ajax = parseInt("{vb:raw vboptions.disable_ajax}", 10);
	var SIMPLEVERSION = "{vb:raw vboptions.simpleversion}";
	var BBURL = "{vb:raw vboptions.bburl}";
	var LOGGEDIN = {vb:raw bbuserinfo.userid} > 0 ? true : false;
	var THIS_SCRIPT = "{vb:raw this_script}";
	var RELPATH = "{vb:raw relpath}";
	var PATHS = {
		forum : "{vb:raw vboptions.vbforum_url}",
		cms   : "{vb:raw vboptions.vbcms_url}",
		blog  : "{vb:raw vboptions.vbblog_url}"
	};
	var AJAXBASEURL = "{vb:raw ajaxbaseurl}";
// -->
</script>
<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/vbulletin-core.js?v={vb:raw vboptions.simpleversion}"></script>
{vb:raw template_hook.headinclude_javascript}

<vb:if condition="$vboptions['externalrss']">
	<link rel="alternate" type="application/rss+xml" title="{vb:raw vboptions.bbtitle} {vb:rawphrase rss_feed}" href="{vb:raw vboptions.bburl}/external.php?type=RSS2" />
	<vb:if condition="$show['foruminfo'] OR $show['threadinfo']">
		<link rel="alternate" type="application/rss+xml" title="{vb:raw vboptions.bbtitle} - {vb:raw foruminfo.title_clean} - {vb:rawphrase rss_feed}" href="{vb:raw vboptions.bburl}/external.php?type=RSS2&amp;forumids={vb:raw foruminfo.forumid}" />
	</vb:if>
</vb:if>

<vb:if condition="$vboptions['storecssasfile']">
	{vb:cssfile main-rollup.css}
        {vb:raw template_hook.custom_css_links}
<vb:else />
	{vb:cssfile bbcode.css,editor.css,popupmenu.css,reset-fonts.css,vbulletin.css,vbulletin-chrome.css,vbulletin-formcontrols.css{vb:raw template_hook.custom_css_list}}
</vb:if>
	<!--[if lt IE 8]>
	{vb:cssfile popupmenu-ie.css,vbulletin-ie.css,vbulletin-chrome-ie.css,vbulletin-formcontrols-ie.css,editor-ie.css}
	<![endif]-->
{vb:raw template_hook.headinclude_css}

<!-- google cse -->
<script>
  (function() {
    var cx = '014891898195566079264:j9p1m_ucz0q'; ///////////////CHANGE THIS TO YOUR OWN ID //// 
    var gcse = document.createElement('script');
    gcse.type = 'text/javascript';
    gcse.async = true;
    gcse.src = (document.location.protocol == 'https' ? 'https:' : 'http:') +
        '//www.google.com/cse/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(gcse, s);
  })();
</script>
<!-- / google cse -->

google.php file:

Code:
<?php

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################

define('THIS_SCRIPT', 'google');
define('CSRF_PROTECTION', true);  
// change this depending on your filename

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array('GOOGLE',
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
// if your page is outside of your normal vb forums directory, you should change directories by uncommenting the next line
// chdir ('/path/to/your/forums');
require_once('./global.php');

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

$navbits = construct_navbits(array('' => 'www.hobby-machinist.com Site Search'));
$navbar = render_navbar_template($navbits);

// ###### YOUR CUSTOM CODE GOES HERE #####
$pagetitle = 'The Hobby-Machinist Custom Search';

// ###### NOW YOUR TEMPLATE IS BEING RENDERED ######

$templater = vB_Template::create('GOOGLE');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
print_output($templater->render());

?>
Reply With Quote
  #20  
Old 09-18-2014, 01:20 PM
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Location: Riverside, California USA
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Replace your DBTech dbtech_vbnavtabs_navbar

with this:

Code:
<div id="navbar" class="navbar">
	<ul id="navtabs" class="navtabs floatcontainer<vb:if condition="$show['member'] AND $notifications_total"> notify</vb:if>">
		{vb:raw template_hook.navtab_start}
		{vb:raw navigation}
		{vb:raw template_hook.navtab_end}

<vb:if condition="$vboptions['dbtech_vbnavtabs_420_search_tab']">
<vb:if condition="(is_member_of($bbuserinfo, $vboptions['dbtech_vbnavtabs_420_guests_search_tab']))">
            <vb:if condition="$vboptions['dbtech_vbnavtabs_420_hover']">
            <li class="popupmenu hovermenu forumsearch menusearch" id="forumsearch">
            <vb:else />
            <li class="popupmenu forumsearch menusearch" id="forumsearch">
            </vb:if>
				<h6><a href="javascript://" class="popupctrl navtab" style="color:{vb:raw vboptions.dbtech_vbnavtabs_420_search_color};">
                    <vb:if condition="$vboptions['dbtech_vbnavtabs_420_search_tab_image']"><img src="dbtech/vbnavtabs_420/images/{vb:raw vboptions.dbtech_vbnavtabs_420_search_img_img}"  style="margin-bottom:.25em; vertical-align:middle; padding:{vb:stylevar dbtech_vbnavtabs_420_image_padding};" ></vb:if>{vb:rawphrase dbtech_vbnavtabs_420_search}<img src="images/misc/arrow.png" style="margin-bottom:.25em; vertical-align:middle; padding-left:2px; margin-right:-10px;" ></a></h6>
        				<form action="search.php?do=process" method="get">
        					<ul class="popupbody popuphover">
        						<li><input type="text" class="searchbox" name="query" value="{vb:rawphrase dbtech_vbnavtabs_420_search_search}" tabindex="1" /></li>
            						<li class="formsubmit">
							<input type="submit" class="button" value="{vb:rawphrase dbtech_vbnavtabs_420_search_button}" tabindex="2" />
						</li>
					<li class="formsubmit">
						<div class="submitoptions">
							<label><input type="radio" name="showposts" value="0" checked="checked" /> {vb:rawphrase dbtech_vbnavtabs_420_show_threads}</label>
							<label><input type="radio" name="showposts" value="1" /> {vb:rawphrase dbtech_vbnavtabs_420_show_posts}</label>
						</div>
						<div class="advancedsearchlink"><a href="search.php?">{vb:rawphrase dbtech_vbnavtabs_420_advanced_search}</a></div>

					</li>
				</ul>
				<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
				<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
				<input type="hidden" name="do" value="process" />
				<input type="hidden" name="contenttype" value="vBForum_Post" />
				<input type="hidden" name="exactname" value="1" />
				</form>
			</li>
</vb:if>
</vb:if>

	</ul>
<vb:if condition="!$vboptions['dbtech_vbnavtabs_420_hide_search']">
	<vb:if condition="$vboptions['enablesearches']">
		<div id="globalsearch" class="globalsearch">
			<gcse:searchbox-only></gcse:searchbox-only>
			<form method="get" action="http://www.hobby-machinist.com/google.php" target="_blank" class="navbar_search">
            <input type="hidden" name="sitesearch" value="hobby-machinist.com/forum.php"  id="pn"/>
            
        <input type="hidden" name="domains" value="hobby-machinist.com/forum.php"/>
</form>
			<ul class="navbar_advanced_search">
				<li><a href="search.php{vb:raw session.sessionurl_q}" accesskey="4">{vb:rawphrase advanced_search}</a></li></vb:if>
				{vb:raw template_hook.navbar_advanced_search}
			</ul>
		</div>
	</vb:if>
</div>

{vb:raw template_hook.navtab_multi}
{vb:raw template_hook2.navtab_multi}

</div><!-- closing div for above_body -->

<div class="body_wrapper">
<div id="breadcrumb" class="breadcrumb">
	<ul class="floatcontainer">
		<li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li>
		{vb:raw navbits.breadcrumb}
		{vb:raw navbits.lastelement}
	</ul>
	<hr />
</div>

{vb:raw ad_location.ad_navbar_below}
{vb:raw ad_location.global_below_navbar}

<vb:if condition="$show['notices'] AND THIS_SCRIPT != 'register'">
	<form action="profile.php?do=dismissnotice" method="post" id="notices" class="notices">
		<input type="hidden" name="do" value="dismissnotice" />
		<input type="hidden" name="s" value="{vb:raw session.sessionurl}" />
		<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
		<input type="hidden" id="dismiss_notice_hidden" name="dismiss_noticeid" value="" />
		<input type="hidden" name="url" value="{vb:raw return_link}" />
		<ol>
			{vb:raw notices}
		</ol>
	</form>
</vb:if>

This part here you dont include the www in your url:

Code:
<gcse:searchbox-only></gcse:searchbox-only>
			<form method="get" action="http://www.yoursite.com/your-forums-path/google.php" target="_blank" class="navbar_search">
            <input type="hidden" name="sitesearch" value="yoursite.com/your-forums-path/forum.php"  id="pn"/>
            
        <input type="hidden" name="domains" value="yoursite.com/your-forums-path/forum.php"/>
</form>
That should fix it ....
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05605 seconds
  • Memory Usage 2,344KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (12)bbcode_code
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete