MOD download & history

Makes it posible to post Global announcements, viewble in all forums

Moderator: Moderators

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 Wed 10. Apr, 2002 17:36

Code: Select all
##############################################################
## MOD Title:          Global announcement
## MOD Author:         Niels < ncr@db9.dk > (Niels Chr. Rød) http://mods.db9.dk
## MOD Description:    This mod, makes it posible to post global
##                     announcements viewable in all forums.
## MOD Version:        1.2.8
## MOD Compatibility:  2.0.6
##
## Installation Level: Intermediate
## Installation Time:  15 Minutes (1mn by EasyMOD of Nuttzy)
## Files To Edit:      14
##      index.php
##      modcp.php
##      posting.php
##      search.php
##      viewforum.php
##      admin/admin_forumauth.php
##      admin/admin_ug_auth.php
##      includes/auth.php
##      includes/constants.php
##      includes/functions.php
##      language/lang_english/lang_admin.php
##      language/lang_english/lang_main.php
##      templates/subSilver/subSilver.cfg
##      templates/subSilver/viewforum_body.tpl
##
## Included Files:     3
##      global_announcement_db_update.php
##      root/templates/subSilver/images/folder_global_announce.gif
##      root/templates/subSilver/images/folder_global_announce_new.gif
##
##############################################################
## MOD History:
##
##   2003-12-13 - Version 1.2.8
##      - phpBB template & EasyMOD compliance enhancement
##      - Chinese Traditional Taiwan, Dutch, Estonian, French,
##        German, Hungarian, Icelandic, Italian, Lithuanian
##        Polish & Spanish translations now provide with the MOD
##
##   2003-08-05 - Version 1.2.7
##      - corrected the how-to header
##
##   ????-??-?? - Version 1.2.6
##      - corrected some problem in the how-to related to EM - if other mods was installed
##      - posting.php updated, as the code hade changed slightly
##
##   ????-??-?? - Version 1.2.5
##        - verifyed for 2.0.6. and EM ready
##
##   ????-??-?? - Version 1.2.4
##        - improved the code into search.php thanks to the user "FX"
##
##   ????-??-?? - Version 1.2.3
##        - includes images for "fi apple" template
##
##   ????-??-?? - Version 1.2.2
##        - fixed that the "hidden" cattegory "global_announcement" was showen in drop-down box
##
##   ????-??-?? - Version 1.2.1
##        - folder URL of folder_global_announce_new.gif was wrong
##
##   ????-??-?? - Version 1.2.0
##        - now confirmed on phpBB2 ver 2.0.2, minor changes needed
##
##   ????-??-?? - Version 1.0.7
##        - makes it posible to make a hidden category, so global announcement can be controlled more exact   
##
##   ????-??-?? - Version 1.0.6
##        - one more typo fixed in the admin_ug_auth.php
##
##   ????-??-?? - Version 1.0.5
##        - History started, fixed a error in admin_ug_auth.php
##
##   ????-??-?? - Version 1.0.0
##        - initial release
##
##   ????-??-?? - Version 0.9.0
##        - initial beta
##
##############################################################

:arrow: To know the languages already available in the MOD archive, please click here
Last edited by Niels on Mon 15. Dec, 2003 16:29, edited 6 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 Thu 25. Apr, 2002 19:11

This mod is now updated to ver 1.0.1, now includes "global icons"

here are the how to, for users already done the mod
do the files
subsilver.cfg and viewforum_body.tpl, as described in the how-to
and add the 2 included global announce icon files

also in file viewforum.php

Code: Select all
[FIND]:
'FOLDER_ANNOUNCE_NEW_IMG' => $images['folder_announce_new'],

[ADD AFTER]:
'FOLDER_GLOBAL_ANNOUNCE_IMG' => $images['folder_global_announce'],
'FOLDER_GLOBAL_ANNOUNCE_NEW_IMG' => $images['folder_global_announce_new'],

#
# --------------- ACTION ------------------------
#

[FIND]:
'L_ANNOUNCEMENT' => $lang['Post_Announcement'],

[ADD AFTER]:
'L_GLOBAL_ANNOUNCEMENT' => $lang['Post_global_announcement'],

#
# --------------- ACTION ------------------------
#

[FIND]:
   $folder = $images['folder_announce'];
   $folder_new = $images['folder_announce_new'];

[REPLACE WITH]:
   $folder = $images['folder_global_announce'];
   $folder_new = $images['folder_global_announce_new'];
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Thu 25. Apr, 2002 20:34

Now updated to version 1.0.2, minor correction+ "how-to" updated to official format

here is how to update
Code: Select all
in file lang_main.php
[FIND]:
$lang['Topic_global_announcement']="Global Announcement";
$lang['Post_global_announcement'] = "Global Announcement";
[REPLACE WITH]:
$lang['Topic_global_announcement']="<b>Global Announcement:</b>";
$lang['Post_global_announcement'] = "Global Announcement";
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Fri 26. Apr, 2002 10:25

Why not test proberly, before post a upgrade info.... I must be blind 8)

In file lang_main.php it should be
Code: Select all
$lang['Topic_global_announcement']="<b>Global Announcement:</b>";
$lang['Post_global_announcement'] = "Global Announcement";


new version is 1.0.3
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Tue 07. May, 2002 13:13

I have got some users repporting the following errors in the "how-to"

regarding the admin_ug_auth.php

see this posts
http://www.phpbb.com/phpBB/viewtopic.ph ... c&start=20
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Thu 17. Oct, 2002 13:16

I have now upgrade this to ver 1.2.2.

fixing a minor bug, if using the "hidden" cattegory "global_announcement"

to upgrade from previous versions
in file includes/functions.php
Code: Select all
#
#-----[ FIND ]------------------------------------------
#
function make_jumpbox($action, $match_forum_id = 0)
{
   global $template, $lang, $db, $SID, $nav_links, $phpEx;

#
#-----[ IN-LINE FIND ]------------------------------------------
#
;

#
#-----[ IN-LINE BEFORE ADD ]------------------------------------------
#
, $userdata

#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT
FROM " . CATEGORIES_TABLE . " c, " . FORUMS_TABLE . " f
WHERE f.cat_id = c.cat_id

#
#-----[ AFTER, ADD ]------------------------------------------
#
".(($userdata['user_level'] == ADMIN)? "" : "AND c.cat_title<>'global_announcement'" )."

and in file
search.php

Code: Select all
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT c.cat_title, c.cat_id, f.forum_name, f.forum_id 
   FROM " . CATEGORIES_TABLE . " c, " . FORUMS_TABLE . " f
   WHERE f.cat_id = c.cat_id

#
#-----[ AFTER, ADD  ]------------------------------------------
#
".(($userdata['user_level'] == ADMIN)? "" : "AND c.cat_title<>'global_announcement'" )."
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Fri 18. Jul, 2003 14:34

I have updated the code, new version is 1.2.4.

see this post about how to upgrade
http://mods.db9.dk/viewtopic.php?t=2468

this will make the icon correctly as global when searching for posts
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Sat 23. Aug, 2003 17:54

now EM ready
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Next

Return to Global announcement [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 0 guests

cron