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 !
by M. W. I. Prod. on Mon 21. Feb, 2005 03:37
- Code: Select all
##############################################################
## MOD Title: Complete banner 1.3.7 FIX
## MOD Author: M. W. I. Prod. < phpbb@mwiprod.com > (N/A) http://www.mwiprod.com
## MOD Description: Correct the bug wich cause image height equal to image width
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 1 Minute
## Files To Edit: 1
## Included Files: 0
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_banner.php
#
#-----[ FIND ]------------------------------------------
#
# line 589
SET banner_active = $banner_active, banner_name = '" . str_replace("\'", "''", $banner_name) . "',
banner_description = '" . str_replace("\'", "''", $banner_description) . "', banner_click = $banner_click, banner_view = $banner_view,
banner_url = '" . str_replace("\'", "''", $banner_url) . "', banner_owner = ".$owner['user_id'].",
banner_type = '$banner_type', banner_width = '$banner_width', banner_height = '" . str_replace("\'", "''", $banner_width) . "',
banner_filter = '$banner_filter',banner_filter_time='$banner_filter_time',
banner_spot = $banner_spot, banner_forum= $banner_forum, banner_weigth = $banner_weigth,
banner_level = '$banner_level', banner_level_type = '$banner_level_type', banner_timetype = $time_type,
date_begin=$date_begin, date_end=$date_end, time_begin=$time_begin, time_end=$time_end,
banner_comment='" . str_replace("\'", "''", $banner_comment) . "' WHERE banner_id = '$banner_id'";
#
#-----[ REPLACE ]------------------------------------------
#
SET banner_active = $banner_active, banner_name = '" . str_replace("\'", "''", $banner_name) . "',
banner_description = '" . str_replace("\'", "''", $banner_description) . "', banner_click = $banner_click, banner_view = $banner_view,
banner_url = '" . str_replace("\'", "''", $banner_url) . "', banner_owner = ".$owner['user_id'].",
banner_type = '$banner_type', banner_width = '$banner_width', banner_height = '" . str_replace("\'", "''", $banner_heigth) . "',
banner_filter = '$banner_filter', banner_filter_time = '$banner_filter_time',
banner_spot = $banner_spot, banner_forum = $banner_forum, banner_weigth = $banner_weigth,
banner_level = '$banner_level', banner_level_type = '$banner_level_type', banner_timetype = $time_type,
date_begin = $date_begin, date_end = $date_end, time_begin = $time_begin, time_end = $time_end,
banner_comment='" . str_replace("\'", "''", $banner_comment) . "'
WHERE banner_id = '$banner_id'";
#
#-----[ FIND ]------------------------------------------
#
# line 610
VALUES ('$banner_id','" . str_replace("\'", "''", $banner_name) . "', '$banner_active', '$banner_spot', '" . str_replace("\'", "''", $banner_description) . "', '" . str_replace("\'", "''", $banner_url) . "', '$banner_click', '$banner_view', '".$owner['user_id']."', '$banner_level', '$banner_level_type', '$time_type', '$time_begin', '$time_end', '$date_begin', '$date_end', '" . str_replace("\'", "''", $banner_comment) . "','$banner_type',ø'" . str_replace("\'", "''", $banner_width) . "','" . str_replace("\'", "''",
#
#-----[ REPLACE ]------------------------------------------
#
VALUES ('$banner_id', '" . str_replace("\'", "''", $banner_name) . "', '$banner_active', '$banner_spot', '" . str_replace("\'", "''", $banner_description) . "', '" . str_replace("\'", "''", $banner_url) . "', '$banner_click', '$banner_view', '" . $owner['user_id'] . "', '$banner_level', '$banner_level_type', '$time_type', '$time_begin', '$time_end', '$date_begin', '$date_end', '" .
str_replace("\'", "''", $banner_comment) . "', '$banner_type', '" . str_replace("\'", "''", $banner_width) . "', '" . str_replace("\'", "''", $banner_height) . "', '$banner_filter', '$banner_filter_time', '$banner_weigth')";
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
-
M. W. I. Prod.
- Poster

-
- Posts: 2
- Joined: Sun 23. Nov, 2003 09:49
Return to Complete banner [2.0.6/EM]
Users browsing this forum: No registered users and 1 guest