MyBB Community Forums

Full Version: Hide ads for premium members.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I was wondering how I can remove the adbrite ads for my premium member group.
http://genforu.com

please help me out.
Use an add manager plugin. It would be the best.
I cant find a free one that works for adbrite ads.
It wouldn't be hard to make it work with Adbrite.
Could you help me find one or mod one?
Go to mods.mybboard.net, and try adbrite, it may already work.
You can use Template Conditionals plugin from Yumi.

http://community.mybboard.net/thread-31860-page-1.html
(2010-01-12, 12:19 AM)RateU Wrote: [ -> ]You can use Template Conditionals plugin from Yumi.

http://community.mybboard.net/thread-31860-page-1.html
What tags I have to add to remove the ad for the group?
<if $mybb->usergroup['cancp'] != 1>Whatever the ad is</if>

That will block it for admins.
I have installed the mod (http://community.mybboard.net/thread-31860-page-1.html) and add the code you posted (<if $mybb->usergroup['cancp'] != 1>Whatever the ad is</if>) but now my site do not load:
"Error in encoding content"

*Didn't work in both templates, custom and default.

Here is the full index.php code:
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
	lang.no_new_posts = "{$lang->no_new_posts}";
	lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}
<if $mybb->usergroup['cancp'] != 9>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tbody>
<tr>
<td class="trow2" align="center">
To remove the ads <a href="http://mysite.com/forum/subscribe.php" target="_blank">click here</a>.
<br />
<img src="http://mysite.com/forum/images/MyAds/vf3.png" />
</td>
</tr>
</tbody>
</table>
</if>
{$importantmsgs}
<!-- ASOI_3_I_T -->
{$forums}
{$boardstats}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="6">
<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
<div><strong>Forum Status Legend</strong></div>
</td>
</tr>
	<tr>
		<td class="trow1" align="center" valign="middle"><img src="{$theme['imgdir']}/on.png" alt="{$lang->new_posts}" title="{$lang->new_posts}"/></td>
		<td class="trow1" align="center" valign="middle"> <span class="smalltext">{$lang->new_posts}</span></td>
		<td class="trow1" align="center" valign="middle"><img src="{$theme['imgdir']}/off.png" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}"/></td>
		<td class="trow1" align="center" valign="middle"><span class="smalltext">{$lang->no_new_posts}</span><br /></td>
		<td class="trow1" align="center" valign="middle"><img src="{$theme['imgdir']}/offlock.png" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" /></td>
		<td class="trow1" align="center" valign="middle"><span class="smalltext">{$lang->forum_locked}</span><br /></td>
	</tr>
</table>
<br>
{$footer}
</body>
</html>
Pages: 1 2