Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
8.1k views
in Plugins by
edited by

Qlassy Ads Manager Plugin - Summary

Developer: Sourav Pan
Version: 1.0
Compatibility: Question2Answer 1.8+
License: GPLv3
Website: WP Optimize Lab
Repository: GitHub

Download link - https://github.com/Souravpandev/Qlassy-Ads-Manager

 Ad Insertion Locations (15 Total)

  1. Header Ad - Top of every page
  2. Footer Ad - Bottom of every page
  3. Sidebar Top Ad - Top of sidebar
  4. Sidebar Bottom Ad - Bottom of sidebar
  5. Homepage Top Ad - Top of homepage
  6. Homepage Bottom Ad - Bottom of homepage
  7. Question Top Ad - Top of question pages
  8. Question Bottom Ad - Bottom of question pages
  9. Answer Top Ad - Top of answer sections
  10. Answer Bottom Ad - Bottom of answer sections
  11. Category Top Ad - Top of category pages
  12. Category Bottom Ad - Bottom of category pages
  13. Tag Top Ad - Top of tag pages
  14. Tag Bottom Ad - Bottom of tag pages
  15. User Profile Ad - User profile pages
  16. Search Results Ad - Search results pages

 Key Features

 Static Ad Locations

  • 16 different ad insertion points
  • Page-specific targeting (homepage, questions, answers, categories, tags, profiles, search)
  • Responsive design for all ad containers
  • Advertisement labels (globally controllable)

 Dynamic Ad Insertion

  • Between Questions: Insert ads after every N questions
  • Between Answers: Insert ads after every N answers
  • Custom Frequency: Support for patterns like "2,3,5,7"
  • JavaScript-based insertion for dynamic content

 Sticky Ads

  • Side Rail Ads: Fixed position on left and right sides
  • Top Sticky Ad: Fixed position at top of screen
  • Bottom Sticky Ad: Fixed position at bottom of screen
  • Close Buttons: User-controlled close functionality
  • High z-index (999999) for proper layering

 Advanced Features

  • Ad Rotation: Multiple ads with [QLASSY ROTATE] separator
  • Device Targeting: [DESKTOP] and [MOBILE] tags
  • Guest-Only Targeting: Hide ads from logged-in users
  • Role-Based Targeting: Hide from specific user roles
  • Page Exclude/Include: Custom page targeting
  • AdSense Header Integration: Global header script
  • Adblock Detection: Non-closable popup with instructions

⚙️ Admin Panel Features

  • Single Settings Page: All options in one location
  • Enable/Disable Toggles: For each feature
  • Code Input Fields: For each ad location
  • Frequency Settings: For dynamic ad insertion
  • Targeting Options: Guest-only, role-based, device targeting
  • Page Control: Exclude/include specific pages
  • Adblock Detection: Enable/disable with one click

 Design Features

  • Responsive Design: Works on all screen sizes
  • Dark Theme Support: Compatible with dark themes
  • Print Styles: Hidden during printing
  • Professional Styling: Clean, modern appearance
  • Advertisement Labels: Customizable labels on all ads

 Security & Performance

  • HTML Sanitization: Safe ad content handling
  • XSS Protection: Q2A's built-in security
  • Role-Based Access: Admin-only settings
  • Optimized Code: Clean, efficient implementation
  • No Debug Logs: Production-ready code

 Mobile Support

  • Responsive Ads: Adapt to mobile screens
  • Device Targeting: Different ads for mobile/desktop
  • Touch-Friendly: Close buttons work on touch devices
  • Mobile-Optimized: Sticky ads positioned for mobile

 User Experience

  • Non-Intrusive: Ads don't interfere with content
  • Closeable Sticky Ads: Users can close if desired
  • Adblock Detection: Professional popup with instructions
  • Smooth Integration: Seamless with Q2A themes

 Technical Implementation

  • Theme Layer: Extends qa_html_theme_base
  • JavaScript Injection: For dynamic ad insertion
  • CSS Integration: Custom stylesheet included
  • PHP Processing: Server-side ad processing
  • Q2A Integration: Uses Q2A's built-in functions

 Production Ready

  • ✅ All Features Implemented
  • ✅ Clean Code (no debug logs)
  • ✅ Comprehensive Documentation
  • ✅ Professional Design
  • ✅ Security Compliant
  • ✅ Performance Optimized
  • ✅ Mobile Responsive
  • ✅ User-Friendly

by
I’ve identified the issue regarding the dark spots—it’s caused by the built-in dark mode feature in the plugin, which automatically enables and disables depending on the theme. This creates conflicts with certain themes, but the plugin itself is working properly without errors or adding extra server load.

Since this is the first version, some bugs are expected. I’m already working on a new update to fix these issues and improve compatibility with different themes. Thank you for your feedback—it’s valuable for making the plugin better. If you notice any other problems or have suggestions, please feel free to report them here.
by
Here in comment I can't give you the screenshot. But you visit https://www.easyanswer.top . This website does not show google adsense ads on your plugin. Only dark spot are showing. It only showed the website default ads. Visit this website to know more...
by
I noticed that you are currently inserting the header script code into the ad placement positions. Please note that this will not display banner ads, as the header script is only meant to load the AdSense library globally across your site.

The header script looks like this:

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-12345678" crossorigin="anonymous"></script>


To properly display ads, you need to use the AdSense ad unit code, which contains the <ins> container and the push({}) call. For example:

<div class="qlassy-ads-sidebar-top">
  <ins class="adsbygoogle"
       style="display:block"
       data-ad-client="ca-pub-1234567890"
       data-ad-slot="1234567890"
       data-ad-format="auto"
       data-full-width-responsive="true"></ins>
  <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
  </script>
</div>


 Make sure to replace data-ad-slot="1234567890" with your actual AdSense ad slot ID from your AdSense account.

Plugin Version

I also noticed that you are using the older v1.0 of the Qlassy Ads Manager plugin. Please update to the latest version (v1.4) as I have already released it here:

https://github.com/Souravpandev/Qlassy-Ads-Manager

You can also see a working demo of this plugin here:

https://violet-goshawk-761845.hostingersite.com/

Theme Compatibility

One more important point: this plugin not working correctly with your custom theme, try to update the plugin if this issue resolved. The reason is that your theme has modified the default Question2Answer (Q2A) layout structure. Since the plugin relies on Q2A’s standard layout hooks to detect ad placement locations, any changes made in a custom theme can break this detection.

Because of this, I cannot guarantee that the plugin will function properly with custom-designed themes. The plugin is optimized for Q2A’s default layout and standard theme structure, not for third-party or heavily customized themes.

If you want this to work with your current theme, you may need to contact the theme developer.
by
Thank you very much for this plugin. I will be happy to test it :-)

1 Answer

0 votes
by

As I see it, this plugin replaces some old plugins that are unfortunately no longer updated. I think it's great that someone dared to create a new plugin that can still be expanded. I also understand that not all features will work with all themes, but many things can be customized in the CSS file. I use the Polaris theme and some things work very well, others can still be easily customized. What I don't understand is the fact that an ad always appears with a large background after each question. I would like to display a small banner after every second question. I use the following code (Between Questions Ad Code):

<div style="text-align: center;"><img src="../banner/banner_werben.jpg"</div> 

I also tested it with the SnowFlat theme and got the same result. Is this a general problem, or can it be fixed?

...