XF 1.5 how to add skyscraper banner under conversations sidebar?

sross

Active member
I'm trying to figure out where this template is so I can place some adsense code. It's the sidebar when inside a conversation:

Conversation Info
Conversation Participants

I'd like a banner under this. I tried editing the sidebar template without luck.
 
OK now I have access. Here is how you can do it in XF1.5:

Template: conversation_view
Last line is: </xen:sidebar>
Put your code above that line.

If you want to just put a banner, then use your HTML there (I recommend using Template Modification system instead of directly editing the template to avoid losing your customizations in future)

But if you want to add a content there that looks like those sidebar blocks, then use a block of code like this:
Code:
<div class="section">
        <div class="secondaryContent">
            <h3>the title</h3>
            <div id="anyID">
                any content that you want
            </div>
        </div>
    </div>
 

Attachments

  • 2019-09-18_17-25-00.webp
    2019-09-18_17-25-00.webp
    23.6 KB · Views: 9
It doesn't necessarily need to be adsense. I have home grown ads I sell that could put there as well, I just can't figure out where this code is.
Btw, if your site is getting enough ad requests, I recommend getting @Siropu 's Ads Manager add-on. He did a good job for that need. You have a full system to manage your ads.
 
You should never put AdSense in conversations:

1. AdSense doesn't allow ads to be shown where they has no access.
2. In my experience very little revenue is earned in areas other than thread_view.

Agreed. Another reason is for privacy - I as a user would not like this.
 
Top Bottom