News:

Wondering if this will always be free?  See why free is better.

Main Menu

Global Announcements

Started by JayBachatero, August 15, 2006, 02:39:18 PM

Previous topic - Next topic

mikekearn

If you do not have everything exactly default, then you may have to edit the code yourself. I ended up doing this for a custom theme I am using. Check here for information on how to do that. Since it works, you know that you've installed it correctly, and you just need to modify your theme to display the GA section right.

atomico

how can i give the possibility to reply at announce as sticky post?

seficar

i dont have

   // Create the button set...
   $normal_buttons = array(


in my MessageIndex.template.php

where should i post the code for custom theme?

Sudhakar Arjunan

I have a doubt, could we able to update the Global Post.

If so will this have two threads in it, says latest in top and first in bottom.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Cal O'Shaw

Hello,

This is a really nice MOD but I did run into two things, one a bit of information, the other appears to be a bug.

Information clarification:
It might be helpful to include in the description for this MOD that a permission is added in Admin CP -> Permissions for each member group to be able to manage Global Announcements (The Moderator group does not appear to have that permission as a selectable choice).

Bug:
What I had been hoping to do is create a series of Global Announcements that would remain queued up but disabled until needed (planned system outage, etc).  I had tested a Global Announcement in a few boards (which is a wonderful option, grazie mille) and then unchecked the "enable Global Announcement" box for that announcement.  I as an Admin was surprised to see the Global Announcement was still visible and readable.  One of my Global Moderators also saw it, but when she tried to open it, she got this message:

"An Error Has Occurred!
The id you entered is not valid or it does not exist."

We're using 1.1.5 and the default theme.  It should also be noted that I had not given Global Moderators permission to administer Global Announcements (not realising there was such a permission).  Even so, I suspect regular members would encounter the same problem because they most certainly will not be given such permission.


Would it be possible to investigate this and determine if the problem is mine (in assuming the "enable" checkbox would control the Global Announcement section appearing on an Index page and showing the Global Announcement) or in the MOD?

Grazie,

Cal

hairul

Quote from: Vinspire on August 16, 2006, 11:46:17 AM
Quote from: SurfExcelerator.com on August 15, 2006, 02:41:11 PM
Have any screenshots available?

I am posting this screenshot on behalf of Jay :)

The admin CP interface

[nofollow]

This is how it look like in the board

[nofollow]

Thank again to Jay for creating such a great mod :)


Refer to 2nd picture, How u make divider for Pinned Topic & Normal Topic?
What MOD its is?

Cal O'Shaw

Hello,

Sorry if I sound like I'm finding fault, as I really do like this MOD and have it running.  Thank you very much for taking the time to create it.

I like having the Global Announcement showing up on all or a subset of boards, but I was surprised it did NOT show up on the main Index page.  I would have thought it would be there if one selects "All boards", so that people would see it as soon as they logged in.

Would it be possible to have it on the main Index Page as well?

Grazie,

Cal

foobs

For people who don't have --

   // Create the button set...
   $normal_buttons = array(


-- in their theme so they don't know where to place the code, I put mine after this --


if (!empty($options['show_board_desc']) && $context['description'] != '')
{
echo '
<table width="100%" cellpadding="6" cellspacing="0" border="0" class="tborder" style="margin-bottom: 1ex;">
<tr>
<td class="catbg" width="100%" height="24">
<span class="smalltext">', $context['description'], '</span>
</td>
</tr>
</table>';
}


And it worked fine.

Leadfoot

I've scrolled thru most of this thread and have not found any thing similar to what my problem is. My apologies if it's here and I missed it.

Two days ago one of our admins setup a new GA. He selected the option to send an e-mail to the members. When he did not receive an e-mail himself he assumed that it didn't work and tried it again. Altogether he tried it five times. Some of us - like me - received all five of those e-mails. Some only received two of them, and others did not receive any of them. The Receive forum announcements and important notifications by email option within each member's profile didn't make a difference. I know of several members who have that turned on and they did not receive the notifications.

We currently only have about 800 members. Could it be that our e-mail server can't handle trying to send something to that many recipients at one time? It should be able to handle that and more. I'm just at a loss to explain this.

Leadfoot

I have some new info to add. Just found out that when he was sending those GA's it would get to around 20% complete and then stop. Would that be something within SMF or a fault within the e-mail server?

Adish - (F.L.A.M.E.R)


This is what the error comes up when i click on the announcement in my forum.

Not Acceptable

An appropriate representation of the requested resource /index.php could not be found on this server.
Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at hackerzden.com Port 80

Please let me know what the problem is. Thank you.

PaK

In $themedir/MessageIndex.template.php line:

                                        <td colspan="7" class="titlebg">Global Announcements</td>

Should look like

                                        <td colspan="7" class="titlebg">',$txt['ga'],'</td>


And in for example Moddifications.enlgish.php there should be $txt['ga']

This mod is pretty cool but hard to use in localizeed (polish for example) boards.

Adish - (F.L.A.M.E.R)

Quote from: PaK on August 23, 2008, 05:17:55 AM
In $themedir/MessageIndex.template.php line:

                                        <td colspan="7" class="titlebg">Global Announcements</td>

Should look like

                                        <td colspan="7" class="titlebg">',$txt['ga'],'</td>


And in for example Moddifications.enlgish.php there should be $txt['ga']

This mod is pretty cool but hard to use in localizeed (polish for example) boards.

Was that for me ? Well if it was or wasnt.. it didnt fix my problem.

Yigal

How do I make the Global Announcements Modification appear in the Main Index of the forum?
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

Adish - (F.L.A.M.E.R)

#494
When i installed the package it gave me these errors:-


2: fclose(): supplied argument is not a valid stream resource
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1908

2: fopen(/home/goldysun/public_html/Themes/default/languages/Errors.english.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1901

2: fclose(): supplied argument is not a valid stream resource
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1908

2: fopen(/home/goldysun/public_html/Themes/default/languages/ManagePermissions.english.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1901

2: fclose(): supplied argument is not a valid stream resource
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1908

2: fopen(/home/goldysun/public_html/Themes/default/languages/Help.english.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1901

2: fclose(): supplied argument is not a valid stream resource
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1908

2: fopen(/home/goldysun/public_html/Themes/default/MessageIndex.template.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1901

2: fclose(): supplied argument is not a valid stream resource
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1908

2: fopen(/home/goldysun/public_html/Sources/ManagePermissions.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1901

2: fclose(): supplied argument is not a valid stream resource
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1908

2: fopen(/home/goldysun/public_html/Sources/Who.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1901

2: fclose(): supplied argument is not a valid stream resource
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1908

2: fopen(/home/goldysun/public_html/Sources/ManageNews.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1901

2: fclose(): supplied argument is not a valid stream resource
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1908

2: fopen(/home/goldysun/public_html/Themes/default/languages/Errors.english.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1901

2: fclose(): supplied argument is not a valid stream resource
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1908

2: fopen(/home/goldysun/public_html/Themes/default/languages/ManagePermissions.english.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1901

2: fclose(): supplied argument is not a valid stream resource
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1908

2: fopen(/home/goldysun/public_html/Themes/default/languages/Help.english.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1901

2: fclose(): supplied argument is not a valid stream resource
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1908

2: fopen(/home/goldysun/public_html/Themes/default/MessageIndex.template.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1901

2: fclose(): supplied argument is not a valid stream resource
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1908

2: fopen(/home/goldysun/public_html/Sources/ManagePermissions.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1901

2: fclose(): supplied argument is not a valid stream resource
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1908

2: fopen(/home/goldysun/public_html/Sources/Who.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1901

2: fclose(): supplied argument is not a valid stream resource
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1908

2: fopen(/home/goldysun/public_html/Sources/ManageNews.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/goldysun/public_html/Sources/Subs-Package.php
Line: 1901


And these errors filled up 2 pages of the error log.

Its all caused on this path:-
http://goldysun.com/index.php?action=packages;sa=install;package=GlobalAnnouncements_1-0_Final.tar.gz

Instead of these things, the mod is working and is showing properly, i havnt checked it properly yet. Please inform me about the side effects or the edits which may have not been done due to these error messages.

What shall be the solution ?

Please let me know.
Thank you.

AlenNS

Is this mod made for SMF 2.0 Beta 3.1 Public?

bfeo

#496
How can I remove the excessive icon?

It is redundant and it causes the tables not to be aligned with the main threads.

Images attached to illustrate below.



Also, I would like to just set the global announcement to redirect to a thread of my choice.  The current method looks more like a personal message, and people cannot reply.  And because I'd probably need to post a topic for the announcement anyway, it might as well just redirect.

bfeo


InternetMafia

Any plans on making this mod 1.1.6 compatible
Its better to be dead and cool than alive and uncool.


Advertisement: