Yet Another Global Announcements Mod (YAGAM)

Started by Nibogo, February 11, 2009, 12:47:15 AM

Previous topic - Next topic

jkrlvgn

I'd love to help you with this, Nibogo.  Send me the text, and I'll make sure it's fine for you.

:) :) :)

AlenNS

I'm getting this error:

Quote from: AlenNS on March 02, 2009, 12:42:13 PM
QuoteApply Filter: Only show the error messages of this URL  http://www.baklja.com/forum/index.php?board=1.0
Apply Filter: Only show the errors with the same message
2: array_intersect() [<a href='function.array-intersect'>function.array-intersect</a>]: Argument #1 is not an array
Apply Filter: Only show the errors from this file
File: /home/baklja/public_html/forum/Themes/default/MessageIndex.template.php
Line: 225

Did you mean this?
Quote==>225:    $announcement_permission = count(array_intersect($user_info['groups'], $pGroups)) == 0 ? false : true;

On installing this mod I found problem because I've inserted some modification for sticky topics.

Nibogo

Quote from: jkrlvgn on March 04, 2009, 07:15:03 PM
I'd love to help you with this, Nibogo.  Send me the text, and I'll make sure it's fine for you.

:) :) :)

Thanks I really appreciate that , Please check your Personal messages

For the v2.0 Release I have to remove Swedish , German , Turkish , Italian and Rumanian because I add a lot of new strings , I will be more than happy if you can update the translations :)

Özgür

V2 not work me.
yagam admin panel and announcement page get this error
syntax error, unexpected T_VARIABLE, expecting ',' or ';'

(ps : i edit turkish language files. i will update this morning)
So Long

Nibogo

Quote from: Özgür´ on March 04, 2009, 08:16:23 PM
V2 not work me.
yagam admin panel and announcement page get this error
syntax error, unexpected T_VARIABLE, expecting ',' or ';'

(ps : i edit turkish language files. i will update this morning)

That v2 was not for the public , I upload that file for the parser and jkrlvgn

You should uninstall that versions and install the v1.1.6.2

I will expect the Turkish package before the v2.0 Release

If someone is interested in the languages text on v2.0 for translation purpose please PM me or post in this topic

jkrlvgn has helped me with the English Strings , I hope of everythings is ok now , I will do some test and upload the v2 Alpha here for test purpose , If someone want to be an alpha tester just have to download that file and report bugs :)

AlenNS


Nibogo

Here we go , i attach the YAGAM v2.0 Alpha for BETA TESTER ONLY!!

I will be really happy if two or three people can help me with this mod.

Quote from: AlenNS on March 04, 2009, 09:54:06 PM
NIBOGO did you look at my problem?

What are the modifications of you do??

Apllicmz

well done
update portuguese_pt and portuguese_brazilian
Utf8

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// YAGAM - Admin and MessageIndex Strings
$txt['yagam_admin'] = 'Anúncios Global';
$txt['yagam_topics'] = 'Tópicos Normal';
$txt['yagam_created'] = 'Criado em';
$txt['whoall_announcements'] = 'Vendo o Anúncio Global';
$txt['permissionname_yagam_manage'] = 'Gerenciar Anúncios Global';
$txt['permissionhelp_yagam_manage'] = 'Define se o utilizador pode gerenciar os anúncios globais.';
$txt['permissionname_yagam_comment'] = 'Comentário Anúncio Global ';
$txt['permissionhelp_yagam_comment'] = 'Define se o utilizador pode comentar os anúncios globais de permitir comentários.';
$txt['yagam_edit2'] = 'Editar';
$txt['yagam_edit'] = 'Editar Anúncio';
$txt['yagam_remove'] = 'Apagar Anúncio';
$txt['yagam_remove2'] = 'Remover';
$txt['yagam_admin_add'] = 'Adicionar Anúncio Global';
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// YAGAM - Admin and MessageIndex Strings
$txt['yagam_admin'] = 'Anúncios Global';
$txt['yagam_topics'] = 'Tópicos Normal';
$txt['yagam_created'] = 'Criado em';
$txt['whoall_announcements'] = 'Vendo um Anúncio Global';
$txt['permissionname_yagam_manage'] = 'Gerenciar Anúncios Global';
$txt['permissionhelp_yagam_manage'] = 'Define se o usuário pode gerenciar os anúncios globais.';
$txt['permissionname_yagam_comment'] = 'Comentário Anúncio Global ';
$txt['permissionhelp_yagam_comment'] = 'Define se o usuário pode comentar os anúncios globais de permitir comentários.';
$txt['yagam_edit2'] = 'Editar';
$txt['yagam_edit'] = 'Editar Anúncio';
$txt['yagam_remove'] = 'Excluir Anúncio';
$txt['yagam_remove2'] = 'Remover';
$txt['yagam_admin_add'] = 'Adicionar Anúncio Global';
]]></add>
        </operation>
    </file>



<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// YAGAM - Admin and MessageIndex Strings
$txt['yagam_admin'] = 'An&uacute;ncios Global';
$txt['yagam_topics'] = 'T&oacute;picos Normal';
$txt['yagam_created'] = 'Criado em';
$txt['whoall_announcements'] = 'Vendo o An&uacute;ncio Global';
$txt['permissionname_yagam_manage'] = 'Gerenciar An&uacute;ncios Global';
$txt['permissionhelp_yagam_manage'] = 'Define se o utilizador pode gerenciar os an&uacute;ncios globais.';
$txt['permissionname_yagam_comment'] = 'Coment&aacute;rio An&uacute;ncio Global ';
$txt['permissionhelp_yagam_comment'] = 'Define se o utilizador pode comentar os an&uacute;ncios globais de permitir coment&aacute;rios.';
$txt['yagam_edit2'] = 'Editar';
$txt['yagam_edit'] = 'Editar An&uacute;ncio';
$txt['yagam_remove'] = 'Apagar An&uacute;ncio';
$txt['yagam_remove2'] = 'Remover';
$txt['yagam_admin_add'] = 'Adicionar An&uacute;ncio Global';
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_brazilian-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// YAGAM - Admin and MessageIndex Strings
$txt['yagam_admin'] = 'An&uacute;ncios Global';
$txt['yagam_topics'] = 'T&oacute;picos Normal';
$txt['yagam_created'] = 'Criado em';
$txt['whoall_announcements'] = 'Vendo um An&uacute;ncio Global';
$txt['permissionname_yagam_manage'] = 'Gerenciar An&uacute;ncios Global';
$txt['permissionhelp_yagam_manage'] = 'Define se o usu&aacute;rio pode gerenciar os anúncios globais.';
$txt['permissionname_yagam_comment'] = 'Coment&aacute;rio An&uacute;ncio Global ';
$txt['permissionhelp_yagam_comment'] = 'Define se o usu&aacute;rio pode comentar os an&uacute;ncios globais de permitir coment&aacute;rios.';
$txt['yagam_edit2'] = 'Editar';
$txt['yagam_edit'] = 'Editar An&uacute;ncio';
$txt['yagam_remove'] = 'Excluir An&uacute;ncio';
$txt['yagam_remove2'] = 'Remover';
$txt['yagam_admin_add'] = 'Adicionar An&uacute;ncio Global';
]]></add>
        </operation>
    </file>




shumilica

Ok, here is the romanian translation.
I attached the anouncements.romanian.php and below is the modification from install.xml

modifications.romanian.php

<file name="$languagedir/Modifications.romanian.php">
<operation>
<search position="end" />
<add><![CDATA[
// YAGAM - Admin and MessageIndex Strings
$txt['yagam_admin'] = 'Anunturi Globale';
$txt['yagam_sticky_bar'] = 'Topicuri Importante';
$txt['yagam_topics'] = 'Topicuri Normale';
$txt['yagam_created'] = 'Creat la';
$txt['yagam_remove_verify'] = 'Esti sigur ca vrei sa stergi acest anunt?';
$txt['whoall_announcements'] = 'Vizualizeaza un Anunt Global';
$txt['permissionname_yagam_manage'] = 'Administreaza Anunturile Globale';
$txt['permissionhelp_yagam_manage'] = 'Seteaza aici daca doresti sa permiti utilizatorului sa administreze anunturile globale.';
$txt['permissionname_yagam_comment'] = 'Comenteaza Anunturile Globale';
$txt['permissionhelp_yagam_comment'] = 'Seteaza daca doresti sa permiti comentariile utilizatorilor la Anunturile Globale.';
$txt['yagam_edit2'] = 'Modifica';
$txt['yagam_edit'] = 'Modifica Anuntul';
$txt['yagam_remove'] = 'Sterge Anuntul';
$txt['yagam_remove2'] = 'Sterge';
$txt['yagam_admin_add'] = 'Adauga un Anunt Global';
$txt['yagam_admin_settings'] = 'Setarile Anunturilor Globale';
$txt['yagam_version'] = 'Versiunea Modulului de Anunturi Globale';
]]></add>
</operation>
</file>
Today, if you're not confused it means you're not thinking clear!

fotografo74

Quote from: fotografo74 on February 26, 2009, 04:20:22 AM
Quote from: NIBOGO on February 25, 2009, 06:06:57 PM

Quote from: fotografo74 on February 24, 2009, 02:36:02 PM
Quote
Hi NIBOGO, thanks for this nice MOD!  :)
I have a problem, like screenshot attached.

Can you help me?
Thanks!
Antonio


Just add a colspan="2" to the td on the title when the board have the first attachment screenshot


Thanks NIBOGO!
Sorry but I don't know where it's possible to insert the code  ( <td colspan="2">  it's ok ? )
In announces' title?
Thanks
Antonio
Hi NIBOGO
his Mod is nice and useful...but can you help me with this problem please? :-)
Where i must insert <td colspan="2">  ? ?
Thanks!
Antonio

drhamad

Quote from: NIBOGO on March 04, 2009, 06:34:38 PM
I have the YAGAM v2.0 rev3 on my pc I only need a native english user to verify some texts , anybody??

Thanks

Yeah send them over, I'll look them over.
FMVperformance:  3.51m posts, 63k members, 11 boards, 1 database

Mazda3Forums - SmallVolvos - MazdaSpeeders Mazda Club - FordFusionClubMazda CX-7 Club - MyMazda6
Now introducing: MKSdrivers.com - FocusDrivers - TaurusDrivers

AlenNS

Quote from: NIBOGO on March 04, 2009, 09:59:22 PM
Here we go , i attach the YAGAM v2.0 Alpha for BETA TESTER ONLY!!

I will be really happy if two or three people can help me with this mod.

Quote from: AlenNS on March 04, 2009, 09:54:06 PM
NIBOGO did you look at my problem?

What are the modifications of you do??
1.     Enhanced Dropdown      1.1       [ Uninstall ]  [ List Files ]  [ Delete ]
2.    MCLegendII RC1    3.0    [ Uninstall ] [ List Files ] [ Delete ]
3.    Hide Tag    2.3.0    [ Uninstall ] [ List Files ] [ Delete ]
4.    The Casino    2.0    [ Uninstall ] [ List Files ] [ Delete ]
5.    Simple Image Upload    1.1.0    [ Uninstall ] [ List Files ] [ Delete ]
6.    Topics list support [Taby]    1.04    [ Uninstall ] [ List Files ] [ Delete ]
7.    Custom Action Mod    3.0    [ Uninstall ] [ List Files ] [ Delete ]
8.    New Style Message Icon    1.1    [ Uninstall ] [ List Files ] [ Delete ]
9.    SmileyLimit    1.1    [ Uninstall ] [ List Files ] [ Delete ]
10.    MessagePreviewOnHover    1.7    [ Uninstall ] [ List Files ] [ Delete ]
11.    Latest Members RC1    1.1    [ Uninstall ] [ List Files ] [ Delete ]
12.    Thank-O-Matic    2.0 Beta 9    [ Apply Mod ] [ List Files ] [ Delete ]
13.    RSS Feed Icon    1.1    [ Uninstall ] [ List Files ] [ Delete ]
14.    PM to New Members    1.0    [ Uninstall ] [ List Files ] [ Delete ]
15.    jQLightbox    0.3    [ Uninstall ] [ List Files ] [ Delete ]
16.    Google Talk Profile Field    1.1    [ Uninstall ] [ List Files ] [ Delete ]
17.    Yet Another Global Announcements Mod    1.4    [ Uninstall ] [ List Files ] [ Delete ]
18.    Display Location on posts    1.0    [ Uninstall ] [ List Files ] [ Delete ]
19.    RateThatTopic    2.1.7    [ Uninstall ] [ List Files ] [ Delete ]
20.    Users Online Today    1.5.4    [ Uninstall ] [ List Files ] [ Delete ]
21.    AJAX Instant Quick Reply    1.0.2    [ Uninstall ] [ List Files ] [ Delete ]
22.    Sitemap    2.0.0    [ Uninstall ] [ List Files ] [ Delete ]
23.    OS & Browser Detection    1.2    [ Uninstall ] [ List Files ] [ Delete ]
24.    Images On Board    2.0    [ Uninstall ] [ List Files ] [ Delete ]
25.    AllCaps Notifier    1.0    [ Uninstall ] [ List Files ] [ Delete ]
26.    Aeva ~ Auto-Embed Video & Audio    6.0.62    [ Uninstall ] [ List Files ] [ Delete ]
27.    Share this topic - SMF Mod    1.3    [ Apply Mod ] [ List Files ] [ Delete ]
28.    Flags_MOD    1.0    [ Uninstall ] [ List Files ] [ Delete ]
29.    Reflection Avatar    1.1    [ Uninstall ] [ List Files ] [ Delete ]
30.    Reflection Img BBC    1.2    [ Uninstall ] [ List Files ] [ Delete ]
31.    Box BBCode    1.0    [ Uninstall ] [ List Files ] [ Delete ]
32.    Zuper Admin RC1    1.5    [ Apply Mod ] [ List Files ] [ Delete ]
33.    More Spiders    1.2    [ Uninstall ] [ List Files ] [ Delete ]
34.    Member Color Link    3.0.6    [ Uninstall ] [ List Files ] [ Delete ]
35.    Load Standard Language    1.0.2    [ Uninstall ] [ List Files ] [ Delete ]
36.    Todays Birthday RC1 - MColorLink    1.1    [ Uninstall ] [ List Files ] [ Delete ]
37.    EmailFlash    2.0    [ Uninstall ] [ List Files ] [ Delete ]
38.    SimplePortal    2.1.1    [ Uninstall ] [ List Files ] [ Delete ]
39.    SMF Staff Page    1.6    [ Uninstall ] [ List Files ] [ Delete ]
40.    Wysiwyg Quick Reply    1.1    [ Uninstall ] [ List Files ] [ Delete ]
41.    Attachment Icon File    1.0    [ Uninstall ] [ List Files ] [ Delete ]
42.    New Topic Button    1.0    [ Uninstall ] [ List Files ] [ Delete ]
43.    Age on post    1.0    [ Uninstall ] [ List Files ] [ Delete ]

drhamad

FMVperformance:  3.51m posts, 63k members, 11 boards, 1 database

Mazda3Forums - SmallVolvos - MazdaSpeeders Mazda Club - FordFusionClubMazda CX-7 Club - MyMazda6
Now introducing: MKSdrivers.com - FocusDrivers - TaurusDrivers

Xepernas

Quote from: shumilica on March 03, 2009, 07:25:07 PM
Yes, I didn't noticed that when I posted the message, so please select all the code from above and replace it with this:

[...]

It should work... for me it works and I use RC1, but the theme is for 2.0beta4

Unfortunately it doesn't here. On the contrary, it makes it slightly worse by swapping "started by" and "replies" around (it is started by "--", and the number of replies is me). No change to alignements. :(


Ok, we found out that Yagam depended on classes existing in Core and not in Babylon ("windowbg2 icon1" etc). So we just added some "align" to the Yagam-for-Babylon code, and it works now.

AlenNS

Quote from: drhamad on March 05, 2009, 01:51:02 PM
uh wow, that's a bit much
Yes, but I wrote in this message what I have done and it is probably the main reason for this error.
Ićve manuall added diveder for stickies.
But I don't know how to write that code to work fine. :(

http://www.simplemachines.org/community/index.php?topic=292270.msg1962053#msg1962053

jkrlvgn

There show a few different errors on my end, NIBOGO, on the revision 4.

When accessing the "Global Announcement Settings" part of the control panel, I get the following error:
Unable to load the 'admin_settings_announcements' template.

Two columns are mixed up:  the number of replies is where "who started the thread" is, and the "who started the thread" is where number of replies should be.

I also can't delete the global announcements unless I do it from the message index for the whole forum.  Trying to delete it from the control panel gives me an error that has no text.

--edit--

Also, it seems like I can't edit global announcements at all..?

Nibogo

Thanks joomlamz and Shumillica , I will include brazilian , portuguese and romanian in the next revision

Quote from: fotografo74 on March 05, 2009, 11:58:07 AM
Quote from: fotografo74 on February 26, 2009, 04:20:22 AM
Quote from: NIBOGO on February 25, 2009, 06:06:57 PM

Quote from: fotografo74 on February 24, 2009, 02:36:02 PM
Quote
Hi NIBOGO, thanks for this nice MOD!  :)
I have a problem, like screenshot attached.

Can you help me?
Thanks!
Antonio


Just add a colspan="2" to the td on the title when the board have the first attachment screenshot


Thanks NIBOGO!
Sorry but I don't know where it's possible to insert the code  ( <td colspan="2">  it's ok ? )
In announces' title?
Thanks
Antonio
Hi NIBOGO
his Mod is nice and useful...but can you help me with this problem please? :-)
Where i must insert <td colspan="2">  ? ?
Thanks!
Antonio

In the messageindex.template , the td used on the announcement name , I can tell you exactly the code because I am not on my computer

Quote from: drhamad on March 05, 2009, 01:32:38 PM
Quote from: NIBOGO on March 04, 2009, 06:34:38 PM
I have the YAGAM v2.0 rev3 on my pc I only need a native english user to verify some texts , anybody??

Thanks

Yeah send them over, I'll look them over.

jkrlvgn take over of that , thanks anyway ;)

Quote from: jkrlvgn on March 05, 2009, 09:24:04 PM
There show a few different errors on my end, NIBOGO, on the revision 4.

When accessing the "Global Announcement Settings" part of the control panel, I get the following error:
Unable to load the 'admin_settings_announcements' template.

Two columns are mixed up:  the number of replies is where "who started the thread" is, and the "who started the thread" is where number of replies should be.

I also can't delete the global announcements unless I do it from the message index for the whole forum.  Trying to delete it from the control panel gives me an error that has no text.

--edit--

Also, it seems like I can't edit global announcements at all..?

Thanks for report I will check that ;)

Quote from: AlenNS on March 05, 2009, 06:49:53 PM
Quote from: drhamad on March 05, 2009, 01:51:02 PM
uh wow, that's a bit much
Yes, but I wrote in this message what I have done and it is probably the main reason for this error.
Ićve manuall added diveder for stickies.
But I don't know how to write that code to work fine. :(

http://www.simplemachines.org/community/index.php?topic=292270.msg1962053#msg1962053

I will check that too

Lady Night Owl

 :) Great job on this, but I'm getting some errors...


/index.php?action=announcements;aid=3
8: Undefined offset: 515
File: Themes/default/Announcements.template.php (announcement_view sub template - eval?)
Line: 344

/index.php?action=announcements;aid=2
8: Undefined offset: 515
File: default/GenericControls.template.php (announcement_view sub template - eval?)
Line: 344


There is a conflict with the topic ratings mod. The topic subject ends up smushed.

This is what was in the logs when I tried to edit from the message index:


/index.php?action=announcements;sa=edit;id=1
8: Undefined index: announcement_no_selected
File: Sources/Errors.php
Line: 193


YAGAM Admin (enabling/disabling announcement)


/index.php?action=announcements;sa=editverify;aid=3
8: Undefined index: enable
File: Sources/Announcements.php
Line: 338


???
Running SMF 2.0.1


Lady Night Owl

Running SMF 2.0.1

Advertisement: