Osclass Support Forums

Osclass plugin support => Advertisement Manager Plugin => Topic started by: max on January 02, 2016, 07:12:39 PM

Title: [Solved] Problem showing banner
Post by: max on January 02, 2016, 07:12:39 PM
hello, good 2016!

question:

the <?php echo show_banner(1); ?> what page I insert?

because the html code to insert is divided into 3 parts?

type in the banner image does not need any html code right?

I created the banner with his group with id number (1)
I associated with a category "Animali"

and I pasted code before the main and then I tried to footer page

but I do not see image banner

I also selected the correct image pixels

recommendations please

thanks
Title: Re: visual banner
Post by: MB Themes on January 02, 2016, 10:37:24 PM
@max
Did not fully get you.
You can test association with categories very easily. Create 2 text banners and each associate with different category, but with same banner group. Then, if you show this group, in each category will be shown only correct text.
Title: Re: visual banner
Post by: max on January 03, 2016, 10:59:51 AM
hi Michal!

....it's ok I skipped a passage : associates banner group

but 2 things I have not again resolved..

1) i insert:
Code Html Before:
<div align="center">

Code Html After:
</div>

Code Html Body:
banner

but the banner is to left  :-\


2)Image Slider Banner

what code I enter?

the image the load in the "dashboard" and i can see it

I tried various codes but I see pieces of code along with the image on my site

thank you


Title: Re: visual banner
Post by: MB Themes on January 03, 2016, 12:11:31 PM
@max
1) I do not think something like <div align="center"> exists and is correct
2) No code, you only upload images and show banner in front
Title: Re: visual banner
Post by: max on January 03, 2016, 01:45:51 PM
ummm... ;D

1)that is, I can hit the banner with which code? "center" does not work..

2)I connected all categories and inserted in main code and 2 for all categories but the only banner photo is no, you see only a piece of code
ahaha look attachement

thank!


[attachment deleted by admin]
Title: Re: visual banner
Post by: max on January 03, 2016, 01:47:09 PM
so you see all 2..

[attachment deleted by admin]
Title: Re: visual banner
Post by: max on January 03, 2016, 01:48:08 PM
look
if I raise code I see nothing

[attachment deleted by admin]
Title: Re: visual banner
Post by: MB Themes on January 03, 2016, 02:13:06 PM
@max
1) I use {float:none;margin:0 auto;width:100px;text-align:center;} ... but wrap that contains this one need to have fixed width
2) px256 --- this is not correct format for width or height. Correct is 256px
Title: Re: visual banner
Post by: max on January 03, 2016, 03:44:43 PM
thank for px now ok! I had mistranslated ;D

but....I can not put the banner in the center, I tried many solutions..span, div ecc..on my forum php i insert only <center>...
you can write a complete code for example for the banner image
thanks
Title: Re: visual banner
Post by: MB Themes on January 03, 2016, 04:14:28 PM
@max
That is something not related to this plugin, it is CSS code you need to do correctly. Thos styles are related to styles of your theme.
Title: Re: visual banner
Post by: max on January 03, 2016, 04:51:28 PM
ah ok then I'm going to change the css
thanks
bye
Title: Re: visual banner
Post by: MB Themes on January 03, 2016, 05:39:13 PM
@max
Later I will create example on jsfiddle.
Title: Re: visual banner
Post by: max on January 03, 2016, 07:16:13 PM
@max
Later I will create example on jsfiddle.

ok thanks !
I set up a banner for different categories but I see them both on the home page! ::)

where is: jsfiddle?

thankyou

bye
Title: Re: visual banner
Post by: MB Themes on January 03, 2016, 10:59:00 PM
@max
Of course you see it on homepage. What category is selected when you are on homepage? None, so why no category should be used in category filer? Does not make sense.
If you do not want to show banner on homepage, remove it from code.

Simply code to show block in center of different block:
https://jsfiddle.net/nzvhas8r/ (https://jsfiddle.net/nzvhas8r/)
Title: Re: visual banner
Post by: max on January 05, 2016, 01:11:20 PM
with css I have not solved  :(
but if I enter the pixels banner html, it moves where I want horizontally........ ::)
Title: Re: visual banner
Post by: MB Themes on January 05, 2016, 01:37:51 PM
@max
Problem is if you use any theme (specially with bootstrap), those rewrite inherit styles for all existing elements and some basic things may not work.
Title: Re: visual banner
Post by: max on January 05, 2016, 07:58:41 PM
Michal so that's okay, the mechanism works !
That's good for me ;D
thanks
Title: Re: visual banner
Post by: MB Themes on January 06, 2016, 12:27:52 AM
@max
You mean code from jsfiddle demo?
Title: Re: visual banner
Post by: max on January 06, 2016, 11:28:52 AM
@max
You mean code from jsfiddle demo?

no look this

[attachment deleted by admin]
Title: Re: visual banner
Post by: MB Themes on January 06, 2016, 12:35:32 PM
@max
So everything is ok now?
Title: Re: visual banner
Post by: max on January 06, 2016, 01:00:36 PM
yes all ok ;D!
Title: Re: visual banner
Post by: MB Themes on January 06, 2016, 01:49:09 PM
@max
Cool ;)
Title: no fuction zoom
Post by: max on January 26, 2016, 09:21:15 AM
I Michael
with the solution I found no good
The banner is fixed with the zoom page! :-\

I'm going crazy :P

If I analyze the site and do as in the picture, the banner focuses
but I do not know where to find the parameters on css
I have tried here:
advertisement_manager\css
banner-review.css
banner.css
style.css

but without success :'(

I put the following code in the footer:

<div align="center">
<?php echo show_banner(1); ?>
</div>

help me for the benefit of all
thank you :)

[attachment deleted by admin]
Title: Re: [Solved] Problem showing banner
Post by: MB Themes on January 26, 2016, 10:00:16 AM
@max
You can place CSS code to theme css files to be sure it is loaded everytime.
Title: Re: [Solved] Problem showing banner
Post by: max on January 26, 2016, 10:36:26 AM
@max
You can place CSS code to theme css files to be sure it is loaded everytime.

ok let me see how step by step please  :D

it would be nice that the plugin center the banner! ;D

or at least bring a note of how to do

if the problems are many

then will watch the forums ;D ;D
Title: Re: [Solved] Problem showing banner
Post by: MB Themes on January 26, 2016, 12:43:56 PM
@max
Plugin shows banner, styling is on you.
You can find few different ways on following links:
http://www.w3schools.com/css/css_align.asp
 (http://www.w3schools.com/css/css_align.asp)http://stackoverflow.com/questions/114543/horizontally-center-a-div-in-a-div (http://stackoverflow.com/questions/114543/horizontally-center-a-div-in-a-div)
Title: Re: [Solved] Problem showing banner
Post by: max on January 26, 2016, 12:55:42 PM
@max
Plugin shows banner, styling is on you.
You can find few different ways on following links:
http://www.w3schools.com/css/css_align.asp
 (http://www.w3schools.com/css/css_align.asp)http://stackoverflow.com/questions/114543/horizontally-center-a-div-in-a-div (http://stackoverflow.com/questions/114543/horizontally-center-a-div-in-a-div)

Thanks i look if there is something that escapes me :-X

now I solved so:
<div style="text-align:center">
<div style="display:inline-block">
<?php echo show_banner(1); ?>
</div>
</div>

and the zoom function and I can decide the position of the banner, this like me!! ;D
Title: Re: [Solved] Problem showing banner
Post by: MB Themes on January 26, 2016, 12:56:16 PM
@max
Cool ;)
Title: Re: [Solved] Problem showing banner
Post by: rsn on March 07, 2016, 11:15:55 PM
and in which files embed code?
I can not figure out where to insert the code please tell me or give example
Title: Re: [Solved] Problem showing banner
Post by: MB Themes on March 08, 2016, 07:53:34 AM
@rsn
Anywhere in theme files.
You have example when creating / editing banner group.