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)
-   -   Usergroup Specific Adverts (https://vborg.vbsupport.ru/showthread.php?t=83081)

Chris_D 07-30-2005 12:10 PM

This is great :)

Mr_Bob 10-05-2005 11:57 PM

Will this be updated for 3.5 gold or is it good as is? I'm interested in using this ;).

Chris M 10-06-2005 09:50 AM

Currently this should work as is - There may be tweaks that can be made for 3.5 Gold but I honestly can't forsee any at the moment - It is best to assume that it is compatible and then if any issues arise they can be fixed :)

Chris

Julie 10-11-2005 01:28 PM

Uhh, is it possible to have this work with secondary usergroups? Because I've set up my forum so that a paying user gets a secondary usergroup (without changing their primary usergroup)... Is there a way to have so that you can add secondary usergroup ids as well? :) Thanks.

n1ckn4me 10-11-2005 02:59 PM

Hi nice hack! it's got some potention in my opinion.

I have for example some plain text I only want to show at some places of my vbsite. so I place the $advert outthere and I copy the code within the plugin from "global_start" and than add the idusergroup numbers exept for id1 (guests). This way you probably tell that every idgroup does not see it.

Is there a way to invert that? so you just place the useridgroup-numbers who WILL see it? (it's just that it tires my mind to think the other way around i guess :p)

further more...nice plugin

Mr_Bob 10-13-2005 11:17 PM

Quote:

Originally Posted by Julieh
Uhh, is it possible to have this work with secondary usergroups? Because I've set up my forum so that a paying user gets a secondary usergroup (without changing their primary usergroup)... Is there a way to have so that you can add secondary usergroup ids as well? :) Thanks.

Yes I agree. I want to use it but it doesn't seem to work that way yet. I have my forums set up so by doing certain things you are sent to another primary group. I would much rather just make a subscription that says you are a secondary user of this group which prevents you from seeing ads rather then figure out a whole new promotion scheme.

Is there a way to include secondary groups you select as well as primary?

Chris M 11-22-2005 10:50 PM

Edit the plugin, and change:
PHP Code:

if (!in_array($vbulletin->userinfo['usergroupid'], array(567))) { 

to
PHP Code:

if (!(is_member_of($vbulletin->userinfo, array(567)))) { 

That should work :)

Chris

Mr_Bob 11-25-2005 05:41 PM

Yup that worked flawlessly :). Maybe that could be the default in the product or even just another attachment something like "Use only primary groups" and another "Check both primary and secondary". I attached the edited version of your product if you want to throw it up alongside the first for those that want it to apply for both primary and secondary groups. I didn't rename it or anything of the sort I just went through with PSPad and changed the line :D.

Q-v-n-s-Q 12-06-2005 03:20 AM

if u want ads display on the 1st post use this code

Code:

<if condition="!$GLOBALS['FIRSTPOSTID']">

$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">Sponsored Links</td>
</tr>
<tr>
    <td class="alt1" align="center">
        $advert
</if>
    </td>
</tr>
</table>

</div>
$spacer_close

</if>

credit go to artonex for the code
https://vborg.vbsupport.ru/showthrea...t=Adsense+post

Julie 12-23-2005 10:35 PM

Quote:

Originally Posted by Chris M
Edit the plugin, and change:
PHP Code:

if (!in_array($vbulletin->userinfo['usergroupid'], array(567))) { 

to
PHP Code:

if (!(is_member_of($vbulletin->userinfo, array(567)))) { 

That should work :)

Chris

Perhaps it's changed in vB 3.5.2, because it's not working for me :S

I've altered the plugin code;

PHP Code:

if (!(is_member_of($vbulletin->userinfo, array(567162126)))) { 

Which are my not-to-see-ads-groups ... But they're still seeing ads. Like f.ex, 21 and 26 are my paid subscription groups. I've added a clone of myself, Julie2 in the subscription group, and marked the secondary group "Gold Membership", but I'm still viewing ads (when logged in as that user)...


All times are GMT. The time now is 05:57 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.01073 seconds
  • Memory Usage 1,749KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_php_printable
  • (2)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