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 M 06-13-2005 10:00 PM

Usergroup Specific Adverts
 
[high]Installation Instructions[/high]

Step 1: Upload the .xml file to the Product Manager
Step 2: Edit the [high]global_advert[/high] template to add your advert code, i.e. Google Adsense code
Step 3: Add the variable [high]$advert[/high] to any of the following templates: [high]header, navbar, footer[/high] - I placed mine at the top of the navbar template to make it show like it does in the screenshots
Step 4: Alter the plugin code to reflect your premium members/staff usergroups so that they do not see the ads (if you don't want them to)

To do so, edit:
PHP Code:

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

replacing, obviously, [high]5, 6, 7[/high] with whatever usergroups you need
Step 5: Click [high]INSTALL[/high]:D

To see what it looks like (yes I used a hideous h1 tag and red font to make the point out) take a look at the screenshots... ;)

[high]Updates[/high]
Version 1.0.1: Simple update to make this work globally - This will show up in every page :) - To upgrade, remove the forumhome_advert template, delete the existing plugin and follow the installation instructions above :)

Chris

Martin 06-16-2005 08:30 PM

I installed this, but wouldn't it work better for most people if the adverts were viewable on all pages to non-select usergroups?

mholtum 06-16-2005 08:37 PM

Quote:

Originally Posted by Martin
I installed this, but wouldn't it work better for most people if the adverts were viewable on all pages to non-select usergroups?

I like it this way so that people will want to subscribe (pay you money) not to see the ads. ;)

Martin 06-16-2005 08:49 PM

Quote:

Originally Posted by mholtum
I like it this way so that people will want to subscribe (pay you money) not to see the ads. ;)

Yes, I'm aware of that. But the way it is currently set up, it only views the add on the index page and the ads go away once you start browsing the forums.

mholtum 06-16-2005 08:57 PM

I didnt get that far.. Good point. Is there a way to make it viewable on all forum pages?

gang_* 06-17-2005 10:18 PM

how do u install?

Martin 06-17-2005 11:51 PM

Quote:

Originally Posted by gang_*
how do u install?

Just like he said in the initial post

Quote:

Step 1: Upload the plugin
Step 2: Create a template called forumhome_advert
Step 3: Put your google ads/custom whatever into your forumhome_advert template
Step 4: Alter the plugin code to reflect your premium members/staff usergroups so that they do not see the ads (if you don't want them to)

Chris M 06-18-2005 11:30 AM

It is possible, yes :)

I'll update it with a global setting sometime over the weekend ;)

Satan

Martin 06-18-2005 08:35 PM

I had to do a clean install of Beta 2, so once you add the global, I will definitely be testing this again :)

Chris M 06-21-2005 01:46 PM

[high]Update[/high]
Version 1.0.1: Simple update to make this work globally - This will show up in every page :) - To upgrade, remove the forumhome_advert template, delete the existing plugin and follow the installation instructions in the first post :)

Satan


All times are GMT. The time now is 09:04 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.01033 seconds
  • Memory Usage 1,738KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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