Global Announcements

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

Previous topic - Next topic

veldfire

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


ramiz

#281
Quote from: TrueSatan on April 05, 2007, 08:44:22 AM
Have a read:

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  SlickPro_Graphite's index.template.php and MessageIndex.template.php


hypnoticstate

#282
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.

[nofollow]

[nofollow]

veldfire

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:


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


Where can i edit?

vijayr

#284
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.

AmazinAzn

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?

TrueSatan

@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.

LadyKay

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?

HecKel

This mod will be a default feature in SMF 2.0?

HecKel
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

mrw1986

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?

Saxe

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

sambalisG

Please can you help me with installation in Greek language under 1.1.2???

TrueSatan

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

Saxe

TrueSatan, I understand. I was hoping someone could tell me what comes before or after the normal_buttons array.

sambalis

How can make this mod work in Greek Please???

TrueSatan

@ 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

kill3r

Plz update this for 1.1.3. thanks

TrueSatan

Had you tried the mod prior to posting your message you'd have found that it already supports SMF 1.1.3

Pranav

it works with 1.1.3. Cool! 8)

mrw1986

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]

Advertisement: