Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Only show modules when Kunena has content - Adsense violation

Only show modules when Kunena has content - Adsense violation

Is it possible to only show content when my Kunena forum has content?

Adsense say that I am in violation of their policies when I show adverts when the topic is shown as 'Access Denied' as the following one does:

buzz50.com/forum/169-lounge-chat/1401405-the-fick-club?start=230

Here is how it is shown in the source:

<div class="kblock kdefault">
    <div class="kheader">
        <h2>Access Denied</h2>
    </div>
    <div class="kcontainer">
        <div class="kbody">
            <div class="kcontent">
                <p>You do not have permissions to access this page.</p>            </div>
        </div>
    </div>
</div>

One option would be for me to only show the adverts after specific posts as in kunena_msg_1, kunena_msg_2 etc and not use MetaMod Pro

Head Buzzer
Buzz50 Seniors

Buzz50
Mr
Beginner Modder
ranks
useravatar
Offline
16 Posts
User info in posts
Administrator has disabled public posting

Re: Only show modules when Kunena has content - Adsense violation

Hi, that's an interesting scenario.

Is the "access denied" the same as having no posts in the forum?
It's possible but may be fiddly to detect if there are no posts in the forum being shown on the page. But it may be easier to detect if the user is not in a certain Joomla user group (which implies access denied), depending on whether Kunena uses Joomla user groups or its own, and how many different groups and forums there are restricted to certain groups.

All in all you might be better off with your other suggestion.

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1680
Total Polls:
6
Total Posts:
5914
Total Posts Today:
1
User Info:
 
Total Users:
10831
Newest User:
bluesky1
Members Online:
0
Guests Online:
168

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked