Welcome, Guest. Please Login or Register.
May 10, 2025, 12:43:52 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Dual Boards - Ads vs Non-Ads « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Dual Boards - Ads vs Non-Ads  (Read 640 times)
Kootch
Noobie
*
Posts: 23


The DaliLama?!?!

WWW
Dual Boards - Ads vs Non-Ads
« on: January 22, 2003, 07:27:20 PM »
Reply with quote

We've got a forum where we're thinking of having 2 options.

We'd like all visitors to see the same posts, read, and reply all equally.  But we'd like the members that donate to the site to have no ad banners/popups showing.  Non-contributing members would see ads and banners still.

I was thinking that maybe there'd be a way to run dual boards accessing the same databases maybe?

Has anyone done this before?
Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Dual Boards - Ads vs Non-Ads
« Reply #1 on: January 22, 2003, 07:33:44 PM »
Reply with quote

Perfectly fine, except this is a bad idea - the url gets out.

My suggestion is that you try to put a little php in your template - if they have donated, signify it somehow and don't display the ad.

I would add a column to members and look at that....

-[Unknown]
Logged
irbrian
Sr. Member
****
Posts: 489


I create. Therefore I am.

brian@inverse-reality.com WWW
Re:Dual Boards - Ads vs Non-Ads
« Reply #2 on: January 22, 2003, 07:36:51 PM »
Reply with quote

Here's a quick-hack way of doing it.

In your template.php, where ever the HTML that calls the ad is, I would place code that checks the database to see if the member has contributed.

Probably this is a job for SSI.php -- just put a function in the SSI.php that returns a true if the member has contributed and a false otherwise, then use an if statement in your template surrounding the ad code. But I could be wrong, 'cause I'm struggling with something similar on my 1.3 board right now :-[). Not even sure you can use the SSI.php in the template.
Logged

Imparting great wisdom daily to those who will mistake my words as such.
Kootch
Noobie
*
Posts: 23


The DaliLama?!?!

WWW
Re:Dual Boards - Ads vs Non-Ads
« Reply #3 on: January 22, 2003, 07:46:47 PM »
Reply with quote

Quote from: [Unknown] on January 22, 2003, 07:33:44 PMPerfectly fine, except this is a bad idea - the url gets out.

My suggestion is that you try to put a little php in your template - if they have donated, signify it somehow and don't display the ad.

I would add a column to members and look at that....

-[Unknown]

I haven't thought this through really, but if you were to have a second forum (for paying members), could you only allow certain membergroups access to the boards through that second forum only?  Then make all paying members a member of that certain member group?
Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Dual Boards - Ads vs Non-Ads
« Reply #4 on: January 22, 2003, 07:48:38 PM »
Reply with quote

I suppose.

-[Unknown]
Logged
tdodnz
Sr. Member
****
Posts: 275


Asleep zzzzz (Snore Snore)

ICQ - 166370583cnd_nz@go.com WWW
Re:Dual Boards - Ads vs Non-Ads
« Reply #5 on: January 23, 2003, 05:53:53 AM »
Reply with quote

its much easier to have one board
Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:Dual Boards - Ads vs Non-Ads
« Reply #6 on: January 23, 2003, 06:16:26 AM »
Reply with quote

Just give people who donate a special membergroup. When you load the ad just check to see what membegroup they belong too.
Logged
tdodnz
Sr. Member
****
Posts: 275


Asleep zzzzz (Snore Snore)

ICQ - 166370583cnd_nz@go.com WWW
Re:Dual Boards - Ads vs Non-Ads
« Reply #7 on: January 23, 2003, 06:39:32 AM »
Reply with quote

yeah like a paid membergroup but if thats not wanted a new column needs to be added to the members table in the database which you just set to 1 if there paid very easy mod then you just add some php to the template that checks and then displays, I would add the checking stuff to index.php and have it set a variable to true

And then in the template you just go
if (!$paid) {
         show the ad
}
Logged
Dude
Guest
Re:Dual Boards - Ads vs Non-Ads
« Reply #8 on: January 23, 2003, 09:17:17 AM »
Reply with quote

ok, this is all pretty much off the top of my head but.....

First create a member group for those who pay and add all who pay to that group.  Then in the function template_header() in subs.php create a variable called yypaid. Then add the code

if ($userprofile[$user]['memberGroup'] = 'paidgroup*')
 $yypaid = '<br />';
else
 $yypaid = 'insert your ad code here';**

then where you want the ads displayed for non members put <yabb paid>.

*where 'paidgroup' is the name of the member group you created.

** be sure to escape quotes etc. Java should be ok.

and you may want to add other membergroups to the if statememt, such as admin's global moderators etc.
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Dual Boards - Ads vs Non-Ads « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.036 seconds with 20 queries.