Page 1 of 1
<Solved> Banner Ads with rotating banners
Posted: Sun 3. Jun 2007, 18:22
by Nik2004
Is it possible to use rotating banners (e.g. gif/jpg) in "Banner ads" module? If yes, I can't figure out how. Any hint?
I am using v1.3.3 with current banner_ads mod.
(It seems I am the first one to open this Forum area.)
Posted: Mon 11. Jun 2007, 11:54
by Oliver Georgi
what do you mean? What's a rotating banner?
Oliver
Posted: Mon 11. Jun 2007, 12:12
by rushclub
Oliver Georgi wrote:what do you mean? What's a rotating banner?
Oliver
i think random banner at the same position - or am i wrong?
rush
Posted: Mon 11. Jun 2007, 13:07
by Oliver Georgi
add additional banner for same place! Where is the problem?
Oliver
Posted: Mon 11. Jun 2007, 23:34
by Nik2004
Rotating Banner is exactly two or more banners appearing in turns (at different page loads), not at the same time, at a particular place (e.g. at page top).
In a simple senario, a random banner would be selected to be displayed at a particular place, during each page load, from a pool of banners. In a more complex senario, rules could be used to decide which banner should be selected from the pool (e.g. % use for each banner, to total 100%).
I tried to see if I the "Banner Ads" module supports multiple banners for the same place (i.e. the same placeholder), and in fact I uploaded two banners using the <Ad Type: Image> / Browse tool (in the Banners Ads module). In the end, the drop down box included two files. I was hoping that these would be displayed in turns, or randomly, but what I found is that only the one selected in the dropdown gets displayed.
Am I missing something?
Posted: Tue 12. Jun 2007, 00:06
by Oliver Georgi
you have to add another campaign!!!!!!! Is it that hard to understand?
Each banner = campaign! You can upload more to switch same campaign if necessary... that's the drop down is for.
Oliver
Posted: Tue 12. Jun 2007, 13:36
by Nik2004
OK, Oliver,
I followed your directions and it works.
Thanks, everything is fine now! Great module. I guess selection between campaigns is random, for the same placeholder.
Sorry for making you feel upset, but some things may not be as obvious to me as you would expect!
I do what I can!
If only I could add the placeholder to my templates (remember problem in thread:
http://www.phpwcms.de/forum/viewtopic.php?t=14888 for which I can't find even a temporary solution)!
Posted: Wed 24. Oct 2007, 12:03
by culda_a
How can I set the size of a banner made by me , the size is not in the dropdown list...is a way to set manualy the size of the banner?
Posted: Wed 24. Oct 2007, 13:03
by Oliver Georgi
In database! Very easy. Check phpwcms_ads_formats
Oliver
Posted: Tue 18. Dec 2007, 11:36
by culda_a
why every time when I try to upload a file in the banner ads it say file too large? I try also wit a file of 1 kb and the same !!!
Posted: Tue 18. Dec 2007, 12:08
by Oliver Georgi
there is a bug in a function - file size check which will always fail (sorry). Here is the updated function - found by myself but not released yet...
http://www.phpwcms.org/support/saveUploadedFile.phps
Oliver
Posted: Tue 18. Dec 2007, 12:35
by culda_a
the only diffrence in that code that I have seen is this line
Code: Select all
$file_status['maxsize'] = empty($file_status['maxsize']) ? $GLOBALS['phpwcms']['file_maxsize'] : $file_status['maxsize'];
or I missunderstend ... the file that I have to change is:
include/inc_lib/general.inc.php
right?
I made the changes but the same problem
Posted: Tue 18. Dec 2007, 13:31
by Oliver Georgi
yes right - but seems that you ad is too big then.
You can try using some debug code there - just put in
Code: Select all
dumpVar('Max: ' . $file_status['maxsize'] . ' / Is: ' . $file_status['size']);
die();
right after this line of code:
Code: Select all
$file_status['maxsize'] = empty($file_status['maxsize']) ? $GLOBALS['phpwcms']['file_maxsize'] : $file_status['maxsize'];
and see the result.
Oliver
Posted: Tue 18. Dec 2007, 14:18
by culda_a
Thanks Oliver , I have try to do the changes that you told me and now I have this message after I try to upload:
Max: 2097152 / Is: 17262
and the picture is still not uploaded so no result...
maybe you have the file and we can download.
Thanks
PS
I think it will be also great if we can change the sizes of the banner from the module not from the database.