vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Integration with vBulletin - vB Google Adsense for Search plus Integration (https://vborg.vbsupport.ru/showthread.php?t=180277)

davidw 11-21-2008 04:06 PM

You said on post 197
under Property Information. starts with pub-
(you must start it with pub- and then your number).

Mine doesn't start with pub- ; it starts with partner-pub- (as seen in the image)

symptome 11-21-2008 04:17 PM

Yes, and that's the fault in the actual configuration.
When I enter the settings of this mod in vb-admin-area, then you got the above text there, talking about "starting with pub" ... which is wrong ;)

davidw 11-21-2008 05:03 PM

Are you using partner-pub (as per example) or the old style pub-#######?
Do you have this working on your site?

symptome 11-21-2008 05:51 PM

I'm using partner-pub
and as written ... yes it's running fine.
Installed today. ;)

davidw 11-21-2008 06:15 PM

Oh good :)

Ozidoggy 11-21-2008 08:49 PM

Great mod - Installed and working fine :)

bL@De 11-21-2008 09:39 PM

Absolutely awesome, thank you very much!

Is there an easy way to change the colour of the search results to blend in with the background?

davidw 11-22-2008 12:09 AM

Glad you like.

The only way to alter the color is to change it at http://www.google.com/adsense (during the setup).

Edit: You can go back and change your options there to your liking as many times as you need.

nike.stars 11-24-2008 06:14 PM

hi there david, very nice mod indeed, i've installed it and it's working fine, i just a have problem when i try to integrate searchresults.php with one of my vbacmps page and it give me errors like this:

Quote:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_template.php on line 19

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_template.php on line 42

Warning: Invalid argument supplied for foreach() in [path]/includes/init.php(293) : eval()'d code on line 93

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_top.php on line 599

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/includes/vba_cmps_include_top.php on line 599

davidw 11-25-2008 11:26 AM

How are you trying to integrate searchresults.php with your vbacmps page?

Which version of vbadvanced are you using?

nike.stars 11-25-2008 01:42 PM

i'm using vbacmps v3.01

in admin CP -> vba cmps -> integration -> select the file "searchresults.php" then select the page i want to integrate with.

i've always integrate any new php files with this way, have you tested that?

davidw 11-25-2008 02:23 PM

That's not the way this modification works. That would explain the errors. Perhaps it might work that way, of which I haven't tried, but I've uploaded instructions on integration with vBAdvanced 3.0+ that does work (at least with everyone who has used it that way).

https://vborg.vbsupport.ru/attachmen...6&d=1211579592

nike.stars 11-25-2008 02:31 PM

@david
i've read the readme, it only contains how to modify the search module to make use this mod and i've done that.

what i meant was to integrate my vbacmps "page" to your searchresult.php resulting in showing my sidebar again as it should be.

davidw 11-25-2008 02:52 PM

So you are wanting to create a separate page from the default searchresult.php page for vBAdvanced specifically (In essence having a vBAdvanced page and a searchresults.php page)?

nike.stars 11-26-2008 03:43 AM

not separate page, but to integrate one of my vbacmps layout page (which already has sidebar in it).

The sidebar in that page already include the search module that has been modified according to your documentation.

davidw 11-26-2008 10:56 AM

Give me a few days (fixing to go out of town until Sunday) and I'll see what I can do.

nike.stars 11-27-2008 02:42 AM

Quote:

Originally Posted by davidw (Post 1673269)
Give me a few days (fixing to go out of town until Sunday) and I'll see what I can do.

thank you, looking forward to it :)

q8manar 11-30-2008 08:01 AM

I have installed it but when i ded a test
the resualt page came epmty with this error :"

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/estad/public_html/vb/searchresults.php on line 8

could some body till me how i can fix it ?

davidw 11-30-2008 09:38 PM

Can you give me a link to your searchresults.php (PM if needed)?

The Realist 12-18-2008 12:44 PM

Im getting the same error after upgrading.

The error points to line 8 of the script and that says: chdir('/path/to/your/forums/');

Does that line need editing?

Regards

popowich 12-18-2008 12:52 PM

Sounds like you need to edit that line and make it the real path to your forum root on the server.

-Raymond

davidw 12-18-2008 01:01 PM

Quote:

Originally Posted by Instructions
Step 1:
Edit chdir('/path/to/your/forums/'); in searchresults.php - put the correct value then upload to your forum's root.

Hope that helps

The Realist 12-18-2008 01:35 PM

Thanks.

The original post should make this point clear and in my case my path was: chdir('/home/xxxxx/public_html/');

Regards

mholtum 12-28-2008 09:56 PM

Just installed and works perfectly.. Now I am just waiting for the money to start rolling in! Thanks

davidw 12-28-2008 10:01 PM

Awesome! Glad it's working for you.

Goomzee 01-05-2009 07:46 AM

i did every thing step by step but it's show error see the attachment
by the way my child path is

chdir('/home/xxxx/pub_html/forums/');

or should i write

www.mknexusonline.com

davidw 01-05-2009 11:06 AM

<a href="https://vborg.vbsupport.ru/showpost.php?p=1617006&postcount=149" target="_blank">https://vborg.vbsupport.ru/showp...&postcount=149</a>

Goomzee 01-06-2009 03:39 AM

i did everything but it still not working and by the way reset my Pub Id and if i reset my pub ID my all earning is also reset and start again with Zero/0

mholtum 01-06-2009 03:55 AM

Quote:

Originally Posted by Goomzee (Post 1702964)
i did everything but it still not working and by the way reset my Pub Id and if i reset my pub ID my all earning is also reset and start again with Zero/0

It didnt for me. Simply set up the search, not the main.

2dub 01-06-2009 03:06 PM

Quote:

Originally Posted by q8manar (Post 1675632)
I have installed it but when i ded a test
the resualt page came epmty with this error :"

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/estad/public_html/vb/searchresults.php on line 8


could some body till me how i can fix it ?

I had the same issue...


Update...
I just deleted that entire line and it now works fine.

davidw 01-06-2009 03:53 PM

Quote:

Originally Posted by 2dub (Post 1703314)
I had the same issue...


Update...
I just deleted that entire line and it now works fine.

That will work fine unless your searchresults.php file is located is a folder other than the root.

MPDev 01-08-2009 10:46 PM

Works great. I se eyou have multiple search results templates; is there a way to give people the option of searching my site or the web and giving results based on the selection (assuming I have two ads, one with just my site listed for results and another thats for searching google?)

davidw 01-08-2009 11:50 PM

The way Google has it set up, what you search is tied to the information after your partner-pub key. The sites you search (one site or a list of sites) is tied to only one option.

The only way around that is multiple adsense accounts for one domain (which is against ToS) or to add a second option for searching the second domain/site you wish but have that second option not associated with your adsense account.

This version gave you the option of choosing your site, Google, or wherever you wanted (as many choices as you wanted) but you were also using the old account. It is possible that I could modify the older version to work with the newer version to give that option - this would incur stripping the partner-pub key of the information including and after the ":" and also the word "partner-" - if it were to work. I have not tried it, but it is a possibility.

Goomzee 01-09-2009 04:11 AM

Quote:

Originally Posted by davidw (Post 1703387)
That will work fine unless your searchresults.php file is located is a folder other than the root.

it's really nor work plz help

davidw 01-09-2009 10:55 AM

PM me your site that this is occuring on so I can see this and if you want me fix this, PM me appropriate access.

Saviour 01-13-2009 12:44 PM

Working on VB 3.8, however...not without the following problems:
  1. Had to remove the line in searchresults.php which wanted the path to the forums.
  2. Upon performing a search for the first time (and logged in) the search results page appeared fine...except for the fact it did not show me as logged in. Logging in from the search results page and ticking the "remember me" box fixed this. However, if one clears their cache, logs into the forum and performs a search, the same thing happens.
Other than that...all appears to be fine.

"Clicks Installed"...

davidw 01-13-2009 01:08 PM

1. If your seachresults.php file is at the root, then removing that line or commenting it out will do no harm. If it is anywhere else, you will need that line in there otherwise you will have errors.
2. I have not tested this for 3.8 as I may be looking at redoing the adsense to integrate with 3.8's adsense features.

Saviour 01-13-2009 01:12 PM

I didn't register my AdSense with vBulletin, so I don't have that feature included with my version of vBulletin.

If you do upgrade this mod for 3.8, you may want to make two versions...one for those who have AdSense built into the core...and those who don't.


Thanks for a great mod...I couldn't get the gtsearch version of this to work correctly with 3.8. However I've had better luck with this one.

You should be proud...:D

tansu 01-14-2009 12:46 PM

Quote:

Originally Posted by symptome (Post 1670017)
check the configuration area too:
Found on https://www.google.com/adsense/account-settings under Property Information. starts with pub-
(you must start it with pub- and then your number).



Besides:
I had to change the templates like google_navadsearch to insert the following:
<input type="hidden" name="ie" value="ISO-8859-1" />

Without it, some words with swiss special characters couldn't be searched. Perhaps you want to make this choosable too.

Hi
I have the "special characters can not be searched" problem, too.
What exactly did you do to fix this?
Can you please explain it more clearly

davidw 01-14-2009 12:56 PM

If all you are doing is editing templates, open each of the google templates and find the last line of each <input type="hidden" and then insert <input type="hidden" name="ie" value="ISO-8859-1" /> if your issue is similar.
For example:
<input type="hidden" name="cof" value="FORID:9" />
would then look like
<input type="hidden" name="cof" value="FORID:9" />
<input type="hidden" name="ie" value="ISO-8859-1" />


All times are GMT. The time now is 07:28 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
  • Page Generation 0.01455 seconds
  • Memory Usage 1,820KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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