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 !

MOD download & history

Postby Niels on Sat 15. Feb, 2003 17:51

Code: Select all
##############################################################
## MOD Title:          Complete banner
## MOD Author:         Niels < ncr@db9.dk > (Niels Chr. Rød) http://mods.db9.dk
## MOD Description:    This mod makes it posible to add banners to
##                     your phpbb2 pages, by default banners are
##                     placed in top/botton but you may place the
##                     tags, inside any template file.
## MOD Version:        1.3.7
## MOD Compatibility:  2.0.0->2.0.13
##
## Installation Level: Easy
## Installation Time:  10 Minutes (1mn by EasyMOD of Nuttzy)
## Files To Edit:      10
##      viewonline.php
##      admin/admin_db_utilities.php
##      includes/constants.php
##      includes/page_header.php
##      includes/page_tail.php
##      includes/functions.php
##      templates/subSilver/overall_footer.tpl
##      templates/subSilver/overall_header.tpl
##      templates/subSilver/viewforum_body.tpl
##      templates/subSilver/viewtopic_body.tpl
##
## Included Files:     7
##      complete_banner_db_update.php
##      root/redirect.php
##      root/admin/admin_banner.php
##      root/language/lang_english/lang_banner.php
##      root/templates/subSilver/redirect.tpl
##      root/templates/subSilver/admin/banner_edit_body.tpl
##      root/templates/subSilver/admin/banner_list_body.tpl
##
###############################################

:arrow: To know the languages already available in the MOD archive, please click here

I've made a complete banner mod, witch have if not all, then most of the features you would need to show banners, I have called this "complete banner" mod.

currently this have featurs, like

custom number of banners (unlimmited numbers)
any type of banner can be used (e.g. swf or wav)
count of redirects per banner (filtered for specifyed time)
hide banner after click
count of views
mouse hover over text
link not showen to users before clicking (to avoid redirect not being counted)
uses template, language and db layer
include nice admin interface

in adition banners can be configured to show in several ways, the following options are availble and can be combined in any combination:
Code: Select all
*time based rotating rules
*rotating by priority
*admin can specify user types witch will see the banner
*admin can specify witch forum the banners are to show in


e.g. admin may set up a 2 banners to show for all users except admin and moderators, the banners will only show in the time intervall 10 am - 12 am, the 2 banners will shift rotating the same spot, one will show 25% of the time, while the other will show 75% of the time

I have attached some images from ACP you may look at these, to see the options availble in this MOD
Last edited by Niels on Sat 07. May, 2005 14:32, edited 29 times in total.
(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 Sat 15. Feb, 2003 23:16

I have now updated the file admin_banner.php and the template file banner_edit_body.tpl
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Mon 24. Feb, 2003 19:40

I have updated the code needed in the page_header,php
new version is 0.9.2
please update the code in this file, with the new code in the how-to
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Mon 24. Feb, 2003 19:52

also included the file redirect.tpl witch was missing in a previous zip file.

pay also attention that the path for some of the templates file to the admin pages, was wrong, this is also corrected in the how-to
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Mon 10. Mar, 2003 23:51

I have updated the redirect.tpl file, please update you file to the current, it will act faster and more accurate
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Tue 11. Mar, 2003 00:05

now considered as final, version is now 1.0.0.
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Mon 14. Apr, 2003 22:13

I have uploaded new versions of the included files, you may consider upgrade these

there is no excential changes, so you do not need to do so
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Thu 15. May, 2003 13:03

I have now updated this mod, new features is that admin may specify witch types of users will see the banners
in total 16 new combinations of rescrict/allow the banners to showen are now posible

e.g. you may make a banner, and set this banner only to show for guest users, or make a banner witch is showen to all users except admin.

new version is 1.0.1.
this upgrade include SQL witch have not (yet) been verifiing working on other than mySQL, please let me know if this will work on your server if you are using another DB type
to upgrade:
add these 2 extra fields to the banner table in the DB
Code: Select all
`banner_level` TINYINT(1) NOT NULL,
`banner_level_type` TINYINT(1) NOT NULL ,


the replace the 3 files
admin_banner.php
banner_edit_body.tpl
banner_lang.php

then edit the page_header.php
Code: Select all
[FIND]
$week_now=create_date('w',$time_now,$board_config['board_timezone']);

[AFTER ADD]
$sql_level= ($userdata['user_id']==ANONYMOUS) ? ANONYMOUS : (($userdata['user_level']==ADMIN) ? MOD : (($userdata['user_level']==MOD) ? ADMIN : $userdata['user_level']));


[FIND]
WHERE banner_active and (banner_timetype='0'

[REPLACE WITH]
WHERE banner_active and IF(banner_level_type,IF(banner_level_type=1,'".$sql_level."'<=banner_level,IF(banner_level_type=2,'".$sql_level."'>=banner_level,'".$sql_level."'<>banner_level)),banner_level='".$sql_level."') and (banner_timetype='0'


now go into admin panel and redefine the new option availble for your banners
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Next

Return to Complete banner [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 0 guests

cron