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)
-   -   Randomly positioned ad in between postbits in showthread (https://vborg.vbsupport.ru/showthread.php?t=98057)

arossphoto 05-14-2006 10:12 PM

Quote:

Originally Posted by UK Jimbo
To limit it just to certain user groups I'd recommend the following conditional rather than the in_array() solution posted above. This version ensures that secondary group assignments are checked too.

For a single user group (1 in this case)
PHP Code:

<if condition="is_member_of($bbuserinfo, 1)"

For multiple user groups (1, 2 & 3 in this case)
PHP Code:

<if condition="is_member_of($bbuserinfo, array(1,2,3))"


I only have one usergroup that I don't want to see the ads. Instead of entering all the groups that should see them like the example above, is there a way to just enter the usergroup that should not see them?

I hope that makes sense.

Thanks.

UK Jimbo 05-14-2006 10:59 PM

Quote:

Originally Posted by arossphoto
I only have one usergroup that I don't want to see the ads. Instead of entering all the groups that should see them like the example above, is there a way to just enter the usergroup that should not see them?

I hope that makes sense.

Thanks.

I think it was done on this thread somewhere before you can negate it like this:

PHP Code:

<if condition="! is_member_of($bbuserinfo, 1)"


arossphoto 05-15-2006 12:00 AM

Thanks! Works perfectly. I did search here before I asked, but not much came up under "usergroup".

veedee 05-15-2006 03:39 PM

Awesome hack. I've donated $25, as it's made me at least $500 so far, what about you?

arossphoto 05-19-2006 10:59 PM

Quote:

Originally Posted by Doc Great
I did (it again :D) --> a little modification to show all guests Ad, but let the reg. users choose if they want to get ad-posts or not.

Is there any way to provide this option only to certain usergroups, like paying members?

UK Jimbo 05-21-2006 08:42 PM

Quote:

Originally Posted by arossphoto
Is there any way to provide this option only to certain usergroups, like paying members?

Yup - the question's been asked/answered a few times in this thread already :)

arossphoto 05-21-2006 09:15 PM

Quote:

Originally Posted by UK Jimbo
Yup - the question's been asked/answered a few times in this thread already :)

Sorry, I don't think I was being very clear in my question. Doc Great provided a solution that would add an On/Off button to the user's control panel so they could choose to see ads or not. Maybe this isn't the right place to ask, but I'd only like to give this option to certain paying members.

With your help I have set it up already so one usergroup never sees the ads, but I would like to give them the option in the Control Panel to turn ads on or off. I think I read all the posts here and I didn't see this answered.

Cheers,

Andrew

UK Jimbo 05-21-2006 09:34 PM

If you could create the userfield and have it specific to only certain usergroups that would solve the problem. I'm not sure if vBulletin will do that out of the box (the docs will do though!), if not I think it's probably a question for the mod requests forum on here.

Post back to let me/others know how you got on. Thanks!

T.S. 05-23-2006 05:48 AM

Great plugin, thanks. Now if only there was one to put an ad randomly between threads on the thread list. ;)

durapuma 05-23-2006 04:51 PM

Hello,

is it possible, that this mod does not work in vB 3.5.4 ? I have just changed the postbit template, I have add the following at the bottom :

Quote:

<if condition="$GLOBALS['adsense_position'] == $post['postcount'] && $GLOBALS['adsense_position'] > 0">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" align="left">Sponsoren</td>
</tr>
<tr>
<td class="alt1" align="center">
<!-- Werbung Start -->
<script type="text/javascript"><!--
google_ad_client = "pub-4639893886504387";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- Werbung Ende -->

</td>
</tr>
</table>

</div>
$spacer_close
</if>
after that, I import the Plugin. But nothing happens :(

What is the problem ? What do you need to help me ?


Best Regards from Germany

durapuma


All times are GMT. The time now is 07:35 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.01812 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
  • (3)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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