1 (edited by Mediator 2005-03-27 00:46)

Topic: Global Announcements - 1.0.5

##
##
##        Mod title:  Global Announcements 
##
##      Mod version:  1.0.5
##   Works on PunBB:  1.2.3, 1.2.4 
##     Release date:  3-26-05 
##           Author:  Caleb Champlin (Mediator) [med_mediator@hotmail.com] 
##
##      Description:  This modifications gives administrators the ability to add global announcements to their forum 
##
##       Affects DB:  Yes 
##
##   Affected files:  viewforum.php 
##                    lang/LANGUAGE/common.php 
##
##            Notes:    None.  
##
##     Generated By:  Auto Read-Me(by Caleb Champlin) - http://www.rscheatnet.com/Auto_Readme.zip
##
##       DISCLAIMER:  Please note that 'mods' are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##

Please note this is the first version of this modification and although it should work it has not been heavily tested by myself. If you find any bugs please post them. Thanks

Download: http://www.punres.org/viewtopic.php?id=292
Mirror: http://www.rscheatnet.com/Global_Announ … -1.0.5.zip
Demo: http://www.rscheatnet.com/mods/Announcements/

I enjoy pie :)

Re: Global Announcements - 1.0.5

what exactly does this mod do?
and...
is there a preview of what it looks like?

Re: Global Announcements - 1.0.5

i think its the same as the global topic plugin but slightly more integrated

Re: Global Announcements - 1.0.5

ahh kool awsome.

Re: Global Announcements - 1.0.5

I still confuse what does this mod do. Link that Mediator give is already dead. Can you more spesific?
Although I still giving a try to install it. And there is a bug when I send the announcement.
It bring me to Http error:404. Anyone know whats wrong about it?

Re: Global Announcements - 1.0.5

it creates global topics e.g. topics that appear in all forums

Re: Global Announcements - 1.0.5

Here is a new demo link:
http://www.rscheatnet.com/mods/Announcements/

I enjoy pie :)

Re: Global Announcements - 1.0.5

Oh i see.. so this mod very cool but what about error that i get Page Not Found:404 ??
I've already upload all the file.

Re: Global Announcements - 1.0.5

What is the page?

I enjoy pie :)

Re: Global Announcements - 1.0.5

I can't see the page because after Error:Page Not Found, it redirect to my hosting page. Is it has related with permissions? what could be wrong?

Re: Global Announcements - 1.0.5

Ok so now you've already updates to 1.0.4, the Error page has gone. I see that the error cause by you use multi language at Admin plugin so when it call the language (which is none) it goes to the Error page. Is that right? wink

But it still has a bug on it, Notice: Undefined variable: forum_id in ........

It looks like the problem at footer.php after

else if ($footer_style == 'viewforum' || $footer_style == 'viewtopic')

as an information, i also install Easy_Poll-1.0.6 and Colored_Usergroups-1.0.2 which is all made by you.

Please help me... thanks before..

Re: Global Announcements - 1.0.5

Erm, none of those alter footer.php
Next time you get the error, paste the full thing?

Re: Global Announcements - 1.0.5

I see the problem the viewannouncement.php file uses the footer call for viewtopic.php. 1.0.5 will be out shortly.

I enjoy pie :)

Re: Global Announcements - 1.0.5

could not paste the full thing Smartys, don't know why something cover it. I'm newbie in php so sorry..!!

Ok then I'll wait for 1.05 but wait I found something...

when I saw at the DB tabel Topics at column forum_id it show that AP_Announcements.php don't send the correct number so it only fill with 0 (zero).

I hope that can help you finding the solutions... thanks anyway...

Re: Global Announcements - 1.0.5

The forum_id should be 0, as 0 will never be a valid id for a forum. I could have made the forum_id null but 0 just seemed nicer

I enjoy pie :)

Re: Global Announcements - 1.0.5

1.0.5 released

Fixes:
Problem with footers

I enjoy pie :)

Re: Global Announcements - 1.0.5

OK I try it now... just wait for my report Mediator big_smile

Re: Global Announcements - 1.0.5

It works, the Announcement are there... with New bugs smile

- Notice: Undefined index: Announcement in ...../forums/viewforum.php on line 249

  I found when I try to view topic by clicking category.

and also bug at header of moderateannouncement.php

- Index » Notice: Undefined index: forum_name in ..../forums/moderateannouncement.php on line 153 » Global Announcement

I found when I try to "Delete multiple posts"

Re: Global Announcements - 1.0.5

after I take a look at the code I found answer for myself, don't know is this the correct one but It can fix.

at viewforum.php line 249 replace

$icon_text .= ' '.$lang_forum['Announcement'];

with this

$icon_text .= ' '.$lang_common['Announcement'];

then at moderateannouncement.php start line 153 replace

<ul><li><a href="index.php"><?php echo $lang_common['Index'] ?></a></li><li> » <a href="viewforum.php?id=<?php echo $fid ?>"><?php echo pun_htmlspecialchars($cur_topic['forum_name']) ?></a></li><li> » <?php echo pun_htmlspecialchars($cur_topic['subject']) ?></li></ul>

with this

<ul><li><a href="index.php"><?php echo $lang_common['Index'] ?></a></li><li> » <?php echo $lang_common['Announcements'] ?></li><li> » <?php echo pun_htmlspecialchars($cur_topic['subject']) ?></li></ul>

What do you think Mediator?

Re: Global Announcements - 1.0.5

hmm, Well I'm not sure about the first error as when I went to fix it in the readme

        if ($cur_topic['announcement'] == '1')
        {
            $subject = '<span class="stickytext">'.$lang_common['Announcement'].': </span>'.$subject;
            $item_status .= ' isticky';
            $icon_text .= ' '.$lang_common['Announcement'];
        }

Which is correct

As for the second one, people can use your fix, I would rather wait for more changes to release another version so quickly

I enjoy pie :)

21

Re: Global Announcements - 1.0.5

Hey, can I change version in this mod to make it work on 1.2.5 or it will be critical to the whole mod ?

Re: Global Announcements - 1.0.5

Does this work with 1.2.5?

Re: Global Announcements - 1.0.5

probably, why don't you try and see? chances are all mod 1.2+ will work with 1.2.5 (obviously there may be slight changes in line numbers etc)

Re: Global Announcements - 1.0.5

Connorhd wrote:

probably, why don't you try and see?

Dude---you have a really pissy attitude today. Why don't you go f*** yourself? I won't be back. It was a simple question is all. And to think I was liking this place.

Re: Global Announcements - 1.0.5

almost_there wrote:
Connorhd wrote:

probably, why don't you try and see?

Dude---you have a really pissy attitude today. Why don't you go f*** yourself? I won't be back. It was a simple question is all. And to think I was liking this place.

calm down I don't think he meant to be a smart ass.