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)

mdcdeve 09-29-2007 09:38 PM

Quote:

Originally Posted by davidw (Post 1349673)
That's really weird considering google has nothing to do with the site's search system. Do you have a demo link I can view this on? Also, please don't forget to click install.

Heya, thanks for replying. Heres a link you can check it out at.

user:mod
pass:mod

http://www.mdcdeve.com/forums/
http://www.mdcdeve.com/forums/search.php

davidw 09-30-2007 12:24 AM

Ok, that's really weird - which version of 1.2 are you using? search or legacy? if legacy, can you post a snippet where you've added the code?

dfe 09-30-2007 03:28 PM

I am running 3.6.8., also having a prob with the searchresults file, when trying to search I get the error below.

The file searchresults.php and global.php is in the same directory, both in /forum on the domain.

Quote:

Warning: require_once(./global.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/vhosts/domain.co.za/httpdocs/searchresults.php on line 16

Fatal error: require_once() [function.require]: Failed opening required './global.php' (include_path='.:') in /var/www/vhosts/domain.co.za/httpdocs/searchresults.php on line 16

davidw 09-30-2007 06:26 PM

Did you edit the searchresults.php file and mark the location in your admincp options?

mdcdeve 09-30-2007 10:01 PM

Quote:

Originally Posted by davidw (Post 1349921)
Ok, that's really weird - which version of 1.2 are you using? search or legacy? if legacy, can you post a snippet where you've added the code?


Hiya, i'm using the legacy version. Here's where i placed the code.

Navbar
Code:

<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
                        </td>
                </tr>
                <tr>
                        <td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
                </tr>
<!-- Post Thanks Hack -->
$template_hook[navbar_search_menu]
<!-- / Post Thanks Hack -->
$google_navadsearch
</table>
</form>
</div>
<!-- / header quick search form -->
</if>

<if condition="$show['member']">
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

search_forums
Code:

<title>$vboptions[bbtitle] - <if condition="$show['searchthread']">$vbphrase[search_thread]<else />$vbphrase[search_forums]</if></title>
</head>
<body>
$header
$navbar
$google_siteadsearch
<if condition="$show['errors']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>


dfe 10-01-2007 03:45 AM

Quote:

Originally Posted by davidw (Post 1350340)
Did you edit the searchresults.php file and mark the location in your admincp options?


Hi I think I am missing you somewhere.

I have entered the 3 values in AdminCP for PUB, COF and Frame width.
I placed a copy of the searchresults.php in the same directory as the forum (/forum on my domain), but I noticed now that it was looking for it in root.

I now edited the search results page to change the path for the global.php file to ./forum/global.php but still getting the same error.

You mention "mark the location in AdminCP", how do you mean? Where must this be marked?

SemperFideles 10-01-2007 11:06 AM

I'm sorry but I am extremely confused. The installation instructions for this are very hard to follow and there are a lot of files.

Assuming I want to install version 1.2 on a 3.6.8 site:

1. Which file(s) should I download?
2. Should I generate my own cof information from Adsense?
3. After I've installed and configured the 1.2 site, are there any templates I should modify or is that for the legacy version?

davidw 10-01-2007 11:24 AM

Quote:

Originally Posted by dfe (Post 1350598)
Hi I think I am missing you somewhere.

I have entered the 3 values in AdminCP for PUB, COF and Frame width.
I placed a copy of the searchresults.php in the same directory as the forum (/forum on my domain), but I noticed now that it was looking for it in root.

I now edited the search results page to change the path for the global.php file to ./forum/global.php but still getting the same error.

You mention "mark the location in AdminCP", how do you mean? Where must this be marked?

What version are you using? If you are running 1.2 then the last spot has a URL path to your searchresults.php file - this is for your template (for no template edits). If you are not running 1.2, you may want to download vb_google_search_1_2.zip (3rd option) and install that one. This will allow you to fully use it on forums that are outside of root areas (have /forum or /forums)



Quote:

Originally Posted by SemperFideles (Post 1350711)
I'm sorry but I am extremely confused. The installation instructions for this are very hard to follow and there are a lot of files.

Assuming I want to install version 1.2 on a 3.6.8 site:

1. Which file(s) should I download?
2. Should I generate my own cof information from Adsense?
3. After I've installed and configured the 1.2 site, are there any templates I should modify or is that for the legacy version?

1. If you are running 3.6.8, then you want vb_google_search_1_2.zip (3rd option) - the other is for older versions that do not have the hook locations.
2. You can try generating your own cof information but some have success, other have not. If yours does not work, use what I have supplied, that will work - and you should still be able to play with the hex colors to change it to your desire.
3. The templates to modify are only for the legacy version.

roady89 10-16-2007 03:29 PM

Which version should I install on 3.6.7? I tried 2 different versions. One I got a blank page and the other I got an error 406 page.

roady89 10-16-2007 07:30 PM

I got it to work. The GALT code google is generating does not have two "1" at the end of the code like yours does. Its ony producing one "1" and not two "1"'s. I placed an addition 1 on the end and it works. You can see it here if you wanna check it out. Custom Golf Carts

Thanks for the great MOD. Clicked installed.
3.6.7


All times are GMT. The time now is 07:06 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.02707 seconds
  • Memory Usage 1,751KB
  • 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
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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