News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Yet Another Global Announcements Mod (YAGAM)

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

Previous topic - Next topic

Nibogo

@edi67: Thanks for report, I will fix that errors please report all the bugs you found

@sombra: Try with the manual edit in the Admin.php file, the parser can help you with that and yep you need to do manual edit in your MessageIndex.template.php file

Özgür

And users can't seem announcements

8: Undefined index: announcement_no_permission
File: ./Sources/Errors.php
Line: 193
So Long

edi67

Sorry Nibogo but i mistaken, RC3 not work correctly i cannot select the usergroups enalbed to view announcements, al3ways remain the same user groups, permission are not modificable.

and another bug this part of code in managepermission.php is not installed automatically i must install it manually

<operation>
<search position="before"><![CDATA['access_mod_center' => array(false, 'maintenance', 'moderate_general'),]></search>
<add><![CDATA[
'yagam_manage' => array(false, 'maintenance', 'administrate'),]]></add>
</operation>


i reinstall old version RC1 and work with users permission  to view announcement.
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

NukeGaming

This mod loks nice .

but i got a question and that is if this mod can be possibe also have to version 1.1,cause i am using SMF 1.1.8 and i like to know if this can 1 day go this.

Nibogo

Quote from: Sirkonrads on April 20, 2009, 05:34:25 PM
This mod loks nice .

but i got a question and that is if this mod can be possibe also have to version 1.1,cause i am using SMF 1.1.8 and i like to know if this can 1 day go this.

Nop try the Global Announcements mod by JayBachatero

drhamad

I'm seeing these errors in my error log (YAGAM 2.0RC3):

Quote
http://www.fordfusionclub.com/index.php?board=23.40
8: Undefined variable: sticky_bar
File: /home/ffc/public_html/Themes/default/MessageIndex.template.php (main sub template - eval?)
Line: 281

281 is:

                       // The Normal Bar Added by YAGAM
            elseif(($announcement_bar && !$normal_bar && empty($modSettings['yagam_sticky_bar']) && $sticky_bar) || ($announcement_bar $


Quote
http://www.fordfusionclub.com/index.php?board=18.0
8: Undefined variable: stickybar
File: /home/ffc/public_html/Themes/default/MessageIndex.template.php (main sub template - eval?)
Line: 275

275 is:

                        // Add the sticky bar
                        if($topic['is_sticky'] && !$stickybar && (!empty($modSettings['yagam_sticky_bar'])) && $announcement_bar){
            echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '" style="padding:8px 4px;"><b>'$
            $stickybar = true;
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

sombra

i have smf rc1 and im having an error in the errog log

http://todoilegal.net/index.php?action=admin;area=permissions;sa=modify;group=0
Apply Filter: Only show the errors with the same message
8: Undefined index: yagam_version
Apply Filter: Only show the errors from this file
File: /home/todoileg/public_html/Sources/Admin.php
Line: 298

Apply Filter: Only show the error messages of this URL  http://todoilegal.net/index.php?action=admin;area=permissions;sa=modify;group=0
Apply Filter: Only show the errors with the same message
8: Undefined index: yagam_admin_settings
Apply Filter: Only show the errors from this file
File: /home/todoileg/public_html/Sources/Admin.php
Line: 297

im using

   Yet Another Global Announcements Mod      1.1.6.2

Twenty6

Hello im using 2.0 RC1
I have installed everything by manual from the mod site
everything goes well
but in the Global Announcements menu i see only: Global announcements -->   global announcements
                                                                                                                             (empty) but link is working
                                                                                                                             (empty) but link is working
                                                                                                                             (empty) but link is working

I think i have done something wrong but i dont know what.
Please help me .. :-[


Twenty6

YES, thank you
In my language file i was missing some parts
Thanks,
Great mod Working perfect for me.

mattchewone

Got this error when installing -

   4.   Execute Modification   ./Themes/default/MessageIndex.template.php   Test failed
   1.   Replace   ./Themes/default/MessageIndex.template.php   Test successful
   2.   Replace   ./Themes/default/MessageIndex.template.php   Test failed

What could of caused this issue?

Nibogo

Quote from: mattchewone on May 02, 2009, 01:19:06 PM
Got this error when installing -

   4.   Execute Modification   ./Themes/default/MessageIndex.template.php   Test failed
   1.   Replace   ./Themes/default/MessageIndex.template.php   Test successful
   2.   Replace   ./Themes/default/MessageIndex.template.php   Test failed

What could of caused this issue?

Try with the manual edit in your MessageIndex.template.php file ;)

mattchewone

Quote from: NIBOGO on May 02, 2009, 08:21:31 PM
Quote from: mattchewone on May 02, 2009, 01:19:06 PM
Got this error when installing -

   4.   Execute Modification   ./Themes/default/MessageIndex.template.php   Test failed
   1.   Replace   ./Themes/default/MessageIndex.template.php   Test successful
   2.   Replace   ./Themes/default/MessageIndex.template.php   Test failed

What could of caused this issue?

Try with the manual edit in your MessageIndex.template.php file ;)

In the manual edit the second part it says to replace looks different to the one i have. if i upload mine would you be able to make the adjustments or let me know what i need to change.

Thanks

mattchewone

Are you able to tell me what i need to change in order to get this to work?

Nibogo

Changelogs:

Version 1.1.7 - May 06, 2009

- Fixed a bug in the admin panel with the strings for add and manage announcements
- Fixed a bug for members with permission to manage announcements and non admin users
- A little change in the Messageindex.php edit with a better layout
- Upgrade available, just upload the new package and click in "[Upgrade]"
- YAGAM goes 100% stable, there is no additional bugs in the system all works propertly

mattchewone

Im getting this error in all my boards

Unknown column 'm.real_name' in 'field list'
File: /home/matthew09/SMF/www/Sources/MessageIndex.php
Line: 672

I have attached the MessageIndex, At the moment none of my boards are accessible.

edi67

Quote from: mattchewone on May 07, 2009, 04:27:26 AM
Im getting this error in all my boards

Unknown column 'm.real_name' in 'field list'
File: /home/matthew09/SMF/www/Sources/MessageIndex.php
Line: 672

I have attached the MessageIndex, At the moment none of my boards are accessible.

Same error for me 
Unknown table 'm' in field list
File: /home/crazyzone/data/www/crazyzone.biz/Sources/MessageIndex.php
Riga: 763
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Nibogo

Changelogs:

Version 1.1.7.2 - May 07, 2009

- Fixed a critical bug in the Messageindex
- Upgrade available, just upload the new package and click in "[Upgrade]"
- YAGAM goes 100% stable, there is no additional bugs in the system all works propertly

Little stupid mistake  >:( >:( , now YAGAM is really stable  :P , UPGRADE is too important!! For upgrade just upload the new package and click in "[Upgrade]"

Regards

mattchewone

Still getting this on install.

Havent had time to install and check the file and make edit yet.

   4.   Execute Modification   ./Themes/default/MessageIndex.template.php   Test failed
   1.   Replace   ./Themes/default/MessageIndex.template.php   Test successful
   2.   Replace   ./Themes/default/MessageIndex.template.php   Test failed

candidosa2

thank you
when update linguage dont forget portuguese

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// YAGAM - Admin and MessageIndex Strings translate Candidosa2 suporte smfpt.net
$txt['yagam_admin'] = 'An&uacute;ncios Global';
$txt['yagam_topics'] = 'T&oacute;picos Normais';
$txt['yagam_created'] = 'Criado em';
$txt['whoall_announcements'] = 'Ver an&uacute;ncios Global';
$txt['permissionname_yagam_manage'] = 'Administrar an&uacute;ncios Global';
$txt['permissionhelp_yagam_manage'] = 'Definir se o utilizador pode administrar an&uacute;ncios Global.';
$txt['permissionname_yagam_comment'] = 'Coment&aacute;rio an&uacute;ncios 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;ncios';
$txt['yagam_remove'] = 'Apagar an&uacute;ncios';
$txt['yagam_remove2'] = 'Remover';
$txt['yagam_admin_add'] = 'Adicionar An&uacute;ncios 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 translate Candidosa2 suporte smfpt.net
$txt['yagam_admin'] = 'An&uacute;ncios Global';
$txt['yagam_topics'] = 'T&oacute;picos Normais';
$txt['yagam_created'] = 'Criado em';
$txt['whoall_announcements'] = 'Ver an&uacute;ncios Global';
$txt['permissionname_yagam_manage'] = 'Administrar an&uacute;ncios Global';
$txt['permissionhelp_yagam_manage'] = 'Definir se o utilizador pode administrar an&uacute;ncios Global.';
$txt['permissionname_yagam_comment'] = 'Coment&aacute;rio an&uacute;ncios 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;ncios';
$txt['yagam_remove'] = 'Apagar an&uacute;ncios';
$txt['yagam_remove2'] = 'Remover';
$txt['yagam_admin_add'] = 'Adicionar An&uacute;ncios Global';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// YAGAM - Admin and MessageIndex Strings translate Candidosa2 suporte smfpt.net
$txt['yagam_admin'] = 'An&uacute;ncios Global';
$txt['yagam_topics'] = 'T&oacute;picos Normais';
$txt['yagam_created'] = 'Criado em';
$txt['whoall_announcements'] = 'Ver an&uacute;ncios Global';
$txt['permissionname_yagam_manage'] = 'Administrar an&uacute;ncios Global';
$txt['permissionhelp_yagam_manage'] = 'Definir se o utilizador pode administrar an&uacute;ncios Global.';
$txt['permissionname_yagam_comment'] = 'Coment&aacute;rio an&uacute;ncios 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;ncios';
$txt['yagam_remove'] = 'Apagar an&uacute;ncios';
$txt['yagam_remove2'] = 'Remover';
$txt['yagam_admin_add'] = 'Adicionar An&uacute;ncios 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 translate Candidosa2 suporte smfpt.net
$txt['yagam_admin'] = 'An&uacute;ncios Global';
$txt['yagam_topics'] = 'T&oacute;picos Normais';
$txt['yagam_created'] = 'Criado em';
$txt['whoall_announcements'] = 'Ver an&uacute;ncios Global';
$txt['permissionname_yagam_manage'] = 'Administrar an&uacute;ncios Global';
$txt['permissionhelp_yagam_manage'] = 'Definir se o utilizador pode administrar an&uacute;ncios Global.';
$txt['permissionname_yagam_comment'] = 'Coment&aacute;rio an&uacute;ncios 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;ncios';
$txt['yagam_remove'] = 'Apagar an&uacute;ncios';
$txt['yagam_remove2'] = 'Remover';
$txt['yagam_admin_add'] = 'Adicionar An&uacute;ncios Global';
]]></add>
</operation>
</file>

Advertisement: