Advertisement:

Author Topic: Advertisements  (Read 869 times)

Supertolete

  • Newbie
  • *
  • Posts: 29
Advertisements
« on: July 13, 2017, 04:16:03 pm »
How can I place advertisements, like banners, without paying for a plugin?

Aficionado

  • Guest
Re: Advertisements
« Reply #1 on: July 13, 2017, 04:40:12 pm »
How can I place advertisements, like banners, without paying for a plugin?

It usually is IN the theme settings. OR if not, manually inject the code to various files (not good).

Supertolete

  • Newbie
  • *
  • Posts: 29
Re: Advertisements
« Reply #2 on: July 13, 2017, 05:18:08 pm »
Actually I figured out!
Go here: https://zolahost.com/add-advertisements-osclass/
It worked like a charm!

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Advertisements
« Reply #3 on: July 13, 2017, 05:55:07 pm »
Info: The widgets are shown even if you have add blocker.
Bender theme has some advertising places that are blocked with addblocker.

Supertolete

  • Newbie
  • *
  • Posts: 29
Re: Advertisements
« Reply #4 on: July 13, 2017, 06:24:24 pm »
Marius, how can I use the widgets?

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Advertisements
« Reply #5 on: July 13, 2017, 07:16:06 pm »
In your admin you can input  widgets in 2 places. Under the header and above the footer(bender theme). Also you can input adverts in your theme settings.
Look in the menu , I can't remember the exact place.

Supertolete

  • Newbie
  • *
  • Posts: 29
Re: Advertisements
« Reply #6 on: July 14, 2017, 04:22:15 pm »
I got it, Thanks Marius!

Supertolete

  • Newbie
  • *
  • Posts: 29
Re: Advertisements
« Reply #7 on: July 14, 2017, 04:23:48 pm »
I can manage to place advertisements already... but I was wondering, how can I place different banners, lets say in the header, so it rotates?

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Advertisements
« Reply #8 on: July 14, 2017, 07:16:46 pm »
You can input adverts:
Under looks menu(first one under items/ads, the 4th from up ->down -Theme settings

You can input widgest:
Under looks menu(first one under items/ads, the 4th from up ->down - Widgets.

Quote
lets say in the header, so it rotates?

If you want to add more widgests, make them in some .php files placed into your theme folder, and include them into main.php, item.php etc.

I'm not shure what you mean by rotate..

EDIT:

If you want to say that you want banner1.php  and banner2.php and banner3.php to show randomlly into the header you can relate to :

Code: [Select]
<?php  include ('banner' rand(1,3). '.php');?>
If you want to show them in relation with the category name for example, you can conditionate with
osc_category_name($locale = "") - Gets the name of the current category
https://doc.osclass.org/HCategories.php
« Last Edit: July 14, 2017, 07:50:35 pm by marius-ciclistu »

Supertolete

  • Newbie
  • *
  • Posts: 29
Re: Advertisements
« Reply #9 on: July 20, 2017, 07:08:22 pm »
Thanks again Marius!
 That is what I want. That everytime you refresh the page the advertisement changes.

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Advertisements
« Reply #10 on: July 20, 2017, 07:37:19 pm »
I hope it works. I didn't test it.