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)
-   -   Major Additions - vB Ad Management 4 (https://vborg.vbsupport.ru/showthread.php?t=131150)

RedTyger 04-18-2007 02:25 PM

I have no ETA for that, sorry.

dxguru 04-18-2007 02:27 PM

Is there any way to have the ads show in search results (such as the New Posts page)?

RedTyger 04-18-2007 02:32 PM

Quote:

Originally Posted by dxguru (Post 1230441)
Is there any way to have the ads show in search results (such as the New Posts page)?

In the postbit_complete.php file there is a line that contains THIS_SCRIPT == 'showthread'. you add && THIS_SCRIPT == 'search' immediately after it and overwrite the default postbit_complete.php file it should allow inclusion in the search postbit as well using the postbit_advertisement template and postbit_adcode adcode, although whether it will actually appear I don't know. Depends on whether the default settings allow it I suppose. Beyond that I'm afraid you're on your own...

dxguru 04-18-2007 02:59 PM

Thanks ... but I don't have a postbit_complete.php file. Do you mean the postbit_display_start.php file?

RedTyger 04-18-2007 03:24 PM

Oops, wrong plugin. Yes, I do mean that. :)

dxguru 04-18-2007 03:28 PM

Thank Red. I checked that file and the 'search' option was already in there (but as part of a series of or statements).

I've looked over some of the others also and added in a check for the search script where I thought it should be, but with no luck.

Any other suggestions?

dxguru 04-18-2007 04:23 PM

Got it. Although the scripts would trigger if THIS_SCRIPT was 'search', none of the search hooks were being used.

So I copied the plugin that was triggered at hook location 'threadbit_display' and created a new plugin to trigger at hook location 'search_results_threadbit'

I now have ads in my search results :)

pxd 04-18-2007 05:34 PM

Struggling to get it fully working for Google AdSense. I mean I managed to successfully install everything and get the Client ID inserted properly using the #shared# feature an the field5 value taken from the user profile.

But I also need to be using the Channel ID which is different for each user, can anyone give me some clue on achieving this, please?

Goodman_2020 04-18-2007 07:19 PM

Hi,

I installed vb mangment, i follow all the instructions, like says the first post... everything is ok, except that when i turn on the ads. in vb managment global settings, if i click to see my forum (to see how it looks like) my forum disapear...when i turn it off, it comes back...weird or normal?? maybe i need to set something special? maybe i need at least one advertisment code to make it work?

Please help; thx :)

sorry for my english, i'm french

p.s: i have google adsense installed in my postbit too (maybe a conflict?)

edit: i uninstalled it, and it didn't change anything :(

4newbies 04-19-2007 05:26 AM

Quote:

Originally Posted by RedTyger (Post 1225119)
Are you sure the files have been uploaded to the right location? Now I think I do remember someone with this problem and it was the cause. For you, they should be at http://www.4newbiesforum.com/include...ent/(file).php.

Thank you for your response. This has corrected my blank page problem. I had no clue what to do with those files until you said to upload them to my server. Perhaps it might be common knowledge to upload modification files to an "includes" folder on the server. However, newbies like me to this would have never known to do this unless it was in the instructions. You should consider listing this step in your instructions, unless I messed it somehow.

Thanks again for your hard work and quick response.

PS: Please check the Pm I sent you RedTyger


All times are GMT. The time now is 01:31 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.02338 seconds
  • Memory Usage 1,742KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (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