vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Make your adsense look like a post! With Referals, forum exclusion and more! (https://vborg.vbsupport.ru/showthread.php?t=122010)

Thomas P 07-25-2006 12:20 PM

Thanks, that is pretty neat :cool:

One question, I use:
Code:

<if condition="THIS_SCRIPT == 'showthread'AND ($post[postid] == $GLOBALS['qrlastpostid'])">
and noticed that if someone is logged in the adcode only shows up at the end of a thread on the last page.
If viewed as a guest, the adcode shows up on every page at the end.

Any hints why it is this way and how to change it for loggend in users, too?

Thanks,
-Tom

Thomas P 07-25-2006 01:29 PM

Second: Is there any way to show that adcode only if there is more than one post in a thread?

/update: Got it, just changed the conditional to

Code:

<if condition="THIS_SCRIPT == 'showthread' AND ($post[postid] == $GLOBALS['qrlastpostid']) AND ($post['postcount'] > 1)">
which works great.

So just the one question is still open, see a.m.: https://vborg.vbsupport.ru/showpost....4&postcount=11

Thanks,
-Tom

question? 07-25-2006 02:00 PM

Quote:

Originally Posted by Thomas P
Second: Is there any way to show that adcode only if there is more than one post in a thread?

/update: Got it, just changed the conditional to

Code:

<if condition="THIS_SCRIPT == 'showthread' AND ($post[postid] == $GLOBALS['qrlastpostid']) AND ($post['postcount'] > 1)">
which works great.

So just the one question is still open, see a.m.: https://vborg.vbsupport.ru/showpost....4&postcount=11

Thanks,
-Tom

Thanks for that :) I will add it to thet update.

I signed up to your forum, and it shows at the end of every page. Not just at the end of threads. As guest it worked the same as well :)

Kaleem 07-25-2006 04:12 PM

ritenow u have this in array array(2,3,32) so it means in forums 2,3,32 ads will not show rite ?

after saving got this

Parse error: syntax error, unexpected T_VARIABLE in /home/.******/****/friendskorner.com/forum/includes/adminfunctions_template.php(3537) : eval()'d code on line 249

Thomas P 07-25-2006 06:57 PM

Quote:

Originally Posted by question?
I signed up to your forum, and it shows at the end of every page. Not just at the end of threads. As guest it worked the same as well :)

Thanks for taking the time to test this :up:

This is very confusing. The adcode shows up when using a test user account (normal member).
But using my account it only shows up at the very end of a thread?? :confused:

What is different on my account?

icemanic 07-25-2006 08:10 PM

how do you show this to only certain usergroups as well ? i want to only show for guests and for regular registered members, but not for a certain usergroup

question? 07-25-2006 08:55 PM

Quote:

Originally Posted by Thomas P
Thanks for taking the time to test this :up:

This is very confusing. The adcode shows up when using a test user account (normal member).
But using my account it only shows up at the very end of a thread?? :confused:

What is different on my account?

Hmm, i'm not sure why. It may be a version difference or somthing. you shouldn't worry tho, it's getting to the other people in your forum.

Quote:

Originally Posted by icemanic
how do you show this to only certain usergroups as well ? i want to only show for guests and for regular registered members, but not for a certain usergroup

AND (!$show[member])

Quote:

Originally Posted by LightInClouds
ritenow u have this in array array(2,3,32) so it means in forums 2,3,32 ads will not show rite ?

after saving got this

Parse error: syntax error, unexpected T_VARIABLE in /home/.******/****/friendskorner.com/forum/includes/adminfunctions_template.php(3537) : eval()'d code on line 249

If you see, that's not the file for the addon thing. And yes, you are right, forums 2,3,32 will not show the ads.

Rich 07-25-2006 09:23 PM

Unless I am mistaken, this modification would violate Googles TOS.

question? 07-25-2006 09:32 PM

Quote:

Originally Posted by Rich
Unless I am mistaken, this modification would violate Googles TOS.

How would it violate google's TOS?

FocusTom 07-26-2006 01:10 AM

I do not see how this modification could possibly violate the policies set by Google's TOS. This mod does not go over the amount of ad units which are allowed as per their guidelines.

The only constraint is that the site must have content, which evidently it will as it is a forum. Please explain why you think it would violate the policies.


All times are GMT. The time now is 02:57 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.01274 seconds
  • Memory Usage 1,744KB
  • 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
  • (3)bbcode_code_printable
  • (6)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
  • (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