Global Announcements

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

Previous topic - Next topic

softtouch

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!!!

frax0

hi,I've install this mod..that's ok..but in adminpannel no see mod..because?


i attach image.. :D tkx

JayBachatero

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.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

someone

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?

JayBachatero

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Tanix

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

JayBachatero

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.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Tanix

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.

JayBachatero

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.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Tanix

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?

JayBachatero

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.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

frax0

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 :-)

Zuma

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

JayBachatero

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.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Zuma

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

Zuma

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

frax0

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

JayBachatero

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?
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Zuma

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.

JayBachatero

Upload the .english.php files from the archive to the /themes/default/languages dir.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Advertisement: