Page 1 of 4
Banner MOD v.1.0
Posted: Wed 7. Jun 2006, 15:24
by wingover
Update: 12.11.2006
- Flash Support
- Some other changes
- Tested with phpwcms 1.2.8, Firefox 1.5, Internet Explorer 6
Hi,
I made a little Banner MOD and a replacement-tag for it.
If you find errors, please write it here.
Banner Rotation v.1.0
The MOD ID is 777, but it`s easy to change.
Copy the directory "mod_banner" into this directory "include/inc_module" and read the instructions for installation in install.txt.
The replacement-tag is: {BANNER:group-name}
There are only some lines of code to add in the following files:
- phpwcms.php
- include/inc_front/content.func.inc.php
Download it here:
mod_baner.zip
Here are some screenshots:

Posted: Wed 7. Jun 2006, 20:58
by fopulu
Looks very nice.
I downloaded it and test it soon....
Posted: Mon 12. Jun 2006, 12:28
by pico
Hi
had some Problems on Editing Banners etc. get Error's like:
Warning: Invalid argument supplied for foreach() in O:\Xampp\xampp\htdocs\include\inc_module\mod_banner\edit_banner.php on line 11
fixed with this Changes - all Files in ../inculde/inc_mod/mod_banner
bannerlist.php Line 126 from
Code: Select all
$editgroup = $_REQUEST['editbanner'];
to
Code: Select all
$editbanner = $_REQUEST['editbanner'];
after Line 6
Code: Select all
$style_button_cell = 'style="padding:2px; text-align:right;"';
added this
Code: Select all
$editbanner = $_REQUEST['editbanner'];
in grouplist.php added also after Line 6
Code: Select all
$style_button_cell = 'style="padding:2px; text-align:right;"';
this
Code: Select all
$editgroup = $_REQUEST['editgroup'];
Posted: Thu 15. Jun 2006, 13:53
by culda_a
Hi I don't have this errors but I don't know how to use it.. I have try to creategroups from admin section but it not let me... I use php 1.2.6
Where do I get a user manual for this mod?
Posted: Thu 15. Jun 2006, 22:31
by pico
click on the Info Tab

Posted: Fri 16. Jun 2006, 12:14
by culda_a
I have seen that but I don't know how ro make to apear in the site ...the banner I mean
Posted: Sat 17. Jun 2006, 09:51
by fopulu
Got some errors creating new Groups....
Warning: array_values(): The argument should be an array in /mnt/jd1/03/205/00000012/htdocs/cms/include/inc_module/mod_banner/grouplist.php on line 48
Warning: array_push(): First argument should be an array in /mnt/jd1/03/205/00000012/htdocs/cms/include/inc_module/mod_banner/grouplist.php on line 49
Warning: Invalid argument supplied for foreach() in /mnt/jd1/03/205/00000012/htdocs/cms/include/inc_module/mod_banner/grouplist.php on line 52
and now?
Posted: Sat 17. Jun 2006, 10:07
by fopulu
Ok, it works with my banners by fixing the banner.php, groups.php and config.php in the data folder, but it isn't very handy....
Another problem: The link from the banners to banner's website won't work.... error 404....
Can anybody help?
Posted: Sat 17. Jun 2006, 21:09
by wingover
Hi,
sorry for late reply, but I was in Italy because I`m working sometimes in a paragliding flight-school as flight-instructor.
And - sorry for including some errors in my script.
I made some changes and updated the script, the download is the same:
mod_banner.zip
The replacement-tag is: {BANNER:group-name}
So you can place different banner-groups in your template.
I have tested the script with phpwcms 1.2.6 offline and online.
Example is here:
http://www.surfclub-bernau.de
Grüzli - Andi
Posted: Sat 17. Jun 2006, 23:09
by culda_a
how to create groups becouse by me this function is not working....when I press to add a group is not doing anything
Posted: Sat 24. Jun 2006, 20:48
by culda_a
I see that also the poerson that have started this post is not looking in to it so i think I was asking here question but nobody will offer support
Posted: Sat 24. Jun 2006, 22:01
by pico
@culda_a
maybe you must a little more precise with your Questions - it is hard to help when only 'is not doing anything' is reported -
normaly something happens always - a Error-Message or something else.
If there is realy absolut nothing happens when you click on 'Add Group' I would say that you should check the whole installation again Step-by-Step
Is the Browser shows a Address when you move your Mouse over the Link ?
Posted: Mon 26. Jun 2006, 09:33
by wingover
Hi culda_a,
sorry for 'looking not so often in this thread'.
But in summer, I spend a lot of time in a paragliding flight-school and in the air, because I`m working as flight-instructor and doing a lot of tandem-flights.
I made this mod a little bit in 'hurry', because I needed it for a website. So it`s possible, that there are some mistakes. But it`s working very well on my offline- and testing server and on the server of the provider, the page is hosted. Here is everything working perfectly.
Do you have set the write-permissions for the folders? If you create or edit groups or anything else, the files in the data-folder must be writable.
When you install the script, there are 2 groups and 3 banners for example. Are they working and can you edit them?
Grüzli - Andi
Posted: Sat 1. Jul 2006, 13:25
by culda_a
I have no error on the script the problem is me for sure because I don't know how to make the banner apear in the site... do I have to but a RT in the template like {banner} I don't know I just asking
Posted: Sat 1. Jul 2006, 22:27
by pico
READING !!!! first Posting
The replacement-tag is: {BANNER:group-name}