MOD download & history

a complete banner management system, any number of banners can be added
Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Postby Niels on Sun 22. Feb, 2004 00:14

the mod have been updated
see this post for more info
http://mods.db9.dk/viewtopic.php?t=3816

now this mod, uses the redirect code provided by cmisker, as ths seam to work better with some commercial adds

new version is 1.3.4.
you need to update redirect.tpl and lang_banner.php in order to update
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Mon 05. Apr, 2004 19:26

I have updated the banner MOD to version 1.3.5.
if the banner type was set to "text" type, it woulden display, due to some improvement I did made to some of the code.
here are how to upgrade:
in file page_header.php

Code: Select all
[FIND]
$banner_example = '<a href="'.append_sid('redirect.'.$phpEx.'?banner_id='.$banners[$i]['banner_id']).'" target="_blank">'.$banners[$i]['banner_name'].'</a>';

[REPLACE WITH]
$template->assign_var('BANNER_'.$banner_spot.'_IMG', '<a href="'.append_sid('redirect.'.$phpEx.'?banner_id='.$banners[$i]['banner_id']).'" target="_blank" alt="'.$banners[$i]['banner_description'].'" title="'.$banners[$i]['banner_description'].'">'.$banners[$i]['banner_name'].'</a>');
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Mon 07. Jun, 2004 11:11

I have uploaded a new version 1.3.6.
this fixes a isue, wher new created banners, did not keep the "weight"

to updated, simply replace the admin/admin_banner.php
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Sun 16. Jan, 2005 00:27

I have now updated this mod to 1.3.7.
this fixes a isue wher ethe banner width / heigth was not set correct.
at same time I have changed this mod, so it supports width/ heigth as % and not only pixel size.

to upgrade, you must first change the DB fields banner_width and banner_height from medint(5) to varchar.
this is done by this SQL

Code: Select all
ALTER TABLE `phpbb_banner` CHANGE `banner_width` `banner_width` VARCHAR( 5 ) DEFAULT '0' NOT NULL
ALTER TABLE `phpbb_banner` CHANGE `banner_height` `banner_height` VARCHAR( 5 ) DEFAULT '0' NOT NULL


then re-upload the new version of the file admin_banner.php

in file page_header.php
Code: Select all
[FIND]
$banner_size = ($banners[$i]['banner_width'] && $banners[$i]['banner_height']) ? '"width="'.$banners[$i]['banner_width'].'" height="'.$banners[$i]['banner_height'].'"' : '';

[REPLACE WITH]
$banner_size = '';
$banner_size = ($banners[$i]['banner_width']<>'') ? ' width="'.$banners[$i]['banner_width'].'"' : '';
$banner_size .= ($banners[$i]['banner_height']<>'') ? ' height="'.$banners[$i]['banner_height'].'"' : '';


finally you may need to update your old banners with the following SQLs
Code: Select all
UPDATE phpbb_banner SET banner_width='' WHERE banner_width=0
UPDATE phpbb_banner SET banner_height='' WHERE banner_height=0


if you will only correct the malformet HTML creatd, and not upgrade with the new feature, you may skip most of the abouve steps, only the changes done to page_header.php are excential
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

UPGRADE: admin_banner.php

Postby Niels on Sat 07. May, 2005 14:35

Based on users feedback, I have now bugfixed the included file admin/admin_banner.php
somehow a few bugs was pressent
please replace this file, and all shuld be well
pressent version of this file is 1.2.5
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Previous

Return to Complete banner [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron