Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: JayBachatero on August 15, 2006, 02:39:18 PM

Title: Global Announcements
Post by: JayBachatero on August 15, 2006, 02:39:18 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=419)
Rate this Mod (http://mods.simplemachines.org/index.php?action=review;sa=add;mod=419)

Features
+ Log Who's Online Actions.
+ BBC and Smileys.
+ Status indicator to admin page to indicated if mod is disabled or not.
+ Ability to quick enable/disable Global Announcement.
+ Ability to send a newsletter for Global Announcement.
+ Added spellcheck support.
+ Added support for Admin Modification Menu Section (http://mods.simplemachines.org/index.php?mod=405) mod.
+ Setting to set the default order.
+ UTF-8 support
+ Print support
+ Preview the announcement before it's made.

Legend
! Bug fixes
+ Feature addition

Changelog
Version 1.0
! Fixed bug with preview leaving Subject and boards behind. (GlobalAnnouncements.php, GlobalAnnouncements.template.php)
! Fixed bug with $settings var being overwritten and causing the install to give a white page. (ga_install.php)

Version 0.4
! Cleaned up query on MessageIndex to work with the new sorting method. (install.xml)
+ Added the ability to preview the Global Announcement before you submit it. (GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php, language entries)
+ Added credits page (GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php, language entries)

Version 0.3
! $modSettings and $settings variables were not in the global scope causing spellcheck support to be disabled. (GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php)
! Hidden form for spellcheck was missing (GlobalAnnouncementsAdmin.template.php)
! If the id of the GA entered is not valid output an error. (GlobalAnnouncements.php)
! Make sure that the number of vies is actually counted and not replaced by 1 (GlobalAnnouncements.pgp)
+ Added a new settings page (GlobalAnnouncementsAdmin.php, GlobalAnnouncements.template.php)
+ Added language entries for changes above.
+ UTF-8 support has been added. (GlobalAnnouncementsAdmin.php)
+ Added print page. (GlobalAnnouncements.php, GlobalAnnouncements.template.php)
+ Added setting to set the default order (This is for the default order for entries that do not have an order) (GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php)
+ Added support for Admin Modification Menu Section mod.  (install.xml - Subs.php)
! Fixed issue with the ALTER TABLE query. (install.php)
! Added missing apostrophe for query. (GlobalAnnouncementsAdmin.php)
! Fixed undefined index: admin_areas_other error. (install.xml - Subs.php)

Version 0.2
+ Added entries for Who's Online. (Who.php, Modifications.english.php)
+ Added BBC and Smileys to template. (Subs-GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php, GlobalAnnouncementsAdmin.php)
+ Added status indicator to admin page to indicated if mod is disabled or not. (GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php)
+ Added ability to quick enable/disable Global Announcement. (GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php)
+ Added ability to send a newsletter for Global Announcement. (ManageNews.php, GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php)
+ Added spellcheck support. (GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php)
+ Added a "preview" link.  This will link to the actual announcement.  The preview feature is still not in. (GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php)
! Fixed bug with the JS confirm box. (GlobalAnnouncementsAdmin.template.php)
! Fixed the issue with the column size. (GlobalAnnouncements.template.php)
! Changed the search possition to add the $context['allow-admin']. (install.xml)
! Don't show the Global Announcements template is there are none. (GlobalAnnouncements.template.php)


Add to custom theme

<edit file>
$themedir/MessageIndex.template.php
</edit file>
<search for>
// Create the button set...
$normal_buttons = array(
</search for>
<add before>
// Global Announcements...
if (isset($context['globalAnnouncements']) && count($context['globalAnnouncements']) != 0)
{
echo '
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr>
<td colspan="7" class="titlebg">Global Announcements</td>
<tr>
<tr>
<td class="catbg3" width="9%" colspan="2"></td>
<td class="catbg3">', $txt[70], '</td>
<td class="catbg3" width="14%">', $txt[109], '</td>
<td class="catbg3" width="4%" align="center">', $txt[110], '</td>
<td class="catbg3" width="4%" align="center">', $txt[301], '</td>
<td class="catbg3" width="22%">Time</td>
</tr>';

// Loop through the Global Announcements
foreach ($context['globalAnnouncements'] as $globalAnnouncement)
{
echo '
<tr class="windowbg2">
<td align="center">
<img src="', $settings['images_url'], '/post/' .$globalAnnouncement['ga']['icon']. '.gif" alt="" />
</td>
<td align="center">
<img src="', $settings['images_url'], '/post/exclamation.gif" alt="" />
</td>
<td ' ,$globalAnnouncement['ga']['enabled'] == 0 ? 'style="background-color: #e9e9e9; color: #8d8d8d;"' : 'class="windowbg"', '>
<a href="' ,$globalAnnouncement['ga']['href'], '" >', $globalAnnouncement['ga']['subject'], '</a>
</td>
<td>
', $globalAnnouncement['member']['link'], '
</td>
<td align="center" class="windowbg">
--
</td>
<td align="center" class="windowbg">
', $globalAnnouncement['ga']['views'], '
</td>
<td>
', $globalAnnouncement['ga']['time'], '
</td>
</tr>';
}

echo '
</table>
</div><br />';
}
</add before>
Title: Re: Global Announcements
Post by: PrizeLive.com on August 15, 2006, 02:41:11 PM
Have any screenshots available?
Title: Re: Global Announcements
Post by: Assistance on August 16, 2006, 06:42:29 AM
it doesnt use custom Announcement Icons


"This is the order in which the Global Announcement will display in. Leave blank to use default sorting method."
thats a great feature for sure
ty
Title: Re: Global Announcements
Post by: deadpoeticstar on August 16, 2006, 08:47:27 AM
Possibly rewrite it so its on the menu side with packages and newsletters placing it between News and Newsletters and Packages
Title: Re: Global Announcements
Post by: JayBachatero on August 16, 2006, 11:03:52 AM
Quote from: SurfExcelerator.com on August 15, 2006, 02:41:11 PM
Have any screenshots available?
No no screenshots.

Quote from: Assistance on August 16, 2006, 06:42:29 AM
it doesnt use custom Announcement Icons
You mean that the icon selection doesn't work?

Quote from: deadpoeticstar on August 16, 2006, 08:47:27 AM
Possibly rewrite it so its on the menu side with packages and newsletters placing it between News and Newsletters and Packages
The reason as to why I did it this way is becuase you can give moderators and other members the ability to post announcements.
Title: Re: Global Announcements
Post by: deadpoeticstar on August 16, 2006, 11:12:00 AM
hmmmm not a real fan of something like letting the users post announcements
Title: Re: Global Announcements
Post by: 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

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg216.imageshack.us%2Fimg216%2F9049%2Fgbakp5.th.jpg&hash=ca61c52227c4c790d54eed298bbef53a53a1c4ab) (http://img216.imageshack.us/my.php?image=gbakp5.jpg)

This is how it look like in the board

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg216.imageshack.us%2Fimg216%2F3372%2Fgba2zm0.th.jpg&hash=4ac1abc50ac38df50d5bff25e23753d17dad05a7) (http://img216.imageshack.us/my.php?image=gba2zm0.jpg)

Thank again to Jay for creating such a great mod :)
Title: Re: Global Announcements
Post by: JayBachatero on August 16, 2006, 12:04:05 PM
Quote from: deadpoeticstar on August 16, 2006, 11:12:00 AM
hmmmm not a real fan of something like letting the users post announcements
Well I made a separate permission for it instead of just tying it to just admins.

Thanks Vinspire for the screen shots.  I'll see if I can make some for the default theme as well.
Title: Re: Global Announcements
Post by: deadpoeticstar on August 16, 2006, 02:03:14 PM
its cool i mean all of our reasons aren't the same so do what you think is right
Title: Re: Global Announcements
Post by: JayBachatero on August 16, 2006, 02:17:59 PM
If you want to put it on that location I can tell you what yo do.  It's a small simple change.
Title: Re: Global Announcements
Post by: HighlanderICT on August 16, 2006, 04:32:04 PM
Great mod, BUT ... I would prefer to have a menu entry somewhere in my admin panel - this doesnt appear to add that anywhere ... any ideas how to do that ?

(I have the admin modification menu installed if that helps)
Title: Re: Global Announcements
Post by: Søren Bjerg on August 16, 2006, 04:42:24 PM
A "Mods" section was added to my administration bar, with a link to the administration area of this modification, below the "Maintenance" section when I installed it... and I don't even have that other modification installed 8).
Title: Re: Global Announcements
Post by: HecKel on August 16, 2006, 05:41:24 PM
I don't known if do you remember the problem in my forum, but now I known that the server does have PHP 5.0, is this an issue?

HecKel
Title: Re: Global Announcements
Post by: qtime on August 16, 2006, 05:42:16 PM
thx great mod!!!!
A very good tool, to avoid posting stickies in many boards with the same text!
Title: Re: Global Announcements
Post by: L.G.S on August 16, 2006, 06:23:08 PM
Cool mod, but how could I have it UNDER the page numbers?
(Just above the forum topics themselves)
Title: Re: Global Announcements
Post by: JayBachatero on August 16, 2006, 10:10:34 PM
Quote from: HighlanderICT on August 16, 2006, 04:32:04 PM
Great mod, BUT ... I would prefer to have a menu entry somewhere in my admin panel - this doesnt appear to add that anywhere ... any ideas how to do that ?

(I have the admin modification menu installed if that helps)
It should be the last option there.  Also the Admin Modification Menu is optional.  What I did was TLM wrote a mod that it would support my mod and his mod since both mods add "Mod" category to the menu so this mod just makes it into one section if the mod is installed.

Quote from: HecKel on August 16, 2006, 05:41:24 PM
I don't known if do you remember the problem in my forum, but now I known that the server does have PHP 5.0, is this an issue?

HecKel
Umm I don't remember.  Can you refresh my mind?

Quote from: L.G.S on August 16, 2006, 06:23:08 PM
Cool mod, but how could I have it UNDER the page numbers?
(Just above the forum topics themselves)
That was my first approach but if a board doesn't have post it wont show it and it would take some modification to show it.  I just rather chose to show it separately.
Title: Re: Global Announcements
Post by: HecKel on August 16, 2006, 11:30:03 PM
I gave you an admin account on my forum and you tried to install your mod, but you can (like me) so this is you last pm that you sent to me

Quote from: Jay The Code MonkeyIt seems like something went haywire.  Ask your host if they have made changes to PHP recently.

So, now I known that my server hasn't yet PHP 5.0...

HecKel
Title: Re: Global Announcements
Post by: JayBachatero on August 16, 2006, 11:32:01 PM
Ohhhhhh.  That.  Well it was doing this for every mod.  You can give it a shot now.
Title: Re: Global Announcements
Post by: Assistance on August 17, 2006, 02:24:12 AM
about the icons

in 1.1RC2 you can have custom post icons
like the thumbs up, standard, lamp, etc, etc

well I dont have those, as I have custom icons that I have set through the Smileys and Message Icons section.

the list of icons shows the default icons that is shipped with SMF


its not a huge concern for me, as I just uploaded new icons with the same name as the default, but for others and I am sure you want your mod to be on ^^
Title: Re: Global Announcements
Post by: JayBachatero on August 17, 2006, 02:38:42 AM
I was looking into this but it becomes a pain to support it sine the message icons can be for specific boards and so on.
Title: Re: Global Announcements
Post by: L.G.S on August 18, 2006, 03:51:56 PM
Hey, I know you said you didn't intend to put a link into the admin panel to get to the mod, but I'm having real trouble just trying to remember the link for it.

I have the Admin Modifications menu mod installed and was wondering if you could tell me the code to install the link there please?
Title: Re: Global Announcements
Post by: Assistance on August 18, 2006, 07:21:38 PM
the link is the very last one on the left side
atleast it is for me
Title: Re: Global Announcements
Post by: L.G.S on August 18, 2006, 07:37:37 PM
What is the link please?
Title: Re: Global Announcements
Post by: Assistance on August 18, 2006, 07:41:45 PM
action=globalAnnouncementsAdmin
Title: Re: Global Announcements
Post by: L.G.S on August 18, 2006, 07:46:05 PM
Thankyou.

Could ya show me a prt scr of where the link is for you please?
Title: Re: Global Announcements
Post by: Assistance on August 18, 2006, 07:49:57 PM
could you speak english?
Title: Re: Global Announcements
Post by: L.G.S on August 18, 2006, 07:55:17 PM
Could you insult me after I do something wrong?

Look on your keyboard, prt scr is a button..
Title: Re: Global Announcements
Post by: Assistance on August 18, 2006, 07:59:22 PM
no sorry its not
Print Scrn is


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.dwphotoshop.com%2Fphotoshop%2Fscreenshot%2F4%2520copy.jpg&hash=36a8c002ebd54013b1d0a86da4526b4c40ddbce0)



just look at your admins cp
and look at the left side, at the very bottom of ALL the links on the LEFT side
is
Mods
Global Announcements

that is what I have, no need for picture books

sorry for my ignorance
Title: Re: Global Announcements
Post by: SleePy on August 18, 2006, 09:17:54 PM
Great work Jay

Heres some Images I took while testing it on one of my smf test sites

Main Screen:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg237.imageshack.us%2Fimg237%2F8171%2Fgamaintv3.th.jpg&hash=6a16d9205c2806861444e212048b83948f8d0935) (http://img237.imageshack.us/img237/8171/gamaintv3.jpg)

Edit/Add Global Announcement
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg92.imageshack.us%2Fimg92%2F2854%2Fgaeditaddob4.th.jpg&hash=87ccf9779a1ad4af8a8e42fdae91472e30a9a070) (http://img92.imageshack.us/img92/2854/gaeditaddob4.jpg)

Edit/Add Global Announcement Picture 2
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg92.imageshack.us%2Fimg92%2F2008%2Fgaeditadd2tv3.th.jpg&hash=e6e48fd16c652e6435ac7fd2392dd72485b586f9) (http://img92.imageshack.us/img92/2008/gaeditadd2tv3.jpg)

Global Announcement Settings:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg237.imageshack.us%2Fimg237%2F1684%2Fgasettingsla5.th.jpg&hash=d86d5a24fa15dee4a132d0bfdc404f4eee6b9b6b) (http://img237.imageshack.us/img237/1684/gasettingsla5.jpg)

MessageIndex Display:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg237.imageshack.us%2Fimg237%2F1760%2Fgamessageindexhf1.th.jpg&hash=2d53510d7336e0419ea4013b0c69207eb1b71627) (http://img237.imageshack.us/img237/1760/gamessageindexhf1.jpg)

Display:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg237.imageshack.us%2Fimg237%2F2039%2Fgaviewposttc4.th.jpg&hash=ffe4801c4293f9e5a3905f29d485d16cce6610b8) (http://img237.imageshack.us/img237/2039/gaviewposttc4.jpg)
Title: Re: Global Announcements
Post by: JayBachatero on August 18, 2006, 11:14:06 PM
Quote from: L.G.S on August 18, 2006, 03:51:56 PM
Hey, I know you said you didn't intend to put a link into the admin panel to get to the mod, but I'm having real trouble just trying to remember the link for it.

I have the Admin Modifications menu mod installed and was wondering if you could tell me the code to install the link there please?

Meh I dont remember saying that I didn't intend to add the link.  It should be there.  Check for errors in error log.

Thanks for the screen shots Sleepy.
Title: Re: Global Announcements
Post by: Almeyric on August 19, 2006, 05:24:34 AM
Hello,

it's a vrey nice mod.

Is it envisaged to be able to put a topic announces some in the future versions ? (sorry form y bad english, i'm a french)

Is a French version possible ?

Thanks.
Title: Re: Global Announcements
Post by: L.G.S on August 19, 2006, 05:55:59 AM
Quote from: Jay The Code Monkey on August 18, 2006, 11:14:06 PM
Quote from: L.G.S on August 18, 2006, 03:51:56 PM
Hey, I know you said you didn't intend to put a link into the admin panel to get to the mod, but I'm having real trouble just trying to remember the link for it.

I have the Admin Modifications menu mod installed and was wondering if you could tell me the code to install the link there please?

Meh I dont remember saying that I didn't intend to add the link.  It should be there.  Check for errors in error log.

Thanks for the screen shots Sleepy.

sorry for misreading you then. However under my mods panel it is empty
Title: Re: Global Announcements
Post by: JayBachatero on August 19, 2006, 12:41:31 PM
Almeyric you mean like Super Sticky?

L.G.S can you email me your Subs.php?
Title: Re: Global Announcements
Post by: PrizeLive.com on August 19, 2006, 12:59:23 PM
Very nice mod..

Few questions though..

How can I make it bold, sticky, and have a darker background color like the normal "Sticky" has...

Also... is there anyway members can reply to a global announcement??
Title: Re: Global Announcements
Post by: JayBachatero on August 19, 2006, 01:09:43 PM
Edit the MessageIndex.template.php
find

<td ' ,$globalAnnouncement['ga']['enabled'] == 0 ? 'style="background-color: #e9e9e9; color: #8d8d8d;"' : 'class="windowbg"', '>
<a href="' ,$globalAnnouncement['ga']['href'], '" >', $globalAnnouncement['ga']['subject'], '</a>
</td>


Code ( replace) Select

<td ' ,$globalAnnouncement['ga']['enabled'] == 0 ? 'style="background-color: #e9e9e9; color: #8d8d8d;"' : 'class="windowbg3"', '>
<a href="' ,$globalAnnouncement['ga']['href'], '" >', $globalAnnouncement['ga']['subject'], '</a>
</td>
Title: Re: Global Announcements
Post by: PrizeLive.com on August 19, 2006, 01:17:15 PM
Cool thanks...

Anyway to add the "sticky" symbol?
Title: Re: Global Announcements
Post by: Almeyric on August 19, 2006, 01:25:15 PM
Quote from: Jay The Code Monkey on August 19, 2006, 12:41:31 PM
Almeyric you mean like Super Sticky?


I'm not sure to have understood you well.

But I would like to know if in a feature version, it will be possible to transform a simple topic into Announce.
Title: Re: Global Announcements
Post by: L.G.S on August 19, 2006, 01:33:06 PM
edit: I have sent it to your email ;)
Title: Re: Global Announcements
Post by: JayBachatero on August 19, 2006, 01:51:14 PM
Quote from: Almeyric on August 19, 2006, 01:25:15 PM
Quote from: Jay The Code Monkey on August 19, 2006, 12:41:31 PM
Almeyric you mean like Super Sticky?


I'm not sure to have understood you well.

But I would like to know if in a feature version, it will be possible to transform a simple topic into Announce.
That would tbe the Super Sticky mod.  I'm going to look into it in the future.

L.G.S I'll look into it now.
EDIT: LGS it looks good to me.  Can you provide me with an admin account on the forum?
Title: Re: Global Announcements
Post by: JayBachatero on August 19, 2006, 01:56:56 PM
Surf use this

<td ' ,$globalAnnouncement['ga']['enabled'] == 0 ? 'style="background-color: #e9e9e9; color: #8d8d8d;"' : 'class="windowbg3"', '>
<img src="' . $settings['images_url'] . '/icons/show_sticky.gif" align="right" alt="" style="margin: 0;" />
<a href="' ,$globalAnnouncement['ga']['href'], '" >', $globalAnnouncement['ga']['subject'], '</a>
</td>
Title: Re: Global Announcements
Post by: PrizeLive.com on August 19, 2006, 02:10:07 PM
Thanks Jay!!

Your the man!!!
Title: Re: Global Announcements
Post by: Vinspire on August 19, 2006, 02:38:51 PM
Quote from: Jay The Code Monkey on August 19, 2006, 01:56:56 PM
Surf use this

<td ' ,$globalAnnouncement['ga']['enabled'] == 0 ? 'style="background-color: #e9e9e9; color: #8d8d8d;"' : 'class="windowbg3"', '>
<img src="' . $settings['images_url'] . '/icons/show_sticky.gif" align="right" alt="" style="margin: 0;" />
<a href="' ,$globalAnnouncement['ga']['href'], '" >', $globalAnnouncement['ga']['subject'], '</a>
</td>


Thanks Jay. I've edited it to this too ... Looking different  ;D
Title: Re: Global Announcements
Post by: L.G.S on August 19, 2006, 02:40:11 PM
Shall I just screen print it? If that doesn't help I will make the account for you

http://img319.imageshack.us/img319/1432/adminpm9.jpg
Title: Re: Global Announcements
Post by: JayBachatero on August 19, 2006, 02:44:31 PM
Ummm LGS it's there just that you are missing the language string for that theme.  Edit Modifications.english.php and add the language strings for your theme.


//Global Announcements adminIndex text strings.
$txt['global_announcements_admin'] = 'Global Announcements';
$txt['global_announcements_mods'] = 'Mods';
$txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the <a href="' . $scripturl . '?action=globalAnnouncementsAdmin">Global Announcements</a>.';
$txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement';
Title: Re: Global Announcements
Post by: L.G.S on August 19, 2006, 04:05:44 PM
My theme relies on the default languages theme so I don't think it could be that, because I could view the page itself with all the words on it
Title: Re: Global Announcements
Post by: JayBachatero on August 19, 2006, 10:57:13 PM
Umm that theme has a custom Modifications.english.php file.  Edit it.
Title: Re: Global Announcements
Post by: Vinspire on August 20, 2006, 12:35:55 AM
Quote from: L.G.S on August 19, 2006, 04:05:44 PM
My theme relies on the default languages theme so I don't think it could be that, because I could view the page itself with all the words on it

Please follow what Jay told you to do so L.G.S ... If not ur problem would not be solve. If there isn't such a file in ur helios theme languages folder. create one called "modifications.english.php" then put in

//Global Announcements adminIndex text strings.
$txt['global_announcements_admin'] = 'Global Announcements';
$txt['global_announcements_mods'] = 'Mods';
$txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the <a href="' . $scripturl . '?action=globalAnnouncementsAdmin">Global Announcements</a>.';
$txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement';
Title: Re: Global Announcements
Post by: L.G.S on August 20, 2006, 06:05:08 AM
Quote from: Jay The Code Monkey on August 19, 2006, 10:57:13 PM
Umm that theme has a custom Modifications.english.php file.  Edit it.

No it doesn't, it doesn't even come with a languages folder.


Quote from: Vinspire on August 20, 2006, 12:35:55 AM
Quote from: L.G.S on August 19, 2006, 04:05:44 PM
My theme relies on the default languages theme so I don't think it could be that, because I could view the page itself with all the words on it

Please follow what Jay told you to do so L.G.S ... If not ur problem would not be solve. If there isn't such a file in ur helios theme languages folder. create one called "modifications.english.php" then put in

//Global Announcements adminIndex text strings.
$txt['global_announcements_admin'] = 'Global Announcements';
$txt['global_announcements_mods'] = 'Mods';
$txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the <a href="' . $scripturl . '?action=globalAnnouncementsAdmin">Global Announcements</a>.';
$txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement';


I'm using Aa New Damage, not Helios.
I don't exactly want to create the file because then any modifications made in the package manager I will have to make on the custom theme as well
Title: Re: Global Announcements
Post by: Assistance on August 20, 2006, 06:55:40 AM
how does your board function with out a language?
Title: Re: Global Announcements
Post by: L.G.S on August 20, 2006, 08:06:29 AM
I said my custom theme doesn't have languages, not the entire board.

If the custom theme has no languages then it uses the default ones, that's how my board is functioning with them
Title: Re: Global Announcements
Post by: JayBachatero on August 20, 2006, 11:37:29 AM
Switch to the default theme and check if the language strings load there.
Title: Re: Global Announcements
Post by: L.G.S on August 20, 2006, 12:34:57 PM
Nope, I tried that and same as custom theme
Title: Re: Global Announcements
Post by: JayBachatero on August 20, 2006, 12:52:27 PM
Ok edit Modifications.english.php for your theme and add the language strings.
Title: Re: Global Announcements
Post by: L.G.S on August 20, 2006, 12:56:32 PM
They are already there.

Remind me again where the link itself is supposed to appear? Remember I am referring to the link to modify announcements?
Title: Re: Global Announcements
Post by: JayBachatero on August 20, 2006, 12:58:32 PM
Can you send me a test Admin account?
Title: Re: Global Announcements
Post by: SleePy on August 21, 2006, 12:21:35 PM
Hey Jay,

It would be a cool feature to do a Name override. So instead of my Name I can put like Admin or Another Users name..
Of course things like post count would not be able to display but thats ok...
Maybe have it act like a guest user?
Title: Re: Global Announcements
Post by: JayBachatero on August 21, 2006, 12:47:27 PM
Well for now this mod is feature frozen unless a bug appears.  I have a whole list of other mods to make so I need the time.
Title: Re: Global Announcements
Post by: SleePy on August 21, 2006, 12:54:15 PM
ahh.. dang.. ok..

going to go mess with it and see how I can do this myself then..
Thinking I just need to add a field into the database for it. Then add add a override check box with a field to put a custom user name. And then when it submits it sets id member to 0 and sets username.

Thanks though. Was hoping to get an official release from you..

--Edit--
lol.. I like the feature you added for people who change the id to 0 :) needs a better vid though.
Title: Re: Global Announcements
Post by: JayBachatero on August 21, 2006, 01:39:14 PM
You can just edit the template I believe and change the ID_MEMBER.  Or source code.

???  change id to 0?
Title: Re: Global Announcements
Post by: HecKel on August 21, 2006, 04:07:43 PM
Hi!

Finally I installed this mod :D

Some questions/ideas:

Title: Re: Global Announcements
Post by: JayBachatero on August 21, 2006, 05:24:20 PM
Yea if you have the permission to manage global announcements you can see disabled announcements.

Umm never thought about that feature.  I'll look into it in the future.

Scartch that.  Only admins can look at disabled ga in message index.  Minor error there since it's supposed to look into the permissions.
Title: Re: Global Announcements
Post by: HecKel on August 22, 2006, 09:40:28 AM
This Mod is compatible with RC3?

HecKel
Title: Re: Global Announcements
Post by: JayBachatero on August 22, 2006, 01:34:56 PM
Yep.  It's more compatible with RC3 than RC2 :P.
Title: Re: Global Announcements
Post by: Zelnen on August 22, 2006, 11:53:33 PM
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

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg216.imageshack.us%2Fimg216%2F9049%2Fgbakp5.th.jpg&hash=ca61c52227c4c790d54eed298bbef53a53a1c4ab) (http://img216.imageshack.us/my.php?image=gbakp5.jpg)

This is how it look like in the board

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg216.imageshack.us%2Fimg216%2F3372%2Fgba2zm0.th.jpg&hash=4ac1abc50ac38df50d5bff25e23753d17dad05a7) (http://img216.imageshack.us/my.php?image=gba2zm0.jpg)

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

Looks really nice, i'm just downloading.
Title: Re: Global Announcements
Post by: Crisis85 on August 24, 2006, 10:54:28 PM
I get this error when trying to add a new announcement (the only option that I see?).

Fatal error: Call to undefined function: cache_get_data() in /home/skylow22/public_html/Sources/Subs-GlobalAnnouncementsAdmin.php on line 57

All the window shows are Announcement Icon, Subject, and Boards. There is no "add announcement" button or anything.

How do I fix this?
Title: Re: Global Announcements
Post by: JayBachatero on August 24, 2006, 11:51:59 PM
Seems like you are not using 1.1.  Need to use SMF 1.1 RC2 or RC3.
Title: Re: Global Announcements
Post by: ametzler on August 25, 2006, 11:52:05 AM
Has anyone got this to work with the Amber theme?  I am using RC1.1 RC3.  If so what do I need to do to get it to work?  Thanks for advice!!

Adam
Title: Re: Global Announcements
Post by: L.G.S on August 25, 2006, 12:02:23 PM
Quote from: Jay The Code Monkey on August 20, 2006, 12:58:32 PM
Can you send me a test Admin account?

Thanks for tryin to help me Jay, after upgrading to RC3 and installing the mod the link showed.
Title: Re: Global Announcements
Post by: JayBachatero on August 25, 2006, 02:27:24 PM
Quote from: meldog on August 25, 2006, 11:52:05 AM
Has anyone got this to work with the Amber theme?  I am using RC1.1 RC3.  If so what do I need to do to get it to work?  Thanks for advice!!

Adam
You need to edit Display.template.php to make this work with Amber Theme.

LGS glad to hear it's working fine now.
Title: Re: Global Announcements
Post by: ametzler on August 25, 2006, 02:52:14 PM
I was looking through the mod files.  What do I have to add in or change in the Display.template.php.  Thanks again for the help!!
Title: Re: Global Announcements
Post by: JayBachatero on August 25, 2006, 10:12:09 PM
Add this to your MessageIndex.template.php file.


// Global Announcements...
if (isset($context['globalAnnouncements']) && count($context['globalAnnouncements']) != 0)
{
echo '
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr>
<td colspan="7" class="titlebg">Global Announcements</td>
<tr>
<tr>
<td class="catbg3" width="9%" colspan="2"></td>
<td class="catbg3">', $txt[70], '</td>
<td class="catbg3" width="14%">', $txt[109], '</td>
<td class="catbg3" width="4%" align="center">', $txt[110], '</td>
<td class="catbg3" width="4%" align="center">', $txt[301], '</td>
<td class="catbg3" width="22%">Time</td>
</tr>';

// Loop through the Global Announcements
foreach ($context['globalAnnouncements'] as $globalAnnouncement)
{
echo '
<tr class="windowbg2">
<td align="center">
<img src="', $settings['images_url'], '/post/' .$globalAnnouncement['ga']['icon']. '.gif" alt="" />
</td>
<td align="center">
<img src="', $settings['images_url'], '/post/exclamation.gif" alt="" />
</td>
<td ' ,$globalAnnouncement['ga']['enabled'] == 0 ? 'style="background-color: #e9e9e9; color: #8d8d8d;"' : 'class="windowbg"', '>
<a href="' ,$globalAnnouncement['ga']['href'], '" >', $globalAnnouncement['ga']['subject'], '</a>
</td>
<td>
', $globalAnnouncement['member']['link'], '
</td>
<td align="center" class="windowbg">
--
</td>
<td align="center" class="windowbg">
', $globalAnnouncement['ga']['views'], '
</td>
<td>
', $globalAnnouncement['ga']['time'], '
</td>
</tr>';
}

echo '
</table>
</div><br />';
}
Title: Re: Global Announcements
Post by: ghostfreak on August 28, 2006, 07:45:18 AM
I installed this mod and now I get this message when I click on a board:

Parse error: parse error, unexpected $, expecting ')' in /home/rockcoll/public_html/board/Sources/MessageIndex.php on line 690


Help please!
Title: Re: Global Announcements
Post by: JayBachatero on August 28, 2006, 12:31:11 PM
^^^ Fixed.
Title: Re: Global Announcements
Post by: S1L1C0N on August 29, 2006, 11:48:48 AM
I'd really love it if mods could turn any post into a Global Announcement and if I could enable this on custom themes =(
Title: Re: Global Announcements
Post by: JayBachatero on August 29, 2006, 12:25:11 PM
To add this to a custom theme


<edit file>
$themedir/MessageIndex.template.php
</edit file>
<search for>
// Create the button set...
$normal_buttons = array(
</search for>
<add before>
// Global Announcements...
if (isset($context['globalAnnouncements']) && count($context['globalAnnouncements']) != 0)
{
echo '
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr>
<td colspan="7" class="titlebg">Global Announcements</td>
<tr>
<tr>
<td class="catbg3" width="9%" colspan="2"></td>
<td class="catbg3">', $txt[70], '</td>
<td class="catbg3" width="14%">', $txt[109], '</td>
<td class="catbg3" width="4%" align="center">', $txt[110], '</td>
<td class="catbg3" width="4%" align="center">', $txt[301], '</td>
<td class="catbg3" width="22%">Time</td>
</tr>';

// Loop through the Global Announcements
foreach ($context['globalAnnouncements'] as $globalAnnouncement)
{
echo '
<tr class="windowbg2">
<td align="center">
<img src="', $settings['images_url'], '/post/' .$globalAnnouncement['ga']['icon']. '.gif" alt="" />
</td>
<td align="center">
<img src="', $settings['images_url'], '/post/exclamation.gif" alt="" />
</td>
<td ' ,$globalAnnouncement['ga']['enabled'] == 0 ? 'style="background-color: #e9e9e9; color: #8d8d8d;"' : 'class="windowbg"', '>
<a href="' ,$globalAnnouncement['ga']['href'], '" >', $globalAnnouncement['ga']['subject'], '</a>
</td>
<td>
', $globalAnnouncement['member']['link'], '
</td>
<td align="center" class="windowbg">
--
</td>
<td align="center" class="windowbg">
', $globalAnnouncement['ga']['views'], '
</td>
<td>
', $globalAnnouncement['ga']['time'], '
</td>
</tr>';
}

echo '
</table>
</div><br />';
}
</add before>


About the post thing.  That would be a super sticky.  Something that I'm going to be looking into.
Title: Re: Global Announcements
Post by: niblem on August 29, 2006, 03:27:52 PM
I am trying to install Global Announcements Mod 1.0 Final on my website via the package manager.

Everything is okay until I click "Apply Mod" then I get this error:
QuoteInstalling this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Sources/MessageIndex.php    Test successful
3.    Execute Modification    ./Sources/ManageNews.php    Test successful
4.    Execute Modification    ./Sources/Who.php    Test successful
5.    Execute Modification    ./Sources/Subs.php    Test successful
6.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
7.    Execute Modification    ./Themes/default/index.template.php    Test successful
8.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
11.    Execute Modification    ./Themes/default/languages/ManagePermissions.english.php    Test successful
12.    Execute Modification    ./Themes/default/languages/Errors.english.php    Test successful
13.    Extract File    ./Sources/GlobalAnnouncementsAdmin.php    
14.    Extract File    ./Themes/default/GlobalAnnouncementsAdmin.template.php    
15.    Extract File    ./Themes/default/languages/GlobalAnnouncementsAdmin.english.php    
16.    Extract File    ./Sources/GlobalAnnouncements.php    
17.    Extract File    ./Themes/default/GlobalAnnouncements.template.php    
18.    Extract File    ./Sources/Subs-GlobalAnnouncementsAdmin.php    
19.    Execute Code    ga_install.php

I am using the default theme and not sure where to go from here.  Thanks for the help in advance.
Title: Re: Global Announcements
Post by: JayBachatero on August 29, 2006, 05:28:45 PM
You can install the mod and just edit that file manually.  Seems like a conflict with another mod.
Title: Re: Global Announcements
Post by: S1L1C0N on September 01, 2006, 02:19:34 PM
Very cool, as soon as we can turn regular posts into global announcements i'm all over this! Subscribed.  Also I couldnt find ANYTHING anywhere on Supersticky, any links?
Title: Re: Global Announcements
Post by: codenaught on September 01, 2006, 02:29:55 PM
Quote from: S1L1C0N on September 01, 2006, 02:19:34 PM
Very cool, as soon as we can turn regular posts into global announcements i'm all over this! Subscribed.  Also I couldnt find ANYTHING anywhere on Supersticky, any links?
There was a mod that did this awhile back, but the mod author left this place and removed his mod. I am not sure if it is supported, but I remember it was at one point after he left SMF. I think Jay is looking into releasing a separate mod for allowing normal topics to become global announcements. We even discussed myself taking a look into doing this. I think it would be great if it was completely compatable with this mod, so I will see how this mod is set up, and see what needs to be done. :)
Title: Re: Global Announcements
Post by: S1L1C0N on September 01, 2006, 02:34:31 PM
That would be a godsend on SMF =) Now if someone could just come up with my other dream.....a mod to list all recent THREADS (not posts) in the past X number of days.....


e
Title: Re: Global Announcements
Post by: L.G.S on September 01, 2006, 09:10:17 PM
Someone posted a tip and trick to show the last 10 topics made ^^
Title: Re: Global Announcements
Post by: S1L1C0N on September 01, 2006, 09:50:04 PM
I searched high and low and cannot find anything, any chance you might know where!?
Title: Re: Global Announcements
Post by: JayBachatero on September 02, 2006, 12:07:17 AM
Actually the super sticky is much easier to do than global announcements.  Super stickies display in ALL the boards so it's just a matter or making the # for suser sticky to another number.  Right now I believe stickies are #2 in the db and locked is 1.  If aka doesn't look into it I'll do it when I get time.
Title: Re: Global Announcements
Post by: S1L1C0N on September 02, 2006, 09:56:27 AM
Dude that would absolutely ROCK!
Title: Re: Global Announcements
Post by: chase_m on September 16, 2006, 08:51:22 PM

Hi, Jay.  'Love the Mod. :)

But how would I get this working with the Pn-Pn theme?  The text you said to search for, in regards to custom themes, is no where to be found.

Thanks in advance.   :-*
Title: Re: Global Announcements
Post by: JayBachatero on September 17, 2006, 12:36:19 AM
Can you post the MessageIndex.template.php file?
Title: Re: Global Announcements
Post by: chase_m on September 17, 2006, 05:07:32 AM

http://download.yousendit.com/CFC8EC9F5FB0B748

Here ya' go.  :D
Title: Re: Global Announcements
Post by: occ1 on September 22, 2006, 12:06:31 AM
Quote from: chase_m on September 16, 2006, 08:51:22 PM

Hi, Jay.  'Love the Mod. :)

But how would I get this working with the Pn-Pn theme?  The text you said to search for, in regards to custom themes, is no where to be found.

Thanks in advance.   :-*

I had the same problem but what I wound up doing was making the changes to the MessageIndex.template.php file in my DEFAULT theme and copying it over to my custom theme. It worked! I hope this helps  :D
Title: Re: Global Announcements
Post by: denislici on October 03, 2006, 05:34:53 PM

how can i activate the option that users can reply to the announcements?
Title: Re: Global Announcements
Post by: JayBachatero on October 03, 2006, 05:51:10 PM
This mod does not support that.  That is the super sticky mod.
Title: Re: Global Announcements
Post by: denislici on October 03, 2006, 06:05:17 PM

hmm ok thanx...
Title: Re: Global Announcements
Post by: MarkoWeb on October 05, 2006, 07:00:28 AM
when the Super Sticky mod will be available?
Title: Re: Global Announcements
Post by: JayBachatero on October 05, 2006, 08:19:43 AM
When I get the time.
Title: Re: Global Announcements
Post by: xtremecruiser on October 05, 2006, 02:34:31 PM
A truly great mod, now if only all the guys that made Themes would make them so all the mods would work on them :-X
Title: Re: Global Announcements
Post by: Vinspire on October 05, 2006, 02:39:22 PM
Quote from: xtremecruiser on October 05, 2006, 02:34:31 PM
A truly great mod, now if only all the guys that made Themes would make them so all the mods would work on them :-X

You can manually install the mods thou :)
Title: Re: Global Announcements
Post by: busymouse on October 14, 2006, 05:56:37 AM
Quote from: JayBachatero on August 15, 2006, 02:39:18 PM...+ Ability to send a newsletter for Global Announcement. ...

Hello Jay,
it's a great Mod which works fine. One question: Where can I find the function to send a newsletter? I can't see it anywhere.

I'm sorry for my bad English.

:) Regards busymouse
Title: Re: Global Announcements
Post by: JayBachatero on October 14, 2006, 12:09:04 PM
It's a checkbox when you add a new announcement.
Title: Re: Global Announcements
Post by: busymouse on October 14, 2006, 04:01:10 PM
Thx - I think now I've found. It's this, isn't it? I'd never looked at the bottom.  :-[

QuoteSend an announcement email to members?

Another question: My English isn't the best and babelfish sometimes is very funny  ;D . What is the meaning of this? Are you able to describe the function?:

QuoteThis is the order in which the Global Announcement will display in. Leave blank to use default sorting method.

busymouse

Title: Re: Global Announcements
Post by: JayBachatero on October 14, 2006, 04:15:44 PM
Basically what is does is.  It you have 10 announcements.  Those announcements are sorted by the time that they were added.  Now if you add another announcement but you want that announcement to be the first one, you enter the position that you want it to appear there.
Title: Re: Global Announcements
Post by: busymouse on October 14, 2006, 06:02:12 PM
Thx now I understand.  :D

And it's right that it is not available who shall get the newsletter?

busymouse
Title: Re: Global Announcements
Post by: twistmystic on October 18, 2006, 03:37:22 PM
Hello Jay, i just installed your mod and i didnt find anything in this topic bout my problem. Here it is:

i installed your mod successfully and it all works. Except for downloaded themes. It works for default and it shows the Announcements and the Modifications section, but on the WoW theme i used the code:

//Global Announcements adminIndex text strings.
$txt['global_announcements_admin'] = 'Global Announcements';
$txt['global_announcements_mods'] = 'Mods';
$txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the <a href="' . $scripturl . '?action=globalAnnouncementsAdmin">Global Announcements</a>.';
$txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement';


and it showed the Modifications section and the Global Announcements, only thing it doesnt show is the ANnouncements on the forums. When i go to one of my threads It doesnt show the Global Announcements anywhere. But in Admin panel it shows the global announcements section.

Any ideas? If you already posted a solution, im sorry i must of misunderstood or i missed it.
Title: Re: Global Announcements
Post by: JayBachatero on October 18, 2006, 04:02:44 PM
You need to edit the MessageIndex.template.php file for the custom theme.
Title: Re: Global Announcements
Post by: twistmystic on October 18, 2006, 04:53:15 PM
Sorry. Im new to SMF so idk what i should edit with what.
Title: Re: Global Announcements
Post by: JayBachatero on October 18, 2006, 05:01:39 PM
http://www.simplemachines.org/community/index.php?topic=106295.msg705600#msg705600
Title: Re: Global Announcements
Post by: twistmystic on October 18, 2006, 05:14:23 PM
So i add this code to the messageindex.template.php ? or do i remove something and replace it?
Title: Re: Global Announcements
Post by: JayBachatero on October 18, 2006, 05:34:38 PM
You add it.  Look at it.  It says to open the file for your theme and find the line.  After that it says add before.
Title: Re: Global Announcements
Post by: twistmystic on October 18, 2006, 07:11:24 PM
What if i were to tell you i dont got the line

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


I dont got that line at all. Here is the MessageIndex.Template.PHP  (http://m-i.soulsocietygodz.com/Downloader.html)
(note: I uploaded this to my server, it is the one im using for World of Warcraft theme!)


EDIT: Is every theme supose to have a Display.template.php? Cus mine does.
Title: Re: Global Announcements
Post by: JayBachatero on October 18, 2006, 08:52:49 PM
No the only file that a theme *needs* to have is index.template.php then the rest are optional.  Also I cant download the file.
Title: Re: Global Announcements
Post by: Robbins on October 19, 2006, 08:39:23 PM
Hey Jay... I registered here to ask you a few questions...     I run a programming community at www.undug.net and have SMF forums.  I've seen your announce mod, and want it quite a bit. Its for an older version than 1.0.8 if i've seen correctly, and it doesn't work right when i try and install it via the plugin manager. Is there anyway i can get it on my 1.0.8 forum with a non-default theme now? or do i have to wait until you put out another script... which reminds me, what scripts of this sort are currently in development, if any?   Thanks alot man, i appreciate the help.

Nick Robbins
Undug Net Admin
Title: Re: Global Announcements
Post by: JayBachatero on October 19, 2006, 10:29:06 PM
Well none of my mods are written for 1.0.8.  With a few tweaks it might work.  Why not use 1.1 RC3?
Title: Re: Global Announcements
Post by: twistmystic on October 19, 2006, 11:31:04 PM
Did you rightclick the link then save as?
Title: Re: Global Announcements
Post by: JayBachatero on October 19, 2006, 11:34:22 PM
You can't right click and save as for a php file.
Title: Re: Global Announcements
Post by: twistmystic on October 19, 2006, 11:36:50 PM
i Do it all the time. Im using firefox... let me check with IExplorer. Dont work in IExplorer, if you got Firefox then try that. But if that dont work tehn tell me where to send the file so you can recieve it or ill upload it somewhere.
Title: Re: Global Announcements
Post by: JayBachatero on October 19, 2006, 11:38:34 PM
Email it to [email protected].  The reason as to why you cant download it is because the file its being parsed.
Title: Re: Global Announcements
Post by: twistmystic on October 19, 2006, 11:43:41 PM
Ok sent.
Title: Re: Global Announcements
Post by: JayBachatero on October 19, 2006, 11:57:09 PM
Here you go.
Title: Re: Global Announcements
Post by: twistmystic on October 20, 2006, 12:12:13 AM
what did you do to it?
Title: Re: Global Announcements
Post by: pbcnx on October 20, 2006, 12:15:12 AM
Quote from: Robbins on October 19, 2006, 08:39:23 PMI've seen your announce mod, and want it quite a bit. Its for an older version than 1.0.8 if i've seen correctly, and it doesn't work right when i try and install it via the plugin manager. Is there anyway i can get it on my 1.0.8 forum with a non-default theme now? or do i have to wait until you put out another script?

Yup, is there a mod for a 1.0.8? Thanks in advance :D
Title: Re: Global Announcements
Post by: JayBachatero on October 20, 2006, 12:35:22 AM
twistmystic:  I added the code so that it shows announcements on that theme.

pbcnx: I don't see myself backporting this mod any time soon.  Specially now that 1.1 final is around the corner.
Title: Re: Global Announcements
Post by: Robbins on October 20, 2006, 06:10:00 AM
jay, can't you just tweak it a little for 1.0.8...  dude, its like the only mod i want really bad, but i'm not that great with php.  please,  i would like it to work for 1.0.8.  isnt there anything you can do?
Title: Re: Global Announcements
Post by: JayBachatero on October 20, 2006, 08:01:23 AM
At the moment I don't really have the time to do it.  Have you looked into 1.1 RC3?
Title: Re: Global Announcements
Post by: Mamoun on October 21, 2006, 07:10:29 AM
Hii Jay, Great mod :)

But it seems that it doesn't support arabic, Writing announcements in Arabic won't display it correctly, Instead it display it as ???

Anyway to fix it?
Title: Re: Global Announcements
Post by: JayBachatero on October 21, 2006, 02:14:53 PM
Umm I thought I had fixed the UTF-8 stuff.  What version of SMF are you running?
Title: Re: Global Announcements
Post by: Mamoun on October 21, 2006, 07:15:58 PM
RC3, With a UTF8-ed database and dilbermc theme.
Title: Re: Global Announcements
Post by: JayBachatero on October 22, 2006, 12:48:51 AM
I'll see if I get some time and look into it.  I thought that I had solved this problem with UTF-8.  I know that there was a problen with Chinese characters I believe.  I fixed that.
Title: Re: Global Announcements
Post by: Vinspire on October 23, 2006, 12:46:43 AM
Jay, what does this code suppose to do ? I've manually install it in the helios theme but couldn't notice any different.

index.template.php

if ($context['current_action'] == 'globalAnnouncementsAdmin')
$current_action = 'admin';


add after

if ($context['current_action'] == 'search2')
$current_action = 'search';
Title: Re: Global Announcements
Post by: JayBachatero on October 23, 2006, 01:06:14 AM
That is used to highlight the admin tab when managing announcements.
Title: Re: Global Announcements
Post by: Vinspire on October 23, 2006, 01:32:18 AM
Quote from: JayBachatero on October 23, 2006, 01:06:14 AM
That is used to highlight the admin tab when managing announcements.

Hmm .... Still don't get it. Is it possible to provide a screenshot of it ? :)
Title: Re: Global Announcements
Post by: JayBachatero on October 23, 2006, 08:10:50 AM
Ok you see when you in the admin panel and the admin tab it "active".  That's part of it.  It will highlight the admin tab.  This is for SMF Default theme and themes that use tabs.
Title: Re: Global Announcements
Post by: Vinspire on October 23, 2006, 11:52:43 PM
Quote from: JayBachatero on October 23, 2006, 08:10:50 AM
Ok you see when you in the admin panel and the admin tab it "active".  That's part of it.  It will highlight the admin tab.  This is for SMF Default theme and themes that use tabs.

Is this what you mean ? :)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg131.imageshack.us%2Fimg131%2F1600%2Fgmodfm7.png&hash=f3459861f00956321bc8bfd1f7895871587b9acf) (http://imageshack.us)
Title: Re: Global Announcements
Post by: JayBachatero on October 23, 2006, 11:59:58 PM
No.  Change to the default theme and the tab will be on the admin link.
Title: Re: Global Announcements
Post by: [MaxX] on December 03, 2006, 02:07:08 AM
Nice mod :)

I'm eagerly waiting for the super sticky mod too :)
Title: Re: Global Announcements
Post by: Krysia on December 03, 2006, 08:02:43 PM
I've installed it manually, and keep getting this error when I try to access a forum that has a Global Announcement in it:

Parse error: parse error, unexpected ';', expecting ')' in .../Themes/jtlff/MessageIndex.template.php on line 171

162:
163: // Create the button set...
164: $normal_buttons = array(
165: // Create the button set...
166: $normal_buttons = array(
167: 'markread' => array('text' => 'mark_read_short', 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=board;board=' . $context['current_board'] . '.0;sesc=' . $context['session_id']),
168: 'notify' => array('test' => 'can_mark_notify', 'text' => 125, 'image' => 'notify.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_board'] : $txt['notification_enable_board']) . '\');"', 'url' => $scripturl . '?action=notifyboard;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';board=' . $context['current_board'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),
169: 'new_topic' => array('test' => 'can_post_new', 'text' => 'smf258', 'image' => 'new_topic.gif', 'lang' => true, 'url' => $scripturl . '?action=post;board=' . $context['current_board'] . '.0'),
170: 'post_poll' => array('test' => 'can_post_poll', 'text' => 'smf20', 'image' => 'new_poll.gif', 'lang' => true, 'url' => $scripturl . '?action=post;board=' . $context['current_board'] . '.0;poll'),
171: );
172:
173: // They can only mark read if they are logged in and it's enabled!


It worked long enough for me to create the announcement, and I was able to view it before (after the mod install). Then it wasn't showing up in the Admin CP, so I manually installed the rest, got that part working, but now the Template Parse Error.

Any ideas?

Thank you! :)
Title: Re: Global Announcements
Post by: Krysia on December 03, 2006, 08:06:27 PM
I figured it out.

Had an extra:

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


Just deleted one, and it works now.

Thank you anyway. Fab mod! :D
Title: Re: Global Announcements
Post by: S1L1C0N on December 07, 2006, 11:37:26 AM
Dying to have this installed but I do not have the:

   $normal_buttons = array(


line in my MessageIndex.Template.php file

Is there any other point of reference?  I'm using a custom theme, this is my file:

<?php
// Version: 1.1 RC2; MessageIndex

function template_main()
{
global $context$settings$options$scripturl$modSettings$txt;

echo '
<table width="100%" cellpadding="3" cellspacing="0">
<tr>
<td><a name="top"></a>'
theme_linktree(), '</td>';
if (!empty($settings['display_who_viewing']))
{
echo '
<td class="smalltext" align="right">'
;
if ($settings['display_who_viewing'] == 1)
echo count($context['view_members']), ' 'count($context['view_members']) == $txt['who_member'] : $txt[19];
else
echo empty($context['view_members_list']) ? '0 ' $txt[19] : implode(', '$context['view_members_list']) . ((empty($context['view_num_hidden']) or $context['can_moderate_forum']) ? '' ' (+ ' $context['view_num_hidden'] . ' ' $txt['hidden'] . ')');
echo $txt['who_and'], $context['view_num_guests'], ' '$context['view_num_guests'] == $txt['guest'] : $txt['guests'], $txt['who_viewing_board'], '</td>';
}
echo '
</tr>
</table>'
;

if (isset($context['boards']) && (!empty($options['show_children']) || $context['start'] == 0))
{
echo '
<div class="tborder" style="padding: 1px; margin-bottom: 2ex;"><table border="0" width="100%" cellspacing="1" cellpadding="5">
<tr class="titlebg">
<td colspan="4">'
$txt['parent_boards'], '</td>
</tr>'
;
foreach ($context['boards'] as $board)
{
echo '
<tr class="windowbg2">
<td class="windowbg" width="6%" align="center" valign="top"><a href="'
$scripturl'?action=unread;board='$board['id'], '.0">';

// Is this board itself new?
if ($board['new'])
echo '<img src="'$settings['images_url'], '/on.gif" alt="'$txt[333], '" title="'$txt[333], '" border="0" />';
// Is one of this board's children new, then?
elseif ($board['children_new'])
echo '<img src="'$settings['images_url'], '/on2.gif" alt="'$txt[333], '" title="'$txt[333], '" border="0" />';
// I guess it's not new at all.
else
echo '<img src="'$settings['images_url'], '/off.gif" alt="'$txt[334], '" title="'$txt[334], '" border="0" />';

echo '</a></td>
<td align="left">
<b><a href="'
$board['href'], '" name="b'$board['id'], '">'$board['name'], '</a></b><br />
'
$board['description'];

if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>'
count($board['moderators']) == $txt[298] : $txt[299], ': 'implode(', '$board['link_moderators']), '</i></div>';

if (!empty($board['children']))
{
$children = array();
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' $txt[330] . ': ' $child['topics'] . ', ' $txt[21] . ': ' $child['posts'] . ')">' $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' $child['link'] . '</b>' $child['link'];
}

echo '
<div style="padding-top: 1px;" class="smalltext"><i>'
$txt['parent_boards'], ': 'implode(', '$children), '</i></div>';
}

echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
'
$board['posts'], ' '$txt[21], ' '$txt['smf88'], '<br />
'
$board['topics'], ' '$txt[330], '
</span></td>
<td class="smalltext" valign="middle" width="22%">'
;

if (!empty($board['last_post']['id']))
echo '
'
$txt[22], ' '$txt[30], ' '$board['last_post']['time'], '<br />
'
$txt['smf88'], ' '$board['last_post']['link'], ' '$txt[525], ' '$board['last_post']['member']['link'];

echo '
</td>
</tr>'
;
}
echo '
</table></div>'
;
}

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>'
;
}

if (!$context['no_topic_listing'])
{
echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="margin-bottom: 1ex;">
<tr>
<td class="catbg" height="30">
<table cellpadding="3" cellspacing="0" width="100%">
<tr>
<td><b>'
$txt[139], ':</b> '$context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '<a href="#bot">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/go_down.gif" alt="' $txt['topbottom5'] . '" border="0" align="top" />' $txt['topbottom5']) . '</a>' '''</td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''" nowrap="nowrap" style="font-size: smaller;">'theme_show_buttons(), '</td>
</tr>
</table>
</td>
</tr>
</table>'
;

// If Quick Moderation is enabled start the form.
if (!empty($options['display_quick_mod']) && !empty($context['topics']))
echo '
<form action="'
$scripturl'?action=quickmod;board='$context['current_board'], '.'$context['start'], '" method="post" name="quickModForm" id="quickModForm" style="margin: 0;">';

echo '
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr class="titlebg">'
;

// Are there actually any topics to show?
if (!empty($context['topics']))
{
echo '
<td width="9%" colspan="2"></td>
<td><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=subject'$context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[70], $context['sort_by'] == 'subject' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>
<td width="14%"><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=starter'$context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[109], $context['sort_by'] == 'starter' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>
<td width="4%" align="center"><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=replies'$context['sort_by'] == 'replies' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[110], $context['sort_by'] == 'replies' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>
<td width="4%" align="center"><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=views'$context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[301], $context['sort_by'] == 'views' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>
<td width="24%"><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=last_post'$context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[111], $context['sort_by'] == 'last_post' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>';

// Show a "select all" box for quick moderation?
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
echo '
<td width="24" valign="middle" align="center">
<input type="checkbox" onclick="invertAll(this, this.form, \'topics[]\');" class="check" />
</td>'
;
// If it's on in "image" mode, don't show anything but the column.
elseif (!empty($options['display_quick_mod']))
echo '
<td width="4%" valign="middle" align="center"></td>'
;
}
// No topics.... just say, "sorry bub".
else
echo '
<td width="100%" colspan="7"><b>'
$txt[151], '</b></td>';

echo '
</tr>'
;

        
//For the stick/nonstick listings...
        
$stickybar false;
    $normalbar false;

foreach ($context['topics'] as $topic)
{
            if(
$topic['is_sticky'] && !$stickybar)
            {
                echo
'
                <tr class="windowbg2">
                    <td colspan="'
, empty($options['display_quick_mod']) ? '7' '8''"><b>IMPORTANT TOPICS</b></td></tr>';
    
$stickybar true;
            }
            else if(!
$topic['is_sticky'] && $stickybar && !$normalbar)
            {
                echo
'
                <tr class="windowbg2">
                    <td colspan="'
, empty($options['display_quick_mod']) ? '7' '8''"><b>Normal Topics</b></td></tr>';
                
$normalbar true;
            }

echo '
<tr class="windowbg2">
<td valign="middle" align="center" width="5%">
<img src="'
$settings['images_url'], '/topic/'$topic['class'], '.gif" alt="" />
</td>
<td valign="middle" align="center" width="4%">
<img src="'
$topic['first_post']['icon_url'], '" alt="" />
</td>
<td class="windowbg" valign="middle" '
, (!empty($topic['quick_mod']['remove']) ? 'id="topic_' $topic['first_post']['id'] . '" onmouseout="mouse_on_div = 0;" onmouseover="mouse_on_div = 1;" ondblclick="modify_topic(\'' $topic['id'] . '\', \'' $topic['first_post']['id'] . '\', \'' $context['session_id'] . '\');"' ''), '>
<span id="msg_' 
$topic['first_post']['id'] . '">'$topic['first_post']['link'], '</span>';

// Is this topic new? (assuming they are logged in!)
if ($topic['new'] && $context['user']['is_logged'])
echo '
<a href="'
$topic['new_href'], '" id="newicon' $topic['first_post']['id'] . '"><img src="'$settings['images_url'], '/'$context['user']['language'], '/new.gif" alt="'$txt[302], '" border="0" /></a>';

echo '
<span class="smalltext" id="pages' 
$topic['first_post']['id'] . '">'$topic['pages'], '</span>
</td>
<td valign="middle" width="14%">
'
$topic['first_post']['member']['link'], '
</td>
<td class="windowbg" valign="middle" width="4%" align="center">
'
$topic['replies'], '
</td>
<td class="windowbg" valign="middle" width="4%" align="center">
'
$topic['views'], '
</td>
<td class="smalltext" valign="middle" width="20%">
<a href="'
$topic['last_post']['href'], '"><img src="'$settings['images_url'], '/icons/last_post.gif" alt="'$txt[111], '" title="'$txt[111], '" border="0" style="float: right;" /></a>

'
$topic['last_post']['time'], '<br />
'
$txt[525], ' '$topic['last_post']['member']['link'], '
</td>'
;

// Show the quick moderation options?
if (!empty($options['display_quick_mod']))
{
echo '
<td class="windowbg" valign="middle" align="center" width="5%">'
;
if ($options['display_quick_mod'] == 1)
echo '
<input type="checkbox" name="topics[]" value="'
$topic['id'], '" class="check" />';
else
{
// Check permissions on each and show only the ones they are allowed to use.
if ($topic['quick_mod']['remove'])
echo '<a href="'$scripturl'?action=quickmod;board='$context['current_board'], '.'$context['start'], ';actions['$topic['id'], ']=remove;sesc='$context['session_id'], '" onclick="return confirm(\''$txt['quickmod_confirm'], '\');"><img src="'$settings['images_url'], '/icons/quick_remove.gif" alt="'$txt[63], '" title="'$txt[63], '" border="0" /></a>';
if ($topic['quick_mod']['lock'])
echo '<a href="'$scripturl'?action=quickmod;board='$context['current_board'], '.'$context['start'], ';actions['$topic['id'], ']=lock;sesc='$context['session_id'], '" onclick="return confirm(\''$txt['quickmod_confirm'], '\');"><img src="'$settings['images_url'], '/icons/quick_lock.gif" alt="'$txt['smf279'], '" title="'$txt['smf279'], '" border="0" /></a>';
if ($topic['quick_mod']['lock'] || $topic['quick_mod']['remove'])
echo '<br />';
if ($topic['quick_mod']['sticky'])
echo '<a href="'$scripturl'?action=quickmod;board='$context['current_board'], '.'$context['start'], ';actions['$topic['id'], ']=sticky;sesc='$context['session_id'], '" onclick="return confirm(\''$txt['quickmod_confirm'], '\');"><img src="'$settings['images_url'], '/icons/quick_sticky.gif"  alt="'$txt['smf277'], '" title="'$txt['smf277'], '" border="0" /></a>';
if ($topic['quick_mod']['move'])
echo '<a href="'$scripturl'?action=movetopic;board='$context['current_board'], '.'$context['start'], ';topic='$topic['id'], '.0"><img src="'$settings['images_url'], '/icons/quick_move.gif"  alt="'$txt[132], '" title="'$txt[132], '" border="0" /></a>';
}
echo '</td>';
}
echo '
</tr>'
;
}

if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == && !empty($context['topics']))
{
echo '
<tr class="titlebg">
<td colspan="8" align="right">
<select name="qaction"'
$context['can_move'] ? ' onchange="this.form.moveItTo.disabled = (this.options[this.selectedIndex].value != \'move\');"' '''>
<option value="">--------</option>
'
$context['can_remove'] ? '<option value="remove">' $txt['quick_mod_remove'] . '</option>' '''
'
$context['can_lock'] ? '<option value="lock">' $txt['quick_mod_lock'] . '</option>' '''
'
$context['can_sticky'] ? '<option value="sticky">' $txt['quick_mod_sticky'] . '</option>' '''
'
$context['can_move'] ? '<option value="move">' $txt['quick_mod_move'] . ': </option>' '''
'
$context['can_merge'] ? '<option value="merge">' $txt['quick_mod_merge'] . '</option>' '''
<option value="markread">'
$txt['quick_mod_markread'], '</option>
</select>'
;

if ($context['can_move'])
{
echo '
<select id="moveItTo" name="move_to" disabled="disabled">'
;
foreach ($context['jump_to'] as $category)
foreach ($category['boards'] as $board)
{
if (!$board['is_current'])
echo '
<option value="'
$board['id'], '"', !empty($board['selected']) ? ' selected="selected"' '''>'str_repeat('-'$board['child_level'] + 1), ' '$board['name'], '</option>';
}
echo '
</select>'
;
}

echo '
<input type="submit" value="'
$txt['quick_mod_go'], '" onclick="return this.form.qaction.value != \'\' &amp;&amp; confirm(\''$txt['quickmod_confirm'], '\');" />
</td>
</tr>'
;
}

echo '
</table>'
;

// Finish off the form - again, if Quick Moderation is being done with checkboxes. (1)
if (!empty($options['display_quick_mod']) && !empty($context['topics']))
echo '
<input type="hidden" name="sc" value="' 
$context['session_id'] . '" />
</form>'
;

echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="margin-top: 1ex;">
<tr>
<td class="catbg" width="100%" height="30">
<table cellpadding="3" cellspacing="0" width="100%">
<tr>
<td><a name="bot"></a><b>'
$txt[139], ':</b> '$context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '<a href="#top">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/go_up.gif" alt="' $txt['topbottom4'] . '" border="0" align="top" />' $txt['topbottom4']) . '</a>' '''</td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''" nowrap="nowrap" style="font-size: smaller;">'theme_show_buttons(), '</td>
</tr>
</table>
</td>
</tr>
</table>'
;
}

echo '
<table cellpadding="0" cellspacing="0" width="100%">'
;

// Show breadcrumbs at the bottom too?
if ($settings['linktree_inline'])
echo '
<tr>
<td colspan="3" valign="bottom">'
theme_linktree(), '<br /><br /></td>
</tr>'
;

echo '
<tr>'
;

if (!$context['no_topic_listing'])
echo '
<td class="smalltext" style="padding-top: 1ex;">'
, !empty($modSettings['enableParticipation']) ? '
<img src="' 
$settings['images_url'] . '/topic/my_normal_post.gif" alt="" align="middle" /> ' $txt['participation_caption'] . '<br />' '''
<img src="' 
$settings['images_url'] . '/topic/normal_post.gif" alt="" align="middle" /> ' $txt[457] . '<br />
<img src="' 
$settings['images_url'] . '/topic/hot_post.gif" alt="" align="middle" /> ' $txt[454] . '<br />
<img src="' 
$settings['images_url'] . '/topic/veryhot_post.gif" alt="" align="middle" /> ' $txt[455] . '
</td>
<td class="smalltext" valign="top" style="padding-top: 1ex;">
<img src="' 
$settings['images_url'] . '/topic/normal_post_locked.gif" alt="" align="middle" /> ' $txt[456] . '<br />' . ($modSettings['enableStickyTopics'] == '1' '
<img src="' 
$settings['images_url'] . '/topic/normal_post_sticky.gif" alt="" align="middle" /> ' $txt['smf96'] . '<br />' '') . ($modSettings['pollMode'] == '1' '
<img src="' 
$settings['images_url'] . '/topic/normal_poll.gif" alt="" align="middle" /> ' $txt['smf43'] : '') . '
</td>'
;

echo '
<td class="smalltext" align="'
, !$context['right_to_left'] ? 'right' 'left''" valign="middle">
<form action="'
$scripturl'" method="get">
<label for="jumpto">' 
$txt[160] . '</label>:
<select name="jumpto" id="jumpto" onchange="if (this.selectedIndex > 0 &amp;&amp; this.options[this.selectedIndex].value) window.location.href = smf_scripturl + this.options[this.selectedIndex].value.substr(smf_scripturl.indexOf(\'?\') == -1 || this.options[this.selectedIndex].value.substr(0, 1) != \'?\' ? 0 : 1);">
<option value="">' 
$txt[251] . ':</option>';

// Show each category - they all have an id, name, and the boards in them.
foreach ($context['jump_to'] as $category)
{
// Show the category name with a link to the category. (index.php#id)
echo '
<option value="" disabled="disabled">-----------------------------</option>
<option value="#'
$category['id'], '">'$category['name'], '</option>
<option value="" disabled="disabled">-----------------------------</option>'
;

/* Now go through each board - they all have:
id, name, child_level (how many parents they have, basically...), and is_current. (is this the current board?) */
foreach ($category['boards'] as $board)
{
// Show some more =='s if this is a child, so as to make it look nice.
echo '
<option value="?board='
$board['id'], '.0"'$board['is_current'] ? ' selected="selected"' '''> 'str_repeat('=='$board['child_level']), '=> '$board['name'], '</option>';
}
}

echo '
</select>&nbsp;
<input type="button" value="'
$txt[161], '" onclick="if (this.form.jumpto.options[this.form.jumpto.selectedIndex].value) window.location.href = \''$scripturl'\' + this.form.jumpto.options[this.form.jumpto.selectedIndex].value;" />
</form>
</td>
</tr>
</table>'
;
// Javascript for inline editing.
echo '
<script language="JavaScript" type="text/javascript" src="' 
$settings['default_theme_url'] . '/xml_board.js"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[

// Hide certain bits during topic edit.
hide_prefixes.push("pages", "newicon");

// Use it to detect when we\'ve stopped editing.
document.onmousedown = mouse_down;

var mouse_on_div;
function mouse_down(e)
{
if (in_edit_mode == 1 && mouse_on_div == 0)
modify_topic_save("'
$context['session_id'], '");
}

// For templating, shown when an inline edit is made.
function modify_topic_show_edit(subject)
{
// Just template the subject.
setInnerHTML(cur_subject_div, \'<input type="text" name="subject" value="\' + subject + \'" size="60" style="width: 99%;"  maxlength="80" /><input type="hidden" name="topic" value="\' + cur_topic_id + \'" /><input type="hidden" name="msg" value="\' + cur_msg_id.substr(4) + \'" />\');
}

// And the reverse for hiding it.
function modify_topic_hide_edit(subject)
{
// Re-template the subject!
setInnerHTML(cur_subject_div, \'<a href="'
$scripturl'?topic=\' + cur_topic_id + \'.0">\' + subject + \'</a>\');
}
// ]]></script>'
;
}

// Global Announcements...
if (isset($context['globalAnnouncements']) && count($context['globalAnnouncements']) != 0)
{
echo '
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' '''>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr>
<td colspan="7" class="titlebg">Global Announcements</td>
<tr>
<tr>
<td class="catbg3" width="9%" colspan="2"></td>
<td class="catbg3">'
$txt[70], '</td>
<td class="catbg3" width="14%">'
$txt[109], '</td>
<td class="catbg3" width="4%" align="center">'
$txt[110], '</td>
<td class="catbg3" width="4%" align="center">'
$txt[301], '</td>
<td class="catbg3" width="22%">Time</td>
</tr>'
;

// Loop through the Global Announcements
foreach ($context['globalAnnouncements'] as $globalAnnouncement)
{
echo '
<tr class="windowbg2">
<td align="center">
<img src="'
$settings['images_url'], '/post/' .$globalAnnouncement['ga']['icon']. '.gif" alt="" />
</td>
<td align="center">
<img src="'
$settings['images_url'], '/post/exclamation.gif" alt="" />
</td>
<td ' 
,$globalAnnouncement['ga']['enabled'] == 'style="background-color: #e9e9e9; color: #8d8d8d;"' 'class="windowbg"''>
<a href="' 
,$globalAnnouncement['ga']['href'], '" >'$globalAnnouncement['ga']['subject'], '</a>
</td>
<td>
'
$globalAnnouncement['member']['link'], '
</td>
<td align="center" class="windowbg">
--
</td>
<td align="center" class="windowbg">
'
$globalAnnouncement['ga']['views'], '
</td>
<td>
'
$globalAnnouncement['ga']['time'], '
</td>
</tr>'
;
}

echo '
</table>
</div><br />'
;
}

function 
theme_show_buttons()
{
global $context$settings$options$txt$scripturl;

$buttonArray = array();

// If they are logged in, and the mark read buttons are enabled..
if ($context['user']['is_logged'] && $settings['show_mark_read'])
$buttonArray[] = '<a href="' $scripturl '?action=markasread;sa=board;board=' $context['current_board'] . '.0;sesc=' $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/markread.gif" alt="' $txt[300] . '" border="0" />' $txt[300]) . '</a>';

// If the user has permission to show the notification button... ask them if they're sure, though.
if ($context['can_mark_notify'])
$buttonArray[] = '<a href="' $scripturl '?action=notifyboard;sa=' . ($context['is_marked_notify'] ? 'off' 'on') . ';board=' $context['current_board'] . '.' $context['start'] . ';sesc=' $context['session_id'] . '" onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_board'] : $txt['notification_enable_board']) . '\');">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/notify.gif" alt="' $txt[131] . '" border="0" />' $txt[131]) . '</a>';

// Are they allowed to post new topics?
if ($context['can_post_new'])
$buttonArray[] = '<a href="' $scripturl '?action=post;board=' $context['current_board'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/new_topic.gif" alt="' $txt[33] . '" border="0" />' $txt[33]) . '</a>';

// How about new polls, can the user post those?
if ($context['can_post_poll'])
$buttonArray[] = '<a href="' $scripturl '?action=post;board=' $context['current_board'] . '.0;poll">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/new_poll.gif" alt="' $txt['smf20'] . '" border="0" />' $txt['smf20']) . '</a>';

return implode($context['menu_separator'], $buttonArray);
}

?>

Title: Re: Global Announcements
Post by: JayBachatero on December 07, 2006, 01:13:16 PM
Add it before    if (!$context['no_topic_listing'])
Title: Re: Global Announcements
Post by: S1L1C0N on December 08, 2006, 01:41:21 PM
Fantastic, thank you VERY much for your help! Is there any way to have announcements also displayed above the board index?
Title: Re: Global Announcements
Post by: JayBachatero on December 08, 2006, 01:41:52 PM
Not w/o some modifications.
Title: Re: Global Announcements
Post by: S1L1C0N on December 08, 2006, 01:59:23 PM
Quote from: JayBachatero on December 08, 2006, 01:41:52 PM
Not w/o some modifications.

I can take direction well ;) minor or major?
Title: Re: Global Announcements
Post by: JayBachatero on December 08, 2006, 02:02:28 PM
Not really sure.  Shouldn't be to hard to do.
Title: Re: Global Announcements
Post by: shumilica on December 08, 2006, 06:28:38 PM
Thank you for this mod!
I installed it after I updated my forum from 1.1 RC3 to 1.1 ( I didn't have it when I used RC3) and it works fine, but in the error log appears this (this error is created only by me, when I navigate to the Global announcements tab):

/forum/index.php?action=globalAnnouncementsAdmin;sa=add

8: Undefined index: boards
Fişier: ...public_html/forum/Sources/GlobalAnnouncementsAdmin.php
Linie: 202

I went to the globalannouncementsadmin.php and i saw this in 202 line:
$context['preview_boards'] = $_POST['boards'];



I have to mention that I use just only one mod beside this one: Custom profile field mod.
I use the default theme and romanian language. (I did put the romanian language file for this mod in the default theme and modificate modification.romanian.php accordingly with xml file change instructions).

Thank you for your support!
Title: Re: Global Announcements
Post by: JayBachatero on December 08, 2006, 06:37:43 PM
I'll look into this problem and fix it.
Title: Re: Global Announcements
Post by: L.G.S on December 08, 2006, 07:52:37 PM
Hi Jay, is there any way to be able to have the Global Announcement as an option to be a URL from the title? I tried HTML tags but they didn't work :(

If I need to modify code, that would be alright :)
Title: Re: Global Announcements
Post by: JayBachatero on December 08, 2006, 08:09:58 PM
No there is no option to do this.
Title: Re: Global Announcements
Post by: Mortal159 on December 08, 2006, 08:19:39 PM
The "add to custom theme code"

where exactly does that go?
Title: Re: Global Announcements
Post by: JayBachatero on December 08, 2006, 08:23:36 PM
MessageIndex.template.php.
Title: Re: Global Announcements
Post by: anonim on December 08, 2006, 08:28:53 PM
the dwld file is GlobalAnnouncements_1-0_Final.tar.gz
should we understand that it actually works for 1.1?
Title: Re: Global Announcements
Post by: JayBachatero on December 08, 2006, 08:33:36 PM
I have it on one of my sites that is running 1.1 and it works w/o a problem.
Title: Re: Global Announcements
Post by: anonim on December 08, 2006, 08:36:14 PM
great, tks
Title: Re: Global Announcements
Post by: machaanz on December 09, 2006, 12:20:40 AM
Working great on 1.1 :)
Title: Re: Global Announcements
Post by: L.G.S on December 09, 2006, 06:37:31 AM
Quote from: JayBachatero on December 08, 2006, 08:09:58 PM
No there is no option to do this.

Yes I know but I'm asking what needs to be done to be able to do it?
Title: Re: Global Announcements
Post by: rockinaway on December 12, 2006, 12:53:07 PM
Update for 1.1?
Title: Re: Global Announcements
Post by: JayBachatero on December 12, 2006, 12:55:57 PM
This mod is 1.1 compatible.
Title: Re: Global Announcements
Post by: rockinaway on December 12, 2006, 12:57:14 PM
Ok :D
Title: Re: Global Announcements
Post by: drhamad on December 13, 2006, 06:50:59 PM
I might be missing it, but is there a way with this mod to make it just a regular post in a board, after I no longer want it globally announced?
Title: Re: Global Announcements
Post by: JayBachatero on December 13, 2006, 07:08:32 PM
Quote from: drhamad on December 13, 2006, 06:50:59 PM
I might be missing it, but is there a way with this mod to make it just a regular post in a board, after I no longer want it globally announced?
No there is no way to do this.
Title: Re: Global Announcements
Post by: drhamad on December 14, 2006, 08:49:46 AM
Ah damn.  This mod is much more polished than what we use on SMF1.0, but at the same time, I don't want to actually REMOVE posts when I no longer feel they're worth announcing.
Title: Re: Global Announcements
Post by: JayBachatero on December 14, 2006, 09:19:59 AM
It shouldn't be to hard to do this though.  Convert announcements to posts.
Title: Re: Global Announcements
Post by: Bulgarian on December 14, 2006, 01:03:10 PM
It seems that mod doesnt work with UTF-8 actually.
I manage cyrillic forums and posting in cyrillic results in this:

Quote??? ???? 2 ???????:
1. ????????? ?????? ???
2. ????? ???? ????, ?? ???? ??? ???? ?? ????????? ??? ?? ????????? ? ????????? ????????????. ????? ?????? ?? ? ? ???????? ?? ???? ??? ?? ??? ???? ??? !

There are only 2 rules:
1. Keep good tone !
2. Every post must be in english only or in bulgarian and translated in english. It will be a little bit difficult until we get used to, but there is no other way !

I use SMF 1.1 installed from scratch with UTF-8 support.
Hope you will fix that nice mod for use on non-english forums :)
Title: Re: Global Announcements
Post by: JayBachatero on December 14, 2006, 11:21:42 PM
Once I update this mod for 1.1 I will make it work with UTF-8 and drop support for 1.1 RC2.
Title: Re: Global Announcements
Post by: Mamoun on December 15, 2006, 12:11:57 PM
Aryan, Try this:
1- Go to phpmyadmin, And then your database, Click the globalannouncement column then click on operations on top and select collation : General utf8 sth like that.
2- Then do the same with the other global announcement column.
3- Open the first GA column, Click "structure", Then change the collation of the fields you found from latin to general utf8.
4- Do the same with the other column.

Done, That fixed my problems with the mod, Thanks goes to Jay of course :)
Title: Re: Global Announcements
Post by: Suby on December 16, 2006, 12:27:28 PM
This mod doesn't work on every theme I have  :'(

Suggestions?

I used the code, but some themes don't have Message.index.template.php.
Title: Re: Global Announcements
Post by: L.G.S on December 17, 2006, 11:32:56 AM
If some themes do not have messageindex.template.php, it doesn't matter because that means the theme reads from the default/file.php
Title: Re: Global Announcements
Post by: Suby on December 17, 2006, 02:32:56 PM
I discovered what was the problem. Themes were out of date  :D
Title: Re: Global Announcements
Post by: L.G.S on December 20, 2006, 03:39:47 PM
Hey Jay, is it possible to sort permissions out for this?

I am letting guests see my forums but not enter topics, but they can still enter g.announcements (which I really don't want them to)..
Title: Re: Global Announcements
Post by: JayBachatero on December 21, 2006, 09:28:46 AM
If they can't see any of the boards then they can't see the announcement.
Title: Re: Global Announcements
Post by: L.G.S on December 21, 2006, 10:01:07 AM
No the read topic permissions mod allows the guests to enter the boards but not read the posts. I do not want them to read the global announcements either ;)
Title: Re: Global Announcements
Post by: JayBachatero on December 21, 2006, 10:10:25 AM
I'll look into this then.  It's more of a conflict with the other mod.
Title: Re: Global Announcements
Post by: L.G.S on December 22, 2006, 05:45:48 PM
One more Q..

The breadcrumb, where can I change the size of the font because it says:

Ruthless Intent >> Global Announcements >> Forum Rules and Information

I want them to match size ???
Title: Re: Global Announcements
Post by: Vanterax on December 23, 2006, 01:29:10 PM
Is there something wrong with the GZ file in the mods section?  I can download, but it's always coming down as corrupted.  All the tools I used to open the archive claim it's corrupted.  Downloaded several times from different browser, same thing...
Title: Re: Global Announcements
Post by: JayBachatero on December 23, 2006, 01:32:03 PM
Quote from: L.G.S on December 22, 2006, 05:45:48 PM
One more Q..

The breadcrumb, where can I change the size of the font because it says:

Ruthless Intent >> Global Announcements >> Forum Rules and Information

I want them to match size ???
Edit the GlobalAnnouncements.template.php file.

Vanterax - We are looking into the gz error.
Title: Re: Global Announcements
Post by: edi67 on December 23, 2006, 06:25:50 PM
Quote from: Vanterax on December 23, 2006, 01:29:10 PM
Is there something wrong with the GZ file in the mods section?  I can download, but it's always coming down as corrupted.  All the tools I used to open the archive claim it's corrupted.  Downloaded several times from different browser, same thing...

same problem here
Title: Re: Global Announcements
Post by: Vanterax on December 27, 2006, 02:41:55 PM
Quote from: JayBachatero on December 23, 2006, 01:32:03 PM
Vanterax - We are looking into the gz error.

Any news on this?  It's still corrupted. :(
Title: Re: Global Announcements
Post by: drhamad on December 27, 2006, 03:08:11 PM
I don't know if there's a problem with the file on simplemachines.org or not - I downloaded it fine not long ago - but if you guys want to try from another site, I still have what I downloaded online here:

http://www.mazda3forums.com/Packages/GlobalAnnouncements_1-0_Final.tar.gz
Title: Re: Global Announcements
Post by: drhamad on December 27, 2006, 04:46:50 PM
OK someone explain to me, can I not make an existing thread into an announcement?  I need to Global Announce one of my threads on my board, but is there no way to do that?  Under 1.0 our Global Announce system could do that easily...
Title: Re: Global Announcements
Post by: Vanterax on December 28, 2006, 04:14:13 PM
Thanks drhamad.  Your link worked.
Title: Re: Global Announcements
Post by: Assistance on December 28, 2006, 04:38:30 PM
Announcement Icons

still cant use custom icons
Title: Re: Global Announcements
Post by: edi67 on December 29, 2006, 04:10:27 PM
perfectly work thx

Title: Global Announcements - Turkish translation
Post by: pheadrus on January 13, 2007, 08:27:32 AM
Here is my translated "GlobalAnnouncementsAdmin.turkish.php"  for TURKISH...


<?php
$context
['ga']['installed_version'] = '1.0';

$txt['ga']= '<center><b>DUYURULAR</b></center>';
$txt['ga_title'] = 'Duyurular - Yönetim';
$txt['ga_description'] = 'Buradan, seçtiğin başlıklarda duyuru yayınlanır.';

$txt['ga_empty'] = 'Halihazırda açık duyuru yok.  Eklemek için <a href="' .$scripturl'?action=globalAnnouncementsAdmin;sa=add">buraya</a> tıkla.';
$txt['ga_delete_confirm'] = 'Silmek istediğine emin misin?';
$txt['ga_change_status_confirm'] = 'Duyurunun statüsünü değiştirmek istediğine emin misin?';
$txt['ga_open_preview'] = 'Duyuruları yeni bir pencerede açsın mı?';

$txt['ga_add2'] = 'Ekle';
$txt['ga_edit'] = 'Düzenle';
$txt['ga_delete'] = 'Sil';
$txt['ga_save'] = 'Sakla';

//Add GA page
$txt['ga_add_title'] = 'Duyuru ekle';
$txt['ga_subject'] = 'Duyuru başlığı';
$txt['ga_boards'] = 'Duyuruların yer alacağı forum';
$txt['ga_boards_all'] = 'Tüm forumda';
$txt['ga_boards_desc'] = 'birden fazla başlık seçmek için klavyenin SHIFT veya CTRL tuşlarına bas ve öyle seç. Tüm başlıkları seçmek için <strong>SADECE</strong> "<em>Tüm Forumda</em>"\'ı seç.';
$txt['ga_body'] = 'Duyuru İçeriği';
$txt['ga_body_desc'] = 'Burada normal konulara yazar gibi butonları veya gülücükleri kullanabilirsiniz';
$txt['ga_enable'] = 'Duyuru yayınlansın mı?';
$txt['ga_options'] = 'Seçenekler';
$txt['ga_icon'] = 'Duyuru ikonu';
$txt['ga_count_views'] = 'Okuyanları saysın mı?';
$txt['ga_count_views_desc'] = '';
$txt['ga_email_members'] = 'Email olarak gönderilsin mi?';
$txt['ga_order'] = 'Sırala';
$txt['ga_order_desc'] = 'Varsayılan sıralama yöntemini kullanmak için olduğu şekilde bırakın.';

//Tabs
$txt['ga_main'] = 'Duyuruları Düzenle';
$txt['ga_add'] = 'Duyuru Ekle';
$txt['ga_settings'] = 'Ayarlar';

// GA Settings page
$txt['ga_settings2'] = 'Duyurular - Ayarlar';
$txt['ga_enable_global'] = 'Duyurular yayınlansın mı?';
$txt['ga_sort_by'] = 'Sırala:';
$txt['ga_sort_by_options'] = array(
=> 'Zaman',
=> 'Sıra No',
=> 'Başlık',
=> 'Bakanların sayısı',
);
$txt['ga_sort_direction'] = 'Sıralama yönü';
$txt['ga_sort_direction_options'] = array(
=> 'Artan',
=> 'Azalan',
);

//Errors
$txt['ga_error_missing_subject'] = 'Başlığı yazmayı unuttun. Geriye dönüp başlık yazman gerekiyor.';
$txt['ga_error_missing_boards'] = 'Hiç bir forum seçmemişsin.  En azından bir tane seçmen gerekiyor.';
$txt['ga_error_missing_body'] = 'Duyuru içeriği boş görünüyor. Geriye dönüp içerik eklemen gerekiyor.';
$txt['ga_error_delete_not_allowed'] = 'Ne yaptığını sanıyorsun??  Geriye dön!';
$txt['ga_error_edit_id'] = 'Geçerli bir ID yazmadın. Düzenlemen için geçerli bir ID girmen gerekiyor.';
$txt['ga_error_no_rows'] = 'Belirlediğin ID\'yle ilintili herhangi bir duyuruya rastlanmadı. Lütfen ID\'yi kontrol et.';
$txt['ga_error_query_array'] = 'Komik olduğunu mu sanıyorsun??  Özür dilerim dostum burda \'array\' fonksiyonu kullanamazsın. Geri dön!!! Geri sayım başladı....1...2...3.... BOOOOOM! Uç bakalım!';
$txt['ga_error_no_id'] = 'Girdiğin ID geçerli değil veya bulunmuyor.';
$txt['ga_error_not_allowed'] = 'Özür dilerim. Duyuruların görmeye iznin yok.';

// The champ is here
$txt['the_champ_is_here'] = 'Hey, anlaşılan küçük süprizlerimden birine ulaştın. Ne kazandın biliyor musun? Koca bir sıfır. Ama bakmaya devam et :P';

// Print Page
$txt['ga_by'] = 'Duyuruları yazan';

// Credits page
$txt['ga_credits'] = 'Hakkında';
$txt['ga_version'] = 'Kurulu Sürüm';
$txt['ga_current_version'] = 'Güncel Sürüm';
$txt['ga_upgrade'] = 'Görünüşe göre Duyurular aracının sürümü eskimiş. Güncellemen gerekiyor.';
$txt['ga_support'] = 'Duyurular- Bilgiler';
$txt['ga_thanks'] = 'Teşekkürler';
$txt['ga_thanks_details'] = ' bu aracı yazmamda ve test etmemde bana yardımcı olanlara. Düzensiz sırayla: Compuart, Gobalopper, Jeremy, Grudge, akabugeyes, ghostfreak, K_4_kelly, TLM, Bigguy, Pheadrus (Türkçe\'leştirme) :P  ';
?>




I have added my name to Special thanks part, if you dont remind  :-\ If you dont wanna the name be added there, pls let me know through PM  :D
Title: Re: Global Announcements
Post by: richiehale on January 15, 2007, 07:46:29 AM
8: Undefined index: global_announcements_mods
File: /home/daboroe/public_html/community/smf/Sources/Subs.php
Line: 2897

I've been getting this error reaccuring in the error log,can you help me out?
Title: Re: Global Announcements
Post by: ℓσяєиz on January 15, 2007, 09:41:46 AM
teşekürler power oldu :)
Title: Re: Global Announcements
Post by: JayBachatero on January 15, 2007, 04:44:24 PM
Missing language string from Modifications.english.php.
Title: Re: Global Announcements
Post by: richiehale on January 15, 2007, 06:27:47 PM
how do I fix it ? :(
Title: Re: Global Announcements
Post by: Farmacija on January 16, 2007, 04:53:17 AM
is this mod compatibile with smf 1.1.1?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg100.imageshack.us%2Fimg100%2F6461%2Fglobalmu4.th.jpg&hash=49eebdc440e2c9b63656166280cba679f7035415) (http://img100.imageshack.us/my.php?image=globalmu4.jpg)
Title: Re: Global Announcements
Post by: JayBachatero on January 16, 2007, 08:28:05 AM
On what step did it fail?
Title: Re: Global Announcements
Post by: Farmacija on January 17, 2007, 03:23:17 AM
when i try to install it from admin panel above message get appear... i tried several time and always i got the same error ...
Title: Re: Global Announcements
Post by: mysticalone on January 21, 2007, 09:13:50 PM
I'm getting errors when adding new announcements, or enabling.
The tables exist and all, but I believe the problem to be MySQL being in strict mode, but I'm not positive since I can't check until tomorrow
Database Error
Field 'modifiedTime' doesn't have a default value
File: C:\Server\Apache\htdocs\forums\Sources\GlobalAnnouncementsAdmin.php
Line: 270
Title: Re: Global Announcements
Post by: softtouch on January 22, 2007, 01:45:58 AM
I have installed Global Announcements V1.0, under SMF 1.1.1

After installing (no errors, no warnings), all seems to be ok.
I can modify the settings, do a preview of announcements, but soon I try to add an announcement, I get:

Database Error: Field 'modifiedTime' doesn't have a default value


If I manually edit the database and give this field a default value, I get:

Database Error: Field 'modifiedName' doesn't have a default value


Same, I manually give this field a default value, and get:

Database Error: Incorrect integer value: '' for column 'ID_BOARD' at row 1

...and so on.

Whats wrong?
Title: Re: Global Announcements
Post by: Tanix on January 23, 2007, 03:17:39 PM
Would it be possible to have a similar facility as the standard 'enable recycling' for topics and messages? That way, disabled global announcements could be kept in an archive board
Title: Re: Global Announcements
Post by: JayBachatero on January 23, 2007, 05:25:54 PM
Quote from: Farmacija on January 17, 2007, 03:23:17 AM
when i try to install it from admin panel above message get appear... i tried several time and always i got the same error ...
It should show the step that it failed on.

mysticalone and softtouch:  run this query in phpMyAdmin.

AlTER TABLE {$db_prefix}global_announcements
CHANGE COLUMN time time int(10) unsigned NOT NULL default '0',
CHANGE COLUMN modifiedTime modifiedTime int(10) unsigned NOT NULL default '0',
CHANGE COLUMN modifiedName modifiedName tinytext NOT NULL default '',
CHANGE COLUMN icon icon varchar(16) NOT NULL default '',
CHANGE COLUMN subject subject tinytext NOT NULL default '';

ALTER TABLE {$db_prefix}global_announcements_boards
CHANGE COLUMN ID_GA ID_GA mediumint(10) unsigned NOT NULL default '0',
CHANGE COLUMN ID_BOARD ID_BOARD mediumint(10) unsigned NOT NULL default '0';


This should make the mod MySQL Strict mode compatible.
Title: Re: Global Announcements
Post by: Farmacija on January 24, 2007, 06:05:07 AM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg216.imageshack.us%2Fimg216%2F6517%2Fglobal1jq.th.jpg&hash=9c2d67e9816f3d67b819db9b7ec9f54b72fb3c1f) (http://img216.imageshack.us/my.php?image=global1jq.jpg)
Title: Re: Global Announcements
Post by: softtouch on January 24, 2007, 10:02:50 AM
Quote from: JayBachatero on January 23, 2007, 05:25:54 PM
Quote from: Farmacija on January 17, 2007, 03:23:17 AM
when i try to install it from admin panel above message get appear... i tried several time and always i got the same error ...
It should show the step that it failed on.

mysticalone and softtouch:  run this query in phpMyAdmin.

AlTER TABLE {$db_prefix}global_announcements
CHANGE COLUMN time time int(10) unsigned NOT NULL default '0',
CHANGE COLUMN modifiedTime modifiedTime int(10) unsigned NOT NULL default '0',
CHANGE COLUMN modifiedName modifiedName tinytext NOT NULL default '',
CHANGE COLUMN icon icon varchar(16) NOT NULL default '',
CHANGE COLUMN subject subject tinytext NOT NULL default '';

ALTER TABLE {$db_prefix}global_announcements_boards
CHANGE COLUMN ID_GA ID_GA mediumint(10) unsigned NOT NULL default '0',
CHANGE COLUMN ID_BOARD ID_BOARD mediumint(10) unsigned NOT NULL default '0';


This should make the mod MySQL Strict mode compatible.

No, it does not work. Now I get:

Incorrect integer value: '' for column 'ID_BOARD' at row 1
File: C:\apache\htdocs\cebucityforum.com\Sources\GlobalAnnouncementsAdmin.php
Line: 281

Oh, I figured out that this error ONLY appears if I select "All Boards". If I select any board, it works... any idea?
Title: Re: Global Announcements
Post by: JayBachatero on January 24, 2007, 07:52:11 PM
Ok try this file.  Upload it to the Source dir.
Title: Re: Global Announcements
Post by: mohoganybrwn on January 25, 2007, 12:59:13 AM
Question: How do I make topics that are already created into Global Annoucments?

On my older version of SMF, it was in the "Additional Options" link in the post...but now I don't see anything for it... am I over looking something?
Title: Re: Global Announcements
Post by: softtouch on January 25, 2007, 01:04:40 AM
Quote from: JayBachatero on January 24, 2007, 07:52:11 PM
Ok try this file.  Upload it to the Source dir.

Does not work, getting

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3
File: C:\apache\htdocs\cebucityforum.com\Sources\GlobalAnnouncementsAdmin.php
Line: 283
Title: Re: Global Announcements
Post by: auroramae on January 25, 2007, 10:10:55 AM
errors about the admin template

lines 520 and 519
which are only references to the BBC

'size' => array('code' => 'size', 'before' => '[size=10pt]', 'after' => '[/size]', 'description' => $txt[532]),
'face' => array('code' => 'font', 'before' => '[font=Verdana]', 'after' => '[/font]', 'description' => $txt[533]),


Is there a fix?
Title: Re: Global Announcements
Post by: JayBachatero on January 25, 2007, 10:25:07 AM
softtouch try this one.

auroramae what is the exact error that you are getting?
Title: Re: Global Announcements
Post by: RogueDOC on January 25, 2007, 10:56:54 AM
 I get this error when i try to install.

"Fatal error: packageinstall(): Failed opening required '/hsphere/local/home/crysis/crysiscentral.3dactionplanet.gamespy.com/forum/Packages/temp/./ga_install.php' (include_path='.:/hsphere/shared/apache/libexec/php4ext/php/:/hsphere/shared/php') in /hsphere/local/home/crysis/crysiscentral.3dactionplanet.gamespy.com/forum/Sources/Packages.php on line 549"

The Install actions all come back as "Test successful". Then when i hit the "Install Now" button i get the error.
Title: Re: Global Announcements
Post by: auroramae on January 25, 2007, 01:09:16 PM
Quote from: JayBachatero on January 25, 2007, 10:25:07 AM
auroramae what is the exact error that you are getting?
sorry I didn't include it with my post
When I open the global announcement admin area to edit or add
I get the two following errors:

8: Undefined offset: 533
File: /home/xxxxxx/public_html/forum/Themes/default/GlobalAnnouncementsAdmin.template.php
Line: 520
   
8: Undefined offset: 532
File: /home/xxxxxx/public_html/forum/Themes/default/GlobalAnnouncementsAdmin.template.php

I think I've figured this out on my own
I installed a mod that adds drop down boxes for font size and color to the BBC options.
I looked at the XML file for that mod and noticed that it  refers to the replacement text entries 532 and 533.

So I am now not worried about the errors.  They seem benign.
Thanks for replying to me.
Title: Re: Global Announcements
Post by: mohoganybrwn on January 25, 2007, 01:53:09 PM
Quote from: mohoganybrwn on January 25, 2007, 12:59:13 AM
Question: How do I make topics that are already created into Global Annoucments?

On my older version of SMF, it was in the "Additional Options" link in the post...but now I don't see anything for it... am I over looking something?

anyone?
Title: Re: Global Announcements
Post by: softtouch on January 25, 2007, 11:38:55 PM
Quote from: JayBachatero on January 25, 2007, 10:25:07 AM
softtouch try this one.

auroramae what is the exact error that you are getting?

NO ERROR! Seems to work! Will test it now.
Thanks for your help!!!
Title: Re: Global Announcements
Post by: frax0 on January 26, 2007, 04:34:49 AM
hi,I've install this mod..that's ok..but in adminpannel no see mod..because?


i attach image.. :D tkx
Title: Re: Global Announcements
Post by: JayBachatero on January 26, 2007, 11:47:52 AM
auroramae what version of SMF are you running?

mohoganybrwn at the moment there is no way to do this.

frax0 you need to add the language strings to your custom theme Modifications.english.php file.
Title: Re: Global Announcements
Post by: someone on January 28, 2007, 01:30:09 AM
i use custom profile mod, i tried to edit the globalannouncement.template.php manually, but the custom profile didn't show up. how to fix this?
Title: Re: Global Announcements
Post by: JayBachatero on January 28, 2007, 01:30:47 PM
Huh?
Title: Re: Global Announcements
Post by: Tanix on January 28, 2007, 01:34:10 PM
Not sure if this was missed, apologies if it wasn't:

Quote from: Tanix on January 23, 2007, 03:17:39 PM
Would it be possible to have a similar facility as the standard 'enable recycling' for topics and messages? That way, disabled global announcements could be kept in an archive board
Title: Re: Global Announcements
Post by: JayBachatero on January 28, 2007, 01:57:24 PM
Well since this is not a regular psots it's not really possible to do this w/o me making a custom section for it.
Title: Re: Global Announcements
Post by: Tanix on January 28, 2007, 02:10:00 PM
Understood, thank you.

Would you mind considering it as an enhancement to your next release of Global Announcements?

I know I can disable GAs, but they're still on view to Admins and over time they'll clutter a board. I wouldn't want to delete them if they're important - so I'll end up c/ping them into an archive board.
Title: Re: Global Announcements
Post by: JayBachatero on January 28, 2007, 02:11:13 PM
Well I'm not planning on having an update for this mod any time soon.  When ever i do update it, it would be almost a complete rewrite.
Title: Re: Global Announcements
Post by: Tanix on January 28, 2007, 02:14:36 PM
As they say - don't ask, don't get.

It's a hugely useful mod as it stands, so thank you for that. Mind my asking why you're thinking of a complete rewrite?
Title: Re: Global Announcements
Post by: JayBachatero on January 28, 2007, 02:17:27 PM
Cause I've learned new methods of doing things.  Things that could be written much better in this mod to remove so much of the duplicate code that I have.
Title: Re: Global Announcements
Post by: frax0 on January 30, 2007, 10:46:24 AM
Quote from: JayBachatero on January 26, 2007, 11:47:52 AM

frax0 you need to add the language strings to your custom theme Modifications.english.php file.

i add the language string in Modifications.english.php :<?php
// Version: 1.1.1; Modifications

?>

// G&S Sticky
$txt['gsticky'] = 'Annuncio Globale';
$txt['gsticky_board'] = 'Board di Default per gli Annunci Globali';
$txt['permissionname_make_gsticky'] = 'Può postare messaggi Globali';
$txt['permissionhelp_make_gsticky'] = 'Può inviare un Messaggio visibile in TUTTE le board';

I add in themes/default/languages but no see Ga in the admin pannel..why tkx :-)
Title: Re: Global Announcements
Post by: Zuma on January 30, 2007, 11:55:57 AM
Hello

I tried to install this mod from the admin CP but it gives me "Internal Server Error" when uploading it, and now every time I click "packages" I get a "Internal Server Error"

If I delete the GlobalAnnouncements.php file from the "packages" folder it's all ok again

Can anybody help me out on installing it?

ty
Title: Re: Global Announcements
Post by: JayBachatero on January 30, 2007, 01:09:07 PM
frax0 you need t add the language strings before the ?>

zuma check to see if the files are chmoded to 777.  some hosts don't allow this so you much chmod it to 755.
Title: Re: Global Announcements
Post by: Zuma on January 30, 2007, 01:19:05 PM
Hi

I've noticed the problem: server was full (feelling stupid lol)

k now I've uploaded and installed it successfuly.

But then i get this error when clicking in any board:

Parse error: syntax error, unexpected $end in /home/mfclanc/public_html/forum2/Sources/MessageIndex.php on line 682

At the MessageIndex.php file, the mod part of the code is incomplete:

// If there are children, but no topics and no ability to post topics...
$context['no_topic_listing'] = !empty($context['boards']) && empty($context['topics']) && !$context['can_post_new'];

//Check to see if Global Announcements are enabled.
if (isset($modSettings['global_announcements_enable']) && $modSettings['global_announcements_enable'] == 1)
{
//Load the Global Announcements.
$selectGA = db_query("
SELECT
ga.ID_GA, ga.ID_MEMBER, ga.time, ga.icon, ga.subject, ga.numViews, ga.enabled,
gab.ID_BOARD, m.realName
FROM {$db_prefix}global_announcements AS ga
LEFT JOIN {$db_prefix}global_announcements_boards AS gab ON (ga.ID_GA = gab.ID_GA)
LEFT JOIN {$db_prefix}members AS m ON (ga.ID_MEMBER = m.ID_MEMBER)
WHERE gab.ID_BOARD = '$board' OR gab.ID_board = '0'
" .(!$context['user']['is_admin'] ? "AND enabled = '1'" : ""). "
ORDER BY gaOrder ASC,
" . (isset($modSettings['global_announcements_sort_by'], $modSettings['global_announcements_sort_direction'])
? $modSettings['global_announcements_sort_by'] . ' ' . $modSettings['global_announcements_sort_direction']
: "time DESC"), __FILE__, __LINE__);

//Set $globalAnnouncements array.
$globalAnnouncements = array();

//Loop through the results.
while ($row = mysql_fetch
Title: Re: Global Announcements
Post by: Zuma on January 30, 2007, 02:48:01 PM
Ok, I *think* I managed to solve it by copying and pasting the rest of the code from the install.xml file. I have no idea why it happened though.

Anyway, now I still have a problem:

Whenever I click in "Global Announcements" in ACP, it gives this error:

"Unable to load the 'main' template."

What now? =/

ty again
Title: Re: Global Announcements
Post by: frax0 on January 30, 2007, 04:22:59 PM
ok, I have inserted the languages string before of ? >. .ma continuous not to see Ga in the admin pannel. I have inserted in themes/default/languages GlobalAnnouncementsAdmin.italian.php and Modifications.italian.php I enclose image thanks thousands for the attention
Title: Re: Global Announcements
Post by: JayBachatero on January 30, 2007, 07:11:44 PM
Quote from: Zuma on January 30, 2007, 02:48:01 PM
Ok, I *think* I managed to solve it by copying and pasting the rest of the code from the install.xml file. I have no idea why it happened though.

Anyway, now I still have a problem:

Whenever I click in "Global Announcements" in ACP, it gives this error:

"Unable to load the 'main' template."

What now? =/

ty again
You are missing the template files.

Quote from: frax0 on January 30, 2007, 04:22:59 PM
ok, I have inserted the languages string before of ? >. .ma continuous not to see Ga in the admin pannel. I have inserted in themes/default/languages GlobalAnnouncementsAdmin.italian.php and Modifications.italian.php I enclose image thanks thousands for the attention
Does it work in english?
Title: Re: Global Announcements
Post by: Zuma on January 30, 2007, 08:11:48 PM
Quote from: JayBachatero on January 30, 2007, 07:11:44 PM
Quote from: Zuma on January 30, 2007, 02:48:01 PM
Ok, I *think* I managed to solve it by copying and pasting the rest of the code from the install.xml file. I have no idea why it happened though.

Anyway, now I still have a problem:

Whenever I click in "Global Announcements" in ACP, it gives this error:

"Unable to load the 'main' template."

What now? =/

ty again
You are missing the template files.

yea, but how come?

I'm using default templates and I've installed the mod from the ACP.

Would it be for the same reason that code was incomplete at the MessageIndex.php?

If so, what's the reason and how do I fix this to make the mod work?

Thank you a bunch for your time.
Title: Re: Global Announcements
Post by: JayBachatero on January 31, 2007, 12:10:38 AM
Upload the .english.php files from the archive to the /themes/default/languages dir.
Title: Re: Global Announcements
Post by: frax0 on January 31, 2007, 03:21:22 AM
 ::)  it does not work in English...  
Title: Re: Global Announcements
Post by: frax0 on January 31, 2007, 05:03:14 AM
If from the browser I make: http://www.mysite.net/index.php?action=globalAnnouncementsAdmin;sa=add Ga appears and works  
Title: Re: Global Announcements
Post by: JayBachatero on January 31, 2007, 09:47:39 AM
Can you please post your Modifications.english.php and Subs.php files?
Title: Re: Global Announcements
Post by: frax0 on January 31, 2007, 10:01:08 AM
Sure..thanks..
Title: Re: Global Announcements
Post by: JayBachatero on January 31, 2007, 10:02:19 AM
I mean Subs.php and the Modifications.english.php.  Two different files.
Title: Re: Global Announcements
Post by: frax0 on January 31, 2007, 10:12:33 AM
I do not find them where are?  
Title: Re: Global Announcements
Post by: JayBachatero on January 31, 2007, 10:15:41 AM
Sources dir and Themes/default/languages dir.
Title: Re: Global Announcements
Post by: frax0 on January 31, 2007, 10:17:57 AM
ok ok..here the sub.php  :D

the modifications i don't..no there is  
Title: Re: Global Announcements
Post by: JayBachatero on January 31, 2007, 10:23:13 AM
Modifications.english.php is in Themes/default/languages dir.
Title: Re: Global Announcements
Post by: frax0 on January 31, 2007, 10:26:23 AM
yes.. ok. .ma not there is. . to recreate it. . you have please the code?
Title: Re: Global Announcements
Post by: JayBachatero on January 31, 2007, 10:27:23 AM
You don't have Modifications.english.php file?
Title: Re: Global Announcements
Post by: frax0 on January 31, 2007, 10:29:47 AM
here made  ;D
Title: Re: Global Announcements
Post by: JayBachatero on January 31, 2007, 12:11:21 PM
Ok try this file.  You were missing the opening <?php and closing ?>  Also modifications.english.php is not the same as Modifications.english.php.
Title: Re: Global Announcements
Post by: frax0 on January 31, 2007, 01:13:57 PM
ok i have make the file Modifications.english.php..in themes/default/languages...but no work...ok..patience..thanks a lot :-)
Title: Re: Global Announcements
Post by: edi67 on February 01, 2007, 06:15:53 AM
great mod Jay as usual

I want ask one thing: will be possible in future add the possibility for users to REPLY our Global Announcements? i will like this idea, that users can reply to certain announcements.
Title: Re: Global Announcements
Post by: JayBachatero on February 01, 2007, 09:46:39 AM
Quote from: edi67 on February 01, 2007, 06:15:53 AM
great mod Jay as usual

I want ask one thing: will be possible in future add the possibility for users to REPLY our Global Announcements? i will like this idea, that users can reply to certain announcements.
I was thinking of doing a Super Sticky mod that you are able to reply to.
Title: Re: Global Announcements
Post by: PraefectusClassis on February 01, 2007, 09:49:09 AM
Quote from: JayBachatero on February 01, 2007, 09:46:39 AM
I was thinking of doing a Super Sticky mod that you are able to reply to.
Yes please! That sounds great. And from me too: thanks for all those mods and the help to everyone to make 'em work.
Title: Re: Global Announcements
Post by: auroramae on February 02, 2007, 08:50:22 AM
SMF 1.1.1
This is definitely related to the change the mod made to add  the drop downs...
It modified the language file.

Quoteauroramae what version of SMF are you running?

Quoteauroramae what is the exact error that you are getting?
sorry I didn't include it with my post
When I open the global announcement admin area to edit or add
I get the two following errors:

8: Undefined offset: 533
File: /home/xxxxxx/public_html/forum/Themes/default/GlobalAnnouncementsAdmin.template.php
Line: 520
   
8: Undefined offset: 532
File: /home/xxxxxx/public_html/forum/Themes/default/GlobalAnnouncementsAdmin.template.php

I think I've figured this out on my own
I installed a mod that adds drop down boxes for font size and color to the BBC options.
I looked at the XML file for that mod and noticed that it  refers to the replacement text entries 532 and 533.

So I am now not worried about the errors.  They seem benign.
Thanks for replying to me.
Title: Re: Global Announcements
Post by: edi67 on February 03, 2007, 01:49:45 AM
Quote from: JayBachatero on February 01, 2007, 09:46:39 AM
Quote from: edi67 on February 01, 2007, 06:15:53 AM
great mod Jay as usual

I want ask one thing: will be possible in future add the possibility for users to REPLY our Global Announcements? i will like this idea, that users can reply to certain announcements.
I was thinking of doing a Super Sticky mod that you are able to reply to.

i realy wait impatience it thx :)
Title: Re: Global Announcements
Post by: Gandalf The White on February 03, 2007, 11:22:52 AM
I am using babylon theme and can't find:
   // Create the button set...
   $normal_buttons = array(


Where can i edit?

<?php
// Version: 1.1; MessageIndex

function template_main()
{
global $context$settings$options$scripturl$modSettings$txt;

echo '
<table width="100%" cellpadding="3" cellspacing="0">
<tr>
<td><a name="top"></a>'
theme_linktree(), '</td>';
if (!empty($settings['display_who_viewing']))
{
echo '
<td class="smalltext" align="right">'
;
if ($settings['display_who_viewing'] == 1)
echo count($context['view_members']), ' 'count($context['view_members']) == $txt['who_member'] : $txt[19];
else
echo empty($context['view_members_list']) ? '0 ' $txt[19] : implode(', '$context['view_members_list']) . ((empty($context['view_num_hidden']) or $context['can_moderate_forum']) ? '' ' (+ ' $context['view_num_hidden'] . ' ' $txt['hidden'] . ')');
echo $txt['who_and'], $context['view_num_guests'], ' '$context['view_num_guests'] == $txt['guest'] : $txt['guests'], $txt['who_viewing_board'], '</td>';
}
echo '
</tr>
</table>'
;

if (isset($context['boards']) && (!empty($options['show_children']) || $context['start'] == 0))
{
echo '
<div class="tborder" style="padding: 1px; margin-bottom: 2ex;"><table border="0" width="100%" cellspacing="1" cellpadding="5">
<tr class="titlebg">
<td colspan="4">'
$txt['parent_boards'], '</td>
</tr>'
;
foreach ($context['boards'] as $board)
{
echo '
<tr class="windowbg2">
<td class="windowbg" width="6%" align="center" valign="top"><a href="'
$scripturl'?action=unread;board='$board['id'], '.0">';

// Is this board itself new?
if ($board['new'])
echo '<img src="'$settings['images_url'], '/on.gif" alt="'$txt[333], '" title="'$txt[333], '" border="0" />';
// Is one of this board's children new, then?
elseif ($board['children_new'])
echo '<img src="'$settings['images_url'], '/on2.gif" alt="'$txt[333], '" title="'$txt[333], '" border="0" />';
// I guess it's not new at all.
else
echo '<img src="'$settings['images_url'], '/off.gif" alt="'$txt[334], '" title="'$txt[334], '" border="0" />';

echo '</a></td>
<td align="left">
<b><a href="'
$board['href'], '" name="b'$board['id'], '">'$board['name'], '</a></b><br />
'
$board['description'];

if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>'
count($board['moderators']) == $txt[298] : $txt[299], ': 'implode(', '$board['link_moderators']), '</i></div>';

if (!empty($board['children']))
{
$children = array();
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' $txt[330] . ': ' $child['topics'] . ', ' $txt[21] . ': ' $child['posts'] . ')">' $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' $child['link'] . '</b>' $child['link'];
}

echo '
<div style="padding-top: 1px;" class="smalltext"><i>'
$txt['parent_boards'], ': 'implode(', '$children), '</i></div>';
}

echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
'
$board['posts'], ' '$txt[21], ' '$txt['smf88'], '<br />
'
$board['topics'], ' '$txt[330], '
</span></td>
<td class="smalltext" valign="middle" width="22%">'
;

if (!empty($board['last_post']['id']))
echo '
'
$txt[22], ' '$txt[30], ' '$board['last_post']['time'], '<br />
'
$txt['smf88'], ' '$board['last_post']['link'], ' '$txt[525], ' '$board['last_post']['member']['link'];

echo '
</td>
</tr>'
;
}
echo '
</table></div>'
;
}

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>'
;
}

if (!$context['no_topic_listing'])
{
echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="margin-bottom: 1ex;">
<tr>
<td class="catbg" height="30">
<table cellpadding="3" cellspacing="0" width="100%">
<tr>
<td><b>'
$txt[139], ':</b> '$context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '<a href="#bot">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/go_down.gif" alt="' $txt['topbottom5'] . '" border="0" align="top" />' $txt['topbottom5']) . '</a>' '''</td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''" nowrap="nowrap" style="font-size: smaller;">'theme_show_buttons(), '</td>
</tr>
</table>
</td>
</tr>
</table>'
;

// If Quick Moderation is enabled start the form.
if (!empty($options['display_quick_mod']) && !empty($context['topics']))
echo '
<form action="'
$scripturl'?action=quickmod;board='$context['current_board'], '.'$context['start'], '" method="post" accept-charset="'$context['character_set'], '" name="quickModForm" id="quickModForm" style="margin: 0;">';

echo '
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr class="titlebg">'
;

// Are there actually any topics to show?
if (!empty($context['topics']))
{
echo '
<td width="9%" colspan="2"></td>
<td><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=subject'$context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[70], $context['sort_by'] == 'subject' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>
<td width="14%"><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=starter'$context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[109], $context['sort_by'] == 'starter' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>
<td width="4%" align="center"><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=replies'$context['sort_by'] == 'replies' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[110], $context['sort_by'] == 'replies' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>
<td width="4%" align="center"><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=views'$context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[301], $context['sort_by'] == 'views' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>
<td width="24%"><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=last_post'$context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[111], $context['sort_by'] == 'last_post' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>';

// Show a "select all" box for quick moderation?
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
echo '
<td width="24" valign="middle" align="center">
<input type="checkbox" onclick="invertAll(this, this.form, \'topics[]\');" class="check" />
</td>'
;
// If it's on in "image" mode, don't show anything but the column.
elseif (!empty($options['display_quick_mod']))
echo '
<td width="4%" valign="middle" align="center"></td>'
;
}
// No topics.... just say, "sorry bub".
else
echo '
<td width="100%" colspan="7"><b>'
$txt[151], '</b></td>';

echo '
</tr>'
;

foreach ($context['topics'] as $topic)
{
echo '
<tr class="windowbg2">
<td valign="middle" align="center" width="5%">
<img src="'
$settings['images_url'], '/topic/'$topic['class'], '.gif" alt="" />
</td>
<td valign="middle" align="center" width="4%">
<img src="'
$topic['first_post']['icon_url'], '" alt="" />
</td>
<td class="windowbg" valign="middle" '
, (!empty($topic['quick_mod']['remove']) ? 'id="topic_' $topic['first_post']['id'] . '" onmouseout="mouse_on_div = 0;" onmouseover="mouse_on_div = 1;" ondblclick="modify_topic(\'' $topic['id'] . '\', \'' $topic['first_post']['id'] . '\', \'' $context['session_id'] . '\');"' ''), '>
<span id="msg_' 
$topic['first_post']['id'] . '">'$topic['first_post']['link'], '</span>';

// Is this topic new? (assuming they are logged in!)
if ($topic['new'] && $context['user']['is_logged'])
echo '
<a href="'
$topic['new_href'], '" id="newicon' $topic['first_post']['id'] . '"><img src="'$settings['images_url'], '/'$context['user']['language'], '/new.gif" alt="'$txt[302], '" border="0" /></a>';

echo '
<span class="smalltext" id="pages' 
$topic['first_post']['id'] . '">'$topic['pages'], '</span>
</td>
<td valign="middle" width="14%">
'
$topic['first_post']['member']['link'], '
</td>
<td class="windowbg" valign="middle" width="4%" align="center">
'
$topic['replies'], '
</td>
<td class="windowbg" valign="middle" width="4%" align="center">
'
$topic['views'], '
</td>
<td class="smalltext" valign="middle" width="22%">
<a href="'
$topic['last_post']['href'], '"><img src="'$settings['images_url'], '/icons/last_post.gif" alt="'$txt[111], '" title="'$txt[111], '" border="0" style="float: right;" /></a>

'
$topic['last_post']['time'], '<br />
'
$txt[525], ' '$topic['last_post']['member']['link'], '
</td>'
;

// Show the quick moderation options?
if (!empty($options['display_quick_mod']))
{
echo '
<td class="windowbg" valign="middle" align="center" width="4%">'
;
if ($options['display_quick_mod'] == 1)
echo '
<input type="checkbox" name="topics[]" value="'
$topic['id'], '" class="check" />';
else
{
// Check permissions on each and show only the ones they are allowed to use.
if ($topic['quick_mod']['remove'])
echo '<a href="'$scripturl'?action=quickmod;board='$context['current_board'], '.'$context['start'], ';actions['$topic['id'], ']=remove;sesc='$context['session_id'], '" onclick="return confirm(\''$txt['quickmod_confirm'], '\');"><img src="'$settings['images_url'], '/icons/quick_remove.gif" width="16" alt="'$txt[63], '" title="'$txt[63], '" border="0" /></a>';
if ($topic['quick_mod']['lock'])
echo '<a href="'$scripturl'?action=quickmod;board='$context['current_board'], '.'$context['start'], ';actions['$topic['id'], ']=lock;sesc='$context['session_id'], '" onclick="return confirm(\''$txt['quickmod_confirm'], '\');"><img src="'$settings['images_url'], '/icons/quick_lock.gif" width="16" alt="'$txt['smf279'], '" title="'$txt['smf279'], '" border="0" /></a>';
if ($topic['quick_mod']['lock'] || $topic['quick_mod']['remove'])
echo '<br />';
if ($topic['quick_mod']['sticky'])
echo '<a href="'$scripturl'?action=quickmod;board='$context['current_board'], '.'$context['start'], ';actions['$topic['id'], ']=sticky;sesc='$context['session_id'], '" onclick="return confirm(\''$txt['quickmod_confirm'], '\');"><img src="'$settings['images_url'], '/icons/quick_sticky.gif" width="16" alt="'$txt['smf277'], '" title="'$txt['smf277'], '" border="0" /></a>';
if ($topic['quick_mod']['move'])
echo '<a href="'$scripturl'?action=movetopic;board='$context['current_board'], '.'$context['start'], ';topic='$topic['id'], '.0"><img src="'$settings['images_url'], '/icons/quick_move.gif" width="16" alt="'$txt[132], '" title="'$txt[132], '" border="0" /></a>';
}
echo '</td>';
}
echo '
</tr>'
;
}

if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == && !empty($context['topics']))
{
echo '
<tr class="titlebg">
<td colspan="8" align="right">
<select name="qaction"'
$context['can_move'] ? ' onchange="this.form.moveItTo.disabled = (this.options[this.selectedIndex].value != \'move\');"' '''>
<option value="">--------</option>
'
$context['can_remove'] ? '<option value="remove">' $txt['quick_mod_remove'] . '</option>' '''
'
$context['can_lock'] ? '<option value="lock">' $txt['quick_mod_lock'] . '</option>' '''
'
$context['can_sticky'] ? '<option value="sticky">' $txt['quick_mod_sticky'] . '</option>' '''
'
$context['can_move'] ? '<option value="move">' $txt['quick_mod_move'] . ': </option>' '''
'
$context['can_merge'] ? '<option value="merge">' $txt['quick_mod_merge'] . '</option>' '''
<option value="markread">'
$txt['quick_mod_markread'], '</option>
</select>'
;

if ($context['can_move'])
{
echo '
<select id="moveItTo" name="move_to" disabled="disabled">'
;
foreach ($context['jump_to'] as $category)
foreach ($category['boards'] as $board)
{
if (!$board['is_current'])
echo '
<option value="'
$board['id'], '"', !empty($board['selected']) ? ' selected="selected"' '''>'str_repeat('-'$board['child_level'] + 1), ' '$board['name'], '</option>';
}
echo '
</select>'
;
}

echo '
<input type="submit" value="'
$txt['quick_mod_go'], '" onclick="return this.form.qaction.value != \'\' &amp;&amp; confirm(\''$txt['quickmod_confirm'], '\');" />
</td>
</tr>'
;
}

echo '
</table>'
;

// Finish off the form - again, if Quick Moderation is being done with checkboxes. (1)
if (!empty($options['display_quick_mod']) && !empty($context['topics']))
echo '
<input type="hidden" name="sc" value="' 
$context['session_id'] . '" />
</form>'
;

echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="margin-top: 1ex;">
<tr>
<td class="catbg" width="100%" height="30">
<table cellpadding="3" cellspacing="0" width="100%">
<tr>
<td><a name="bot"></a><b>'
$txt[139], ':</b> '$context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '<a href="#top">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/go_up.gif" alt="' $txt['topbottom4'] . '" border="0" align="top" />' $txt['topbottom4']) . '</a>' '''</td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''" nowrap="nowrap" style="font-size: smaller;">'theme_show_buttons(), '</td>
</tr>
</table>
</td>
</tr>
</table>'
;
}

echo '
<table cellpadding="0" cellspacing="0" width="100%">'
;

// Show breadcrumbs at the bottom too?
if ($settings['linktree_inline'])
echo '
<tr>
<td colspan="3" valign="bottom">'
theme_linktree(), '<br /><br /></td>
</tr>'
;

echo '
<tr>'
;

if (!$context['no_topic_listing'])
echo '
<td class="smalltext" style="padding-top: 1ex;">'
, !empty($modSettings['enableParticipation']) ? '
<img src="' 
$settings['images_url'] . '/topic/my_normal_post.gif" alt="" align="middle" /> ' $txt['participation_caption'] . '<br />' '''
<img src="' 
$settings['images_url'] . '/topic/normal_post.gif" alt="" align="middle" /> ' $txt[457] . '<br />
<img src="' 
$settings['images_url'] . '/topic/hot_post.gif" alt="" align="middle" /> ' $txt[454] . '<br />
<img src="' 
$settings['images_url'] . '/topic/veryhot_post.gif" alt="" align="middle" /> ' $txt[455] . '
</td>
<td class="smalltext" valign="top" style="padding-top: 1ex;">
<img src="' 
$settings['images_url'] . '/topic/normal_post_locked.gif" alt="" align="middle" /> ' $txt[456] . '<br />' . ($modSettings['enableStickyTopics'] == '1' '
<img src="' 
$settings['images_url'] . '/topic/normal_post_sticky.gif" alt="" align="middle" /> ' $txt['smf96'] . '<br />' '') . ($modSettings['pollMode'] == '1' '
<img src="' 
$settings['images_url'] . '/topic/normal_poll.gif" alt="" align="middle" /> ' $txt['smf43'] : '') . '
</td>'
;

echo '
<td class="smalltext" align="'
, !$context['right_to_left'] ? 'right' 'left''" valign="middle">
<form action="'
$scripturl'" method="get" accept-charset="'$context['character_set'], '">
<label for="jumpto">' 
$txt[160] . '</label>:
<select name="jumpto" id="jumpto" onchange="if (this.selectedIndex > 0 &amp;&amp; this.options[this.selectedIndex].value) window.location.href = smf_scripturl + this.options[this.selectedIndex].value.substr(smf_scripturl.indexOf(\'?\') == -1 || this.options[this.selectedIndex].value.substr(0, 1) != \'?\' ? 0 : 1);">
<option value="">' 
$txt[251] . ':</option>';

// Show each category - they all have an id, name, and the boards in them.
foreach ($context['jump_to'] as $category)
{
// Show the category name with a link to the category. (index.php#id)
echo '
<option value="" disabled="disabled">-----------------------------</option>
<option value="#'
$category['id'], '">'$category['name'], '</option>
<option value="" disabled="disabled">-----------------------------</option>'
;

/* Now go through each board - they all have:
id, name, child_level (how many parents they have, basically...), and is_current. (is this the current board?) */
foreach ($category['boards'] as $board)
{
// Show some more =='s if this is a child, so as to make it look nice.
echo '
<option value="?board='
$board['id'], '.0"'$board['is_current'] ? ' selected="selected"' '''> 'str_repeat('=='$board['child_level']), '=> '$board['name'], '</option>';
}
}

echo '
</select>&nbsp;
<input type="button" value="'
$txt[161], '" onclick="if (this.form.jumpto.options[this.form.jumpto.selectedIndex].value) window.location.href = \''$scripturl'\' + this.form.jumpto.options[this.form.jumpto.selectedIndex].value;" />
</form>
</td>
</tr>
</table>'
;

// Javascript for inline editing.
echo '
<script language="JavaScript" type="text/javascript" src="' 
$settings['default_theme_url'] . '/xml_board.js"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[

// Hide certain bits during topic edit.
hide_prefixes.push("pages", "newicon");

// Use it to detect when we\'ve stopped editing.
document.onclick = modify_topic_click;

var mouse_on_div;
function modify_topic_click()
{
if (in_edit_mode == 1 && mouse_on_div == 0)
modify_topic_save("'
$context['session_id'], '");
}

function modify_topic_keypress(oEvent)
{
if (typeof(oEvent.keyCode) != "undefined" && oEvent.keyCode == 13)
{
modify_topic_save("'
$context['session_id'], '");
if (typeof(oEvent.preventDefault) == "undefined")
oEvent.returnValue = false;
else
oEvent.preventDefault();
}
}

// For templating, shown when an inline edit is made.
function modify_topic_show_edit(subject)
{
// Just template the subject.
setInnerHTML(cur_subject_div, \'<input type="text" name="subject" value="\' + subject + \'" size="60" style="width: 99%;"  maxlength="80" onkeypress="modify_topic_keypress(event)" /><input type="hidden" name="topic" value="\' + cur_topic_id + \'" /><input type="hidden" name="msg" value="\' + cur_msg_id.substr(4) + \'" />\');
}

// And the reverse for hiding it.
function modify_topic_hide_edit(subject)
{
// Re-template the subject!
setInnerHTML(cur_subject_div, \'<a href="'
$scripturl'?topic=\' + cur_topic_id + \'.0">\' + subject + \'</a>\');
}
// ]]></script>'
;

}

function 
theme_show_buttons()
{
global $context$settings$options$txt$scripturl;

$buttonArray = array();

// If they are logged in, and the mark read buttons are enabled..
if ($context['user']['is_logged'] && $settings['show_mark_read'])
$buttonArray[] = '<a href="' $scripturl '?action=markasread;sa=board;board=' $context['current_board'] . '.0;sesc=' $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/markread.gif" alt="' $txt[300] . '" border="0" />' $txt[300]) . '</a>';

// If the user has permission to show the notification button... ask them if they're sure, though.
if ($context['can_mark_notify'])
$buttonArray[] = '<a href="' $scripturl '?action=notifyboard;sa=' . ($context['is_marked_notify'] ? 'off' 'on') . ';board=' $context['current_board'] . '.' $context['start'] . ';sesc=' $context['session_id'] . '" onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_board'] : $txt['notification_enable_board']) . '\');">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/notify.gif" alt="' $txt[131] . '" border="0" />' $txt[131]) . '</a>';

// Are they allowed to post new topics?
if ($context['can_post_new'])
$buttonArray[] = '<a href="' $scripturl '?action=post;board=' $context['current_board'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/new_topic.gif" alt="' $txt[33] . '" border="0" />' $txt[33]) . '</a>';

// How about new polls, can the user post those?
if ($context['can_post_poll'])
$buttonArray[] = '<a href="' $scripturl '?action=post;board=' $context['current_board'] . '.0;poll">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/new_poll.gif" alt="' $txt['smf20'] . '" border="0" />' $txt['smf20']) . '</a>';

return implode($context['menu_separator'], $buttonArray);
}

?>
Title: Re: Global Announcements
Post by: wxtracker93 on February 03, 2007, 12:47:39 PM
Quote from: Gandalf The White on February 03, 2007, 11:22:52 AM
I am using babylon theme and can't find:
   // Create the button set...
   $normal_buttons = array(


Where can i edit?


I am using the Proton theme and can't find that either.
Title: Re: Global Announcements
Post by: 3 hit pure on February 04, 2007, 03:35:08 PM
Hey um how can I upload the global announcement to my forums after I downloaded it.
Title: Re: Global Announcements
Post by: chubbyboy on February 05, 2007, 08:59:03 AM
It doesn't support utf. I try to post in chinese, but it displays ???. Any idea?
Title: formating the linktree
Post by: chubbyboy on February 06, 2007, 09:46:45 AM
my current linktree is like this

My forum >> Global Announcement > Board Policies

I want to change it to

My forum >> Global Chested Posts >> Board Policies

You guys know which file should I edit?
Title: Re: Global Announcements
Post by: squirrelof09 on February 11, 2007, 10:07:48 AM
SMF Version 1.1.1

8: Undefined index: global_announcements_mods
File: /home/*****/public_html/forum/Sources/Subs.php
Line: 2829

When I go in the admin panel I do not see the global announcements category to the left of the screen.
Title: Re: Global Announcements
Post by: JayBachatero on February 12, 2007, 01:18:23 AM
You have a missing language string.
Title: Re: Global Announcements
Post by: Farmacija on February 14, 2007, 05:25:51 PM
on this link http://custom.simplemachines.org/mods/index.php?mod=419
it is written
edit file>$themedir/MessageIndex.template.php</edit file><search for> // Create the button set... $normal_buttons = array(</search for><add [b]before[/b]> // Global Announcements... if (isset($context['globalAnnouncements']) && count($context['globalAnnouncements']) != 0) {
.
.
.
.

but in install.xml file which goes with hole GA package writes
<file name="$themedir/MessageIndex.template.php">
- <operation>
- <search position=[b]"after"[/b]>
- <![CDATA[ // Create the button set...
$normal_buttons = array(

  ]]>
  </search>
- <add>
- <![CDATA[ // Global Announcements...
if (isset($context['globalAnnouncements']) && count($context['globalAnnouncements']) != 0)
{
echo '

....

and whats finally right?
i try manually edit messageindex.template.php file but i still cannot install mod properly.
maybe its up to 1.1.2 version of forum?


Title: Re: Global Announcements
Post by: JayBachatero on February 14, 2007, 11:50:16 PM
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
Title: Re: Global Announcements
Post by: Farmacija on February 15, 2007, 09:48:33 AM
i know fo that manual and i tried by hundreds time to install that mod following instructions in manual and simply doesn't work nd i'm share i quiet good replace or add everything its needed!
Title: Re: Global Announcements
Post by: JayBachatero on February 15, 2007, 09:56:26 AM
Well in regards to your other post that is correct.  SMF has two formats for mod installation.  Boardmod and xml.  The xml can be a little more confusing to install from.  In the board mod we have <search><add after> but in xml we have <search position="before"><add>.  Meaning that the search goes before the add.  So it's like saying add after.

Take a look at SMF Package Parser - The perfect utility for installing mods manually (http://www.simplemachines.org/community/index.php?topic=140034.0).
Title: Re: Global Announcements
Post by: Farmacija on February 15, 2007, 10:23:50 AM
parser isnt usefull at all
QuoteERROR: The package-info.xml file is invalid!


Debugging Information
Error message: String could not be parsed as XML
Source: /var/www/smf/package.php:93
Errors encountered while parsing XML file:
Stack Trace:
#0 /var/www/smf/package.php(93): SimpleXMLElement->__construct('')
#1 /var/www/smf/package.php(54): parsePackageInfoXML('/tmp/smf_xml/pa...', 'install', 'all')
#2 /var/www/smf/package.php(707): parseArchive('/tmp/phpK9Fn7U', 'install', 'all')
#3 {main}

XML File:
Title: Re: Global Announcements
Post by: Mick. on February 15, 2007, 09:33:29 PM
I tried this mod with no errors but my site now is blank. Any ideas on how to remove the mod or fix this?

www.midwestavalancheclub.com

Title: Re: Global Announcements
Post by: Mick. on February 15, 2007, 09:53:45 PM
Quote from: BlueDevil on February 15, 2007, 09:33:29 PM
I tried this mod with no errors but my site now is blank. Any ideas on how to remove the mod or fix this?

www.midwestavalancheclub.com



bump.
Title: Re: Global Announcements
Post by: RoarinRow on February 15, 2007, 10:19:30 PM
Quote from: BlueDevil on February 15, 2007, 09:53:45 PM
Quote from: BlueDevil on February 15, 2007, 09:33:29 PM
I tried this mod with no errors but my site now is blank. Any ideas on how to remove the mod or fix this?

www.midwestavalancheclub.com



bump.

does your server have an error log that you can get to via FTP?  if there is, check out the scripts.log or something like that and see what's fouling up your forum.  It might be your Load.php file.  If you can restore that file from a previous version or from the latest SMF package, that might do the trick.

From there you'll have to add the lines of codes from your mods or something, but this might be your screen back.
Title: Re: Global Announcements
Post by: Mick. on February 15, 2007, 11:01:01 PM
Quote from: RoarinRow on February 15, 2007, 10:19:30 PM
Quote from: BlueDevil on February 15, 2007, 09:53:45 PM
Quote from: BlueDevil on February 15, 2007, 09:33:29 PM
I tried this mod with no errors but my site now is blank. Any ideas on how to remove the mod or fix this?

www.midwestavalancheclub.com



bump.

does your server have an error log that you can get to via FTP?  if there is, check out the scripts.log or something like that and see what's fouling up your forum.  It might be your Load.php file.  If you can restore that file from a previous version or from the latest SMF package, that might do the trick.

From there you'll have to add the lines of codes from your mods or something, but this might be your screen back.

Is fixed for now.     i renamed the index.php   Now i can go to bed.
Title: Re: Global Announcements
Post by: RoarinRow on February 15, 2007, 11:07:32 PM
Quote from: BlueDevil on February 15, 2007, 11:01:01 PM
Quote from: RoarinRow on February 15, 2007, 10:19:30 PM
Quote from: BlueDevil on February 15, 2007, 09:53:45 PM
Quote from: BlueDevil on February 15, 2007, 09:33:29 PM
I tried this mod with no errors but my site now is blank. Any ideas on how to remove the mod or fix this?

www.midwestavalancheclub.com



bump.

does your server have an error log that you can get to via FTP?  if there is, check out the scripts.log or something like that and see what's fouling up your forum.  It might be your Load.php file.  If you can restore that file from a previous version or from the latest SMF package, that might do the trick.

From there you'll have to add the lines of codes from your mods or something, but this might be your screen back.

Is fixed for now.     i renamed the index.php   Now i can go to bed.

Cool, later Mick!   
Title: Re: Global Announcements
Post by: JayBachatero on February 16, 2007, 01:02:41 PM
I'm confussed.  Was this a user error or mod error?
Title: Re: Global Announcements
Post by: Mick. on February 16, 2007, 07:24:48 PM
Quote from: JayBachatero on February 16, 2007, 01:02:41 PM
I'm confussed.  Was this a user error or mod error?

After i uploaded this mod,my site went blank. I typed my URL and nothing showed. I renamed the index.php and everything came back up.  Im not really sure what happened but the mod is working just fine now.
Title: Re: Global Announcements
Post by: korby on February 20, 2007, 05:03:03 PM
I have a problem. I just installed it manualy on SlickPro Graphite theme and... nothing happened. :| Theoreticaly it's all good, I did it just how install.xml described it. :(

Please help if you can. Thanks alot.
Title: Re: Global Announcements
Post by: JayBachatero on February 21, 2007, 10:32:50 AM
Quote from: BlueDevil on February 16, 2007, 07:24:48 PM
Quote from: JayBachatero on February 16, 2007, 01:02:41 PM
I'm confussed.  Was this a user error or mod error?

After i uploaded this mod,my site went blank. I typed my URL and nothing showed. I renamed the index.php and everything came back up.  Im not really sure what happened but the mod is working just fine now.
That weird.

Quote from: korby on February 20, 2007, 05:03:03 PM
I have a problem. I just installed it manualy on SlickPro Graphite theme and... nothing happened. :| Theoreticaly it's all good, I did it just how install.xml described it. :(

Please help if you can. Thanks alot.
You need to manually install that mod for the theme.
Title: Re: Global Announcements
Post by: korby on February 21, 2007, 11:47:09 AM
That's what I did. :)
Title: Re: Global Announcements
Post by: korby on February 24, 2007, 08:22:57 AM
Still searching for help, please. :(
Title: Re: Global Announcements
Post by: veldfire on February 26, 2007, 04:30:26 PM
Quote from: wxtracker93 on February 03, 2007, 12:47:39 PM
Quote from: Gandalf The White on February 03, 2007, 11:22:52 AM
I am using babylon theme and can't find:
   // Create the button set...
   $normal_buttons = array(


Where can i edit?


I am using the Proton theme and can't find that either.
Has this issue been addressed as I too do not have that bit in my MessageIndex.template.php ?
Title: Re: Global Announcements
Post by: Farmacija on February 27, 2007, 10:36:39 AM
HM, Board notes doesn't show  after installing Global announcement mod ??
Title: Re: Global Announcements
Post by: korby on February 27, 2007, 04:20:11 PM
I have another problem. I got it enabled, but now shows doubled announcements. :|

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg267.imageshack.us%2Fimg267%2F7388%2Fscreenshot001gp9.th.jpg&hash=52b5f1c1b3bb5e676558e0826063d8c31f765565) (http://img267.imageshack.us/my.php?image=screenshot001gp9.jpg)




Fixed.
Title: Re: Global Announcements
Post by: Tanix on February 27, 2007, 07:09:38 PM
Perhaps you installed it twice.
Title: Re: Global Announcements
Post by: korby on February 28, 2007, 10:54:10 AM
I said it's fixed. :P I accidentaly wrote twice this stuff:
"// Global Announcements...
   if (isset($context['globalAnnouncements']) && count($context['globalAnnouncements']) != 0)..."
Title: Re: Global Announcements
Post by: blaze416 on March 05, 2007, 06:53:37 PM
i installed this mod on my board and then turned around and acidentally unintalled it and now it errors during the test install.  heres the error any ideas

6. Execute Modification ./Sources/ManagePermissions.php Test failed  
Title: Re: Global Announcements
Post by: JayBachatero on March 08, 2007, 11:48:19 PM
Quote from: blaze416 on March 05, 2007, 06:53:37 PM
i installed this mod on my board and then turned around and acidentally unintalled it and now it errors during the test install.  heres the error any ideas

6. Execute Modification ./Sources/ManagePermissions.php Test failed 
Need to manually make the change.
Title: Re: Global Announcements
Post by: JSizzal on March 08, 2007, 11:51:28 PM
How would I install this mod and others on every single theme?

Thanks in advance!!
Title: Re: Global Announcements
Post by: JayBachatero on March 09, 2007, 12:11:37 AM
Need to edit the MessageIndex.template.php file.  Take a look at SMF Package Parser - The perfect utility for installing mods manually (http://www.simplemachines.org/community/index.php?topic=140034.0)
Title: Re: Global Announcements
Post by: veldfire on March 09, 2007, 06:55:48 AM
Quote from: JayBachatero on March 09, 2007, 12:11:37 AM
Need to edit the MessageIndex.template.php file.  Take a look at SMF Package Parser - The perfect utility for installing mods manually (http://www.simplemachines.org/community/index.php?topic=140034.0)
That's a great script, however, it doesn't answer my question !

I am using a custom theme and don't have:
  // Create the button set...
   $normal_buttons = array(



Where can i edit?
Title: Re: Global Announcements
Post by: ramiz on March 28, 2007, 12:16:53 AM
hi

i am using this module with SMF1.1RC3
it installed sucessfully..even i got the "Global Announcements" option on my admin cp
but after adding an announcement for some selected board, if i come to my forumhome
and click on that particular board ...nothing is visible as Global Announcements on the top of the Board

i have already enabled the Global Announcements setting

any help plz
Title: Re: Global Announcements
Post by: edi67 on March 28, 2007, 02:51:00 AM
Quote from: edi67 on February 03, 2007, 01:49:45 AM
Quote from: JayBachatero on February 01, 2007, 09:46:39 AM
Quote from: edi67 on February 01, 2007, 06:15:53 AM
great mod Jay as usual

I want ask one thing: will be possible in future add the possibility for users to REPLY our Global Announcements? i will like this idea, that users can reply to certain announcements.
I was thinking of doing a Super Sticky mod that you are able to reply to.

i realy wait impatience it thx :)

Up, waiting for this implementation

thx for your nice mod jay
Title: Re: Global Announcements
Post by: edwardsiow on March 28, 2007, 09:45:53 AM
when using SMF Package Parser to open, got error...

i can't install manually.....hmmmm
Title: Re: Global Announcements
Post by: JayBachatero on March 30, 2007, 07:12:59 PM
Quote from: ramiz on March 28, 2007, 12:16:53 AM
hi

i am using this module with SMF1.1RC3
it installed sucessfully..even i got the "Global Announcements" option on my admin cp
but after adding an announcement for some selected board, if i come to my forumhome
and click on that particular board ...nothing is visible as Global Announcements on the top of the Board

i have already enabled the Global Announcements setting

any help plz

First thing first.  I suggest that you upgrade to 1.1.2 ASAP.  Also are you using a custom theme?

Quote from: edwardsiow on March 28, 2007, 09:45:53 AM
when using SMF Package Parser to open, got error...

i can't install manually.....hmmmm
What error do you get?
Title: Re: Global Announcements
Post by: ramiz on April 05, 2007, 12:28:19 AM
Quote from: ramiz on March 28, 2007, 12:16:53 AM
hi

i am using this module with SMF1.1RC3
it installed sucessfully..even i got the "Global Announcements" option on my admin cp
but after adding an announcement for some selected board, if i come to my forumhome
and click on that particular board ...nothing is visible as Global Announcements on the top of the Board

i have already enabled the Global Announcements setting

any help plz


First thing first.  I suggest that you upgrade to 1.1.2 ASAP.  Also are you using a custom theme?

hi JayBachatero

thanks for your reply..
my site is already live bit difficult to upgrade it and dont know properly how to upgrade from 1.1 to 1.1.2...

anywayes i am not using custom theme ..i am using SlickPro_Graphite

every thing working except announcement is not coming on the top of the board

nothing related to GA mod in error logs ..... i am  pesting down my error logs
----------------------------------------------------------------------------------
Apply Filter: Only show the error messages of this URL  http://iimbaa.org/forum/index.php?option=com_smf&amp;Itemid=45&amp;action=admin
Apply Filter: Only show the errors with the same message
8: Undefined variable: sidenav
File: /home/iimbaao/public_html/templates/rt_versatility_ii_sienna/index.php
Line: 114 
----------------------------------------------------------------------------------
help plz my site is live
Title: Re: Global Announcements
Post by: TrueSatan on April 05, 2007, 03:59:30 AM
@ ramiz

Quoteanywayes i am not using custom theme ..i am using SlickPro_Graphite

SlickPro_Graphite is a custom theme! You are using a custom theme!

If you switch to the default theme your install will probably show as having worked properly...it only installs into the default theme not any other themes.

You ought not to install new items into a live site without testing them first...do this by use of a spare test forum...preferrably two...one test forum that is completely new...not been modded or themed before...the other a copy of the files and database from your live forum. First try it in the new/fresh forum if the mod works for you in that then try it in the copy of the live forum...only if it works in that even consider adding it to your live forum.

I'll let somebody else have the task of explaining to you how to upgrade your forum.
Title: Re: Global Announcements
Post by: ramiz on April 05, 2007, 08:06:38 AM
yes i am using custom theme only...sorry for that mistake
i have checked in the default theme....the GA mod is working properly

is there any other way to make this GA mod work with my customtheme SlickPro_Graphite
Title: Re: Global Announcements
Post by: TrueSatan on April 05, 2007, 08:44:22 AM
Have a read:

http://www.simplemachines.org/community/index.php?topic=140049.0 (http://www.simplemachines.org/community/index.php?topic=140049.0)
Title: Re: Global Announcements
Post by: veldfire on April 05, 2007, 08:28:42 PM
Quote from: veldfire on March 09, 2007, 06:55:48 AM
Quote from: JayBachatero on March 09, 2007, 12:11:37 AM
Need to edit the MessageIndex.template.php file.  Take a look at SMF Package Parser - The perfect utility for installing mods manually (http://www.simplemachines.org/community/index.php?topic=140034.0)
That's a great script, however, it doesn't answer my question !

I am using a custom theme and don't have:
  // Create the button set...
   $normal_buttons = array(



Where can i edit?

Title: Re: Global Announcements
Post by: ramiz on April 10, 2007, 12:05:22 AM
Quote from: TrueSatan on April 05, 2007, 08:44:22 AM
Have a read:

http://www.simplemachines.org/community/index.php?topic=140049.0 (http://www.simplemachines.org/community/index.php?topic=140049.0)

thanks TrueSatan

GA Mod is now working with my customtheme SlickPro_Graphite
i have modified&nbsp; SlickPro_Graphite's index.template.php and MessageIndex.template.php

Title: Re: Global Announcements
Post by: hypnoticstate on April 12, 2007, 08:41:15 AM
I just can't for life of me work out where to put the custom code in the messageindex.template file on the helios theme, I thought I'd sussed it at one point but it screwed with the tables. I think it may be to do with the fact that I am using the "Important topics hack" ie All stickies above the forum posts.

I'll attach my messageindex.template up, as its to long to post. if anyone can tell where to put the code I'll love you forever.

Title: Re: Global Announcements
Post by: veldfire on April 12, 2007, 05:57:26 PM
Here's the error using the Package Parser:

ERROR: The package-info.xml file is invalid!


Debugging Information
Error message: String could not be parsed as XML
Source: /home/groups/modparser/htdocs/index.php:132
Errors encountered while parsing XML file:
Stack Trace:
#0 /home/groups/modparser/htdocs/index.php(132): SimpleXMLElement->__construct('')
#1 /home/groups/modparser/htdocs/index.php(93): parsePackageInfoXML('/tmp/smf_xml/pa...', 'install', 'all')
#2 /home/groups/modparser/htdocs/index.php(750): parseArchive('/tmp/phpbQwmX0', 'install', 'all')
#3 {main}

XML File:


I am using a custom theme and don't have:


&nbsp; // Create the button set...
&nbsp; &nbsp;$normal_buttons = array(


Where can i edit?
Title: Re: Global Announcements
Post by: vijayr on May 17, 2007, 02:34:37 PM
I installed this mod successfully. But i dont see the link to access the Global Announcement mod. I dont have a separate menu called mod. Whats wrong. I use the default theme.

Two announcements are created. One below the other. Whats the problem.
Title: Re: Global Announcements
Post by: AmazinAzn on June 07, 2007, 01:58:33 PM
I installed the Global Announcements mod and when I did I got a bunch of unnecessary text at the top of my site.

This is what it says:
//Global Announcements adminIndex text strings. $txt['global_announcements_admin'] = 'Global Announcements'; $txt['global_announcements_mods'] = 'Mods'; $txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the Global Announcements.'; $txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement';

I uninstalled the mod and it's still there, any idea why it's there and how to take it off?
Title: Re: Global Announcements
Post by: TrueSatan on June 07, 2007, 05:31:01 PM
@AmazinAzn

Your install and uninstall of this mod obviously didn't go as it should...you need to look Themes/default/languages/Modifications.english.php
The file will have the text you are concerned about at it's end...you need to delete it if you want the mod uninstalled but in any event the problem is caused because the file needs to end with ?> on a line of its own...your file will have that code but not at the end of it.

It's likely that other mods you have installed have caused some issue that has made this mod fail to install properly. I'm surprised that the package manager didn't show you errors in install or uninstall...perhaps it did and you chose to ignore them. If this is the case then you need to manually inspect and, if needed, fix the files that showed errors.
Title: Re: Global Announcements
Post by: LadyKay on June 13, 2007, 03:24:11 PM
I recently installed the GA Mod and edited the MessageIndex.template.php.  My admin panel seems to be working fine but global announcements aren't showing on the boards.  I am using the classic theme and tried viewing with the default theme as well.  The announcements still don't show up.  What am I doing wrong?
Title: Re: Global Announcements
Post by: HecKel on June 14, 2007, 05:31:15 AM
This mod will be a default feature in SMF 2.0?

HecKel
Title: Re: Global Announcements
Post by: mrw1986 on June 22, 2007, 02:16:17 AM
Everything installed ok, but I get this error when trying to add a GA.

Field 'modifiedTime' doesn't have a default value
File: C:\XiX Designs\forum\Sources\GlobalAnnouncementsAdmin.php
Line: 270


Can anybody help?
Title: Re: Global Announcements
Post by: Saxe on June 26, 2007, 11:38:52 AM
Quote from: veldfire on April 05, 2007, 08:28:42 PM
Quote from: veldfire on March 09, 2007, 06:55:48 AM
Quote from: JayBachatero on March 09, 2007, 12:11:37 AM
Need to edit the MessageIndex.template.php file.  Take a look at SMF Package Parser - The perfect utility for installing mods manually (http://www.simplemachines.org/community/index.php?topic=140034.0)
That's a great script, however, it doesn't answer my question !

I am using a custom theme and don't have:
  // Create the button set...
   $normal_buttons = array(



Where can i edit?


Seriously, can someone answer? My custom theme doesn't have this line, I have _no_ idea where it should go. Anyone able to explain the step further?
Title: Re: Global Announcements
Post by: sambalisG on June 26, 2007, 03:12:27 PM
Please can you help me with installation in Greek language under 1.1.2???
Title: Re: Global Announcements
Post by: TrueSatan on June 26, 2007, 08:17:32 PM
Quote from: Saxe on June 26, 2007, 11:38:52 AM
Quote from: veldfire on April 05, 2007, 08:28:42 PM
Quote from: veldfire on March 09, 2007, 06:55:48 AM
Quote from: JayBachatero on March 09, 2007, 12:11:37 AM
Need to edit the MessageIndex.template.php file.  Take a look at SMF Package Parser - The perfect utility for installing mods manually (http://www.simplemachines.org/community/index.php?topic=140034.0)
That's a great script, however, it doesn't answer my question !

I am using a custom theme and don't have:
  // Create the button set...
   $normal_buttons = array(



Where can i edit?


Seriously, can someone answer? My custom theme doesn't have this line, I have _no_ idea where it should go. Anyone able to explain the step further?

Without inspecting your custom theme I'd only be able to offer this general advice...not all themes can/will support all mods so if you can't resolve this yourself and the theme developer can't help then it might be time for you to consider using a different theme or not using mods the theme makes it difficult or impossible to add. Sadly this tends to be the reality of the situation you are in and I do appreciate that it leaves you with the possibility of a less than ideal choice.
Title: Re: Global Announcements
Post by: Saxe on June 27, 2007, 12:18:24 PM
TrueSatan, I understand. I was hoping someone could tell me what comes before or after the normal_buttons array.
Title: Re: Global Announcements
Post by: sambalis on June 30, 2007, 11:27:34 AM
How can make this mod work in Greek Please???
Title: Re: Global Announcements
Post by: TrueSatan on June 30, 2007, 12:44:01 PM
@ Sambalis

Without going through all the code I'd say the obvious first step is to find the following code that the mod will have installed into Modifications.english.php

//Global Announcements adminIndex text strings.
$txt['global_announcements_admin'] = 'Global Announcements';
$txt['global_announcements_mods'] = 'Mods';
$txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the <a href="' . $scripturl . '?action=globalAnnouncementsAdmin">Global Announcements</a>.';
$txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement';


Copy it to Modifications.greek.php and edit it to change the English items into Greek items...change the part after the "=" sign only.

You might like to read http://docs.simplemachines.org/index.php?topic=395.msg528#msg528 (http://docs.simplemachines.org/index.php?topic=395.msg528#msg528)
Title: Re: Global Announcements
Post by: kill3r on July 01, 2007, 02:50:02 PM
Plz update this for 1.1.3. thanks
Title: Re: Global Announcements
Post by: TrueSatan on July 01, 2007, 04:59:25 PM
Had you tried the mod prior to posting your message you'd have found that it already supports SMF 1.1.3
Title: Re: Global Announcements
Post by: Pranav on July 01, 2007, 10:27:08 PM
it works with 1.1.3. Cool! 8)
Title: Re: Global Announcements
Post by: mrw1986 on July 02, 2007, 01:02:06 AM
So can anyone help me with Field 'modifiedTime' doesn't have a default value
File: C:\XiX Designs\forum\Sources\GlobalAnnouncementsAdmin.php
Line: 270[\code]
Title: Re: Global Announcements
Post by: kill3r on July 03, 2007, 01:50:27 PM
Quote from: TrueSatan on July 01, 2007, 04:59:25 PM
Had you tried the mod prior to posting your message you'd have found that it already supports SMF 1.1.3

No i never tried tat coz once i did like tat with some other mod and it messed up my database. its some sad story  ::)  between thanks for your time.
Title: Re: Global Announcements
Post by: TrueSatan on July 03, 2007, 02:14:10 PM
@kill3r

SMF advisde you to backup both your files and your database prior to installing or uninstalling any mod or theme for that very reason. If you have those backups you can always restore from them with no harm done.
Title: Re: Global Announcements
Post by: talex on July 05, 2007, 04:53:00 AM
Ok, i first tried to install this mod, but it didn't due to many other mods that are already on my board, so i tried to install it manually.
Everything seemed to go ok, but the needed boards in mysql weren't created.
So, i installed it on a clean installation of smf on my pc's wamp,took the query from there and then ran the sql query, so that the 2 needed boards are created.
But, when i try to activate the mod, it says that these sql boards are not found.
What have i done wrong?
How can i make it work correctly, and communicate with the db?
Thanks in advance for any advice.
Title: Re: Global Announcements
Post by: TrueSatan on July 05, 2007, 07:20:22 AM
Extract from the package the file ga_install.php upload that file to your forum root then browse to the file so as to load it...that should put the database entries right.
Title: Re: Global Announcements
Post by: bruno.cunha on July 05, 2007, 10:12:59 AM
I have installed the GA mod on 1.1.3 and I can't see where I can find the mod under admin. I'm using the babyllon theme.
Title: Re: Global Announcements
Post by: TrueSatan on July 05, 2007, 10:36:07 AM
@ bruno.cunha

Does the mod appear in your ACP if you switch to the SMF default theme? If so it is installed and working properly.

Like almost all mods this mod only installs into the SMF default theme. If you want to use any other theme (referred to as a custom theme) then you need to edit the files of that them manually to make it work...please see:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
Title: Re: Global Announcements
Post by: bruno.cunha on July 05, 2007, 12:01:22 PM
Not even using the SMF Default Theme - Core I can see it. Going to uninstall it and install it again
Title: Re: Global Announcements
Post by: bruno.cunha on July 05, 2007, 12:46:50 PM
No such luck. I'm using the default theme, and still can't see the the GA
Title: Re: Global Announcements
Post by: TrueSatan on July 05, 2007, 05:57:23 PM
Make sure that your forum language ACP>Server Settings is set to english and not english utf8.
Title: Re: Global Announcements
Post by: bruno.cunha on July 06, 2007, 10:00:15 AM
The server is set to english as goes with the default instalation. I'm also using portuguese utf8, but at this moment it's using english
Title: Re: Global Announcements
Post by: bruno.cunha on July 10, 2007, 12:20:24 PM
I made a brand new installation of smf, using only english portuguese. In english the GA is available, but on portuguese it's not available. Any reason why is this happening?
Title: Re: Global Announcements
Post by: HecKel on July 10, 2007, 05:17:08 PM
Hi!

I am portuguese too :P

You have to edit the portuguese language files and insert all the new modifications there. See on the install.xml file what and how english languages files are modified and do that to portuguese language files.

HecKel
Title: Re: Global Announcements
Post by: bruno.cunha on July 12, 2007, 07:20:13 AM
Sorry but can't find a install.xml
Title: Re: Global Announcements
Post by: TrueSatan on July 12, 2007, 07:31:36 AM
install.xml file is in the mod package...on your local machine unpack the mod archive and then read the file to see the edits made to the english files and apply similar edits to your portugese ones as directed by Heckel above.
Title: Re: Global Announcements
Post by: troyrulz007 on July 12, 2007, 07:55:23 AM
ok the theme im using doesnt have its own messageindex.template.php so im modifying the one in the default folder, as far as i can tell i have added in the code to make it display correctly but instead i have

//Global Announcements adminIndex text strings. $txt['global_announcements_admin'] = 'Global Announcements'; $txt['global_announcements_mods'] = 'Mods'; $txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the Global Announcements.'; $txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement';

showing at the top of every page. any suggestions?
Title: Re: Global Announcements
Post by: TrueSatan on July 12, 2007, 08:26:21 AM
Check your Modifications.english.php file...if your custom theme doesn't have it's own one then the one from the SMF default theme will be used. Look for:

?>

...it should appear once only and at the end of the file on a line of its own. Edit as necessary to make this the case.
Title: Re: Global Announcements
Post by: bruno.cunha on July 12, 2007, 12:17:16 PM
I edited the install.xml and changed where it says .english to portuguese. Uploaded again the file and when installing the mod it had an error in Errors.portuguese.php. The rest of the files were ok. I'm uding the default template.

@ HecKel - It's good to see a fellow country man here :D

Title: Re: Global Announcements
Post by: TrueSatan on July 12, 2007, 01:45:32 PM
Just editing the name of the file isn't sufficient...you need to edit the text in the file to the Portuguese equivalents of the words used in it. You didn't need to edit install.xml...Heckel said..

QuoteSee on the install.xml file what and how english languages files are modified and do that to Portuguese language files.

It would be best if you uninstalled the mod then installed an unmodified version of the mod and then edited the Portuguese language files as per Heckel's advice above...note there are four files to edit. That way the english version will be unmodified and installed in full so that you can use that to check that the mod is working properly.
Title: Re: Global Announcements
Post by: bruno.cunha on July 12, 2007, 01:48:14 PM
ok, thanks, i'll try that :D
Title: Re: Global Announcements
Post by: troyrulz007 on July 12, 2007, 07:51:12 PM
it
Quote from: TrueSatan on July 12, 2007, 08:26:21 AM
Check your Modifications.english.php file...if your custom theme doesn't have it's own one then the one from the SMF default theme will be used. Look for:

?>

...it should appear once only and at the end of the file on a line of its own. Edit as necessary to make this the case.

it is at the very end of the file but there is nothing about this particular mod in the file either :s
Title: Re: Global Announcements
Post by: TrueSatan on July 12, 2007, 09:03:58 PM
@ troyrulz007

Prior to trying to install a mod in any custom theme you should install it via the Package manager which will add it to the SMF default theme. Your posting suggests that you did not do this.


When doing a manual installation into a custom theme this mod requires that you add the following code to Modifications.english.php of the custom theme...if the theme has no such file then it will use the file from the SMF default theme and the edits will have already been made in that by the Package manager.


//Global Announcements adminIndex text strings.
$txt['global_announcements_admin'] = 'Global Announcements';
$txt['global_announcements_mods'] = 'Mods';
$txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the <a href="' . $scripturl . '?action=globalAnnouncementsAdmin">Global Announcements</a>.';
$txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement';


The code above is exactly the code you reported as
Quoteshowing at the top of every page
. The mod won't have added it to any other file and it will only do as you have reported if the ?> in the file is in the wrong place or duplicated.

If you have added the code to the wrong file please remove it.

If your custom theme doesn't have its own messageindex.template.php it will use the one in the SMF default theme and if you installed the mod using the package manager then the edits to that file in the SMF default theme will already have been made.

You need to make the edits to the files in your custom theme's language directory as detailed in the install.xml file of the package.
Title: Re: Global Announcements
Post by: bruno.cunha on July 16, 2007, 06:00:29 AM
@ TrueSatan
The four files you refered to are they the error.portuguese; help.portuguese; admin.portuguese and index.portuguese?
I looked inside those files, and can't understand what to change.

Thanks
Title: Re: Global Announcements
Post by: TrueSatan on July 16, 2007, 08:33:14 AM
@ bruno.cunha

The files are referred to (in their English equivalents) in the install.xml file found in the mod package...they are:

Modifications.english.php...thus Modifications.portugese.php

Help.english.php...thus Help.portugese.php

ManagePermissions.english.php...thus ManagePermissions.portugese.php

Errors.english.php...thus Errors.portugese.php

They should all be in your theme languages directory. If any don't exist you would need to create them using the equivalent english file as a template.

You should look at the english files and what edits the install.xml file seeks to make to them then do equivalent edits to the portugese language files...for example:

$txt['permissionname_global_announcements_admin'] = 'Manage Global Announcements';

in that line you would need to alter Manage Global Announcements to the portugese language equivalent when you add it to the ManagePermissions.portugese.php file but you should not translate the rest of that line...you only alter the part after the equals sign.
Title: Re: Global Announcements
Post by: HecKel on July 16, 2007, 08:47:56 AM
brunho.cunha, you have to open the XML file that make modifications on the language files, templates, source files, etc.

For example:

Search for something like this:

<file name="$languagedir/Who.english.php">
   <operation error="ignore">
      <search position="after"><![CDATA[
?>]]></search>
      <add><![CDATA[
$txt['whoall_blbla'] = 'Viewing the <a href="' . $scripturl . '?action=blabla">Blabla</a> Page';
]]></add>
   </operation>
</file>


As you can see, the file tag tells you what file to edit, the searchposition tag tells you WHERE you have to change, and the add tag tells you what to do.

In this example you have to open Who.portuguese.php, search for ?> and add before (the after you read is where the search result will be) all text between <add><![CDATA[ and ]]></add>.

XML is as an instruction manual ;)

HecKel
Title: Re: Global Announcements
Post by: bruno.cunha on July 16, 2007, 10:29:44 AM
Going to try it again. Thanks so much to both of you :D
Title: Re: Global Announcements
Post by: HecKel on July 16, 2007, 12:06:39 PM
Bruno, i think that would be easier if you ask help on the Portuguese board (http://www.simplemachines.org/community/index.php?board=18.0), what you want is usefull for every MOD that you want to install manually.

That isn't only for this MOD.

HecKel
Title: Re: Global Announcements
Post by: bruno.cunha on July 17, 2007, 01:14:33 PM
Once again, thanks Heckel. Going to try the Portuguese Board
Title: Re: Global Announcements
Post by: tonzi on July 19, 2007, 12:36:11 AM
i am having an error during installarion.

./Sources/ManagePermissions.php                    Test failed
Title: Re: Global Announcements
Post by: TrueSatan on July 19, 2007, 08:45:18 PM
That is a variant on the most common problem reported on these pages...all it means is that another mod has aready edited the file and you thus need to do a manual installation of this mod. Please read the official SMF documentation:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

The following may also help:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: Global Announcements
Post by: RAN on July 20, 2007, 01:25:43 PM
Hi,

I have a problem. Already try to find a solution but no way.
Where I can change the color of the fonts? I can see anything

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.sharingengines.com%2Fimagens_forum%2Fim.jpg&hash=8ca808a29fd963e1e1c96664d2dad6a81aca8ea4)

Thank you for your great help
Title: Re: Global Announcements
Post by: TrueSatan on July 20, 2007, 01:32:43 PM
@ RAN

This looks to be more of a question for the developer of the custom theme you are using but I suggest that you look at style.css  It is located in themes/theme folder.


You should also be able to edit it directly by logging in on your forum, going to admin, clicking on Themes & Layout, click Modify Themes, then click on "Edit this theme's stylesheet" under the theme you want to modify.
Title: Re: Global Announcements
Post by: RAN on July 20, 2007, 02:06:59 PM
Is very complicated. I setup graphit theme under default theme. Is working ok but i'm not able to edit or modify it.
I already try edit style.css changing all the blacks to whites. It changes all except the fonts.

Here is the color of that fonts?
If you see on the picture all the others are ok 'subjet' 'created by'... only the fonts of GA are black
Any tips?

Thank you for your great help
Title: Re: Global Announcements
Post by: TrueSatan on July 20, 2007, 05:01:49 PM
Have you looked at Jay's first post in this topic where he describes how to add the mod to a custom theme? Follow through what he details and see if that fixes the problem.

I only use one theme, SMF Default, so I'm not the best person, by a long way, to sort out theme problems and if that doesn't fix your issue I may have to pass this on this one.
Title: Re: Global Announcements
Post by: RAN on July 20, 2007, 05:07:44 PM
I apreciate you help but i already try change any item without sucess

Here is the color of the fonts? Uff i'm going crazy... He he he

Not in style.css where ist it?

Thank you very much for your help
Title: Re: Global Announcements
Post by: writerrobert680 on July 26, 2007, 07:05:38 AM
I installed the mod and I enjoy the great thing it does! Great job! :)
Title: Re: Global Announcements
Post by: TrueSatan on July 26, 2007, 08:24:36 AM
@ RAN

Seeing as you've had nobody else step in who might be better at theme questions than I I'll suggest that you look at lines 290 to 339 of GlobalAnnouncements.template.php...no promises but that's where I'd start.
Title: Re: Global Announcements
Post by: RAN on July 26, 2007, 09:02:40 AM
Thank you very much for you help
Title: Re: Global Announcements
Post by: TrueSatan on July 26, 2007, 10:17:19 AM
My pleasure...and if that does help sort out your problem please post back so we'll know in case of future similar queries.
Title: Re: Global Announcements
Post by: gheybo on August 03, 2007, 10:08:38 AM
Sorry for the trouble but this is what my error was. I'm with SMF 1.1.3

How can I fix this up? Thank you!

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg245.imageshack.us%2Fimg245%2F3597%2Fglobalannqt2.jpg&hash=d3961f19f06e656158790f34c1f7c25f2a9717f7)
Title: Re: Global Announcements
Post by: TrueSatan on August 03, 2007, 10:22:17 AM
Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: Global Announcements
Post by: gheybo on August 03, 2007, 10:50:00 AM
Thank you for that. I'll go find it out myself since I'm all new at this. Thanks >=]
Title: Re: Global Announcements
Post by: BattleZone on August 09, 2007, 01:05:57 AM
I have the same thing...

the file is a .tar file...

and I'm unsure what to edit...either add in or remove...
Title: Re: Global Announcements
Post by: TrueSatan on August 09, 2007, 04:24:57 AM
If you follow the directions I gave in my initial reply to gheybo you will find that that answers your query.
Title: Re: Global Announcements
Post by: BattleZone on August 09, 2007, 11:12:40 AM
I've tried that...

the Modparser...comes up with an error when run through...so essentially pointless...

The document regarding manual installation of mods describes .xml and older files...which essentially is a reguler zip file...
which...the .tar file isn't...

1) I can't figure out how to "unzip" it...
2) I can't figure out WHAT to do...because normally you'd unzip and then follow the .xml files to figure out how to manually install...seeing as I can't unzip it...I have no idea what to edit...

Title: Re: Global Announcements
Post by: TrueSatan on August 09, 2007, 11:41:02 AM
Your zip file is a kind of archive...there are many different kinds of archives and zip is only one such...several of these different kinds of archives work perfectly well to produce a mod package for SMF...there's nothing whatever wrong in using a .tar or a .tar.gz file. You merely need to use a different piece of software than whatever you use currently to unpack them if your current software doesn't support such archives.

I would suggest tugZIP http://www.tugzip.com/ (http://www.tugzip.com/), IZarc [urlhttp://www.izarc.org/[/url], alZIP http://www.altools.net/ (http://www.altools.net/) or Ultimate Zip http://www.ultimatezip.com/ (http://www.ultimatezip.com/) as four excellent and entirely free products that would do the job perfectly well for you on the Windows platform...Linux handles such files natively.

You should then be able to proceed as normal.
Title: Re: Global Announcements
Post by: fenyullow on August 13, 2007, 05:23:17 PM
I have a Chinese Forum running on 1.1 rc2. I got this mod installed by adding the string in modification.chinese.php, so it shows in the admin panel, however, it doesn't show any buttons when I click "Global Annoucement", see attached screenshot. Anything else I need to change?

Thanks
Title: Re: Global Announcements
Post by: JayBachatero on August 20, 2007, 01:16:09 AM
1st thing first.  Why are you still running 1.1 RC2?  Should upgrade soon.

2nd you need to edit GlobalAnnouncements.englush.php for those strings.
Title: Re: Global Announcements
Post by: fenyullow on August 20, 2007, 11:16:18 AM
JayBachatero,

Yes, I'm trying to upgrade very soon, just want to fix a few things before that.

2nd, I added those strings into GlobalAnnouncementsAdmin.english.php, not GlobalAnnouncements.englush.php (which I couldn't find), however it still does the same thing.

The options (add/edit) show in the admin when I switch to the English language, and when I switch to another language, the 'Global Announcements" still shows under "Mod", but when I click it, it doesn't shows the buttons where I can add\edit\delete the annoucements.

thanks
Title: Re: Global Announcements
Post by: JayBachatero on August 23, 2007, 09:53:55 AM
You need to translate the language strings in GlobalAnnouncementsAdmin.english.php into your language.
Title: Re: Global Announcements
Post by: chubbyboy on August 23, 2007, 10:24:01 AM
Is it possible to post reply to the global annoucement?
Title: Re: Global Announcements
Post by: JayBachatero on August 23, 2007, 12:00:11 PM
No.
Title: Re: Global Announcements
Post by: fenyullow on August 23, 2007, 12:02:54 PM
Quote from: JayBachatero on August 23, 2007, 09:53:55 AM
You need to translate the language strings in GlobalAnnouncementsAdmin.english.php into your language.

Thank you for the response. So here is what I did:

1, I translate all the strings in the GlobalAnnouncementsAdmin.english.php into Chinese
2, Overwrite the old one, but it still doesn't show the "Edit", "Add" and "Settings" tabs when I click the Global Announcement under Mod.
3, However if I switch the forum language to English, then I can see all the translated strings as  "Edit", "Add" and "Settings".

Is there anything I'm missing?
Thanks a lot.
Title: Re: Global Announcements
Post by: TrueSatan on August 23, 2007, 12:29:44 PM
 You should leave the old english file alone and upload a new file Admin.chinese.php so that when you select English as your forum language the english file will be used and when you select Chinese the Chinese file will be used. You need to treat all the other english files for the mod the same way:

Modifications.english.php
Help.english.php
ManagePermissions.english.php
Errors.english.php

You probably already have Chinese versions of the above files but the code this mod puts into the English files needs to be translated to Chinese and applied to the Chinese files.
Title: Re: Global Announcements
Post by: fenyullow on August 23, 2007, 03:08:24 PM
TrueSatan, thank, that  works.

Ok, now I have another question: it appears that if the board has a sub-board, the GA will be below the sub-board, is there anyway to move it to the top?

Thanks
Title: Re: Global Announcements
Post by: slackerpunk on August 25, 2007, 08:26:04 PM
based on the download link it does not states if it works with 1.1.3
Title: Re: Global Announcements
Post by: slackerpunk on August 25, 2007, 08:39:22 PM
ok I did test it my self and it works fine for me
Title: Re: Global Announcements
Post by: fenyullow on August 27, 2007, 10:26:55 AM
Two more questions here:

1, it appears that if the board has a sub-board, the GA will be shown below the sub-board, is there anyway to move it to the top? Which file should I modify?

2, Which file should I change to change title of GA board to be another language. Please see attached screenshot. Now everything else is shown as another language except the title of GA board.
thanks
Title: Re: Global Announcements
Post by: razorblitz07 on August 27, 2007, 07:21:29 PM
Umm, I just created a Global Announcement (installed successfully) but the GA won't come up at the top of the forum sections.  Why is this?
Title: Re: Global Announcements
Post by: Farmacija on August 27, 2007, 07:49:20 PM
Quote from: fenyullow on August 27, 2007, 10:26:55 AM

2, Which file should I change to change title of GA board to be another language. Please see attached screenshot. Now everything else is shown as another language except the title of GA board.
thanks
same question. i try on my own to find what should change, but i didn't have any result...
Title: Re: Global Announcements
Post by: TrueSatan on August 27, 2007, 08:50:36 PM
To change the title of the GA to another language go to your MessageIndex.template.php file in each of your theme directories (supposing you use more than one theme) and find the followign block of code:


// Global Announcements...
if (isset($context['globalAnnouncements']) && count($context['globalAnnouncements']) != 0)
{
echo '
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr>
<td colspan="7" class="titlebg">Global Announcements</td>
<tr>
<tr>
<td class="catbg3" width="9%" colspan="2"></td>
<td class="catbg3">', $txt[70], '</td>
<td class="catbg3" width="14%">', $txt[109], '</td>
<td class="catbg3" width="4%" align="center">', $txt[110], '</td>
<td class="catbg3" width="4%" align="center">', $txt[301], '</td>
<td class="catbg3" width="22%">Time</td>
</tr>';

// Loop through the Global Announcements
foreach ($context['globalAnnouncements'] as $globalAnnouncement)
{
echo '
<tr class="windowbg2">
<td align="center">
<img src="', $settings['images_url'], '/post/' .$globalAnnouncement['ga']['icon']. '.gif" alt="" />
</td>
<td align="center">
<img src="', $settings['images_url'], '/post/exclamation.gif" alt="" />
</td>
<td ' ,$globalAnnouncement['ga']['enabled'] == 0 ? 'style="background-color: #e9e9e9; color: #8d8d8d;"' : 'class="windowbg"', '>
<a href="' ,$globalAnnouncement['ga']['href'], '" >', $globalAnnouncement['ga']['subject'], '</a>
</td>
<td>
', $globalAnnouncement['member']['link'], '
</td>
<td align="center" class="windowbg">
--
</td>
<td align="center" class="windowbg">
', $globalAnnouncement['ga']['views'], '
</td>
<td>
', $globalAnnouncement['ga']['time'], '
</td>
</tr>';
}

echo '
</table>
</div><br />';
}


In that look at the line that says:

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

...and that is what you have to change.

I'll leave the GA positioning query for Jay...
Title: Re: Global Announcements
Post by: slackerpunk on August 28, 2007, 12:46:49 AM
Quote from: razorblitz07 on August 27, 2007, 07:21:29 PM
Umm, I just created a Global Announcement (installed successfully) but the GA won't come up at the top of the forum sections.  Why is this?

thats what I noticed also
Title: Re: Global Announcements
Post by: fenyullow on August 28, 2007, 03:56:17 PM
hi, TrueSatan, thanks, that works well. Hopefully Jay will let us know the position issue.
Title: Re: Global Announcements
Post by: TrueSatan on August 28, 2007, 05:19:13 PM
My pleasure...at least it's more usable for you now. I think Jay may be very busy so be patient regarding the position issue please.
Title: Re: Global Announcements
Post by: brelwit on August 29, 2007, 12:01:28 PM
I have successfully installed this Global Announcement mod and have tested posting a record.  But I am experiencing Javascript Errors that can be found in the bottom Status Bar and the Announcement Icon does not work too.

First JavaScript Error experienced when I access the "Add GA" page:

Line: 207
Char: 6
Error: Expected identifier, string or number
Code: 0
URL: http://localhost/tabletopwars2007/bb/index.php?action=globalAnnouncementsAdmin;sa=add


Then when I select an Announcement Icon from the dropdown combo field, the ff. Javascript error happens:

Line: 236
Char: 1
Error: Object expected
Code: 0
URL: http://localhost/tabletopwars2007/bb/index.php?action=globalAnnouncementsAdmin;sa=add


I checked the code of the "GlobalAnnouncementsAdmin.template.php" file and the "Add GA" web page and found out the ff. suspicious codes:

The "$icon['is_last'] ? '' : ','" entry in line 141 seem to have error as the generated html codes does not remove the last comma (,) from the last icon file path (just before the "}") which is the "wink" portion.

For the Announcement Icon error, I found out that the code that automatically selects the chosen dropdown option is missing.  I mean the ff. code is not there so any option selected does nothing:

, $icon['value'] == $context['icon'] ? ' selected="selected"' : ''

I tired fixing this but couldnt successfully do it.  Can anybody help me? Thanks!
Title: Re: Global Announcements
Post by: fenyullow on August 30, 2007, 05:05:13 PM
Quote from: TrueSatan on August 28, 2007, 05:19:13 PM
My pleasure...at least it's more usable for you now. I think Jay may be very busy so be patient regarding the position issue please.

I think I figure it out myself. Here is what I did:

1, Open "$themedir/MessageIndex.template.php"
2, Find code
// Global Announcements...
if (isset($context['globalAnnouncements']) && count($context['globalAnnouncements']) != 0)
{
echo '
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr>
<td colspan="7" class="titlebg">置顶公告</td>
<tr>
<tr>
<td class="catbg3" width="9%" colspan="2"></td>
<td class="catbg3">', $txt[70], '</td>
<td class="catbg3" width="14%">', $txt[109], '</td>
<td class="catbg3" width="4%" align="center">', $txt[110], '</td>
<td class="catbg3" width="4%" align="center">', $txt[301], '</td>
<td class="catbg3" width="22%">Time</td>
</tr>';

// Loop through the Global Announcements
foreach ($context['globalAnnouncements'] as $globalAnnouncement)
{
echo '
<tr class="windowbg2">
<td align="center">
<img src="', $settings['images_url'], '/post/' .$globalAnnouncement['ga']['icon']. '.gif" alt="" />
</td>
<td align="center">
<img src="', $settings['images_url'], '/post/exclamation.gif" alt="" />
</td>
<td ' ,$globalAnnouncement['ga']['enabled'] == 0 ? 'style="background-color: #e9e9e9; color: #8d8d8d;"' : 'class="windowbg"', '>
<a href="' ,$globalAnnouncement['ga']['href'], '" >', $globalAnnouncement['ga']['subject'], '</a>
</td>
<td>
', $globalAnnouncement['member']['link'], '
</td>
<td align="center" class="windowbg">
--
</td>
<td align="center" class="windowbg">
', $globalAnnouncement['ga']['views'], '
</td>
<td>
', $globalAnnouncement['ga']['time'], '
</td>
</tr>';
}

echo '
</table>
</div><br />';
}


3, Movee them after (very beginning)
echo '
<div style="margin-bottom: 2px;"><a name="top"></a>', theme_linktree(), '</div>';


4, Save and upload. Bann, works.
Title: Re: Global Announcements
Post by: Tick on September 08, 2007, 05:22:06 PM
I am getting a undefined index error for : title.    IT has something to do with the fact that the text is not showing up in the admin panel in the title part of the Global announcements section.  I have verified that all the proper strings are in the language file.  Here is a screenshot. 
Title: Re: Global Announcements
Post by: JayBachatero on September 08, 2007, 11:49:00 PM
Need to add the language string to Modifications.english.php.
Title: Re: Global Announcements
Post by: Tick on September 09, 2007, 01:04:52 AM
QuoteI have verified that all the proper strings are in the language file.
Yep I did that already.  I have double checked again and it is there.
Title: Re: Global Announcements
Post by: Tick on September 10, 2007, 10:19:26 PM
anyone?

Title: Re: Global Announcements
Post by: TrueSatan on September 11, 2007, 04:45:14 AM
Please check to see that in ACP>Server Settings your forum language is set to English and not English utf8 and see if that fixes it.
Title: Re: Global Announcements
Post by: Tick on September 11, 2007, 06:26:33 AM
Yep that was also checked.  That is what is so strange.   I have went over all of the normal "fixes" for an problem like  this but it does not fix.
Title: Re: Global Announcements
Post by: TrueSatan on September 11, 2007, 06:33:25 AM
The only time I've see this mod fail and the normal fixes not put it right was when the server in use had incorrect settings such that what it claimed was CHMOD 777 etc wasn't and the file ownership rights were wrong...it's a long shot but that's the only thing that springs to my mind.

If you were to try it on an otherwise empty and fresh test forum and it failed there it would be a strong pointer to server issues...not a great help I know.
Title: Re: Global Announcements
Post by: Tick on September 11, 2007, 05:53:27 PM
Yes it is very strange indeed.  I did check all the file permissions and all was 777.  I have checked every file that the mod affects and all seem to be right.  The mod is working fine it just gives off the error in the error log.   Hopefully someone may have an answer for me on this.

Title: Re: Global Announcements
Post by: bassmadrigal on September 14, 2007, 02:31:01 AM
I have been looking into this mod and decided to install it, however I do not have the particular lines you mention to look for in index.template.php and MessageIndex.template.php

I have put the files in a zip and have it here
<link removed>

If you could look over it and give me some pointers, it'd be a great help to me.

Thanks
Jeremy

EDIT: After many (and I mean many) trial and errors, I got it to work.
Title: Re: Global Announcements
Post by: Tidea on October 02, 2007, 07:41:38 PM
Is there a place where we can check to allow users to comment on the global announcmenet?
Title: Re: Global Announcements
Post by: TrueSatan on October 02, 2007, 09:25:19 PM
Sorry no...it's an announcement rather than a normal forum posting so if you want to allow comments you might be better just posting a new topic in a standard forum and/or using the newsletter system to notify members.
Title: Re: Global Announcements
Post by: jossanaijr on October 03, 2007, 09:38:57 PM
I must confess I did not check all 19 pages...
Is it possible to move an announcement from the Global Announcements board to another board?  If yes, how?  If no, could this be an update?
Title: Re: Global Announcements
Post by: TrueSatan on October 03, 2007, 09:58:51 PM
 You can repost it obviously but other than that the GA is a self contained system not like other boards so such functions aren't available...it isn't a board so much as an announcement area.
Title: Re: Global Announcements
Post by: jossanaijr on October 03, 2007, 10:07:07 PM
Quote from: TrueSatan on October 03, 2007, 09:58:51 PM
You can repost it obviously but other than that the GA is a self contained system not like other boards so such functions aren't available...it isn't a board so much as an announcement area.
Ok, thanks.  But it will be nice not lose all replies after you decide it must be removed from the announcement area...
Title: Re: Global Announcements
Post by: TrueSatan on October 03, 2007, 10:33:42 PM
???? You can't reply to a GA anyway so what replies would be lost?
Title: Re: Global Announcements
Post by: jossanaijr on October 03, 2007, 10:38:45 PM
Quote from: TrueSatan on October 03, 2007, 10:33:42 PM
???? You can't reply to a GA anyway so what replies would be lost?
Ups... did not notice that before.
You are right.  Thanks again.
Title: Re: Global Announcements
Post by: smartmouse on October 04, 2007, 09:06:00 PM
When will be available a new version compatible with SMF v1.1.4 ?
Title: Re: Global Announcements
Post by: TrueSatan on October 04, 2007, 09:15:38 PM
The current version should work perfectly well in SMF 1.1.4 as the mod isn't SMF version specific.
Title: Re: Global Announcements
Post by: NeLLIsania on October 05, 2007, 06:31:55 AM
Quote from: TrueSatan on October 04, 2007, 09:15:38 PM
The current version should work perfectly well in SMF 1.1.4 as the mod isn't SMF version specific.

sorry but i'm update my forum from 1.1.3 to 1.1.4 by using patch(smf_patch_1.0.12_1.1.4_2.0.b1.1.tar.gz) and GA not showing anywhere. And i check all setting and verifing that mod installed and working correctly, but GA ins't work for me :( And forum log empty for this mod.
Title: Re: Global Announcements
Post by: TrueSatan on October 05, 2007, 08:58:45 AM
I'm trying to understand what you mean but you message is rather confused. I think you are saying that you had the mod installed and working properly in SMF 1.1.3 then updated to SMF 1.1.4 and the mod stopped working. This can happen when you update the SMF version as the  edits mods make may be overwritten by the forum update...the resolution for it is to go through the process of a manual install and to put the necessary edits into the files once more.
Title: Re: Global Announcements
Post by: NeLLIsania on October 06, 2007, 03:34:02 PM
QuoteI'm trying to understand what you mean but you message is rather confused. I think you are saying that you had the mod installed and working properly in SMF 1.1.3 then updated to SMF 1.1.4 and the mod stopped working. This can happen when you update the SMF version as the  edits mods make may be overwritten by the forum update...the resolution for it is to go through the process of a manual install and to put the necessary edits into the files once more.
sorry for my bad english... i understand you. i'll try your metod. tnks
Title: Re: Global Announcements
Post by: smartmouse on October 06, 2007, 09:59:48 PM
Quote from: smartmouse on October 04, 2007, 09:06:00 PM
When will be available a new version compatible with SMF v1.1.4 ?

It worked on 1.1.4 with no problems! Thank you.

I have a little question: can i make existing sticky topics as global announcements?
Title: Re: Global Announcements
Post by: TrueSatan on October 06, 2007, 10:38:17 PM
You can only do that by reposting them as GAs...you can't move the existing posting to make it into a GA. BTW...glad it's working for you now.
Title: Re: Global Announcements
Post by: smartmouse on October 07, 2007, 05:28:21 AM
Quote from: TrueSatan on October 06, 2007, 10:38:17 PM
You can only do that by reposting them as GAs...you can't move the existing posting to make it into a GA.

If i go to edit something in the database? It is possible to make existing topics as GA?
Title: Re: Global Announcements
Post by: TrueSatan on October 07, 2007, 09:05:14 AM
I really wouldn't try it...you can edit almost anything if you are sufficiently good at it, and want to spend hours on it, but it's not something I would ever advise that you do.
Title: Re: Global Announcements
Post by: veldfire on October 07, 2007, 06:27:58 PM
I am using a custom theme and don't have:


&nbsp; // Create the button set...
&nbsp; &nbsp;$normal_buttons = array(


Where can i edit?
Title: Re: Global Announcements
Post by: TrueSatan on October 07, 2007, 06:53:03 PM
It would depend entirely on what that custom theme has used as a replacement to the system in the default theme...you might be best asking the custom them developer.
Title: Re: Global Announcements
Post by: veldfire on October 07, 2007, 07:39:17 PM
Quote from: TrueSatan on October 07, 2007, 06:53:03 PM
It would depend entirely on what that custom theme has used as a replacement to the system in the default theme...you might be best asking the custom them developer.
Thanks. Unfortunately, that developer is no longer around. Guess I am SOL :(
Title: Re: Global Announcements
Post by: NeLLIsania on October 08, 2007, 05:06:12 AM
I've checked some files, but it wasn't changed after upgrading forum. Fixed the files - mode started working. Thanks!
Title: Re: Global Announcements
Post by: writerrobert680 on October 08, 2007, 07:40:02 PM
For some reason the mod isn't working for me. :(
Title: Re: Global Announcements
Post by: TrueSatan on October 08, 2007, 07:49:56 PM
With zero information form you as to your forum and the exact way in which the mod isn't working all I can do is to shrug and say that that's a shame. To give you more support than that I'd need a lot more information from you than you've given.
Title: Re: Global Announcements
Post by: writerrobert680 on October 08, 2007, 08:21:38 PM
Quote from: TrueSatan on October 08, 2007, 07:49:56 PM
With zero information form you as to your forum and the exact way in which the mod isn't working all I can do is to shrug and say that that's a shame. To give you more support than that I'd need a lot more information from you than you've given.

Sorry.

When I installed it a while ago it was fine and then it started to disappear as in the link to modify the settings was gone and the extra space was left. Then, today, when I had upgraded to 1.0.4 I could not even view my global announcements. Do you want a screen shot?
Title: Re: Global Announcements
Post by: kichu on October 09, 2007, 06:55:41 AM
IS there any option to show New PopUp Global Announcement for one time...
Title: Re: Global Announcements
Post by: TrueSatan on October 09, 2007, 09:19:23 AM
@ writerrobert680

It sounds as though you may have changed your forum langusge from English (perhaps to English utf8)...you need to make sure it is set to English.

You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.

I would suggest that as you say only some of the mod text wasn't there earlier if the above change doesn't work that you go through the process of a manual installation of the mod and check that it is all in place and hasn't been overwritten (perhaps by another mod.)

@ Kichu

No, not a feature of this mod.
Title: Re: Global Announcements
Post by: writerrobert680 on October 17, 2007, 02:20:53 PM
Quote from: TrueSatan on October 09, 2007, 09:19:23 AM
@ writerrobert680

It sounds as though you may have changed your forum langusge from English (perhaps to English utf8)...you need to make sure it is set to English.

You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.

I would suggest that as you say only some of the mod text wasn't there earlier if the above change doesn't work that you go through the process of a manual installation of the mod and check that it is all in place and hasn't been overwritten (perhaps by another mod.)

@ Kichu

No, not a feature of this mod.

What mod/s do you think could be making the GA not work? I have TP and 1.1.4
Title: Re: Global Announcements
Post by: TrueSatan on October 17, 2007, 06:18:49 PM
I couldn't begin to hazard a guess at what mod might have changed your files but the resolution would be the same in any case...go through the process of a manual install and make sure that all items relating to this mod are properly in place.

Your initial bug report said that over time, and in stages, part of the mod failed...it is this that makes me think that at each of these stages part of the mod has been overwritten or edited in such a way that it stops working.

You would need to work with a test forum to see which of your mods might be causing a problem by a process of trying and eliminating them.
Title: Re: Global Announcements
Post by: James Z. on October 19, 2007, 07:27:57 AM
this mod is great, however it doesn't generate links on the "who's online" list
so if a user is viewing a global announcement - I can't click to see which one
can this be resolved?

b.t.w- any way to make this mod (http://www.simplemachines.org/community/index.php?topic=199784.msg1279325#msg1279325) work on GA too?
Title: Re: Global Announcements
Post by: RuneAvenue on October 20, 2007, 04:41:32 AM
The global announcement didn't end up showing up...
Title: Re: Global Announcements
Post by: TrueSatan on October 20, 2007, 03:27:11 PM
Perhaps you aren't using the SMF Default theme and haven't manually installed it into any custom themes you may wish to use...other than that your bug report tells me so little it's difficult to be of any assistance to you.
Title: Re: Global Announcements
Post by: James Z. on October 20, 2007, 05:08:34 PM
Quote from: TrueSatan on October 20, 2007, 03:27:11 PM
Perhaps you aren't using the SMF Default theme and haven't manually installed it into any custom themes you may wish to use...other than that your bug report tells me so little it's difficult to be of any assistance to you.

I do have the default theme, however my forum is not in english language
Title: Re: Global Announcements
Post by: TrueSatan on October 20, 2007, 08:30:46 PM
You will need to translate the mod into your language for it to work properly. Please see the SMF official documantation for details on translation of mods and look at GlobalAnnouncementsAdmin.english.php in particular.
Title: Re: Global Announcements
Post by: Seanmcn on November 01, 2007, 05:11:14 PM
Brilliant Mod! Thanks! :)
Title: Re: Global Announcements
Post by: Ur_Irish_Rose on November 04, 2007, 07:58:35 AM
this mod says its corrupt :( ive tried to install it several times and ive also downloaded it several times

i realy need this mod on my forum .

can someone help me please.
Title: Re: Global Announcements
Post by: TrueSatan on November 05, 2007, 04:20:54 AM
Often you will get such corruption claims from one browser but not from another...have you tried a different browser?

I just tested the mod and had no problems with the download or any other stage of installation so all appears to be as it should be.
Title: Re: Global Announcements
Post by: Jameel225 on December 25, 2007, 12:17:31 AM
showing this error plz help me

i m using smf 1.1.4

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Sources/MessageIndex.php    Test successful
3.    Execute Modification    ./Sources/ManageNews.php    Test successful
4.    Execute Modification    ./Sources/Who.php    Test successful
5.    Execute Modification    ./Sources/Subs.php    Test successful
6.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
7.    Execute Modification    ./Themes/default/index.template.php    Test failed
8.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
11.    Execute Modification    ./Themes/default/languages/ManagePermissions.english.php    Test successful
12.    Execute Modification    ./Themes/default/languages/Errors.english.php    Test successful
13.    Extract File    ./Sources/GlobalAnnouncementsAdmin.php    
14.    Extract File    ./Themes/default/GlobalAnnouncementsAdmin.template.php    
15.    Extract File    ./Themes/default/languages/GlobalAnnouncementsAdmin.english.php    
16.    Extract File    ./Sources/GlobalAnnouncements.php    
17.    Extract File    ./Themes/default/GlobalAnnouncements.template.php    
18.    Extract File    ./Sources/Subs-GlobalAnnouncementsAdmin.php    
19.    Execute Code    ga_install.php
Title: Re: Global Announcements
Post by: TrueSatan on December 25, 2007, 06:03:48 AM
Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: Global Announcements
Post by: allumius on December 27, 2007, 04:58:01 AM
Sorry for my english
I have a problem with mod Global Announcements

When I am in the index of the forum, the order that one sees in the forum is:

Categoria
|_Foro1
|_Foro2
       |_Subforo1
       |_Subforo2

If I enter inside Foro1 one sees

-Global Announcements
-Mensajes del Foro1

Hitherto quite correct.
The problem is that when I enter(approach) the Foro2 that has inside Subforums, one sees:

-Subforos
  |_Subforo1
  |_Subforo2

-Global Announcements
-Mensajes del Foro2

In short: the subforums over Global Announcements when I believe that it  has to be upside-down?
Global Announcements must go first, after the subforums and finally the messages of the forum where I am
Since I can arrange it?

Title: Re: Global Announcements
Post by: perro88 on December 27, 2007, 08:51:48 PM
sorry for this stupid question but in the admin panel what things this mods should add? a link on the left panel to the GA options and one permission? or something else too?
Title: Re: Global Announcements
Post by: souljaa on December 28, 2007, 03:10:35 PM
Hey! Great mod, but just having a problem, the Settings for the mod won't show up in my Admin Panel, but I could go there using a link, but I can't view it in my Panel.
What file do I have to modify?
Thanks!
Souljaa
Title: Re: Global Announcements
Post by: TrueSatan on December 29, 2007, 05:03:15 AM
@ souljaa

It sounds as though you are either not using the SMF Default theme or not using English (meaning also don't use English utf8) as your forum language. If you wish to use another theme than the SMF default one you will need to manually install the mod into it and if you wish to use a different language you will need to translate the mod into it.

@ perro88

Maybe the above gives a clue to the issues prompting your query too.
Title: Re: Global Announcements
Post by: perro88 on December 29, 2007, 02:37:02 PM
Quote from: TrueSatan on December 29, 2007, 05:03:15 AM
@ souljaa

It sounds as though you are either not using the SMF Default theme or not using English (meaning also don't use English utf8) as your forum language. If you wish to use another theme than the SMF default one you will need to manually install the mod into it and if you wish to use a different language you will need to translate the mod into it.

@ perro88

Maybe the above gives a clue to the issues prompting your query too.
well the link to the settings of the mod didn't appear at first time but corrected after a manual change. the mod also added a permission and just wanted to know if some other option might be missing on my forum so I can try to check the error
Title: Re: Global Announcements
Post by: TrueSatan on December 29, 2007, 03:19:01 PM
It would appear that you have the admin options OK...the only permission change is in the "Forum administration" and is "Manage Global Announcements". The options in the ACP>Global Announcements should be "Modify GA, Add GA, Settings, Credits".
Title: Re: Global Announcements
Post by: perro88 on December 30, 2007, 11:48:21 AM
Quote from: TrueSatan on December 29, 2007, 03:19:01 PM
It would appear that you have the admin options OK...the only permission change is in the "Forum administration" and is "Manage Global Announcements". The options in the ACP>Global Announcements should be "Modify GA, Add GA, Settings, Credits".
thanks ;D
Title: Re: Global Announcements
Post by: Jap4viet on January 01, 2008, 01:24:21 AM
Great mod! Thanks you all!!!
But it do not show Vietnamese (UTF-8) Correctly T_T
Please help me!
I don't know y but it's working just fine when i click on Preview and it show ok... but when i add it, it's troubled with the font.. show "??" instead of UTF-8 Vietnamese...

What should i do?
Title: Re: Global Announcements
Post by: TrueSatan on January 01, 2008, 04:40:58 AM
You will need to translate the mod to Vietnamese as that language is not part of it by default. There are several files that you will need to change as well as the edits the mod makes to English language files...these will have to be made to Vietnamese language files as well.
Title: Re: Global Announcements
Post by: Me313 on January 10, 2008, 08:52:55 PM
hello..

how can i make..global annoucment available on helious theme?

it doesnt have //Create button...

thank you for ur help in advance..
Title: Re: Global Announcements
Post by: JayBachatero on January 11, 2008, 11:11:00 PM
You need to manually add the code to the template.  I've posted how to do it a few times before.  Search in this topic.
Title: Re: Global Announcements
Post by: Publi-Script on January 14, 2008, 11:50:41 AM
Hummm,

Don't what to think here, I tried installing the Mod and everything checked fine but the Mod did not fully install (even though it told it did)(Could this be a rights problem on my server root?

So I proceeded to manually install it. Now that everything seem to be in place, trying to access the globalAnnouncementsAdmin area just shows me my main Board Index page.

This does not generate an error. I also tried to access the page directly but got a "Hacking attempt" message just like at the top of the GlobalAnnouncementsAdmin.php file.

I am using the default theme (although images and Style.css have been modified) and SMF 1.1.4

Anything I can do to make this work?

TIA
Michel
Title: Re: Global Announcements
Post by: Ur_Irish_Rose on January 20, 2008, 03:09:42 PM
I get a THIS is not compatable with my forum when i try to upload it

i am making a new 1.1.4 forum and it wont go in as a package

any help pls
Title: Re: Global Announcements
Post by: TrueSatan on January 20, 2008, 07:22:24 PM
There are several possible reasons why this may happen...in fact the mod is compatible with your forum and the failure suggests other issues. It could be that your forum is hosted on a server with a 64 bit operating system (there is a fix for this so please say if it is the case and I'll post the fix.) You may need to go to ACP>Packages>Options and uncheck "Create Backup versions of replaced files with a tilda (~) on the end of their names." You may need to use the same path to make all files writeable and you may need to add a "temp (sans quotes" directory to your packages directory and CHMOD it to 777.

The package parser on http://www.smfhelper.info/forum/package.php5 (http://www.smfhelper.info/forum/package.php5) will output the details of the mod so as to make a manual installation easier should you need to use that method.
Title: Re: Global Announcements
Post by: kizer on January 25, 2008, 07:36:49 PM
Odd. I installed it and it said my index.template had a problem so I fixed it. I simply can not get the global annoucement to show in the admin panel.

Im using a default template and 1.14. I made sure the modifications.english.php file had the listings in it and it does. Is there another file I need to edit to show in Admin panel?
Title: Re: Global Announcements
Post by: TrueSatan on January 25, 2008, 10:18:09 PM
Have you checked in ACP>Server Settings to see that your forum language is set to English and not English utf8?
Title: Re: Global Announcements
Post by: allumius on January 26, 2008, 04:33:54 AM
Quote from: allumius on December 27, 2007, 04:58:01 AM
Sorry for my english
I have a problem with mod Global Announcements

When I am in the index of the forum, the order that one sees in the forum is:

Categoria
|_Foro1
|_Foro2
       |_Subforo1
       |_Subforo2

If I enter inside Foro1 one sees

-Global Announcements
-Mensajes del Foro1

Hitherto quite correct.
The problem is that when I enter(approach) the Foro2 that has inside Subforums, one sees:

-Subforos
  |_Subforo1
  |_Subforo2

-Global Announcements
-Mensajes del Foro2

In short: the subforums over Global Announcements when I believe that it  has to be upside-down?
Global Announcements must go first, after the subforums and finally the messages of the forum where I am
Since I can arrange it?


Please help me
Title: Re: Global Announcements
Post by: kizer on January 27, 2008, 03:51:03 PM
Quote from: TrueSatan on January 25, 2008, 10:18:09 PM
Have you checked in ACP>Server Settings to see that your forum language is set to English and not English utf8?

Yeah it says
Default Forum Language : English

Every other mod I've installed works fine. I just can't get this one to show up in the admin panel.
Title: Re: Global Announcements
Post by: TrueSatan on January 27, 2008, 07:25:52 PM
 Please use the Package Parser on the followign link to output all the changes this mod makes (other package parser installations may not work with this mod but I know that the one below does.)

http://www.smfhelper.info/forum/package.php5 (http://www.smfhelper.info/forum/package.php5)

Check, in particular, Modifications.english.php but if one file has a problem it would be wise to check them all.
Title: Re: Global Announcements
Post by: kizer on January 28, 2008, 06:43:58 PM
Thanks for the help on that parser. I just basically went through each bit of code and got it to work, but I had  to change one thing and Im not sure what I really changed but got it to load into the Admin area.

//A new mods section for the Global Announcements.
if ((isset($modSettings['admin_areas_other']) && $modSettings['admin_areas_other'] == 1) && allowedTo('global_announcements_admin'))
{
$context['admin_areas']['other']['areas']['ga_admin'] = '<a href="' . $scripturl . '?action=globalAnnouncementsAdmin">' . $txt['global_announcements_admin'] . '</a>';
}
elseif (!isset($modSettings['admin_areas_other']) || (isset($modSettings['admin_areas_other']) && $modSettings['admin_areas_other'] == 0) && allowedTo('global_announcements_admin'))
{
$context['admin_areas']['ga_admin'] = array(
'title' =>  $txt['global_announcements_mods'],
'areas' => array(
'ga_admin' => '<a href="' . $scripturl . '?action=globalAnnouncementsAdmin">' . $txt['global_announcements_admin'] . '</a>',
),
);
}


Changed
admin_areas_other'] == 1
to
admin_areas_other'] == 0

and the second listing of it

['admin_areas_other'] == 0
to
['admin_areas_other'] == 1
Title: Re: Global Announcements
Post by: etdwh on February 07, 2008, 08:33:50 PM
Possible hacker/spammer attack??

I got this in my forum error log a few days ago.


You think you're funny right? Sorry buddy but you can't call an array here. Back away before the count of 3. 1... 2... 3... BOOM! Die you fool.
?amp;action=globalAnnouncements;id=http://www.pattibus.it/phplib-7.2b/pages/ilosi/dohigal/


Its repeated 3 times, with different URLs, and the same IP address each time (193.226.17.98)

I know the error msg is from Global Announcements, as i see the error message inside GlobalAnnouncementsAdmin.english.php

Not sure whats happening...
Title: Re: Global Announcements
Post by: TrueSatan on February 07, 2008, 09:30:12 PM
Jay likes his Easter Egg code additions! The most likely answer is that you tried to call an array from within the Global Announcements and triggered his error report.

Does the ip relate to you or to any of your forum members?
Title: Re: Global Announcements
Post by: JayBachatero on February 07, 2008, 11:01:26 PM
Quote from: etdwh on February 07, 2008, 08:33:50 PM
Possible hacker/spammer attack??

I got this in my forum error log a few days ago.


You think you're funny right? Sorry buddy but you can't call an array here. Back away before the count of 3. 1... 2... 3... BOOM! Die you fool.
?amp;action=globalAnnouncements;id=http://www.pattibus.it/phplib-7.2b/pages/ilosi/dohigal/


Its repeated 3 times, with different URLs, and the same IP address each time (193.226.17.98)

I know the error msg is from Global Announcements, as i see the error message inside GlobalAnnouncementsAdmin.english.php

Not sure whats happening...
I suggest you look into banning those ips.  Trying random exploits for different scripts trying to see if they work on SMF.  Look at the id part.  Trying to include a file.  RFI - Remote File Inclusion
Title: Re: Global Announcements
Post by: etdwh on February 11, 2008, 11:30:44 AM
Quote from: JayBachatero on February 07, 2008, 11:01:26 PM
I suggest you look into banning those ips.  Trying random exploits for different scripts trying to see if they work on SMF.  Look at the id part.  Trying to include a file.  RFI - Remote File Inclusion

Hi Jay,

Thanks for the advise. That IP has been banned :-)

Quote from: TrueSatan on February 07, 2008, 09:30:12 PM
Jay likes his Easter Egg code additions! The most likely answer is that you tried to call an array from within the Global Announcements and triggered his error report.

Does the ip relate to you or to any of your forum members?

No, that IP is not from any of our members...looked more like exploits. So that IP has been banned :-)
Title: Re: Global Announcements
Post by: SBurke930 on February 17, 2008, 01:11:30 PM
I am trying to install this on a very clean install of 1.1.4.  I wanted to test the awards mod but that did not work on a clean install so I tried to install the other two mods you have listed.  The Admin Mods install worked great but the Global Announements will not install.  I get a "The package you tried to upload either is not a valid package or has become corrupted. " error.

Is there an easy fix for this?
Title: Re: Global Announcements
Post by: Paracelsus on February 21, 2008, 06:43:40 AM
I also get a corrupted file message...  :-\
Title: Re: Global Announcements
Post by: Paracelsus on February 21, 2008, 07:38:12 AM
It's working again! ;) ;D
Title: Re: Global Announcements
Post by: !Hachi! on March 06, 2008, 08:52:04 AM
 i am getting this
The package you tried to upload either is not a valid package or has become corrupted.
                    we upload all files and reinstall other mods and they are working fine.we also tried with dropped tables created by this mod but still no luck,.
any suggestions?
Title: Re: Global Announcements
Post by: Vinspire on April 02, 2008, 04:11:03 PM
Errr .... Is it compatible with SMF 1.1.4 ?
Title: Re: Global Announcements
Post by: TheDel on April 03, 2008, 07:42:52 AM
OK Im not reading the 22 pages-
one of my members received the "BOOM! Die you fool." messsage because I sent an email out through Global Announcements. But I know for certain this member was doing no wrong......

Im just afraid others will get it too.
Title: Re: Global Announcements
Post by: JayBachatero on April 03, 2008, 09:35:53 AM
It was supposed to be an easter egg but from the looks of it the link that is being sent is not correct causing this error.  I'll look more into it when I get a chance.
Title: Re: Global Announcements
Post by: Jumpmasterrt on April 27, 2008, 09:28:43 AM
Does anyone know if this mod works with 1.1.4 in Default?
Title: Re: Global Announcements
Post by: Sudhakar Arjunan on April 27, 2008, 09:32:40 AM
Quote from: Jumpmasterrt on April 27, 2008, 09:28:43 AM
Does anyone know if this mod works with 1.1.4 in Default?

Yes its working fine, you could check out at http://forum.itacumens.com

Thanks & Regards,
Sudhakar, Admin
www.itacumens.com
Title: Re: Global Announcements
Post by: Jumpmasterrt on April 27, 2008, 10:04:19 AM
Excellent!! Thanks :D

*edit* I'm having an issue with the package.... does smf package manager support tar.gz or do I need to repackage it into a zip?
**edit** I repackaged it to a zip file and it worked fine.

On installation though I got this error
QuoteGlobal Announcements Database Changes
Error: Adding global_announcements table failed.
Error: Adding global_announcements_boards table failed.
Error: The installer was unable to enable the Global Announcements. To enable go to Admin > Features and Options2: mysql_fetch_array(): supplied argument is not a valid MySQL result resource
File: ./htdocs/FORUMS/Packages/temp/ga_install.php
Line: 72Database Error: MySQL server has gone away
File: ./htdocs/FORUMS/Sources/Load.php
Line: 2010

this failed:
./Sources/ManagePermissions.php
*edit* I see... it's already been altered so I'm going to try a manual install. I like this function of SMF.
           I've never made an SQL table before. (another error I got) GA installed partially so now I just need to finish. When I access the GA Admin menu I get
QuoteTable 'b13_928611_smf1.smf_global_announcements' doesn't exist
File: ../htdocs/FORUMS/Sources/GlobalAnnouncementsAdmin.php
Line: 101

So I'm guessing if I create the table, it'll work.... or at least get me closer. I'm using phpMyAdmin if that helps.
*EDIT* I guessed correctly. I created the tables and it seems to be working. But the package manager says it still needs to be installed. how do I change it so it recognizes it?

*Last Edit*I looked and thought I figured it out.... after looking over the changes that needed to be made I installed it anyway and it worked except that I had 2 GA "Boards" with x number of announcements depending on how many boards I picked. So then I uninstalled it but it didn't Uninstall so it works but says it needs to be installed.

Can someone please help?
Title: Re: Global Announcements
Post by: Jumpmasterrt on April 29, 2008, 04:41:56 AM
Bump

I also noticed that the x number of posts glitch didn't go away. So unless I choose "all boards" I get the same number of posts of however many number of boards I had chosen. (See attachments)
Title: Re: Global Announcements
Post by: perplexed on April 30, 2008, 05:12:51 AM
QuoteBut the package manager says it still needs to be installed. how do I change it so it recognizes it?
Quote
If you completely manually installed it, you can't. 

QuoteI looked and thought I figured it out.... after looking over the changes that needed to be made I installed it anyway and it worked except that I had 2 GA "Boards" with x number of announcements depending on how many boards I picked. So then I uninstalled it but it didn't Uninstall so it works but says it needs to be installed.

Are you sure you installed it correctly?  With all the installing and uninstalling some code may have got left behind perhaps.

When you say you uninstalled it but it didnt uninstall, what do you mean?

did you take a backup of your sources files before starting this exercise?



Title: Re: Global Announcements
Post by: Jumpmasterrt on May 01, 2008, 11:39:13 AM
Well quite frankly that's the freakiness of the whole thing..... I only hit the install or apply mod link ONCE. It installed itself when I uploaded it (I know that sounds crazy but I swear it did) and I got the one error on the permissions file. So I did nothing

Then I looked and decided to "install" because of the multi post glitch, and I got the double GA board (with the multi post glitch)

So I uninstalled it and now it's listed back as needing to be installed or applied but it totally works (with only that one glitch). See screenshot

Yes I made backups and I actually didn't manually install anything except for the 2 required tables.
Title: Re: Global Announcements
Post by: Jumpmasterrt on May 01, 2008, 04:34:39 PM
Well, I got it fixed..... I took a chance and edited the ../Packages/installed.list with the install info and now it shows up as being installed with the [ Uninstall ] command instead of the [Apply Mod]

Thanks for at least trying to help perplexed, if you happen to come up with some idea as to why the multi post happens when I sellect any number of board instead of "all", let me know. :D  I'm going to keep looking at the script paths and see if I can figure it out as well.

*Edit*After reading through the main php file, it looks as though I may have set the sql tables wrong or missed something or his functions for other than "all" don't work.

*Edit*Oh I'm such a tool... here's the deal. I was picking the CATEGORIES, not the actual boards, guess what the ID is for the categories? 0 which is the same as the "all" function. So since I was picking 3 different categories it listed it 3 times in every board.

So, new question.... I'm going to try and mod this mod if it's not already done, but how can we highlight a category to get it to list in all the boards underneath? (See attachment)
Title: Re: Global Announcements
Post by: Hendo on May 04, 2008, 06:07:42 AM
I'm getting the following error when trying to add a Global Announcement:

"Field 'modifiedTime' doesn't have a default value
File: C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\smf\Sources\GlobalAnnouncementsAdmin.php
Line: 270"

I'm am running SMF 1.1.5 with the following mods:
1. Country Flags 1.0.1
2. Custom Action Mod 2.04
3. Custom Profile Field Mod 3.17 
4. Global Announcements 1.0
5. SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update 1.0
6. Ultimate Profile 0.8
7. User Control Panel By Alan S

Anyone know what the issue is?
Title: Re: Global Announcements
Post by: Hendo on May 07, 2008, 02:25:30 PM
Anyone know the problem?
Title: Re: Global Announcements
Post by: Jumpmasterrt on May 08, 2008, 02:45:35 PM
Quote from: Hendo on May 07, 2008, 02:25:30 PM
Anyone know the problem?
Is your forum time offset from the server?
Title: Re: Global Announcements
Post by: L.G.S on May 09, 2008, 09:19:43 AM
Will this be available for 2.0 Beta soon?
Title: Re: Global Announcements
Post by: City Builder on May 26, 2008, 12:35:48 PM
Is this good to go with 1.1.5?  I don't want to mess up my forum trying it if it's not.

Thanks,
Title: Re: Global Announcements
Post by: Jumpmasterrt on May 27, 2008, 01:19:16 AM
It works for me and I'm running 1.1.5 upgraded from 1.1.4. This package didn't have SMF version restrictions. However you will have to mod for different themes, but that's fairly easy.
Title: Re: Global Announcements
Post by: spearfish on June 04, 2008, 05:29:04 PM
I would love to see this brought onto 2.0
Title: Re: Global Announcements
Post by: boredtoday on June 21, 2008, 05:57:39 PM
i'm on 1.1.5 bridged to smf, working great here!!! thank you! :)
Title: Re: Global Announcements
Post by: vinston84 on June 22, 2008, 02:51:07 PM
hey i was wondering if i can change the name Announcements to something else like Top theme >?
Title: Re: Global Announcements
Post by: Jumpmasterrt on June 22, 2008, 03:04:21 PM
Quote from: vinston84 on June 22, 2008, 02:51:07 PM
hey i was wondering if i can change the name Announcements to something else like Top theme >?
When it's displayed like in the screen shot?

Find:
// Global Announcements...
   if (isset($context['globalAnnouncements']) && count($context['globalAnnouncements']) != 0)
   {
      echo '
      <div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
         <table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
            <tr>
<td class="titlebg0" width="10%" colspan="2"></td>
<td colspan="5" class="titlebg">Global Announcements</td>
            <tr>';


Replace the next to last line where it says >Global Announcements< to read whatever you want.
Title: Re: Global Announcements
Post by: vinston84 on June 22, 2008, 03:13:12 PM
i install the mode but i cant see it in Admin panel, anyone knows why ?
Title: Re: Global Announcements
Post by: Angelotus on June 30, 2008, 02:09:55 PM
Hi there,

This is a great mod! Thanks for that!
I have a small question. I assume this is the code used in messageindex.template.php to make the announcement to appear:
// Global Announcements...
   if (isset($context['globalAnnouncements']) && count($context['globalAnnouncements']) != 0)
   {
      echo '<div class="tborder"><table class="collapse">
                  <tr>
               <td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '" class="catbg7">Globale Mededelingen</td>
            <tr>
            ';

         // Loop through the Global Announcements
         foreach ($context['globalAnnouncements'] as $globalAnnouncement)
         {
            echo '
            <tr>
               <td class="forum_bg4" align="center">
                  <img src="', $settings['images_url'], '/post/' .$globalAnnouncement['ga']['icon']. '.gif" alt="" />
               </td>
               <td class="forum_bg4" align="center">
                  <img src="', $settings['images_url'], '/post/exclamation.gif" alt="" />
               </td>
               <td ' ,$globalAnnouncement['ga']['enabled'] == 0 ? 'style="background-color: #e9e9e9; color: #8d8d8d;"' : 'class="forum_bg4"', '>
                  <a href="' ,$globalAnnouncement['ga']['href'], '" >', $globalAnnouncement['ga']['subject'], '</a>
               </td>
               <td class="forum_bg4">
                  ', $globalAnnouncement['member']['link'], '
               </td>
               <td align="center" class="forum_bg4">
                  --
               </td>
               <td align="center" class="forum_bg4">
                  ', $globalAnnouncement['ga']['views'], '
               </td>
               <td class="forum_bg4" colspan="', empty($options['display_quick_mod']) ? '1' : '2', '">
                  ', $globalAnnouncement['ga']['time'], '
               </td>
            </tr>';
         }

      echo '</table></div>';
   }


What changes do I have to make to make the announcements appear also in the boardindex template? If I use code above it doesn't do anything.
Title: Re: Global Announcements
Post by: mikekearn on July 05, 2008, 11:28:30 PM
I am having the same problem as vinston84; I got a message saying it installed successfully, and it told me I could go and make a global announcement, but it doesn't show up in my admin panel, and when I clicked the link, there was a page for it but I couldn't do anything. I am using the default theme, with SMF version 1.1.5.

Here are links to a few screens to show you what I mean:
Image 1 (http://potatomouseproductions.com/Images/installed_01.png)
Image 2 (http://potatomouseproductions.com/Images/installed_02.png)
Title: Re: Global Announcements
Post by: Angelotus on July 06, 2008, 12:03:21 PM
I guess you have to add manually the language files.
Title: Re: Global Announcements
Post by: mikekearn on July 06, 2008, 05:22:19 PM
How do I manually add the language files?
Title: Re: Global Announcements
Post by: Angelotus on July 07, 2008, 01:35:33 AM
You have to unzip the package local. Then search for these files
- GlobalAnnouncementsAdmin.english.php
Upload this file via ftp to the language folder of your theme.

Second of all edit you Modifications.english.php of your theme
At this to the end:
//Global Announcements adminIndex text strings.
$txt['global_announcements_admin'] = 'Global Announcements';
$txt['global_announcements_mods'] = 'Mods';
$txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the <a href="' . $scripturl . '?action=globalAnnouncementsAdmin">Global Announcements</a>.';
$txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement';


In help.english.php add this to the end

$helptxt['global_announcements_enable'] = 'This will override the local enable/disable setting for Global Announcements and enable it or disable it';


in ManagePermissions.english.php
add this in the end
//Global Announcements permissions.
$txt['permissionname_global_announcements_admin'] = 'Manage Global Announcements';
$txt['permissionhelp_global_announcements_admin'] = 'If you enable this permission for this membergroup they will be allowed to add, edit, delete Global Announcements';


and in Errors.english.php add
$txt['cannot_calendar_view'] = 'Sorry, but you are not allowed to view the calendar.';
]]></search>
<add><![CDATA[
$txt['cannot_global_announcements_admin'] = 'Sorry, you\'re not allowed to admin the Global Announcements area.';


These are the english files offcourse. You can edit your language files the same way, maybe wanna translate it ;)
Title: Re: Global Announcements
Post by: mikekearn on July 07, 2008, 02:56:39 AM
I did everything you said, add the GlobalAnnouncementsAdmin.english.php file, and checked the modifications to all the other files (they were all modified already, exactly as you described). Since the one file didn't come up with a warning as to being overwritten when I uploaded it to my server, I checked the other files, and found out that GlobalAnnouncementsAdmin.template.php and GlobalAnnouncements.template.php also weren't in correctly, but the files that didn't go into my Themes folder (the ones in Sources) were all in place.

However, the only change was to make my admin panel show a link to the GA page, and nothing else. From this (http://potatomouseproductions.com/Images/installed_02.png) to this (http://potatomouseproductions.com/Images/installed_04.png).

What could cause there to be nothing on the actual page? Is there something else that I need to add/change?
Title: Re: Global Announcements
Post by: Angelotus on July 07, 2008, 03:10:43 AM
Have you already tried to go through  the install procedure manually?
Title: Re: Global Announcements
Post by: mikekearn on July 07, 2008, 03:41:54 AM
I tried that once, going through and manually editing all the files, but when I got to the ga_install.php section, I was stumped, and didn't know how to run SQL queries. I then was told to just upload that file to my server and go to it in my browser, but it gives me a list of errors about passwords, so I went back to trying to install it the normal way, and still can't get it to work.
Title: Re: Global Announcements
Post by: Angelotus on July 07, 2008, 04:05:00 AM
Running the sql queries isn't that hard.
Have you got phpmyadmin?
Log on to your dbase, press the SQL button, insert the code and run. That will install the necessary fields (if not already excist offcourse).
Title: Re: Global Announcements
Post by: mikekearn on July 07, 2008, 04:16:03 AM
I tried running the SQL myself, but it just gave me an error every time, like so: image 5 (http://potatomouseproductions.com/Images/installed_05.png). Like I said, I don't know anything about SQL, so I'm not really sure I'm doing it right, but what I gathered was opening up phpMyAdmin, inserting the code listed, and hitting "GO" and that's it. If there is something I'm missing, I don't know what it is.
Title: Re: Global Announcements
Post by: Angelotus on July 07, 2008, 04:36:56 AM
You have to replace

{$db_prefix}

into your database prefix (standard it is set to smf_ )

Then try running it again.
Title: Re: Global Announcements
Post by: mikekearn on July 07, 2008, 04:47:57 AM
I did that, and now all the SQL things went fine except the last one, which gave an error: "#1060 - Duplicate column name 'gaOrder' "

The GA page on my Admin section still looks exactly the same as before (http://potatomouseproductions.com/Images/installed_04.png).

Thanks, by the way, for all the help you've given. It may not have worked so far, but I'm at least a lot closer than I was! I think... :-\
Title: Re: Global Announcements
Post by: Angelotus on July 07, 2008, 05:11:38 AM
That last error I also received. Search this topic and you find that many more people have encountert that message. Shouldn't be a problem though.

Quick question: what language do you use as admin? Is that english? and are you 100% sure that you have edit all the necessary language files for this mod?
I ask you this because if I look at your screenshot it appears this mod is working, only not all the language strings are there...
Title: Re: Global Announcements
Post by: mikekearn on July 07, 2008, 05:15:59 AM
That was the problem! Thank you so much! I thought I was using English, but apparently I was using English-UTF8, which I guess is something different? I don't know how that happened, but it works now, so again, thank you very much!
Title: Re: Global Announcements
Post by: Angelotus on July 07, 2008, 05:42:50 AM
It is different indeed! Your welcome!
Title: Re: Global Announcements
Post by: Vinspire on July 12, 2008, 06:32:25 AM
Am wondering if this mod work wif  SMF 2.0 Beta 3.1 Public ?
Title: Re: Global Announcements
Post by: Angelotus on July 12, 2008, 09:45:48 AM
Me too!
Title: Re: Global Announcements
Post by: smile80 on July 14, 2008, 06:56:12 AM
How can I enter in Global announcement. menu? Where should I write announcement?


Thanks
Title: Re: Global Announcements
Post by: mikekearn on July 14, 2008, 07:11:31 AM
If you have installed it completely and correctly (which took me a while ::)) you just click your "Admin" section and it should be on the very bottom of the left-hand sidebar, under the heading "Mods", saying "Global Announcements". Click that, and it'll take you to the Global Announcements section, where you can post them. Cheers!
Title: Re: Global Announcements
Post by: smile80 on July 14, 2008, 07:32:25 AM
I do not have heading Mods... I installed this mod, and I followed link to post GA. It works, but I cannot find icon for it....

My forum is based on default skin..... Maybe I should edit some stuff?

Thanks!

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg231.imageshack.us%2Fimg231%2F8921%2F44989664yf1.th.jpg&hash=501b62f7651bf195c034802a114784e84c7f606a) (http://img231.imageshack.us/my.php?image=44989664yf1.jpg)
Title: Re: Global Announcements
Post by: mikekearn on July 14, 2008, 07:34:59 AM
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 (http://docs.simplemachines.org/index.php?topic=402.0) 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.
Title: Re: Global Announcements
Post by: atomico on July 22, 2008, 09:30:36 AM
how can i give the possibility to reply at announce as sticky post?
Title: Re: Global Announcements
Post by: seficar on August 02, 2008, 11:08:14 AM
i dont have

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


in my MessageIndex.template.php

where should i post the code for custom theme?
Title: Re: Global Announcements
Post by: Sudhakar Arjunan on August 04, 2008, 12:23:38 AM
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.
Title: Re: Global Announcements
Post by: Cal O'Shaw on August 06, 2008, 11:20:45 PM
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
Title: Re: Global Announcements
Post by: hairul on August 07, 2008, 07:33:39 AM
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

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg216.imageshack.us%2Fimg216%2F9049%2Fgbakp5.th.jpg&hash=ca61c52227c4c790d54eed298bbef53a53a1c4ab) (http://img216.imageshack.us/my.php?image=gbakp5.jpg)

This is how it look like in the board

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg216.imageshack.us%2Fimg216%2F3372%2Fgba2zm0.th.jpg&hash=4ac1abc50ac38df50d5bff25e23753d17dad05a7) (http://img216.imageshack.us/my.php?image=gba2zm0.jpg)

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?
Title: Re: Global Announcements
Post by: Cal O'Shaw on August 10, 2008, 12:28:18 AM
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
Title: Re: Global Announcements
Post by: foobs on August 12, 2008, 11:37:44 AM
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.
Title: Re: Global Announcements
Post by: Leadfoot on August 14, 2008, 12:23:03 PM
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.
Title: Re: Global Announcements
Post by: Leadfoot on August 14, 2008, 12:47:57 PM
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?
Title: Re: Global Announcements
Post by: Adish - (F.L.A.M.E.R) on August 22, 2008, 08:05:32 AM

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.
Title: BUG
Post by: 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.
Title: Re: Global Announcements
Post by: Adish - (F.L.A.M.E.R) on August 23, 2008, 08:54:39 AM
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.
Title: Re: Global Announcements
Post by: Yigal on August 28, 2008, 03:20:20 AM
How do I make the Global Announcements Modification appear in the Main Index of the forum?
Title: Re: Global Announcements
Post by: Adish - (F.L.A.M.E.R) on September 01, 2008, 08:48:09 AM
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.
Title: Re: Global Announcements
Post by: AlenNS on September 04, 2008, 12:10:04 PM
Is this mod made for SMF 2.0 Beta 3.1 Public?
Title: Re: Global Announcements
Post by: bfeo on September 14, 2008, 01:51:51 PM
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.
Title: Re: Global Announcements
Post by: bfeo on September 18, 2008, 08:48:22 AM
'lo?
Title: Re: Global Announcements
Post by: InternetMafia on October 09, 2008, 07:19:24 PM
Any plans on making this mod 1.1.6 compatible
Title: Re: Global Announcements
Post by: Nibogo on October 09, 2008, 07:51:45 PM
Quote from: InternetMafia on October 09, 2008, 07:19:24 PM
Any plans on making this mod 1.1.6 compatible

Works on smf 1.1.6 , If a mod work with smf 1.1.4 or 1.1.6 will work with smf 1.1.6
Title: Re: Global Announcements
Post by: InternetMafia on October 10, 2008, 10:57:28 PM
When I try to load the package into a package parser I get this

QuoteERROR: The package-info.xml file is  invalid!

Debugging InformationError message: String could not be parsed  as XML
Source:  /home/dragonfl/public_html/resourcez/PackageParser/index.php:133
Errors  encountered while parsing XML file: Stack Trace:
#0  /home/dragonfl/public_html/resourcez/PackageParser/index.php(133):  SimpleXMLElement->__construct('')
#1  /home/dragonfl/public_html/resourcez/PackageParser/index.php(94):  parsePackageInfoXML('/tmp/package-in...', 'install', 'all')
#2  /home/dragonfl/public_html/resourcez/PackageParser/index.php(773):  parseArchive('/tmp/phpLmGAme', 'install', 'all')
#3 {main}

XML  File:
Title: Re: Global Announcements
Post by: allumius on October 18, 2008, 04:33:38 AM
Somebody can help me?

I have smf 1.1.6 i have install this mod
my problem is:
Normaly the estructure is:

-Global Announcements
-Foro
--SubForo

but in my forum the estructure is:

-Subforo
-Global Announcements
-Foro

See the attach

Somebody can help me to change this problem?
Title: Re: Global Announcements
Post by: leonardus on October 19, 2008, 03:21:27 AM
do you think is possible to have a new versione for my v2.0 beta 4?

i like it very much!

thx
Title: Re: Global Announcements
Post by: edi67 on October 19, 2008, 07:30:18 AM
Quote from: leonardus on October 19, 2008, 03:21:27 AM
do you think is possible to have a new versione for my v2.0 beta 4?

i like it very much!

thx

i cannot wait for have it too is necessary
Title: Re: Global Announcements
Post by: kyle007 on October 20, 2008, 04:18:30 PM
Hi, i installed it but it gives an error when i run "ga_install.php"....

QuoteGlobal Announcements Database Changes

    * Error: Adding global_announcements table failed.
    * Error: Adding global_announcements_boards table failed.
    * Error: The installer was unable to enable the Global Announcements. To enable go to Admin > Features and Options
    * Error: gaOrder column already exists
    * The Global Announcements mod was successfully installed. Click here to add a Global Announcement.

And also when i click "Global Announcements" on "Admin Panel" it says :

QuoteSorry, you're not allowed to admin the Global Announcem

So i couldn't manage to get it work, someone help me ?! :(

PS: I use a custom theme,not default...And i use manuel installition...
Title: Re: Global Announcements
Post by: AlenNS on October 23, 2008, 10:15:28 AM
Will someone make this mod for Beta 4?
Title: Re: Global Announcements
Post by: Costa on October 24, 2008, 09:18:23 AM
Congrats for the mod
I have one question for who can help me
See the atach image

It's possible to change the phrase Global announcements ???

It's the only thing I need to post the translation to brazilian for everyone who want

Farewell
~[Costa]
Title: Re: Global Announcements
Post by: Nibogo on October 24, 2008, 12:09:34 PM
[Costa] this is a little bug with the mod the "Global Announcements" only can be changed on the MessageIndex.template.php ;)
Title: Re: Global Announcements
Post by: Costa on October 24, 2008, 12:47:31 PM
Thanks NIBOGO, it's done, now the translation to brazilian  :D

./Themes/default/languages/Modifications.portuguese_brazilian.php


//Global Announcements adminIndex text strings.
$txt['global_announcements_admin'] = 'Anúncios Globais';
$txt['global_announcements_mods'] = 'Mods';
$txt['whoallow_globalAnnouncementsAdmin'] = 'Gerenciando os <a href="' . $scripturl . '?action=globalAnnouncementsAdmin">Anúncios Globais</a>.';
$txt['whoall_globalAnnouncements'] = 'Vendo um anúncio Global';


./Themes/default/languages/Help.portuguese_brazilian.php


$helptxt['global_announcements_enable'] = 'Isto irá cancelar as definições locais de habilitar/desabilitar os Anúncios Globais e habilitar ou desabilitá-los';


./Themes/default/languages/ManagePermissions.portuguese_brazilian.php

//Global Announcements permissions.
$txt['permissionname_global_announcements_admin'] = 'Gerenciar os Anúncios Globais';
$txt['permissionhelp_global_announcements_admin'] = 'Se você atribuir esta permissão a este grupo de membros, os membros deste grupo serão capazes de adicionar, editar e apagar os anúncios globais';


./Themes/default/languages/Errors.portuguese_brazilian.php


$txt['cannot_global_announcements_admin'] = 'Desculpe, mas você não está autorizado a administrar os anúncios globais';


The attach is the brazilian template for GA Admin

Thanks for the mod


Farewell
~[Costa]
Title: Re: Global Announcements
Post by: allumius on October 24, 2008, 01:30:25 PM
Quote from: allumius on October 18, 2008, 04:33:38 AM
Somebody can help me?

I have smf 1.1.6 i have install this mod
my problem is:
Normaly the estructure is:

-Global Announcements
-Foro
--SubForo

but in my forum the estructure is:

-Subforo
-Global Announcements
-Foro

See the attach

Somebody can help me to change this problem?

Somebody can help me please??
Title: Re: Global Announcements
Post by: AlenNS on October 24, 2008, 07:02:13 PM
That's how it should be.
Title: Re: Global Announcements
Post by: HecKel on October 25, 2008, 03:58:24 PM
Costa, just to say something, you have the file names wrong, is portuguese_brazilian and not only brazilian. That's how SMF has the language package, with wrong names that can confuse some newbies.
Title: Re: Global Announcements
Post by: Costa on October 25, 2008, 04:10:36 PM
Ok Heckel, no meu fórum eu tenho os arquivos em pt-br com {nome do arquivo}.brazilian.php, e esqueço-me disso que disses-te :P
Obrigado pelo reparo, anexo e post estão bem agora

Farebem
-[Costa]




Ok Heckel, in my forum i have the brazilian files with {file name}.brazilian.php, so i forget that you said :P
Thanks for the feedback, attach and post are good now

Farewell
- Costa
Title: Re: Global Announcements
Post by: Rafferty on November 03, 2008, 07:59:39 AM
Am I missing something, where do i access the announcements, I can find no link
Title: Re: Global Announcements
Post by: Costa on November 03, 2008, 08:19:33 AM
It's on the end of the left admin area
Modification > Global Anouncements

Farewell
- Costa
Title: Re: Global Announcements
Post by: Rafferty on November 03, 2008, 08:50:16 AM
that explains it, I have modifications but nothing in it
Title: Re: Global Announcements
Post by: AlenNS on November 03, 2008, 09:16:03 AM
You have to insert translation in your language files and you'll have then settings for this mod.
Title: Re: Global Announcements
Post by: Rafferty on November 03, 2008, 07:38:53 PM
Its default english
Title: Re: Global Announcements
Post by: Rhine on November 15, 2008, 03:40:13 PM
Is it possible to make so I can post several posts in an global annoucement?
Title: Re: Global Announcements
Post by: allumius on November 19, 2008, 04:37:55 AM
Quote from: allumius on October 18, 2008, 04:33:38 AM
Somebody can help me?

I have smf 1.1.6 i have install this mod
my problem is:
Normaly the estructure is:

-Global Announcements
-Foro
--SubForo

but in my forum the estructure is:

-Subforo
-Global Announcements
-Foro

See the attach

Somebody can help me to change this problem?

Help me please
Title: Re: Global Announcements
Post by: pooya on November 19, 2008, 08:43:20 AM
Nothing for 2.0 beta 4 ?
Title: Re: Global Announcements
Post by: Rhine on December 04, 2008, 11:30:09 AM
Is it possible so people can comment on global annoucement?
Title: Re: Global Announcements
Post by: AlenNS on December 04, 2008, 12:18:42 PM
Quote from: pooya on November 19, 2008, 08:43:20 AM
Nothing for 2.0 beta 4 ?
Same question?
Title: Re: Global Announcements
Post by: dmagic on December 06, 2008, 05:47:16 AM
please help !!!

where i see this file ?GlobalAnnouncementsAdmin.php ?
i don't undertnd the instructions

my forum
www.magic4free.net/forum/

Thanks for help
Title: Re: Global Announcements
Post by: Rhine on January 02, 2009, 08:00:44 PM
Is it possible to make so user can be able to post an reply in an global annoucement?
Title: Re: Global Announcements
Post by: landshark on January 05, 2009, 12:09:48 PM
Quote from: pooya on November 19, 2008, 08:43:20 AM
Nothing for 2.0 beta 4 ?

Looking for this as well.
Title: Re: Global Announcements
Post by: savicmi on January 05, 2009, 01:03:14 PM
I installed it successfully but it gives a database error when I write in an announcement and click on "Add GA" button. What's wrong?

Field 'modifiedTime' doesn't have a default value
File: C:\Program Files\Apache Group\Apache2\test\forum\Sources\GlobalAnnouncementsAdmin.php
Line: 270


Version Information:
-----------------------------------
Forum version: SMF 1.1.7
PHP version: 5.0.5
MySQL version: 5.0.13-rc-nt
Server version: Apache/2.0.54 (Win32) PHP/5.0.5

EDIT: I ran the query from 10th page in phpMyAdmin and it works now.  :)
Title: Re: Global Announcements
Post by: darkacex on January 07, 2009, 10:07:37 PM
i get this error when i open my topic.

Method Not Implemented

GET to /index.php not supported.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: Global Announcements
Post by: darkacex on January 09, 2009, 10:01:30 PM
any help?
Title: Re: Global Announcements
Post by: darkacex on January 11, 2009, 04:54:13 PM
help please.
Title: Re: Global Announcements
Post by: darkacex on January 12, 2009, 05:15:24 PM
May I get some help please?
Title: Re: Global Announcements
Post by: darkacex on January 14, 2009, 03:32:44 PM
cmon! help me!
Title: Re: Global Announcements
Post by: brandonroy on January 16, 2009, 03:04:08 AM
Great mod. thanks.

Note: When you turn "count views" to off, it leaves the view count at zero. I wanted to make it "--" just like the replies does. To do that:

MessageIndex.template.php

Find


<td align="center" class="windowbg">
', $globalAnnouncement['ga']['views'], '
</td>


Replace with

<td align="center" class="windowbg">
--
</td>

Title: Re: Global Announcements
Post by: acsieben on January 24, 2009, 07:09:26 AM
Quote from: darkacex on January 07, 2009, 10:07:37 PM
i get this error when i open my topic.

Method Not Implemented

GET to /index.php not supported.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


I get this error as well!!
using 1.1.7
Title: Re: Global Announcements
Post by: KadirX on January 24, 2009, 09:11:56 AM
Would be good for 1.1.7 :)

But I really searched for this, then I found it here, and it's not compatible with my forum version :(
Title: Re: Global Announcements
Post by: drhamad on February 02, 2009, 05:20:30 PM
Quote from: Rhine on January 02, 2009, 08:00:44 PM
Is it possible to make so user can be able to post an reply in an global annoucement?

I've been wanting this for years.  It has never been offered in this mod.  There was an older mod that did, but hasn't been supported since 1.0.
Title: Re: Global Announcements
Post by: drhamad on February 02, 2009, 05:21:42 PM
So is this mod no longer supported?  More to the point, will a 2.0 version be made or should we look for a different solution?
Title: Re: Global Announcements
Post by: JayBachatero on February 02, 2009, 09:20:59 PM
Sorry for not replaying any time sooner.  This mod is up for grabs by anyone that wants to take over.  I want/need to upgrade it to work on 2.0 but I just haven't had the time to do so.  I'm working, school and other side projects and not enough time to devote to it.
Title: Re: Global Announcements
Post by: Nibogo on February 02, 2009, 11:10:53 PM
I am working in a new mod with the same idea , so please wait a little bit.

The first version is awaiting approval
Title: Re: Global Announcements
Post by: JayBachatero on February 02, 2009, 11:34:19 PM
Hey Nibogo.  Glad to hear someone is working on something similar.  I'm still available on MSN most of the time.  If anything just shoot me an IM.
Title: Re: Global Announcements
Post by: Sudhakar Arjunan on February 03, 2009, 02:04:29 AM
Quote from: NBG on February 02, 2009, 11:10:53 PM
I am working in a new mod with the same idea , so please wait a little bit.

The first version is awaiting approval

Thanks really cool. I was waiting for 2.0.4 release.
Title: Re: Global Announcements
Post by: drhamad on February 03, 2009, 02:22:56 PM
I'll give it a shot if NBG's doesn't do what's needed.  Hopefully his does it though.
Title: Re: Global Announcements
Post by: Don Pepito on February 08, 2009, 12:04:19 PM
It would be nice to add option of replying to announcements...
Title: Re: Global Announcements
Post by: Nibogo on February 08, 2009, 12:17:47 PM
The v1 have some little bugs , I am fixing this bugs , are not a big deal , also I have 12 mods released and 3 waiting approval. I hope of the mod will be released in this week.
Title: Re: Global Announcements
Post by: drhamad on February 08, 2009, 08:19:23 PM
Thanks NIBOGO.  I look forward to hearing more when it is approved.
Title: Re: Global Announcements
Post by: Don Pepito on February 09, 2009, 01:46:50 PM
NIBOGO, when your mod (announcement) will be done..??
Tnx....
Title: Re: Global Announcements
Post by: Nibogo on February 09, 2009, 05:34:54 PM
Quote from: Don Pepito on February 09, 2009, 01:46:50 PM
NIBOGO, when your mod (announcement) will be done..??
Tnx....

I am fixing some bugs in the error log , after of that I hope of the mod will be approved
Title: Re: Global Announcements
Post by: Don Pepito on February 10, 2009, 05:16:51 PM
One more question...
What advantages provides that mod, comparing it with GA mod...??
What are new functions...??
Title: Re: Global Announcements
Post by: Nibogo on February 11, 2009, 02:59:23 PM
YAGAM - RELEASED!!! (http://tinyurl.com/yagam2)

Any comment , suggest or anything about the yagam mod please in the yagam support topic

PLEASE LEFT THIS TOPIC FOR THE GLOBAL ANNOUNCEMENTS MOD BY JAY
Title: Re: Global Announcements
Post by: Lamarck on February 11, 2009, 06:10:01 PM
Nice MOD,Nibogo...I will test It.
           
Title: Re: Global Announcements
Post by: Blinker on March 03, 2009, 04:19:22 AM
Just to let you know that since I'm running 1.1.8 I couldn't use YAGAM but this one installed and runs perfectly (even on my custom theme).

Nice work Jay, I can't believe I didn't install this ages ago, it could have come in handy so many times!
Title: Re: Global Announcements
Post by: Nibogo on March 03, 2009, 02:48:03 PM
Quote from: Blinker on March 03, 2009, 04:19:22 AM
Just to let you know that since I'm running 1.1.8 I couldn't use YAGAM but this one installed and runs perfectly (even on my custom theme).

Nice work Jay, I can't believe I didn't install this ages ago, it could have come in handy so many times!

mmm I am thinking of the problem is of YAGAM was designed for SMF 2.0 but I am not 100% sure  ::) ::)
Title: Re: Global Announcements
Post by: Blinker on March 04, 2009, 02:41:27 AM
Quote from: NIBOGO on March 03, 2009, 02:48:03 PM
Quote from: Blinker on March 03, 2009, 04:19:22 AM
Just to let you know that since I'm running 1.1.8 I couldn't use YAGAM but this one installed and runs perfectly (even on my custom theme).

Nice work Jay, I can't believe I didn't install this ages ago, it could have come in handy so many times!

mmm I am thinking of the problem is of YAGAM was designed for SMF 2.0 but I am not 100% sure  ::) ::)

Hey NIBOGO, no need for sarcasm dude...you've misinterpreted my post.

I KNOW YAGAM was written for 2.0 only, that's why I didn't even make any attempt to install it because I run 1.1.8.

Another reason I bothered to post at all was so that other 1.1.8 users would know it will work for them because it hasn't been updated for a while.  :)


Title: Re: Global Announcements
Post by: vertese on June 05, 2009, 09:28:34 AM
Hi,
Looks great, can I use it with 1.1.9?

Also could you please explain what it will do.  I would like it to be like sticky but remain at the top of last messages, for very important topic.
thanks
Title: Re: Global Announcements
Post by: Nibogo on June 05, 2009, 03:16:12 PM
Quote from: vertese on June 05, 2009, 09:28:34 AM
Hi,
Looks great, can I use it with 1.1.9?

Also could you please explain what it will do.  I would like it to be like sticky but remain at the top of last messages, for very important topic.
thanks

Works great on SMF 1.1.9 just change the version in the package-info.xml
Title: Re: Global Announcements
Post by: Joe N on June 06, 2009, 04:06:28 AM
Hi

I am using smf 1.1.9

One quick question, where do you change the settings?

Joe
Title: Re: Global Announcements
Post by: vertese on June 06, 2009, 05:59:41 AM
thank you
Title: Re: Global Announcements
Post by: Rubyforlife on June 14, 2009, 02:29:43 PM
Hello, I just installed this on 1.1.9 and immediately two errors popped up in the log:

8: Undefined index: global_announcements_mods
File: /home/x/public_html/forum/Sources/Subs.php
Line: 2820

followed by:

8: Undefined index: global_announcements_admin
File: /home/x/public_html/forum/Sources/Subs.php
Line: 2822

What do they mean?  :)


Mmm...also got this:

http://www.[site].com/forum/index.php?action=globalAnnouncementsAdmin;sa=credits
Apply Filter: Only show the errors with the same message
2: file_get_contents(http://jaybachatero.com/global_announcements.xml) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found

File: /home/x/public_html/forum/Sources/GlobalAnnouncementsAdmin.php
Line: 645

I'm also having trouble modifying the file in my custom theme, I can't find the line that it specifies in the first post of this thread. 

<search for>
   // Create the button set...
   $normal_buttons = array(
</search for>


This doesn't show up in the theme I'm using, kelo-lt119v1

Title: Re: Global Announcements
Post by: ElectroPheonix on June 16, 2009, 11:27:22 AM
Quote from: Joe N on June 06, 2009, 04:06:28 AM
Hi

I am using smf 1.1.9

One quick question, where do you change the settings?

Joe

In your Admin CP, left hand side column you have:

Main, Configuration, Forum, Members, Maintenance, Mods = >Global Announcements

If it installed peoperly, you will see it if you are using default theme... If you are using a custom theme then you'll have to tinker with some files. I had to...

Or you can access it by http://yoursite.com/index.php?action=globalAnnouncementsAdmin


Anyways, I have a small problem in sorting the global announcements once they are made. My sorting doesn't seem to work. Is there a way of changing the default sorting method? (in which file)
Thanks

Title: Re: Global Announcements
Post by: Cal O'Shaw on July 14, 2009, 03:23:25 AM
I'm having resource issues with my ISP and have been slimming down the site trying to fix it.  I uninstalled this MOD but it looks like it left two tables in my database.

Can I DROP those tables or is there a script I need to use to remove any additional fields in other tables?

Grazie,

Cal
Title: Re: Global Announcements
Post by: GravuTrad on August 25, 2009, 12:12:31 PM
No Problem for 1.1.10?
Title: Re: Global Announcements
Post by: aw06 on September 27, 2009, 11:41:01 AM
Quote from: GravuTrad on August 25, 2009, 12:12:31 PM
No Problem for 1.1.10?

bump

I also need help .. i dont see any of these codes in my custom theme ....

index.template.php

if ($context['current_action'] == 'search2')
$current_action = 'search';


MessageIndex.template.php

// Create the button set...
$normal_buttons = array(
Title: Re: Global Announcements
Post by: nov korisnik on January 07, 2010, 07:20:25 AM
Quote from: MarkoWeb on October 05, 2006, 07:00:28 AM
when the Super Sticky mod will be available?
Quote from: JayBachatero on October 05, 2006, 08:19:43 AM
When I get the time.
past three years   :-\
Title: Re: Global Announcements
Post by: abcd789 on February 08, 2010, 11:32:54 PM
installed global anouncement but it was not showing.... in the admin panel.. it shows blank...  and how to ad to custom theme given code in the box... thanx in advance...
Title: Re: Global Announcements
Post by: GravuTrad on February 09, 2010, 10:42:00 AM
Does your forum use foreign languages? does this mod have them?

Have you added the code for personal themes given by the parser option?
Title: Re: Global Announcements
Post by: abcd789 on February 09, 2010, 02:26:48 PM
no friend i dont use any foreign languages... so i got doubt and instaled one test forum again in another database... in dat also same problem mods not coming in the left admin panel.. if i check the code in the files of index it is der... what to do help me plzz thank u so much...
Title: Re: Global Announcements
Post by: GravuTrad on February 09, 2010, 02:32:01 PM
This mod is not maintained, and not updated for 1.1.11 and more. which version of the forum do you use?
Title: Re: Global Announcements
Post by: abcd789 on February 09, 2010, 02:33:52 PM
ohh i m using  SMF 1.1.11

then what to do.. which is best mods for my site... friend
Title: Re: Global Announcements
Post by: Nibogo on February 09, 2010, 02:38:04 PM
I had SMF 1.1.11 installed and this mod was working pretty well, you should try to do a manual edit of all the mod
Title: Re: Global Announcements
Post by: abcd789 on February 09, 2010, 02:45:24 PM
yes friend previous i have instaled it works but after dat i instlaed avea media mod and all my files got blank.. so again i instaled my forum.. newly and instaling mods but geting these and also i instaled global header and footer dat also not coming in the admin panel... its not showing and instaled sitemap and it also not showing in the admin panel but it shwoing in the footer sitemap link.. uhh this is the problem friends.... help me.. what to do.. i had my previous forum backup.. if i upload dat i m getting all errors... so i m doing again newly now...
Title: Re: Global Announcements
Post by: huntfi5 on March 17, 2010, 04:40:12 PM
this may be related to trying to use it on 1.1.11.  if so i apologize in advance.

i am able to install the mod successfully.  when i make a "test" GA, it does so correctly, applying it to whatever forums i tell it to.  my problem is that when i (or any user) clicks on the GA to read it, it gives an HTTP 500 error.  when i go back into admin-->mods-->GA's and try to edit the GA, i get the same http error.  i have to disable GA to get them to leave.  i can't even delete or modify the "test" GA that i created?

any help?
Title: Re: Global Announcements
Post by: hcfwesker on April 12, 2010, 03:43:16 AM
So far this works pretty good foir me on 1.1.11

I was wondering how you would change the member color link, so the staff who posts this, it display's their staff color in their name?

I know it's got somthing to do with ['member_color_link']  or something being added somewhere.

Title: Re: Global Announcements
Post by: aw06 on April 12, 2010, 07:35:15 AM
Quote from: aw06 on September 27, 2009, 11:41:01 AM
Quote from: GravuTrad on August 25, 2009, 12:12:31 PM
No Problem for 1.1.10?

bump

I also need help .. i dont see any of these codes in my custom theme ....

index.template.php

if ($context['current_action'] == 'search2')
$current_action = 'search';


MessageIndex.template.php

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


TTT
Title: Re: Global Announcements
Post by: wynnyelle on June 11, 2010, 09:39:11 PM
I am getting this error:

http://www.simplemachines.org/community/index.php?topic=386040.0

That's where I described it. How does this get fixed? Thanks for helping!
Title: Re: Global Announcements
Post by: forfun on June 21, 2010, 08:09:44 AM
Hi all,
I really like this mod, but there is one thing that I wish I know how to fix it:  normal topics
The mod has taken over all the board title, and convert them to "normal topic".
Is there any way to change this "problem", so instead of showing "normal topic", the board will keep it original board title.
Thanks MUCH MUCH for any help
Title: Re: Global Announcements
Post by: huntfi5 on June 21, 2010, 08:56:18 AM
so evidently this mod doesn't work really well, and there's no support for it?
Title: Re: Global Announcements
Post by: wynnyelle on July 23, 2010, 10:51:51 PM
When I tried to send a mass PM to everyone with this announcement, it kept timing out and saying it exceeded 30 seconds and therefore couldn't execute it.

i am using 1.1.11.
Title: Re: Global Announcements
Post by: forfun on July 24, 2010, 07:21:33 AM
Quote from: Groovystar on July 23, 2010, 10:51:51 PM
When I tried to send a mass PM to everyone with this announcement, it kept timing out and saying it exceeded 30 seconds and therefore couldn't execute it.

i am using 1.1.11.
Quote from: Groovystar on July 23, 2010, 10:51:51 PM
When I tried to send a mass PM to everyone with this announcement, it kept timing out and saying it exceeded 30 seconds and therefore couldn't execute it.

i am using 1.1.11.

I am not PHP programmer, but I think you should change the time in php.ini file

look for
Quotemax_input_time = 30
Then change the time to 60, or longer.
Someone knows more than me will jump in and help you.
Title: Re: Global Announcements
Post by: hcfwesker on August 17, 2010, 03:14:04 PM
Quote from: hcfwesker on April 12, 2010, 03:43:16 AM
So far this works pretty good foir me on 1.1.11

I was wondering how you would change the member color link, so the staff who posts this, it display's their staff color in their name?

I know it's got somthing to do with ['member_color_link']  or something being added somewhere.

Bump.  4 months and still no answer :(
Title: Re: Global Announcements
Post by: ephobe on December 17, 2010, 01:31:25 PM
Dead Mod? Anyway to add attachments to the mod? Help?
Title: Re: Global Announcements
Post by: City Builder on April 29, 2011, 11:06:50 PM
When I try to delete anouncements that I'm no longer using I get the message"
Unable to load the 'main' template.

I'm using SMF RC4 if that helps any,

I also get errors when trying to turn posts into announcements of the same thing.

Any help available for me to get this working 100% on my forum?

Thanks

If this mod is actually dead, is there another one that could replace it?
Title: Re: Global Announcements
Post by: Nibogo on April 30, 2011, 12:22:00 PM
Quote from: City Builder on April 29, 2011, 11:06:50 PM
When I try to delete anouncements that I'm no longer using I get the message"
Unable to load the 'main' template.

I'm using SMF RC4 if that helps any,

I also get errors when trying to turn posts into announcements of the same thing.

Any help available for me to get this working 100% on my forum?

Thanks

If this mod is actually dead, is there another one that could replace it?

You must try YAGAM, as this mod isn't 2.0 ready.
Title: Re: Global Announcements
Post by: smartmouse on May 17, 2011, 09:24:57 AM
I have upgraded SMF v1.1.13 to 2.0 RC5 and i had to delete this mod before upgrade.
Now, can i install YAGAM and import database entries that were recorded by Global Announcements mod?
Title: Re: Global Announcements
Post by: smartmouse on May 19, 2011, 07:15:44 PM
Nevermind. I have manually imported old data to the YAGAM mod.
Thank you anyway.