Search Suggest

Complete Guide to Implementing the Manual Ads Manager Widget on Your Website

Introduction

The Manual Ads Manager is a lightweight, customizable advertising widget designed to help website owners display rotating ads without relying on third-party services. It’s perfect for bloggers, authors, and small businesses looking to promote their products or services in a clean, professional manner. This guide will walk you through two methods of installation: GitHub Integration and Direct Download. Both methods are easy to follow, even for beginners.





Key Features

  • Privacy-Focused: No third-party tracking or data collection.

  • Responsive Design: Works seamlessly on all devices (desktop, tablet, and mobile).

  • Customizable Ads: Easily add, remove, or modify ads.

  • MIT Licensed: Free to use, modify, and distribute with proper credit.

  • Lightweight: Minimal impact on website performance.



Method 1: GitHub Integration

For developers or users familiar with version control systems.


Step 1: Access the Repository

Visit the GitHub repository for the Manual Ads Manager:
GitHub Repository Link


Step 2: Clone the Repository

To clone the repository to your local machine, open your terminal or command prompt and run the following command:
git clone https://github.com/khubaybv2/manual_ads_manager.git
This will download all the necessary files to your computer.


Step 3: File Structure

After cloning, you’ll see the following files:

  • index.html: A demo file showing how the widget works.

  • script.js: The core JavaScript file that handles ad rotation and functionality.

  • style.css: The stylesheet for the widget’s design.

  • LICENSE: The MIT License file.


Step 4: Add the Widget to Your Website

  1. Upload the script.js and style.css files to your website’s server or hosting platform.

  2. In your website’s HTML file, add the following code before the closing </head> tag:

    <link rel="stylesheet" href="path/to/style.css">
  3. Add this code before the closing </body> tag:

    <script src="path/to/script.js"></script> <div id="custom-ad-widget"></div> Replace `path/to/` with the actual path to your uploaded files.


Step 5: Customize the Ads

Open the script.js file and locate the ads array. Modify the array to include your own ads:
const ads = [
{
image: "URL_TO_YOUR_IMAGE",
title: "Your Ad Title",
author: "Author Name",
link: "YOUR_LINK"
},
// Add more ads as needed
];



Method 2: Direct Download (Beginner-Friendly)

For users who prefer a simple, no-code solution.


Step 1: Download the Files

  1. Visit the Google Drive folder:
    Google Drive Folder Link

  2. Locate the file named manual_ads_manager.txt.

  3. Download the file to your computer.


Step 2: Extract and Upload

  1. Rename the file from manual_ads_manager.txt to manual_ads_manager.zip.

  2. Extract the contents of the ZIP file. You’ll find the following files:

    • script.js: The JavaScript file for ad functionality.

    • style.css: The CSS file for styling the widget.

  3. Upload these files to your website’s server or hosting platform.


Step 3: Add the Widget to Your Website

  1. In your website’s HTML file, add the following line before the closing </head> tag:

    <link rel="stylesheet" href="path/to/style.css">
  2. Add these lines before the closing </body> tag:

    <script src="path/to/script.js"></script> <div id="custom-ad-widget"></div> Replace `path/to/` with the actual path to your uploaded files.


Step 4: Customize the Ads

Open the script.js file and locate the ads array. Modify the array to include your own ads:
const ads = [
{
image: "URL_TO_YOUR_IMAGE",
title: "Your Ad Title",
author: "Author Name",
link: "YOUR_LINK"
},
// Add more ads as needed
];



Customization Options

1. Change Ad Display Timing

To adjust how long each ad is displayed, open the script.js file and locate the following line:
setInterval(() => this.rotateAd(), 10000);
Change 10000 (10 seconds) to your preferred interval in milliseconds (e.g., 15000 for 15 seconds).



2. Modify Widget Appearance

Open the style.css file to customize the widget’s design. You can change:

  • Background color: Edit the background property under #custom-ad-widget.

  • Font family: Modify the font-family property.

  • Border radius: Adjust the border-radius value.

  • Box shadow: Edit the box-shadow property for depth effects.



MIT License Compliance

The Manual Ads Manager is released under the MIT License, which means you are free to:

  • Use the widget for personal or commercial projects.

  • Modify and adapt the code to suit your needs.

  • Distribute the widget to others.


Requirements:

  1. Include the original copyright notice in all copies or substantial portions of the software.

  2. Provide a link to the MIT License: MIT License Link.


Example Attribution:
Add the following comment in your code or documentation:
"Contains code from Manual Ads Manager by Khubayb Hossain. Licensed under MIT."


Troubleshooting


Ads Not Displaying?

  • Ensure the script.js and style.css files are correctly uploaded and linked.

  • Check your browser’s console for errors (press F12 and look at the Console tab).


Design Issues?

  • Clear your browser cache (Ctrl + F5).

  • Verify that the style.css file is properly linked in your HTML.


Rotation Not Working?

  • Ensure there are no JavaScript errors in the console.

  • Confirm that the ads array in script.js contains valid ad data.



Live Demo and Support

  • Live Demo: See the widget in action on my blog: Khubayb Hossain's Blog.

  • Support: For questions or issues, leave a comment on my blog or email me at [Your Email Address].



Final Notes

This guide provides everything you need to install and customize the Manual Ads Manager on your website. Whether you choose the GitHub method or the direct download option, you’ll have a fully functional ad widget in no time. Don’t forget to share your experience and let me know how it works for you!

Post a Comment

ফ্রি ওয়েবসাইট নির্মাণ প্ল্যাটফর্ম: ৫টি সেরা টুল যা আপনাকে সহজেই একটি ওয়েবসাইট তৈরি করতে সাহায্য করবে

আপনি যদি নতুন উদ্যোক্তা, ব্লগার বা ব্যবসায়ী হয়ে থাকেন, তবে ওয়েবসাইট তৈরি করা অত্যন্ত গুরুত্বপূর্ণ। একটি ওয়েবসাইট আপনার অনলাইন উপস্থিতি তৈরি করতে সাহায্য করে, যা আপনার চিন্তাধারা, সেবা বা পণ্যকে বিশ্বব্যাপী পৌঁছে দিতে সক্ষম। এখন প্রশ্ন হলো, কীভাবে শুরু করবেন? যদি কোডিং জানার প্রয়োজন না হয়, তবে আপনি সঠিক জায়গায় এসেছেন। আজ আমরা ৫টি ফ্রি ওয়েবসাইট নির্মাণ প্ল্যাটফর্ম নিয়ে আলোচনা করবো, যেখানে আপনি কোডিং ছাড়াই কিংবা কোডিং জ্ঞানের মাধ্যমে সহজেই একটি সাইট তৈরি করতে পারবেন। ১. WordPress.com (ওয়ার্ডপ্রেস.কম) কীভাবে কাজ করে? WordPress.com হলো সবচেয়ে জনপ্রিয় এবং বহুল ব্যবহৃত ওয়েবসাইট নির্মাণ প্ল্যাটফর্ম। এটি মূলত একটি Content Management System (CMS), যেখানে আপনি কোডিং ছাড়াই সাইট তৈরি করতে পারেন। তবে, আপনি যদি একজন ডেভেলপার হন এবং আপনার সাইটের জন্য কাস্টম কোডিং করতে চান, তবে WordPress.org ব্যবহার করা উত্তম হবে। কিন্তু এখানে আমরা WordPress.com নিয়ে আলোচনা করছি, যা সাধারণ ব্যবহারকারীদের জন্য উপযোগী। এটি হাজারো থিম, প্লাগইন এবং ডিজাইন টুলস সরবরাহ করে, যা আপনাকে আপনার সাইটকে সম্পূর্ণ কাস্টমাইজ করতে স...

🔍 Deploy Your Own Result Viewer – Full Setup Guide

 Do you need an automated result-checking system ? With the Result Viewer project, you can easily set up your own exam result portal for free! This guide will walk you through deploying the project from GitHub to Render (or any hosting platform), ensuring you follow MIT License rules (i.e., you cannot copy or sell it directly). 🔗 GitHub Repository: Result Viewer 📌 What You Will Learn ✅ How to download & modify the source code. ✅ How to deploy it on Render (Free 24/7 Hosting) . ✅ How to connect it with your own Google Sheets data . 🚀 Step 1: Download the Result Viewer Project 🔹 Option 1: Download as ZIP Visit GitHub Repository . Click on the Code button and select Download ZIP . Extract the ZIP file on your computer. 🔹 Option 2: Clone via Git (For Developers) If you are comfortable with Git, you can use the command: git clone https://github.com/khubaybv2/result_viewer.git 🛠️ Step 2: Modify It for Your Own Use Since this project is licensed under MIT License , yo...