We 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
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.
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.
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.
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
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
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
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
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.