Banner MOD v.1.0

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
wingover
Posts: 58
Joined: Wed 13. Apr 2005, 13:18
Contact:

Banner MOD v.1.0

Post 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:

Image

Image

Image

Image
Last edited by wingover on Sun 12. Nov 2006, 15:31, edited 3 times in total.
---------------------------------------------------
Vol Libre - der Traum vom freien Fliegen
http://www.gleitschirm-taxi.de
Faszination Berge
http://www.mountain-panorama.com
---------------------------------------------------
fopulu
Posts: 359
Joined: Tue 2. May 2006, 14:19
Location: Rhein-Main

Post by fopulu »

Looks very nice.
I downloaded it and test it soon....
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post 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'];
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Post 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?
ImagePackging design,labels, catalogs,postcards,
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

click on the Info Tab :D
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Post by culda_a »

I have seen that but I don't know how ro make to apear in the site ...the banner I mean
ImagePackging design,labels, catalogs,postcards,
fopulu
Posts: 359
Joined: Tue 2. May 2006, 14:19
Location: Rhein-Main

Post 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?
fopulu
Posts: 359
Joined: Tue 2. May 2006, 14:19
Location: Rhein-Main

Post 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?
wingover
Posts: 58
Joined: Wed 13. Apr 2005, 13:18
Contact:

Post 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
---------------------------------------------------
Vol Libre - der Traum vom freien Fliegen
http://www.gleitschirm-taxi.de
Faszination Berge
http://www.mountain-panorama.com
---------------------------------------------------
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Post 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
ImagePackging design,labels, catalogs,postcards,
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Post 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
ImagePackging design,labels, catalogs,postcards,
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post 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 ?
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
wingover
Posts: 58
Joined: Wed 13. Apr 2005, 13:18
Contact:

Post 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
---------------------------------------------------
Vol Libre - der Traum vom freien Fliegen
http://www.gleitschirm-taxi.de
Faszination Berge
http://www.mountain-panorama.com
---------------------------------------------------
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Post 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
ImagePackging design,labels, catalogs,postcards,
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

READING !!!! first Posting
The replacement-tag is: {BANNER:group-name}
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
Post Reply