How To Add Advertisements In Osclass?

How To Add Advertisements In OsclassWe are using Osclass for build a classified website. Anyone can join and they can publish their ads on your website for free or paid. There are lots of user friendly features available inside this open source script. But people are getting trouble while try to place the ad codes from ad networks like Google Adsense and Chitika or their own banners.

This tutorial will helpful to solve your problems regarding adding advertisements into your Osclass website. You can’t add advertisements through the admin panel of your Osclass website. You need to edit theme files to insert ad codes.

Step 1 : Login to your cPanel. Then open File Manager

How To Add Advertisements In Osclass

 

Step 2 : Click “New File” and create 4 new files in following names at Public_Html folder. These files for place advertisements on various locations on your website.

  1. ad-top.php –  Top of the site
  2. ad-bottom.php – Bottom of the site.
  3. ad-left-side.php – Left Sidebar
  4. ad-right-side.php – Right Sidebar

How To Add Advertisements In Osclass

 

Step 3 : Right Click over these files and Click “Edit” for Paste your ad codes. Save after paste the ad codes on these files.

Step 4 : Open these folder in your File Manager. oc-content —> themes —> bender (or) your theme folder. In your theme folder you need to edit these following files.

Header.php

Find (CTRL+F) <div class=”wrapper wrapper-flash”> Add following code after this code

<div class=”widget-box”><?php include ‘/home/cpanel username/public_html/ad-top.php’; ?></div>.

Click Save to save the changes.

Item.php

Find <div id=”comments”>Add following code before this code

<div class=”widget-box”><?php include ‘/home/cpanel username/public_html/ad-bottom.php’; ?></div>

Click Save

Item-sidebar.php

Find <div id=”sidebar”>Add following code after this code

<div class=”widget-box”><?php include ‘/home/cpanel username/public_html/ad-right-side.php’; ?></div>

Click Save

Main.php

Find <div id=”sidebar”> Add following code after this code

<div class=”widget-box”><?php include ‘/home/cpanel username/public_html/ad-right-side.php’; ?></div>

 

Find <div class=”latest_ads”> Add following code before this code

<div class=”widget-box”><?php include ‘/home/cpanel username/public_html/ad-bottom.php’; ?></div>

Click Save

Search.php

Find <div class=”paginate” > Add following code before this code

<div class=”widget-box”><?php include ‘/home/cpanel username/public_html/ad-bottom.php’; ?></div>

Click Save

search-sidebar.php

Find <div id=”sidebar”> Add following code after this code

<div class=”widget-box”><?php include ‘/home/cpanel username/public_html/ad-left-side.php’; ?></div>

Click Save

Step 5 : Reload your website after complete these changes on your theme files. Now the advertisements are start showing on your website. You can change your ad codes on following files at your Public_Html folder.

  1. ad-top.php –  Top of the site
  2. ad-bottom.php – Bottom of the site.
  3. ad-left-side.php – Left Sidebar
  4. ad-right-side.php – Right Sidebar