WP Bannerize Pro

Descrição

O WP Bannerize Pro é um incrível gerenciador de anúncios.
Com ele você pode gerenciar todo o seu material publicitário através de widgets, shortcodes ou funções PHP diretamente no seu tema.

Important updates in 1.6.5

In order to continur to use the Geolocalization feature, you need to create a API KEY from IPStack service.
The API Key is free but you need to register in order to get it.

Once you have the API KEY, you can set it in the plugin settings.

FUNCIONALIDADES

  • Gerencie seu banner com um Custom Post Type para imagem, HTML/Javascript e texto livre
  • Crie categorias para o banner
  • Sort your banners with easy Drag & Drop
  • Exiba seus banners por função PHP, shortcode no post ou Widget
  • Defina filtros, como ordem aleatória, números, funções de usuário e filtros de categorias
  • Date Time schedule
  • Suporte ao atributo “nofollow”
  • Mecanismo de cliques e impressões para estatísticas
  • CTR (Taxa de cliques)
  • Geolocalization support (by IPStack)
  • Relatórios de análises

COMO FAZER

Você pode exibir os banners por shortcodes, funções PHP ou Widgets.

Shortcode

From v1.4.0 you can use the a new shortcode and a news attribute to display banners only for mobile or desktop.
Let’s see some exmaple:

[wp_bannerize_pro mobile="1" id="1678"]

The banner with id 1768 will be displayed only on mobile device.

[wp_bannerize_pro desktop="1" id="1678"]

The banner with id 1768 will be displayed only on desltop device.
Of course, you may need to display more info. In this case yoy can use the new shortcode to wrap any contents.

[wp_bannerize_pro_mobile]
  <h3>You're from mobile</h3>
  [wp_bannerize_pro id="1678"]
[/wp_bannerize_pro_mobile]

The above shortcodes, will display the banner with id 1678 only for mobile device.

[wp_bannerize_pro_desktop]
  <h3>You're from desktop</h3>
  [wp_bannerize_pro id="1678"]
[/wp_bannerize_pro_desktop]

The above shortcodes, will display the banner with id 1678 only for desktop device.

Of course, you may also

From v1.1.0 you can use the new shortcode to display geo localized banners.

! Remember to get your own API KEY from IPStack service.

Let’s see some exmaple:

[wp_bannerize_pro_geo city="rome"]
  <h3>You're from Rome</h3>
  [wp_bannerize_pro id="1678"]
[/wp_bannerize_pro_geo]

O shortcode acima, irá exibir o banner com id 1678 apenas para os visitantes de Roma.

Vamos ver mais um exemplo.

[wp_bannerize_pro_geo city="Rome"]
  Only for Rome
[/wp_bannerize_pro_geo]

[wp_bannerize_pro_geo city="rome"]
  Only for Rome
[/wp_bannerize_pro_geo]

[wp_bannerize_pro_geo city="rome,london"]
  Only for Rome and Landon
[/wp_bannerize_pro_geo]

[wp_bannerize_pro_geo region_name="lazio"]
  Only for region (Italy) Lazio
[/wp_bannerize_pro_geo]

[wp_bannerize_pro_geo country_code="IT"]
  Italian only
[/wp_bannerize_pro_geo]

[wp_bannerize_pro_geo country_name="italy"]
  Italian only
[/wp_bannerize_pro_geo]

[wp_bannerize_pro_geo zip_code="00137"]
  Wow
[/wp_bannerize_pro_geo]

[wp_bannerize_pro_geo ip="80.182.82.82"]
  Only for me
[/wp_bannerize_pro_geo]

[wp_bannerize_pro_geo time_zone="europe/rome"]
  Rome/Berlin time zone
[/wp_bannerize_pro_geo]

Além disso, dê uma olhada na nova interface do usuário do widget com configurações de geo-localização.

// single banners
[wp_bannerize_pro id="1678"]
[wp_bannerize_pro id="my-banner-slug"]
[wp_bannerize_pro id="1678,my-banner-slug"]

// random
[wp_bannerize_pro numbers="1" orderby="random"]

// random with category
[wp_bannerize_pro orderby="random" categories="56"]
[wp_bannerize_pro orderby="random" categories="sidebar-blog"]

// post categories
[wp_bannerize_pro post_categories="news,events"]
[wp_bannerize_pro post_categories="34,67"]

Função PHP

You may use either wp_bannerize_pro() or get_wp_bannerize_pro() to display your banner. The main difference between them is that get_wp_bannerize_pro() return the HTML output for the banner, for example:

<?php
// Display a single banner
if( function_exists( 'wp_bannerize_pro' ) ) {
  wp_bannerize_pro( array( 'id' => '156' ) );
}

By using get_wp_bannerize_pro() you should add echo function to display the output:

<?php
// Display a single banner
if( function_exists( 'wp_bannerize_pro' ) ) {
  echo get_wp_bannerize_pro( array( 'id' => '156' ) );
}

More example below.

<?php
// Display a single banner
if( function_exists( 'wp_bannerize_pro' ) ) {
  wp_bannerize_pro( array( 'id' => '156' ) );
}

// Display a set of banners by a comma separated string
if( function_exists( 'wp_bannerize_pro' ) ) {
  wp_bannerize_pro( array( 'id' => '156,157,158' ) );
}

// Display a set of banners by an array
if( function_exists( 'wp_bannerize_pro' ) ) {
  wp_bannerize_pro( array( 'id' => array( 156, 157, 158 ) ) );
}

// Display a set of banners by mixed id and slug
if( function_exists( 'wp_bannerize_pro' ) ) {
  wp_bannerize_pro( array( 'id' => array( 156, 'my-banner-slug', 158 ) ) );
}

// Display all banners from banner category "sidebar" in random order
if( function_exists( 'wp_bannerize_pro' ) ) {
  wp_bannerize_pro( array( 'orderby' => 'random', 'categories' => 'sidebar' ) );
}

// Display one banner from banner category "sidebar" in random order
if( function_exists( 'wp_bannerize_pro' ) ) {
  wp_bannerize_pro( array( 'orderby' => 'random', 'numbers' => 1, 'categories' => 'sidebar' ) );
}

// Display banners from banner category "sidebar" and post categories news and events
if( function_exists( 'wp_bannerize_pro' ) ) {
  wp_bannerize_pro( array( 'category' => 'sidebar', 'post_categories' => 'news,events' ) );
}

// Or... as array of slug
if( function_exists( 'wp_bannerize_pro' ) ) {
  wp_bannerize_pro( array( 'categories' => 'sidebar', 'post_categories' => array( 'news', 'events' ) ) );
}

// Or... as array of Title
if( function_exists( 'wp_bannerize_pro' ) ) {
  wp_bannerize_pro( array( 'categories' => 'sidebar', 'post_categories' => array( 'News', 'Events' ) ) );
}

// Or... as array of ids
if( function_exists( 'wp_bannerize_pro' ) ) {
  wp_bannerize_pro( array( 'categories' => 'sidebar', 'post_categories' => array( 24, 67 ) ) );
}

// Display a set of banners only for mobile device
if( function_exists( 'wp_bannerize_pro' ) ) {
  wp_bannerize_pro( [ 'mobile' => true, 'id' => [156,157,158] ] );
}

// Display a set of banners only for desktop device
if( function_exists( 'wp_bannerize_pro' ) ) {
  wp_bannerize_pro( [ 'desktop' => true, 'id' => [156,157,158] ] );
}

The code above shows banners only for the posts categories 13 or 14, for the “right_sidebar” banner category.

ou em seu post:

[wp_bannerize_pro categories="adv" orderby="random" numbers="3"]

A saída HTML padrão para o código acima é:

Parâmetros

 Name              | Default      | Description
 ------------------+--------------+------------------------------------------------
 id                | null         | ID or slug comma separate (default null)
 categories        | []           | Banner categories slug or id (default '')
 post_categories   | []           | Any string, int or array of string, id. (default '')
 order             | "DESC"       | Order "ASC" or "DESC"
 orderby           | "menu_order" | Order by or 'impressions', 'clicks', 'ctr' or 'random'. (default 'menu_order')
 rank_seed         | true         | Set to true to give some chances to the banners to be showed when use Impressions, Click or CTR order by. Set to false to absolute order
 numbers           | 10           | Max numbers of banners (default 10)
 layout            | vertical     | Banners layout, "horizontal" or "vertical"

Imagens de tela

  • Adicionando um novo banner a partir de uma mídia no computador
  • Adicionando um novo banner de texto
  • Pré-visualização em tempo real
  • Regras de intervalo de datas
  • Ativar impressões e cliques em um único banner
  • Categorias dos banners
  • Visão geral das estatísticas
  • Relatório individual com filtros
  • Configurações
  • Widget

Instalação

Esta seção descreve como instalar o plugin e fazê-lo funcionar.

  1. Envie a pasta do plugin, com todos os arquivos, para o diretório /wp-content/plugins/.
  2. Ativar o plugin através do menu ‘Plugins’ no WordPress (desativar e reativar se você estiver atualizando).
  3. Pronto! Aproveite.

FAQ

Posso personalizar a saída HTML?

Currently you can’t change th HTML but you may set your own CSS styled by following the HTML markyp below:

<div class="wp_bannerize_banner_box wp_bannerize_category_cocacola"
     data-title="Amiga Ball"
     data-mime_type="imagegif"
     data-impressions_enabled="true"
     data-clicks_enabled="true"
     data-banner_id="241"
     id="wpbanner-241">
    <a href="http://undolog.com">
      <img src="http://wordpress.dev/wp-content/uploads/2016/10/Boing.gif"
           alt="Amiga Ball"
           title="Amiga Ball"
           width="173px"
           height="141px"
           border="0">
     </a>
</div>

The most important thing here is the wp_bannerize_banner_box class.
This is the main class that will be used to style the banner.

For example, if you want to set the border of the images, you may use:

.wp_bannerize_banner_box img {
  border-radius: 16px;
}

As you can see, you may use the wp_bannerize_category_cocacola as well to styled a specific banner category. Or you may use the id to style a specific banner.
In addition, you may use the data-* attributes to set the banner properties.

Below, we will add the border radius just for GIF images:

.wp_bannerize_banner_box[data-mime_type=imagegif] img {
  border-radius: 16px;
}

Avaliações

20 outubro, 2022
Really easy to use and works flawlessly. After trying various plugins I finally found a really good one, simple and very easy to use. Thank you for creating this plugin and hope that this plugin will continue to be developed and become one of the default plugins for wordpress
27 julho, 2022 13 respostas
After testing under PHP 8.0 & WP 6.0.1 – i've got some errors and warnings in the backend, when i visit the 'Analytics Overview' and 'Analytics Report'. It still works by the way. If i switch back to php 7.4.1 the errors & warnings are gone. Thanks again for this great plugin!
14 dezembro, 2019
Missing impressions when using iframe-ads. Would be nice to be able to see the impressions (number of times the iframe is loaded).
13 dezembro, 2019
This is a plugin that reliably does what it promises in a straightforward way. Plus the author provides a real five star support: before I even could try out his workaround for a question I had, it was turned into a new feature in a plugin update, all this within less than 24 hours. Wow! I don't have the slightest need to try out any other banner plugin. Thanks a bunch!
8 fevereiro, 2019
Best plugin for add banners. I've used it on my website and it has options that others don't have. Also it's optimized and compatible with the latest versions of Wordpress
Leia todas as 10 avaliações

Colaboradores e desenvolvedores

“WP Bannerize Pro” é um software com código aberto. As seguintes pessoas contribuíram para este plugin.

Colaboradores

“WP Bannerize Pro” foi traduzido para 2 localizações. Agradecemos aos tradutores por suas contribuições.

Traduzir “WP Bannerize Pro” para o seu idioma.

Interessado no desenvolvimento?

Navegue pelo código, dê uma olhada no repositório SVN ou assine o registro de desenvolvimento via RSS.

Registro de alterações

1.5.0

  • added get_wp_bannerize_pro() function, useful to get the bannerize output instead of print it on the screen

1.4.0

  • add mobile detect on function, shortcode and widget

1.3.3

  • add bannerize admin bar tools

1.3.0

  • update bones framework
  • add new filter for expired, scheduled and timed
  • add new columns Visible from and expires

1.2.4

  • test wp 4.8
  • fix img tag width and height

1.2.3

  • test wp 4.7.5
  • fix geolocalizer

1.2.2

  • várias correções
  • atualização de localização

1.0.4

  • pequenas correções e melhorias

1.0.2

  • meta dados melhorados
  • pequenas correções

1.0.0

  • esta versão substituiu a versão antiga