Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Nibogo on February 11, 2009, 12:47:15 AM

Title: Yet Another Global Announcements Mod (YAGAM)
Post by: Nibogo on February 11, 2009, 12:47:15 AM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=1617)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpacks.com%2Fimagenes%2Fnuevo_logo_mod.png&hash=ce1ffec774248e7b76dd4a9130ce3a24) (https://www.smfpacks.com)

Yet Another Global Announcements Mod -YAGAM- v2.7.5 - NIBOGO
Powerful global announcements system , with full control of every single global announcement , YAGAM for short.

Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1617) | My Mods (http://custom.simplemachines.org/mods/index.php?action=search;author=126412) |  Official Website (https://www.smfpacks.com/) |  Donate (https://www.smfpacks.com/donate.php) | Remove Copyright (https://www.smfpacks.com/page/sa=copyright)


Author
:
- NIBOGO

Features:
o You can create unlimited global announcements.
o Support BBCODE and Smileys , with the powerful SMF WYSIWYG Editor
o You can allow comments for every announcement.
o Select in what board`s the announcement will appear or just select all the boards
o Set Permission for each announcement , based on membergroups
o Layout of the announcement as a normal topic.
o Simple and friendly admin panel for all the global announcements.
o You can enable/disable every announcement.
o Permission to manage and comment announcements.
o You can convert an announcement into a Topic, you choose the board and if the topic is sticky and locked.
    o Optionally you can convert the announcement's comments into replies of the new topic.
o You can convert a Topic into an Announcement and the replies into comments.
o Announcement Log, you can easily see who viewed the announcement.   
o Support for the Linktree.
o Support for the Who is online list , 'Viewing a Global Announcement'.
o Nice layout for the MessageIndex with a bar for the Global Announcements and another bar for the normal topics.
o Announcement Settings with some little options.
o Sort option based on the same Topic Sort options with subject , views and replies. Desc and Asc are supported.
o Force users to Read an Announcement if he didn't saw the announcement.
o Member Color Link Mod (http://custom.simplemachines.org/mods/index.php?mod=111) Support on MessageIndex and Announcement.
o SSI Functions with Announcement 'ssi_announcement(5)' and random announcement 'ssi_random_announcement()'.
o Easy manual installation , you can manually install the db with the db_yagam.php and the modifications with yagam_manual_edit.html.
o You will have an empty error log.
o Much more, a lot of interesting features.
o Support SMF 2.0 ONLY

Manual Edit:

YAGAM Manual Database Installation you only need to upload the file "db_yagam.php" and open the file on your browser:

http://www.yourforum.com/smf/db_yagam.php (http://www.yourforum.com/smf/db_yagam.php)

Modified Files:

- /index.php
- /SSI.php
- /ssi_examples.shtml
- /Sources/ManagePermissions.php
- /Sources/MessageIndex.php
- /Sources/Admin.php
- /Sources/Display.php
- /Themes/default/Display.template.php
- /Themes/default/MessageIndex.template.php
- /Themes/default/languages/Modifications.english.php
- /Themes/default/languages/Modifications.english-utf8.php

Files Included:

- Announcements.php (Sources)
- AnnouncementsView.php (Sources)
- Subs-Announcements.php (Sources)
- Announcements.template.php (Template)
- AnnouncementsView.template.php (Template)
- Announcements.english.php (Languages)
- Announcements.english-utf8.php (Languages)
- db_yagam.php
- yagam_manual_edit.html


Planned Features:

o A lot of things added in the v2.0 so only bug fixing

Languages:
- English/English UTF8.
- Spanish_es/Spanish_latin - Spanish_es-utf8/Spanish_latin-utf8.
- Dutch/Dutch UTF8 Translated by nuva (http://www.simplemachines.org/community/index.php?action=profile;u=99290).

Compatibility:
- SMF 2.0

Special Thanks:
- Tango Icons Library: I am using an image of this icons library (Tango Icons License) (http://creativecommons.org/licenses/by-sa/2.5/)

Changelog:

+ New Feature | - Feature Removed | * Changed | @ Important Info | ! Bug Fixed

Version 2.7.5 - November 17, 2017
* Better installation.

Version 2.7.4 - June 29, 2011
@ Updated for SMF 2.0

Version 2.7.3 - Apr 11, 2010
! Some additional errors in the Error Log
! Issue with the view profile permission
! Issue displaying IP's to Moderators
! Various error messages weren't loaded

Version 2.7.2 - Apr 10, 2010
! Fixed all the errors in the Error Log
! Fixed little issue with the random announcement ssi function
* Some little tweaks to the announcements on index

Version 2.7 - Mar 09, 2010
+ All the templates has been re-writted for the best Curve Experience.
+ Added SMF 2.0 RC3 Support.
+ Added Massive Quick Delete in the Announcements Admin Panel.
+ Added Spellchecker Support (Only if it's enabled in the SMF Admin Panel).
! Fixed some XHTML Validation Errors.
! Fixed Permission Verification for non-admins Deleting Announcements.
@ A lot of code has been optimized.

Version 2.6 - Jan 18, 2010
- Fixed issue with the Announcements Permissions.
- Fixed issue with Announcements Replies.
- Added Option to Convert Topic into Announcements.

Version 2.5 - Jan 08, 2010
- Added Additional Curve Support viewing an Announcement (Now we have corners like Curve).
- Little tweaks to the Add Comment Form, Now everything is centered, added support for shortcuts and the Add Comment button now has a better style.
- Added Comments Pages.
- Added option to convert comments into replies in the Make Topic Page.
- Modded all the Installation Script now added Support for PostgreSQL and SQLite plus now using the SMF 2.0 Standards and fixed a bug loading the Curve Stylesheet.
- Added a new checkbox to easily select all the membergroups when we are adding/editing announcements.
- Changed a lot of queries.
- Changed some codes to make the mod a little bit faster and most importantly with a better semanthic.
- Now when you delete an announcement, the comments and log of this announcements in deleted too.
- Fixed fatal error in the SSI.php Edit.
- Fixed missed space in the MessageIndex on Announcements Comments.
- Fixed additional bugs with the Comments as Regular Posts.
- The Announcement Log is Back now loading the users posts and now it comes with the Curve Style.
- Updated the YAGAM Version Page.

Version 2.4 - Jan 06, 2010
- Changed the Comments Layout now they look like a normal post.
- Now YAGAM is HTML Valid. This fix several issues with other mods and themes.
- Fixed errors in the Error Log.
- Removed the Pretty Urls Rule (it wasn't necessary and it wasn't update it with the last release of Pretty Urls).
- Removed the Announcement Log (Has some issues, nobody find it useful and the code is now smaller).
- Added Color to the Announcements Background (You can changed looking for .yagam on the /Curve/css/index.css file).
- Enhanced some queries with the SMF 2.0 Style.

Version 2.3 - Nov 25, 2009
- Fixed issue with the Force Read Announcement on Login.
- Fixed issue with the new Curve Layout on MessageIndex.

Version 2.2 - Nov 11, 2009
- Added Support for SMF 2.0 RC2.
- Added Support for Curve!
- Changed the Support Website now YAGAM is Powered by SMFPacks.com
- Fixed little issue with a string in English.

Version 2.1 - Oct 08, 2009
- Fixed permission bug (Thanks to Mr_Dark)
- Fixed blank page bug
- Fixed wrong string on messageindex (Reported by haerde)
- Fixed issue uploading the AnnouncementView.php and AnnouncementView.template.php files

Version 2.0 [Big Upgrade] - May 29, 2009
- A lot of changes in all the code, structure and files, too many changes to be listed here.
- Fixed more bugs.
- Added Sort Options based on the Same Topics Sort Options .
- Added Support for Member Color Link Mod on MessageIndex.
- Added Announcement Log (View who see the Announcement).
- Added Force Users to Read Announcement after Login.
- Added some improvements to the linktree and Pages Title.
- Cleaned the code of the MessageIndex Edit.
- Fixed some minor additional bugs.
- Added Global Announcements Settings with some options.
- Added Support for Sticky Topics Bar with Global Announcements and Normal Topic.
- Pretty Urls Support.
- Changed the Panel Administration now with the SMF Admin Section Layout.
- Added YAGAM Version Panel.
- Added SSI Functions with Announcement 'ssi_announcement(5)' and random announcement 'ssi_random_announcement()'.
- Much more, So many things to be included in this changelog

Version 1.1.6.2 - Feb 23, 2009
- Fixed more bugs with the new URL Style
- Changed the admin.php editing with a new position of the YAGAM Panel and Add Global Announcement subsection
- More, more and yet more bug fixing

Version 1.1.6 - Feb 23, 2009
- Fixed the Linktree and Redirect Bugs with the new URL Style
- Changed all the ManagePermissions Edit , Now the guest can comment too (with the permission of course) and the Manage YAGAM is an Administrative Permission

Version 1.1.5 - Feb 23, 2009
- Fixed Permission Bug for non-Admin Users and YAGAM Manager
- Changed all the functions of the mod (You only can see this in the code) :P
- Added Support for the Member Color Link Mod (http://custom.simplemachines.org/mods/index.php?mod=111)
- Changed the View Global Announcement url style from this:

http://www.forum.com/index.php?action=announcements;sa=view;id=8 (http://www.forum.com/index.php?action=announcements;sa=view;id=8)

to this:

http://www.forum.com/index.php?action=announcements;aid=8 (http://www.forum.com/index.php?action=announcements;aid=8)

Version 1.1.4 - Feb 17, 2009
- '292' Bug Fixed
- Fixed the bug with the String deleting a comment
- Fixed the bug "Fatal error: Call to undefined function template_control_richedit() in /Sources/Load.php(1944) : eval()'d code on line 538"
- Fixed some minor additional Bugs
- Fixed Bug with the YAGAM Version on the Package Manager

Version 1.1.3 - Feb 16, 2009
- Fixed the bug with automatic redirect for non-yagam manage permission membergroups
- Fixed the bug with an error on IE7 "Operation aborted"
- Fixed the bug with the Linktree on announcement view
- Added linktree on Comment Edit
- Added WYSIWYG on Add Comment and Edit Comment

Version 1.1.2 - Feb 14, 2009
- Added Spanish_es , Spanish_latin , Swedish (Nas) , German (CvH) and Turkish (Özgür´) all with UTF-8 (less Swedish)
- New ManagePermission Edit , for compatibility with other mods
- Fixed the bug with multiple "Global Announcement" Bar reporte by mgrmgr (http://index.php?action=profile;u=114595)in this post (http://www.simplemachines.org/community/index.php?topic=292270.msg1931643#msg1931643)
- Fixed the bug "undefined index error in error log.[$sourcedir/Announcements.php ~ line 338]" reported by Yagiz... (http://www.simplemachines.org/community/index.php?action=profile;u=102749) in this post (http://www.simplemachines.org/community/index.php?topic=292270.msg1927422#msg1927422)

Version 1.0 - Feb 10, 2009
- Modification Release

LICENSE (http://creativecommons.org/licenses/by-nc-nd/3.0/)
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Marcus Forsberg on February 11, 2009, 12:49:55 AM
Very nice mod! :D

Swedish


// YAGAM - Admin and MessageIndex Strings
$txt['yagam_admin'] = 'Globala underrättelser';
$txt['yagam_topics'] = 'Normala ämnen';
$txt['yagam_created'] = 'Skapades';
$txt['whoall_announcements'] = 'Visar en global underrättelse';
$txt['permissionname_yagam_manage'] = 'Hantera globala underrättelser';
$txt['permissionhelp_yagam_manage'] = 'Anger om användaren kan hantera globala underrättelser.';
$txt['permissionname_yagam_comment'] = 'Kommentera globala underrättelser';
$txt['permissionhelp_yagam_comment'] = 'Anger om användaren kan kommentera globala underrättelser.';
$txt['yagam_edit2'] = 'Ändra';
$txt['yagam_edit'] = 'Ändra underrättelse';
$txt['yagam_remove'] = 'Radera underrättelse';
$txt['yagam_remove2'] = 'Radera';
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: fords8 on February 11, 2009, 02:11:27 AM
Tryed to install this and got 2 errors on the ./Sources/ManagePermissions.php .

I have the downloads and articles and advanced reputation mod installed. Looks like these 3 mods will conflict with this one on the install.

(1st error) Mod is looking for:    

Code: [Select]
$groupLevels['global']['standard'] = array_merge($groupLevels['global']['restrict'], array(
'view_mlist',
'karma_edit',

My file looks like this:

Code: [Select]
$groupLevels['global']['standard'] = array_merge($groupLevels['global']['restrict'], array(
'view_articles',
'add_articles',
'edit_articles',
'delete_articles',
'rate_articles',
'articles_comment',
'articles_auto_approve',
'articles_autocomment',
'articles_admin',
'downloads_view',
'downloads_add',
'downloads_edit',
'downloads_delete',
'downloads_ratefile',
'downloads_comment',
'downloads_editcomment',
'downloads_report',
'downloads_autocomment',
'downloads_autoapprove',
'downloads_manage',
'view_mlist',
'karma_edit',

(2nd error) Mod is looking for:

Code: [Select]
$context['non_guest_permissions'] = array(
'karma_edit',

My file looks like this:

Code: [Select]
$context['non_guest_permissions'] = array(
// Advanced Reputation System Settings
'disable_karma_display',
'positive_karma',
'negative_karma',
'delete_karma',
'karma_edit',

Only reason I am posting this up is so others know about it. And to let you know. Great mod!
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Özgür on February 11, 2009, 08:38:46 AM
I add new announcement, but not showing announcement message body. :S

Please look attachment.

How can i fix this ?
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Sudhakar Arjunan on February 11, 2009, 10:18:49 AM
Such a wonderful updated Mod NIBOGO.

Will install soon.
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: edi67 on February 11, 2009, 01:58:16 PM
this is one of more useful mod created for smf , global announcement must to have smf by default thx nibogo
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: edi67 on February 11, 2009, 02:31:23 PM
one error found, trying to view globa announcement, i have this error:


Fatal error: Cannot use string offset as an array in
Quote
/home/crazyzone/data/www/crazyzone.biz/Sources/Load.php(2192) : eval()'d code on line 292
please some solution ?
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Nibogo on February 11, 2009, 02:51:00 PM
@Nas: Thanks nas , I will update the mod later adding your translation :)

@fords8: You just have to add the yagam code after the downloads permission code , I am in my cell phone so I cant do anymore.

@ozgur: The mod install correctly?

Can you check your phpmyadmin and see the announcements table because maybe is an error with sql or with any announcement php file

@A.sk: Glad to hear that :)

@edi67: I don't know what you have that error , please try re-installing the mod.

The mod was tested on a SMF 2.0 RC1 Fresh Installation by me and the smf customization team and works pretty nice
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: fords8 on February 11, 2009, 03:22:31 PM
Quote
@fords8: You just have to add the yagam code after the downloads permission code

Yup I know! Once you get a chance, you going to make it so this will install even when these mods are installed?
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: edi67 on February 11, 2009, 03:45:22 PM

@edi67: I don't know what you have that error , please try re-installing the mod.



Quote
Fatal error: Cannot use string offset as an array in  /home/crazyzone/data/www/crazyzone.biz/Sources/Load.php(2192) : eval()'d code on line 292

so strange this is line 292 of message.index.template
Quote
   if ($announcement['can_comment'] == '1')
                  echo''.$announcement['comment_total'].'';
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Özgür on February 11, 2009, 03:55:46 PM
Quote
@ozgur: The mod install correctly?

Can you check your phpmyadmin and see the announcements table because maybe is an error with sql or with any announcement php file

Yes, installed correctly. (2 errors from managepermission, and i fix this manuel).
This mod is worked, i know this because i test in my test site.
But in my public site not worked. This is strange :S

http://www.rockayseri.net/rk/index.php?action=announcements;sa=view;id=4
username : Sebastian / pass : 123456 please try.
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Nibogo on February 11, 2009, 06:03:34 PM

@edi67: I don't know what you have that error , please try re-installing the mod.



Quote
Fatal error: Cannot use string offset as an array in  /home/crazyzone/data/www/crazyzone.biz/Sources/Load.php(2192) : eval()'d code on line 292

so strange this is line 292 of message.index.template
Quote
   if ($announcement['can_comment'] == '1')
                  echo''.$announcement['comment_total'].'';

Please attach MessageIndex.php and MessageIndex.template.php

Quote
@ozgur: The mod install correctly?

Can you check your phpmyadmin and see the announcements table because maybe is an error with sql or with any announcement php file

Yes, installed correctly. (2 errors from managepermission, and i fix this manuel).
This mod is worked, i know this because i test in my test site.
But in my public site not worked. This is strange :S

http://www.rockayseri.net/rk/index.php?action=announcements;sa=view;id=4
username : Sebastian / pass : 123456 please try.

Sorry but really I dont understand the turkish language

¿Bu işte bir yanlışlık var!?

This is really strange , the mod work pretty cool in all my SMF 2.0 sites :s
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Lamarck on February 11, 2009, 06:12:29 PM
I can't install this with my custom theme (Energy theme),even manual.Could you help me?

I attach my messageindex.template.php,I have problems with this:

Quote
Encontrar          [Seleccionar]                        //
No topics.... just say, "sorry bub". if (empty($context['topics']))
echo ' <tr class="windowbg2"> <td class="catbg3" colspan="' ,
!empty($options['display_quick_mod']) ? '8' : '7' ,
'"><strong>', $txt['msg_alert_none'],
'</strong></td> </tr>'; foreach ($context['topics']
as $topic) { // Do we want to seperate the sticky and lock status out?                        Reemplazar          [Seleccionar]                        //
YAGAM starts here with the announcement bar, normal bar and the
windowclass $announcement_bar = false; $normal_bar = false;
$windowclass = "windowbg"; foreach($context['announcements'] as
$announcement) { // Ok , I have permission to see this?? $pGroups =
explode(',',$announcement['permissions']); $announcement_permission =
count(array_intersect($user_info['groups'], $pGroups)) == 0 ? false :
true; // Change the bar status only if we cant see this announcement
and we arent admin if (!$announcement_permission == true &&
!$user_info['is_admin']) $announcement_bar = true; // Lets check if the
announcement can be shown in this board $pBoards = explode(',',
$announcement['id_boards']); foreach ($pBoards as $board_announcement)
{ // Change the bar status based in the boards
if((ltrim($board_announcement) !== $board_info['id']) &&
(ltrim($board_announcement) !== '0')) $announcement_bar = false; //
Lets Add the Global Announcement Bar if(!$announcement_bar){
echo'<tr class="titlebg"><td colspan="',
empty($options['display_quick_mod']) ? '7' : '8', '" style="padding:8px
4px;"><b>'.$txt['yagam_admin'].'</b></td></tr>';

$announcement_bar = true; } // You can see this if you have permission
and the ga is enable or you are the admin if
((ltrim($board_announcement) == $board_info['id'] ||
$announcement['id_boards'] == 0) && ($announcement_permission
== true || $context['user']['is_admin'])) { echo ' <tr
class="windowbg2"> <td class="windowbg2 icon1"> <img
src="', $settings['images_url'], '/topic/normal_post.gif" alt="" />
</td> <td class="windowbg2 icon2"> <img src="',
$settings['images_url'], '/post/exclamation.gif" alt="" />
</td> <td class="subject ', $windowclass, '"> <a
href="',$scripturl,'?action=announcements;sa=view;id=',$announcement['id_announcement'],'">',$announcement['title'],
'</a><br /> </td> <td class="windowbg2
starter"> <a
href="'.$scripturl.'?action=profile;u=',$announcement['author'],
'">',$announcement['real_name'], '</a> </td> <td
class="windowbg replies">'; if ($announcement['can_comment'] == '1')
echo''.$announcement['comment_total'].''; else echo'--';
echo'</td> <td class="windowbg views">
',$announcement['views'], ' </td> <td class="windowbg2
lastpost"> '.$txt['yagam_created'].' :
',timeformat($announcement['date']), ' </td>'; if
(allowedTo('yagam_manage') &&
!empty($options['display_quick_mod'])) echo '<td class="windowbg2
moderate"><a
href="',$scripturl,'?action=announcements;sa=edit;id=',$announcement['id_announcement'],'"
title="'.$txt['yagam_edit'].'"><img
src="'.$settings['images_url'].'/buttons/modify.gif"
alt="',$txt['yagam_edit2'], '"></a> <a
href="',$scripturl,'?action=announcements;sa=deleteverify;id=',$announcement['id_announcement'],'"
title="'.$txt['yagam_remove'].'"><img
src="'.$settings['images_url'].'/buttons/delete.gif"
alt="',$txt['yagam_remove2'], '"></a> </td>';
echo'</tr>'; // Alternate the style class if
(!empty($windowclass) && $windowclass == "windowbg")
$windowclass = "windowbg2"; else $windowclass = "windowbg"; } // We
dont want a normal bar if we dont have any announcement if
($announcement_permission == false && !$user_info['is_admin'])
$announcement_bar = false; } } // No topics.... just say, "sorry bub".
if (empty($context['topics'])) echo ' <tr class="windowbg2">
<td class="catbg3" colspan="' ,
!empty($options['display_quick_mod']) ? '8' : '7' ,
'"><strong>', $txt['msg_alert_none'],
'</strong></td> </tr>'; foreach($context['topics'] as
$topic) { // The Normal Bar if($announcement_bar &&
!$normal_bar){ echo'<tr class="titlebg"><td colspan="',
empty($options['display_quick_mod']) ? '7' : '8', '" style="padding:8px
4px;"><b>'.$txt['yagam_topics'].'</b></td></tr>';

$normal_bar = true; } // Do we want to separate the sticky and lock
status out?


           
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Özgür on February 11, 2009, 06:50:34 PM
"Bu işte bir yanlışlık var!?" is "An Error Has Occurred!"

http://www.rockayseri.net/rk/index.php?action=announcements;sa=view;id=5

I change my demo user language. You login as Sebastian and 123456.

If you want admin/ftp account, i give you.

As I say Strange.. :| Because no error.. no anything. But not show announcements body.. :S
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Nibogo on February 11, 2009, 07:01:36 PM
"Bu işte bir yanlışlık var!?" is "An Error Has Occurred!"

http://www.rockayseri.net/rk/index.php?action=announcements;sa=view;id=5

I change my demo user language. You login as Sebastian and 123456.

If you want admin/ftp account, i give you.

As I say Strange.. :| Because no error.. no anything. But not show announcements body.. :S


mmm , I dont know what is going on , maybe is an error with the phpmyadmin , please check if the smf_announcements table have the announcement content column , if the column exist try re-installing the mod , because should be working :s

I can't install this with my custom theme (Energy theme),even manual.Could you help me?

I attach my messageindex.template.php,I have problems with this:
          

Try the parser , I dont have the time to do modify all the people files
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Yağız... on February 11, 2009, 07:07:12 PM
Create or edit an announcement. Don't check Comments option.

This makes an undefined index error in error log.[$sourcedir/Announcements.php ~ line 338]
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Lamarck on February 11, 2009, 07:26:53 PM
Quote
Try the parser , I dont have the time to do modify all the people files

Ok,thanks for your support.I can't install manually It.Uninstalling...
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Nibogo on February 11, 2009, 08:24:05 PM
Create or edit an announcement. Don't check Comments option.

This makes an undefined index error in error log.[$sourcedir/Announcements.php ~ line 338]

Thanks for report , I will check this :)
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: jkrlvgn on February 12, 2009, 12:50:41 AM
to the :

Fatal error: Cannot use string offset as an array in  /home/crazyzone/data/www/crazyzone.biz/Sources/Load.php(2192) : eval()'d code on line 292

issue....

I had issues similar to this....it doesn't seem to like 2.0b4 at all...  I upgraded to RC1, and it works fine now, but I had to do some other manual editing and cleaning up from previous mods.  If you had the global announcements mod installed, this might be part of the issue.

Just to note, on the comments issue, I had the same problem, so it's not just specific to certain people.


As far as you, Lamarck....it's not hard to manually install a mod...I'm using a custom template myself, and it works fairly well.  Instead of uninstalling it and moving on (...to...nothing, I might add, since this is the only other one besides the older), you can ask other people for assistance.  NIBOGO -IS- a busy guy...he can't do everything for you, though, no matter how nice he is.

If you still want help with it, let me know, and I'll help ya out.
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: glennk on February 12, 2009, 08:23:51 AM
Will it work with 2b4 ?
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: edi67 on February 12, 2009, 09:30:07 AM
ok i attach my file there thx
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: CvH on February 12, 2009, 10:52:30 AM
here the german and the german-utf8 language files

good work keep going :)
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Don Pepito on February 12, 2009, 03:00:36 PM
Will some verersions compatiable with 1.1.7  be released...??
What do you think will that work if i manually install mod...??
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Nibogo on February 12, 2009, 06:13:01 PM
to the :

Fatal error: Cannot use string offset as an array in  /home/crazyzone/data/www/crazyzone.biz/Sources/Load.php(2192) : eval()'d code on line 292

issue....

I had issues similar to this....it doesn't seem to like 2.0b4 at all...  I upgraded to RC1, and it works fine now, but I had to do some other manual editing and cleaning up from previous mods.  If you had the global announcements mod installed, this might be part of the issue.

Just to note, on the comments issue, I had the same problem, so it's not just specific to certain people.


As far as you, Lamarck....it's not hard to manually install a mod...I'm using a custom template myself, and it works fairly well.  Instead of uninstalling it and moving on (...to...nothing, I might add, since this is the only other one besides the older), you can ask other people for assistance.  NIBOGO -IS- a busy guy...he can't do everything for you, though, no matter how nice he is.

If you still want help with it, let me know, and I'll help ya out.

Thanks for help with the mod ;)

Will it work with 2b4 ?

No , you should upgrade to SMF 2.0 RC1

ok i attach my file there thx

I will check this files when I have time to do it ^^ , btw are you using SMF 2.0 RC1??

here the german and the german-utf8 language files

good work keep going :)

Thanks , but I will be more than happy if can you translate the Modifications.english strings too??

Code: [Select]
// YAGAM - Admin and MessageIndex Strings
$txt['yagam_admin'] = 'Global Announcements';
$txt['yagam_topics'] = 'Normal Topics';
$txt['yagam_created'] = 'Created on';
$txt['whoall_announcements'] = 'Viewing a Global Announcement';
$txt['permissionname_yagam_manage'] = 'Manage Global Announcements';
$txt['permissionhelp_yagam_manage'] = 'Sets if the user can manage the global announcements.';
$txt['permissionname_yagam_comment'] = 'Comment Global Announcements';
$txt['permissionhelp_yagam_comment'] = 'Sets if the user can comment the global announcements of allow comments.';
$txt['yagam_edit2'] = 'Edit';
$txt['yagam_edit'] = 'Edit Announcement';
$txt['yagam_remove'] = 'Delete Announcement';
$txt['yagam_remove2'] = 'Remove';

Thanks ^^

Will some verersions compatiable with 1.1.7  be released...??
What do you think will that work if i manually install mod...??

Try this mod:

http://custom.simplemachines.org/mods/index.php?mod=419

My mod if for SMF 2.0 RC1 ONLY
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: edi67 on February 12, 2009, 07:33:28 PM

ok i attach my file there thx

Sure ;) im using RC1

crazyzone.biz (http://crazyzone.biz) my site
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: CvH on February 12, 2009, 07:42:00 PM
Thanks , but I will be more than happy if can you translate the Modifications.english strings too??

uppps ^^_
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Nibogo on February 12, 2009, 07:55:07 PM
Thanks , but I will be more than happy if can you translate the Modifications.english strings too??

uppps ^^_

Thanks , german , swedish and spanish will be uploaded in the next version ;)

Any additional translation is more than welcome :)
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: fords8 on February 12, 2009, 08:47:37 PM
NIBOGO, I did the edits and the install went fine. But I am getting that line 292 error like someone else reported in this topic.
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: drhamad on February 13, 2009, 03:34:31 PM
NIBOGO, I did the edits and the install went fine. But I am getting that line 292 error like someone else reported in this topic.

Is this your 292?
Code: [Select]
// Integration is cool.
if (defined('SMF_INTEGRATION_SETTINGS'))
$modSettings = unserialize(SMF_INTEGRATION_SETTINGS) + $modSettings;
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: drhamad on February 13, 2009, 03:39:23 PM
NIBOGO: Works like a charm, THANKS! There do seem to be errors with the package... or if not errors, then at least inefficiencies.  Using replaces on those arrays, for instance, is a bad idea, because a lot of mods at to those array and therefore it's rarely (in a decently modified board) as it shows there.  I'd highly recommend using search mode before or after, and NOT using the array titles when you're trying to add to the array, if you can avoid it.  Just use contents of the array as a search string.

The fact that YAGAM supports commenting is a great improvement... now the next step, I hope, is the ability to un-GA a GA, making it a regular thread with all the comments saved.  I hope that can be done at some point.

To anyone experiencing errors... go through manually and make sure what the package says is actually what has happened.  I don't use packages, so I can't speak for it, but the code itself works perfectly.
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Özgür on February 13, 2009, 03:42:41 PM
I can't fix my problem but i love this mod.

here is Turkish Translations.
Code: [Select]
// YAGAM - Admin and MessageIndex Strings - Çeviri rocKayseri
$txt['yagam_admin'] = 'Genel Duyurular';
$txt['yagam_topics'] = 'Normal Konular';
$txt['yagam_created'] = 'Oluşturulma';
$txt['whoall_announcements'] = 'Genel Duyururuları görebilir';
$txt['permissionname_yagam_manage'] = 'Genel duyuruları yönetebilir';
$txt['permissionhelp_yagam_manage'] = 'Bunu seçerseniz üyeler genel duyuruları düzenleyebilirler.';
$txt['permissionname_yagam_comment'] = 'Genel duyurulara yorum ekleyebilir';
$txt['permissionhelp_yagam_comment'] = 'Bu izin üyelerin genel duyurulara yorum yapabilmelerini sağlar.';
$txt['yagam_edit2'] = 'Düzenle';
$txt['yagam_edit'] = 'Duyuruyu Düzenle';
$txt['yagam_remove'] = 'Duyuruyu Sil';
$txt['yagam_remove2'] = 'Sil';
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: phpMyTony on February 13, 2009, 04:05:45 PM
Planning to make this work with 1.1.x?
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: drhamad on February 13, 2009, 04:19:10 PM
Planning to make this work with 1.1.x?

I'm not the author, but I'll answer what I'm 99% sure he'll say: There's already a GA mod for 1.1.  This is for 2.0+
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: phpMyTony on February 13, 2009, 04:20:38 PM
Ohh. This one is different though?
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: drhamad on February 13, 2009, 04:22:24 PM
Ohh. This one is different though?

This one does add a couple of features that Global Announcement does not have, but primarily this just takes over for GA, since the author of that doesn't have the time to update it for 2.0.

http://www.simplemachines.org/community/index.php?topic=106295.0
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: phpMyTony on February 13, 2009, 04:24:11 PM
Oh, right. What features does this have that the other does not?
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: drhamad on February 13, 2009, 04:26:49 PM
Oh, right. What features does this have that the other does not?

The main thing that I've noticed is that users can actually comment on GA's in this - they couldn't in the GA mod.  That's of limited usefulness however (as near as I can tell) because the moment you remove the GA, the whole thread disappears.  For some people it may still be useful, though.
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Nibogo on February 13, 2009, 04:27:21 PM
Planning to make this work with 1.1.x?

I'm not the author, but I'll answer what I'm 99% sure he'll say: There's already a GA mod for 1.1.  This is for 2.0+

Yep , there is a Global Announcements Mod , I will never make this mod for SMF 1.1.X

@Özgür´: Will be nice if you translate the Announcements.turkish.php too ^^ , thanks

Oh, right. What features does this have that the other does not?

The main thing that I've noticed is that users can actually comment on GA's in this - they couldn't in the GA mod.  That's of limited usefulness however (as near as I can tell) because the moment you remove the GA, the whole thread disappears.  For some people it may still be useful, though.

I have two features for this mod but actually I am working in all the bugs of this mod.
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Özgür on February 13, 2009, 04:56:02 PM
Sorry  ??? Im forget it =)

Here..

Modifications.Turkish.php
Code: [Select]
// YAGAM - Admin and MessageIndex Strings - Çeviri rocKayseri
$txt['yagam_admin'] = 'Genel Duyurular';
$txt['yagam_topics'] = 'Normal Konular';
$txt['yagam_created'] = 'Oluşturulma';
$txt['whoall_announcements'] = 'Genel Duyururuları görebilir';
$txt['permissionname_yagam_manage'] = 'Genel duyuruları yönetebilir';
$txt['permissionhelp_yagam_manage'] = 'Bunu seçerseniz üyeler genel duyuruları düzenleyebilirler.';
$txt['permissionname_yagam_comment'] = 'Genel duyurulara yorum ekleyebilir';
$txt['permissionhelp_yagam_comment'] = 'Bu izin üyelerin genel duyurulara yorum yapabilmelerini sağlar.';
$txt['yagam_edit2'] = 'Düzenle';
$txt['yagam_edit'] = 'Duyuruyu Düzenle';
$txt['yagam_remove'] = 'Duyuruyu Sil';
$txt['yagam_remove2'] = 'Sil';
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Nibogo on February 13, 2009, 05:02:57 PM
Thanks Özgür´ ;)

Any additional translation is more than welcome ;)
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: edi67 on February 13, 2009, 06:13:56 PM
NIBOGO: Works like a charm, THANKS! There do seem to be errors with the package... or if not errors, then at least inefficiencies.  Using replaces on those arrays, for instance, is a bad idea, because a lot of mods at to those array and therefore it's rarely (in a decently modified board) as it shows there.  I'd highly recommend using search mode before or after, and NOT using the array titles when you're trying to add to the array, if you can avoid it.  Just use contents of the array as a search string.

The fact that YAGAM supports commenting is a great improvement... now the next step, I hope, is the ability to un-GA a GA, making it a regular thread with all the comments saved.  I hope that can be done at some point.

To anyone experiencing errors... go through manually and make sure what the package says is actually what has happened.  I don't use packages, so I can't speak for it, but the code itself works perfectly.

Very strange, but you trying to make one Global announcemente and click on it for read GA as one topic? for me everything is ok, i can create GA, edit GA, See GA in Topic list but when i try to OPEN it i receive error, the mod is installed correctly in all part but nothing seems so strange that for you work with RC1
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Nibogo on February 13, 2009, 06:53:49 PM
I just dont understand edi67 , I can only say of you can overwrite your announcements.php and announcements.template.php with the files in the Mod Package , maybe is something wrong with the Database , did you check the DB??
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Özgür on February 13, 2009, 07:07:48 PM
Hmm.. Nibogo,  can you give me sql query, maybe its work.?

I found finally...

I delete this code line.. And work now..

Code: [Select]
// Show online and offline buttons?
if (!empty($modSettings['onlineEnable']) && !$context['author']['member']['is_guest'])
echo '
', allowedTo('pm_send') ? '<a href="' . $context['announcement']['author']['online']['href'] . '" title="' . $context['announcement']['author']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $context['announcement']['author']['online']['image_href'] . '" alt="' . $context['announcement']['author']['online']['text'] . '" border="0" style="margin-top: 2px;" />' : $context['announcement']['author']['online']['text'], allowedTo('pm_send') ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $context['announcement']['author']['online']['text'] . '</span>' : '', '<br /><br />';
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Nibogo on February 13, 2009, 07:23:03 PM
Hmm.. Nibogo,  can you give me sql query, maybe its work.?

I found finally...

I delete this code line.. And work now..

Code: [Select]
// Show online and offline buttons?
if (!empty($modSettings['onlineEnable']) && !$context['author']['member']['is_guest'])
echo '
', allowedTo('pm_send') ? '<a href="' . $context['announcement']['author']['online']['href'] . '" title="' . $context['announcement']['author']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $context['announcement']['author']['online']['image_href'] . '" alt="' . $context['announcement']['author']['online']['text'] . '" border="0" style="margin-top: 2px;" />' : $context['announcement']['author']['online']['text'], allowedTo('pm_send') ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $context['announcement']['author']['online']['text'] . '</span>' : '', '<br /><br />';

That code works fine for me :s

Anyway glad to see of you have the mod working now
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Özgür on February 13, 2009, 07:46:11 PM
Problem is
Code: [Select]
!$context['author']['member']['is_guest']  this problem "only" my site..

Anyway, thank you for everthing =)
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: edi67 on February 14, 2009, 04:59:37 AM
I just dont understand edi67 , I can only say of you can overwrite your announcements.php and announcements.template.php with the files in the Mod Package , maybe is something wrong with the Database , did you check the DB??
i will try by the way i not critic this mod is simply beautiful for me by time i waiting such me that smf must need by default :)
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: mgrmgr on February 14, 2009, 10:27:01 AM
As a first thing let me say thank you for this mod, I think it's great.

Works like a charm (for one board :) (You smell something? Yep.)

I tried to make a global announcement on five or six different staff boards at one time, announcement shows up OK, but for the complete result see the attached screenshot.

As said above: One board at a time works fine :)

Now I'm a bit worried. I'd really like the possibility to make one announcement in several boards at one time.
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Nibogo on February 14, 2009, 12:47:41 PM
I just dont understand edi67 , I can only say of you can overwrite your announcements.php and announcements.template.php with the files in the Mod Package , maybe is something wrong with the Database , did you check the DB??
i will try by the way i not critic this mod is simply beautiful for me by time i waiting such me that smf must need by default :)

Yep , is true will be a nice feature and yep this can be a better mod but is all of I can do.

As a first thing let me say thank you for this mod, I think it's great.

Works like a charm (for one board :) (You smell something? Yep.)

I tried to make a global announcement on five or six different staff boards at one time, announcement shows up OK, but for the complete result see the attached screenshot.

As said above: One board at a time works fine :)

Now I'm a bit worried. I'd really like the possibility to make one announcement in several boards at one time.

Thanks for report , I will check if I can reproduce this bug.

I am making the 1.2 version with all the translations and all the bugs fixed , no additional features will be added
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Don Pepito on February 14, 2009, 03:43:35 PM
Is it going to work with 1.1.x if i manually install...??
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Nibogo on February 14, 2009, 03:45:46 PM
Is it going to work with 1.1.x if i manually install...??

Will some verersions compatiable with 1.1.7  be released...??
What do you think will that work if i manually install mod...??

Try this mod:

http://custom.simplemachines.org/mods/index.php?mod=419 (http://custom.simplemachines.org/mods/index.php?mod=419)

My mod if for SMF 2.0 RC1 ONLY
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Don Pepito on February 14, 2009, 03:49:55 PM
I already have that mod installed, but ability of comments....:D
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Nibogo on February 14, 2009, 03:52:36 PM
I already have that mod installed, but ability of comments....:D

Well , you can upgrade to SMF 2.0 RC1 or wait the SMF 2.0 Final version and upgrade
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Don Pepito on February 14, 2009, 04:22:23 PM
Well, nvm...tnx for unhospitality...
I just have wanted answer, is it going to work if i manually install mod...?? :S
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Nibogo on February 14, 2009, 07:38:57 PM
Well, nvm...tnx for unhospitality...
I just have wanted answer, is it going to work if i manually install mod...?? :S

No , will never work

Use the GA of Jay or upgrade to SMF 2.0 RC1
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Nibogo on February 14, 2009, 08:34:31 PM
NEW v1.2 Version Uploaded

Changelogs:


Version 1.2 - Feb 14, 2009
- Added Spanish_es , Spanish_latin , Swedish (Nas) , German (CvH) and Turkish (Özgür´) all with UTF-8 (less Swedish)
- New ManagePermission Edit , for compatibility with other mods
- Fixed the bug with multiple "Global Announcement" Bar reporte by mgrmgr (http://www.simplemachines.org/community/index.php?action=profile;u=114595) in this post (http://www.simplemachines.org/community/index.php?topic=292270.msg1931643#msg1931643)
- Fixed the bug "undefined index error in error log.[$sourcedir/Announcements.php ~ line 338]" reported by Yagiz... (http://www.simplemachines.org/community/index.php?action=profile;u=102749) in this post (http://www.simplemachines.org/community/index.php?topic=292270.msg1927422#msg1927422)

Show me the bugs! :)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: fords8 on February 15, 2009, 12:07:20 AM
Quote
- New ManagePermission Edit , for compatibility with other mods

Install went great for me with the mods I said I had installed in my earlier post. I am still getting the line 292 error when I look at the announcement I make.

Quote
Fatal error: Cannot use string offset as an array in /***/***/***/***/Sources/Load.php(2032) : eval()'d code on line 292

I have not looked at the error yet. If I get a chance, I will later.

Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: edi67 on February 15, 2009, 06:43:35 AM
Please is somebody have this mod working can attach messageindex.template.php, i beginning crazy with this error in that file, i need someboby him Messageindex.template.php of one wokring forum where this forum work correctly, .... i have the same error after the upgrading new version too.

Quote
Fatal error: Cannot use string offset as an array in /***/***/***/***/Sources/Load.php(2032) : eval()'d code on line 292


Quote
       if ($announcement['can_comment'] == '1')
                      echo''.$announcement['comment_total'].'';

NIBOGO:
colud be there solution ?
Code: [Select]
http://informationideas.com/news/2006/06/14/fatal-error-cannot-use-string-offset-as-an-array-in/
http://www.zend.com/forums/index.php?t=msg&goto=6396
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: fords8 on February 15, 2009, 07:16:24 AM
My line for 292 is:

   
Code: [Select]
if (defined('SMF_INTEGRATION_SETTINGS'))
I have not had a chance to look at the error more. Maybe I can get to it this week sometime.

EDIT: I just installed it on my test forum. And it does the same thing on it.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: edi67 on February 15, 2009, 07:20:45 AM
My line for 292 is:

   
Code: [Select]
if (defined('SMF_INTEGRATION_SETTINGS'))
I have not had a chance to look at the error more. Maybe I can get to it this week sometime.

sorry but in Message.index.template.php not exist that line, i talk about smf RC1
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: fords8 on February 15, 2009, 07:23:58 AM
My line for 292 is:

   
Code: [Select]
if (defined('SMF_INTEGRATION_SETTINGS'))
I have not had a chance to look at the error more. Maybe I can get to it this week sometime.

sorry but in Message.index.template.php not exist that line, i talk about smf RC1

That line is from my Load.php file and not Message.index.template.php.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: mgrmgr on February 15, 2009, 07:46:14 AM
NEW v1.2 Version Uploaded

Thank you - works like a charm now (for me at least:) )

again thanks for your quick and good work :)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: Nibogo on February 15, 2009, 08:25:49 AM
@fords8-edi67: The mod works pretty cool in my test site with SMF 2.0 RC1 fresh installation , also I don't have any error in the error log.

I will try to find the error but the code is fine for me.

@mgrmgr: Glad to hear that :)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: edi67 on February 15, 2009, 08:54:05 AM
NEW v1.2 Version Uploaded

Thank you - works like a charm now (for me at least:) )

again thanks for your quick and good work :)

please mgrmgr you can attach your message.index.template.php here i want control your file with mine for din the error.
and also you can give me link of your forum?
thx

this is your forum ?
http://forum.michgeyer.de/index.php
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: drhamad on February 15, 2009, 09:30:46 AM
I haven't finished installing 1.2, but great work on making a better ManagePermissions installer.

One comment so far:
The last edit in it should be swapped with the 2nd edit, as it is above it in the file.  I don't know if this matters to the automated package installer, but it sure confused me at first (since I didn't have the search starting again from the top).

I know that's picky, but hey, just trying to help.

Edit:
Just finished installing.  I didn't notice any changes in this version, unless perhaps they were in the files that come along with it?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: fords8 on February 15, 2009, 02:02:52 PM
@fords8-edi67: The mod works pretty cool in my test site with SMF 2.0 RC1 fresh installation , also I don't have any error in the error log.

I will try to find the error but the code is fine for me.

@mgrmgr: Glad to hear that :)

It is more than likely a conflict with a mod I have installed. Once I have a chance to figure it out, I will post back.

Mods installed on my test site are:
1. Yet Another Global Announcements Mod 1.2
2. AjaxChat Integration 2.5
3. Active Members In Topic 1.7
4. Share this topic SMF Mod 1.1
5. Downloads System 1.1.5
6. RSS Feed Icon 1.1
7. RSS Feeder 1.1.1
8. PortaMx v0.955 0.955
9. SMF Media Gallery 1.5.4
10. Aeva ~ Auto-Embed Video & Audio 5.2.56

I will remove them one at a time and hope that helps. I did check each edit the installer makes, and everything looked fine and the same as if I did it manual.

EDIT: So I took out all the mods on my test site and I still get the error. I guess my next step will be to look at the database.

EDIT: Cleaned out the database. Replaced the Load.php with the one from the install package. And still no go. Only thing left is a fresh install.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: karanima on February 15, 2009, 02:38:24 PM
1.1.5 Is it to be adapted?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: drhamad on February 15, 2009, 03:20:46 PM
1.1.5 Is it to be adapted?

No.  Use the Global Announcement mod that has been out for quite a while.  Also, you should update to 1.1.8 immediately.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: mattchewone on February 15, 2009, 05:02:26 PM
I have RC1 and i have this coming up - Fatal error: Cannot use string offset as an array in /home/SMF2/Sources/Load.php(2021) : eval()'d code on line 292
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: laetabi on February 15, 2009, 05:52:45 PM
me too. I've just installed through package manager to RC1 and same error on Load.php line 292...

Evrything installs fine and appears to work but adding a standard announcement to a board results in this error in the global announcement text

...

W
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: Özgür on February 15, 2009, 06:51:13 PM
I test my 3 site..
And I test ie7.
1 - If i enable the comment and open the any announcement, get "Operation aborted" error. (in ie7) Look attachments..

2 - Editor resizer not work in comments area. (i test firefox and opera)
3 - If you are viewing announcement, linktree announcement link not working..

My Community > Announcements > Test
Link go to : http://www.rockayseri.net/test/index.php?action=announcements;sa=announcement;id=1
Correct : http://www.rockayseri.net/test/index.php?action=announcements;sa=view;id=1

http://www.rockayseri.net/test/index.php?action=announcements;sa=view;id=1
user : test / pass : 123456
If you want to admin account or ftp detail i can send you..
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: Nibogo on February 15, 2009, 07:46:33 PM
1. IE Sucks :P , I will check this

2. Yep also there is no WYSIWYG is a planned feature

3. I will check this too , thanks for report
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: laetabi on February 16, 2009, 12:35:36 PM
What about the 292 error?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: edi67 on February 16, 2009, 01:21:17 PM
What about the 292 error?

we are in 3 users with that error :( you have mod installaed? write your mod list so we can check for control which mod cause that error
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: laetabi on February 16, 2009, 01:35:37 PM
1. Show Local Url Titles 1.1
2. eFloating Bar for Guest & Members 0.1 
3. Recent Topics On Board Index 1.01   
4. Bakers Dozen Pages 1.1   
5. SMF Gallery Pro 1.4.5     
6. Bookmarks 2.2.1
7. Internal_Links_Use_Same_Window 1.2   
8. Latest Members 1.1 
9. SMF Articles 1.0.1.7   
10. Custom Fields On Memberlist 1.0   
11. Users Online Today 1.5.4
12. SMF Links 1.8.1 
13. PM Popup - Uses Active Window 1.4   
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: edi67 on February 16, 2009, 03:15:37 PM
me too i unistalled all mods but nothing always that error 292 :( so pity i wanted so much this mod thx anyway Nibogo for mod
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: drhamad on February 16, 2009, 03:42:09 PM
me too i unistalled all mods but nothing always that error 292 :( so pity i wanted so much this mod thx anyway Nibogo for mod

edi67:  Have you tried it on a fresh board, or only on a board with mods uninstalled.  I ask because uninstalling mods may not return a board exactly to stock specifications.

In tracking this down it'd be useful to know if anyone has experienced this problem on a stock board.

Obviously I'm not the mod author, but we'll see what we can figure out.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: Nibogo on February 16, 2009, 04:38:35 PM
What about the 292 error?

I can't reproduce that bug , I don't know how to fix something of I can't see

What is your php version?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: laetabi on February 16, 2009, 05:31:18 PM
I understand. I thought you'd missed the posts.

I run my forum on bluehost.com which is advertised here. It says PHP 5.

I suspect its a mod or change to a template file somewhere. I've had to uninstall for now but if you find a way of replicating or get clues from further posts it would be really useful for my site.

Thanks for trying nibogo

Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: fords8 on February 16, 2009, 06:30:04 PM
I get a chance I will do a fresh install and see if it does it still.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: Nibogo on February 16, 2009, 08:08:33 PM
I check the bug with IE 7 and happend because IE Sucks (yep IE 7 Bug) this bug has been fixed on IE8 , I check the Microsoft page:

http://blogs.msdn.com/ie/archive/2008/04/23/what-happened-to-operation-aborted.aspx

I know how to fix that bug , but I have to remove the Javascript window when you try to remove an announcement or comment , I am checking how to fix this , but one solution is just say "Please don't use IE" . Anyway I am trying to find a better solution , this is the YAGAM priority now.

Thanks microsoft for an horrible Explorer ^^


Bug fixed in my localhost , Will be ready in the YAGAM v1.3
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: fords8 on February 16, 2009, 08:25:35 PM
On a fresh install the 292 error is gone. But in IE7 I get the same pop up as Özgür´ gets when I am logged in. If I log out and click on the test announcement I made, it redirects me to the main forum. Of course guest is checked off in the admin panel.

Under Google Chrome, I can view it just fine if I am logged in. Logged out does the same as IE7 does. Redirects me to the main forum.

EDIT: I started to write this before your post NIBOGO. I am looking at the link you posted now. Saying IE sucks doesn't help also. Since there is still a issue with Google Chrome with guests even when guests are allowed to view. I have not tryed any of this in FF.

Also none of this fixes the 292 error. Not everyone can reinstall everything to fix the issue. Of course not everyone is having the issue either. This one will be hard to figure out I think.

I think this is a great mod either way. If you can install this and run it without issues, I say go for it. I thank god that SMF has mod makers like NIBOGO to write great mods like this. So for that, I thank you NIBOGO.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: Nibogo on February 16, 2009, 09:25:04 PM
On a fresh install the 292 error is gone. But in IE7 I get the same pop up as Özgür´ gets when I am logged in. If I log out and click on the test announcement I made, it redirects me to the main forum. Of course guest is checked off in the admin panel.

Under Google Chrome, I can view it just fine if I am logged in. Logged out does the same as IE7 does. Redirects me to the main forum.

EDIT: I started to write this before your post NIBOGO. I am looking at the link you posted now. Saying IE sucks doesn't help also. Since there is still a issue with Google Chrome with guests even when guests are allowed to view. I have not tryed any of this in FF.

Also none of this fixes the 292 error. Not everyone can reinstall everything to fix the issue. Of course not everyone is having the issue either. This one will be hard to figure out I think.

I think this is a great mod either way. If you can install this and run it without issues, I say go for it. I thank god that SMF has mod makers like NIBOGO to write great mods like this. So for that, I thank you NIBOGO.

If the 202 is gone in a fresh installation is not a bug of this bug (I can't reproduce that bug yet)

I have finished the WYSIWYG in Add Comment/Edit Comment also I fix a little bug in the template structure and add linktree to editing comment.

The mod works pretty well in my test site and other users have the mod working so I am happy with the Mod.

I am waiting all the bugs you can show me , I will try to fix them all but the IE bug is a really big bug. FIXED!!

Now I am fixing a bug with the permission , I have a redirect if I am a regular member or guest FIXED!!

Bugs fixed :) , I have the mod working on FF/IE/Opera and Chrome.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: Nibogo on February 16, 2009, 09:48:47 PM
Version 1.3 - Feb 16, 2009
- Fixed the bug with automatic redirect for non-yagam manage permission membergroups
- Fixed the bug with an error on IE7 "Operation aborted"
- Fixed the bug with the Linktree on announcement view
- Added linktree on Comment Edit
- Added WYSIWYG on Add Comment and Edit Comment
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.2 RELEASED!!]
Post by: mgrmgr on February 16, 2009, 10:02:32 PM

please mgrmgr you can attach your message.index.template.php here i want control your file with mine for din the error.
and also you can give me link of your forum?
thx

this is your forum ?
http://forum.michgeyer.de/index.php

Sorry being a bit late with my answer, I'm busy to upgrade my forum with lots of new mods like YAGAM and a lot more. Sometimes it's complicated to install a new mod whemn you already have 50m others installed  ;D

Find my MessageIndex.template attached (from the default theme). The URI is correct :) You have to register though to become a member there - admin approval for registration is required :)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.3 RELEASED!!]
Post by: Özgür on February 16, 2009, 10:21:56 PM
Thanks NIBOGO. Work fine ie7-ie6/ff/chrome for me now. Thanks for update.

Edit: :P

I try to delete comment, get this "Are you sure of you want to delete this announcement??". Can you add new text strings for this. (Are you sure of you want to delete this comment??)

$txt['yagam_remove_verify'] = 'Are you sure of you want to delete this announcement??';
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.3 RELEASED!!]
Post by: fords8 on February 16, 2009, 10:26:41 PM
I will get the new updated file and test. Damn you are fast with updates!

EDIT: Uninstalled old, then installed new. I didn't delete the announcements I had in there.

Logged in everything is fine. Logged out I get this error where add comments are:

Quote
Fatal error: Call to undefined function template_control_richedit() in /***/***/***/smfrc2/Sources/Load.php(1944) : eval()'d code on line 501

This happens in IE7, Google Chrome, and FF. I will try a new announcement in a sec or two.

EDIT: Happens with new one also.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.3 RELEASED!!]
Post by: Özgür on February 16, 2009, 11:04:38 PM
Are you enable to WYSIWYG in admin panel?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.3 RELEASED!!]
Post by: mattchewone on February 17, 2009, 05:52:11 AM
I uninstalled and re-downloaded this just now and am still getting this -

Fatal error: Cannot use string offset as an array in /home/SMF2/Sources/Load.php(2021) : eval()'d code on line 292

I really want to use this mod! What is the problem?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.3 RELEASED!!]
Post by: edi67 on February 17, 2009, 07:33:31 AM
I uninstalled and re-downloaded this just now and am still getting this -

Fatal error: Cannot use string offset as an array in /home/SMF2/Sources/Load.php(2021) : eval()'d code on line 292

I really want to use this mod! What is the problem?

damn another 292 error.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.3 RELEASED!!]
Post by: Nibogo on February 17, 2009, 04:45:07 PM
I uninstalled and re-downloaded this just now and am still getting this -

Fatal error: Cannot use string offset as an array in /home/SMF2/Sources/Load.php(2021) : eval()'d code on line 292

I really want to use this mod! What is the problem?

damn another 292 error.

I need an ftp account and an admin account of someone of have this bug to try to find any solution to this bug , I cannot fix in my localhost because I can't reproduce the bug

Thanks


I think of the bug was fixed on the v1.4 please check if the mod works propertly
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.3 RELEASED!!]
Post by: Nibogo on February 17, 2009, 05:53:52 PM
292 Bug Fixed :) (I hope)

Bug with the delete comment string fixed :)

I am fixing the bug with non-YAGAM Admin users "Fatal error: Call to undefined function template_control_richedit() in XXXSourcesLoad.php(1944) : eval()'d code on line 538"

I will update this three bugs fixed in the v1.3.1 ;)

Please the YAGAM translators add this two strings:

Code: [Select]
$txt['yagam_editing_comment'] = 'Editing Comment';
$txt['yagam_remove_verify_comment'] = 'Are you sure of you want to delete this comment??';

Thanks
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.3 RELEASED!!]
Post by: Özgür on February 17, 2009, 06:02:29 PM
! Updated Turkish language translation.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.4 RELEASED!!]
Post by: Nibogo on February 17, 2009, 06:33:36 PM
Version 1.4 - Feb 17, 2009
- '292' Bug Fixed
- Fixed the bug with the String deleting a comment
- Fixed the bug "Fatal error: Call to undefined function template_control_richedit() in /Sources/Load.php(1944) : eval()'d code on line 538"
- Fixed some minor additional Bugs
- Fixed Bug with the YAGAM Version on the Package Manager

Turkish , Spanish and English are updated to 1.4

You want to upgrade??

Just overwrite the Announcements.php , Announcements.template.php and the Announcements.english.php ;)

My 2.000 Post!! :P :P
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.4 RELEASED!!]
Post by: fords8 on February 17, 2009, 08:21:20 PM
Downloaded and testing NIBOGO. I will let ya know what happens.

EDIT: All issues are fixed on my side. Nice work NIBOGO! FF, Google Chrome, and IE7 all work. Doesn't matter if you are logged in or out. No errors to report on this mod. Tested on a clean site and modded site.

Props to you for all your hard work!
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.4 RELEASED!!]
Post by: Nibogo on February 17, 2009, 08:41:24 PM
Downloaded and testing NIBOGO. I will let ya know what happens.

EDIT: All issues are fixed on my side. Nice work NIBOGO! FF, Google Chrome, and IE7 all work. Doesn't matter if you are logged in or out. No errors to report on this mod. Tested on a clean site and modded site.

Props to you for all your hard work!


Glad to finally hear that , now I will update my others mods and after I will check the spellchecker and announcements preview as features :).

If you have any idea please let me know the idea
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.4 RELEASED!!]
Post by: fords8 on February 17, 2009, 10:11:30 PM
Quote
If you have any idea please let me know the idea

No ideas for this mod. I like it as is.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.4 RELEASED!!]
Post by: PerryM on February 18, 2009, 12:53:09 AM
Using newest module - however, when I try to add a new announcement I get the following error:
 
An Error Has Occurred!
[/t]
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.4 RELEASED!!]
Post by: edi67 on February 18, 2009, 07:49:50 AM
292 Bug Fixed :) (I hope)

Bug with the delete comment string fixed :)


NIBOGOOOOOOOOOOOOOO great now work ;) finally the more useful mod for SMF working thx again bro, i will attach italian translation immediately :)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.4 RELEASED!!]
Post by: mattchewone on February 18, 2009, 08:15:58 AM
Just re-installed this mod and it works fine no more errors! There is one thing though, would it be possible to have the avatar under the member group rank in the announcement to make it the same layout as the rest of the forum?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.4 RELEASED!!]
Post by: edi67 on February 18, 2009, 09:06:11 AM
NIBOGO i need y our help if you can, in my site i have bar for sticky topic too so i have only little problem, i want order in this code:

Code: [Select]
$stickybar = false;
$normalbar = false;
            foreach($context['topics'] as $topic)
            {
if($topic['is_sticky'] && !$stickybar)
{
echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '9' : '9', '"><b>',$txt['sticky_topics'],'</b></td></tr>';
$stickybar = true;
}
else if(!$topic['is_sticky'] && $stickybar && !$normalbar)
{
echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '9' : '9', '"><b>',$txt['non_sticky_topics'],'</b></td></tr>';
$normalbar = true;
}
    else if($announcement_bar && !$normal_bar)
{
echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '9' : '9', '"><b>',$txt['non_sticky_topics'],'</b></td></tr>';
           $normal_bar = true;
            }

i have 4 condition:
Announcement , sticky topic and normal topic
Announcement and sticky topic
Announcement and normal topic

how i can write correctly code for have the bar correctly, look screenshot as is figured now, when i have only announcement and normal topic work good look 1° screenshot, but when i have announcement, sticky and normal topic some confusion look 2 ° screenshot.
I will be glad if you can help me thx again
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.4 RELEASED!!]
Post by: Hot Rides on February 18, 2009, 01:24:55 PM
can not see any announcements at all!

checked all my files to make sure they were modified properly; yes
checked with default theme; yes

this is driving me crazy!
i made to test announcements and changed every setting possible and nothing

any ideas?

not that it will do much good, but

username- testuser
password- testpassword
site- http://hot-rides.net/index.php
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.4 RELEASED!!]
Post by: Xepernas on February 18, 2009, 04:10:00 PM
Any idea how to make it display the announcements on the SFM2RC1 versions of the default YABB and Babylon themes ? It works perfectly fine on Core theme and most other 2RC1 custom ones.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.4 RELEASED!!]
Post by: Nibogo on February 18, 2009, 04:26:26 PM
@edi67: I make the mod for separate Sticky and Normal Topics , I just have to uploaded to the mod site , I will add support for the YAGAM Mod

Using newest module - however, when I try to add a new announcement I get the following error:
 
An Error Has Occurred!
[/t]

The installation have any error??

U have all the files mod uploaded??

292 Bug Fixed :) (I hope)

Bug with the delete comment string fixed :)


NIBOGOOOOOOOOOOOOOO great now work ;) finally the more useful mod for SMF working thx again bro, i will attach italian translation immediately :)

Thanks for your comment and I will be happy if you help with the italian language

Just re-installed this mod and it works fine no more errors! There is one thing though, would it be possible to have the avatar under the member group rank in the announcement to make it the same layout as the rest of the forum?

The avatar is already a feature of this mods

ake
Any idea how to make it display the announcements on the SFM2RC1 versions of the default YABB and Babylon themes ? It works perfectly fine on Core theme and most other 2RC1 custom ones.

Make the manual edit to the MessageIndex Files on that themes
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.4 RELEASED!!]
Post by: Xepernas on February 18, 2009, 05:19:51 PM
Make the manual edit to the MessageIndex Files on that themes

I'd adore to. Unfortunately I can't find, in these themes' MessageIndex.template.php, the quotes that would allow me to locate where to add the YAGAM code, or what to replace with it. There is no "no topic, sorry bub" comment, I couldn't find any "if (empty($context['topics']))", and I'm not knowledgable enough to recognise the equivalents.

When you'll have some time, would it be complicated to have a quick look at these themes templates (or just babylon), and give me a few indications on what parts to change ? If you haven't erased them, you should have both Babylon and YABB by default on SMF.

Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.4 RELEASED!!]
Post by: laetabi on February 18, 2009, 05:35:10 PM
Congrats NIBOGO, 1.4 works great. fantastic mod...thanks for fixing that 292 error
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.4 RELEASED!!]
Post by: Nibogo on February 18, 2009, 09:03:42 PM
Make the manual edit to the MessageIndex Files on that themes

I'd adore to. Unfortunately I can't find, in these themes' MessageIndex.template.php, the quotes that would allow me to locate where to add the YAGAM code, or what to replace with it. There is no "no topic, sorry bub" comment, I couldn't find any "if (empty($context['topics']))", and I'm not knowledgable enough to recognise the equivalents.

When you'll have some time, would it be complicated to have a quick look at these themes templates (or just babylon), and give me a few indications on what parts to change ? If you haven't erased them, you should have both Babylon and YABB by default on SMF.



YAGAM v1.5 will have Babylon and Classic theme support ;)

Also spellchecker and announcement preview.

Any idea is more than welcome ;)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.4 RELEASED!!]
Post by: Xepernas on February 18, 2009, 10:25:09 PM
Any idea is more than welcome ;)

Well, I'm not sure how it can be ameliorated further, then. :)

Say, for the ideal usage I'd make of it, I'd need the announcement itself to be displayed directly on the "topicsllist"  page. That is :

Board name
---------
Announcement title.

Whole announ-
cement con-
tent (aka post
body) displayed
there.
---------
Topic title
---------
Topic title
---------
Topic title
---------
etc

Is that feasible, or already planned, or already available ?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.4 RELEASED!!]
Post by: drhamad on February 20, 2009, 05:10:09 PM
NIGOBO: you might want to change the title of the FIRST post in this thread, as it still says 1.1.4 in the overall header.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.4 RELEASED!!]
Post by: edi67 on February 23, 2009, 05:24:00 AM
NIBOGO: one little bug, permission for manage announcements NOT work for me, membergroups enabled to MANAGE them cannot create new announcements can ONLE edit one existent announcement, only admin can create new, others view only grey title not clickable, is possible give permission to create new to others usergroups ?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.4 RELEASED!!]
Post by: Nibogo on February 23, 2009, 10:09:02 AM
NIGOBO: you might want to change the title of the FIRST post in this thread, as it still says 1.1.4 in the overall header.

I am NIBOGO not NIGOBO :P

I change the versions in this way:

1.2 = 1.1.2
1.3 = 1.1.3
1.4 = 1.1.4


So the current version is 1.1.4 and the next release will be 1.1.5

NIBOGO: one little bug, permission for manage announcements NOT work for me, membergroups enabled to MANAGE them cannot create new announcements can ONLE edit one existent announcement, only admin can create new, others view only grey title not clickable, is possible give permission to create new to others usergroups ?

I will check that , thanks for report
Title: Yet Another Global Announcements Mod (YAGAM) [v1.1.5 RELEASED!!]
Post by: Nibogo on February 23, 2009, 05:02:39 PM
YAGAM  v1.1.5 RELEASED!!! (http://69s.es/a18)

Version 1.1,5
- Feb 23, 2009
- Fixed Permission Bug for non-Admin Users and YAGAM Manager
- Changed all the functions of the mod (You only can see this in the code) :P
- Added Support for the Member Color Link Mod (http://custom.simplemachines.org/mods/index.php?mod=111)
- Changed the View Global Announcement url style from this:

http://www.forum.com/index.php?action=announcements;sa=view;id=8 (http://www.forum.com/index.php?action=announcements;sa=view;id=8)

to this:

http://www.forum.com/index.php?action=announcements;aid=8 (http://www.forum.com/index.php?action=announcements;aid=8)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.5 RELEASED!!]
Post by: drhamad on February 23, 2009, 05:09:55 PM
Does any editing need to be done for updating from 1.1.4?  (other than uploading the announcements.php/template/lang)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.5 RELEASED!!]
Post by: Özgür on February 23, 2009, 05:32:29 PM
Linktree not correctly work.
Announcements.php 299-303
Code: [Select]
        //Add the Linktree      
        $context['linktree'][] = array(
      'url' => $scripturl.'?action=announcements;sa=view;id=' . $announcementID,
      'name' => $context['announcement_edit_info']['title'],
        );     

507-511

Code: [Select]
   // Add the Linktree      
   $context['linktree'][] = array(
      'url' => $scripturl.'?action=announcements;sa=view;id=' . $announcementID,
      'name' => $context['announcement_title'],
   );
623-627
Code: [Select]
    // Add the Linktree      
   $context['linktree'][] = array(
      'url' => $scripturl.'?action=announcements;sa=view;id=' . $announcementID,
      'name' => $txt['yagam_editing_comment'],
   );   

sa=view;id= should be aid=

redirectexit not work correctly
Announcements.php 380
Code: [Select]
redirectexit('action=announcements;sa=view;id='.$_REQUEST['id'].'');575
Code: [Select]
redirectexit('action=announcements;sa=view;id=' . $announcement_id);678
Code: [Select]
redirectexit('action=announcements;sa=view;id=' . $announcement);716
Code: [Select]
redirectexit('action=announcements;sa=view;id=' . $announcement);

Edit : And permission problem is here..
I want to ; Guest can see announcement body but cannot comment. But Guest can see comment area and try commenting get this "You can`t comment this announcement".
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.5 RELEASED!!]
Post by: Nibogo on February 23, 2009, 06:14:58 PM
Version 1.1.6 - Feb 23, 2009
- Fixed the Linktree and Redirect Bugs with the new URL Style
- Changed all the ManagePermissions Edit , Now the guest can comment too (with the permission of course) and the Manage YAGAM is an Administrative Permission

I hope of this new version is stable , Don't worry about the bugs actually I don't think in add more features so I hope of YAGAM will not have any additional bug  :)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: edi67 on February 23, 2009, 06:32:49 PM
Installed the last version 1.1.6 and well i have some problem too,

1° for make view and manage announcements to others usergroups i must move to part of mod in Admin.php and put in there:
Code: [Select]
<search position="before"><![CDATA[ 'postsettings' => array(
'label' => $txt['manageposts'],
'file' => 'ManagePosts.php',
'function' => 'ManagePostSettings',
'permission' => array('admin_forum', 'moderate_forum'),
'icon' => 'posts.gif',
'subsections' => array(
'posts' => array($txt['manageposts_settings'], 'admin_forum'),
'hidetagspecial' => array($txt['manageposts_hidetagspecial_settings'], 'admin_forum'),
'bbc' => array($txt['manageposts_bbc_settings'], 'admin_forum'),
'censor' => array($txt['admin_censored_words'], 'moderate_forum'),
'topics' => array($txt['manageposts_topic_settings'], 'admin_forum'),
// Add the tab for the Highlight Message Backgrounds Mod Sub Action .
'highlightmessagebackgrounds' => array($txt['HighlightMessageBackgrounds_tab_heading'], 'admin_forum'),
),
),]]></search>
<add><![CDATA[
        'announcements' => array(
'label' => $txt['yagam_admin'],
'file' => 'Announcements.php',
'function' => 'AnnouncementsAdmin',
'custom_url' => $scripturl . '?action=announcements;sa=admin',
'icon' => 'yagam.gif',
),]]></add>

in this part work the manage announcements for others  users

2° i have same problem too with comments, users cannot comments announcements , appear error ( you not have permission to comment )

and also i want ask nibogo if is possible divide to the sticky topic from normal topic as announcements are divided from others
Thx nibogo i hope you solve these problem ;)

These are 2 errors in log:

When i try to edit one announcementes
Code: [Select]
http://crazyzone.biz/index.php?action=announcements;sa=edit;id=11
8: Undefined index: announcement_no_selected

When i try to comment:
Code: [Select]
http://crazyzone.biz/index.php?action=announcements;sa=commentverify;id=11
8: Undefined index: aid
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: fords8 on February 23, 2009, 06:51:08 PM
I installed 1.1.6 also and can't edit or delete announcements. Can't add comments either.

All of these give a:

Quote
An Error Has Occurred!

100th post! Sweet!
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: drhamad on February 23, 2009, 06:53:25 PM
Yeah there's definitely a problem going on here.  Existing announcements work, but can't edit or create new ones.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: fords8 on February 23, 2009, 06:54:18 PM
I can make a new one!
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6.2 RELEASED!!]
Post by: Nibogo on February 23, 2009, 07:31:24 PM
Version 1.1.6.2 - Feb 23, 2009
- Fixed more bugs with the new URL Style
- Changed the admin.php editing with a new position of the YAGAM Panel and Add Global Announcement subsection
- More, more and yet more bug fixing

I really need a bug tracker for YAGAM
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: fords8 on February 23, 2009, 07:38:47 PM
Version 1.1.6.2 - Feb 23, 2009
- Fixed more bugs with the new URL Style
- Changed the admin.php editing with a new position of the YAGAM Panel and Add Global Announcement subsection
- More, more and yet more bug fixing

I really need a bug tracker for YAGAM

All fixed for me! Nice work!
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: drhamad on February 23, 2009, 07:49:11 PM
Thanks, that seems to work.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Özgür on February 23, 2009, 08:01:17 PM
Quote
I really need a bug tracker for YAGAM
Ehehe =)
All url bug looks solved. But guest permission bug unsolved. Thank for hard work, NIBOGO.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on February 23, 2009, 08:41:53 PM
Glad to see of YAGAM is working , All that bugs appear just because I don't make a good testing of the mod for the next release I will check everything before upload.

I am currently looking for a website to have an issue tracker and svn for this and my others mods

I can make of the guest create comments ;)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Antes on February 24, 2009, 04:55:44 AM
Hello ,

Frist of all Very Very Good Mod ! :) ... But 1 Thing Wrong in Install.xml ( When Installing @ SMF2.0 RC1 ( Admin.php Change )

Code: [Select]
<![CDATA['postsettings' => array(
'label' => $txt['manageposts'],
'file' => 'ManagePosts.php',
'function' => 'ManagePostSettings',
'permission' => array('admin_forum', 'moderate_forum'),
'icon' => 'posts.gif',
'subsections' => array(
'posts' => array($txt['manageposts_settings'], 'admin_forum'),
'bbc' => array($txt['manageposts_bbc_settings'], 'admin_forum'),
'censor' => array($txt['admin_censored_words'], 'moderate_forum'),
'topics' => array($txt['manageposts_topic_settings'], 'admin_forum'),
),
),]]>

Code: [Select]
'postsettings' => array(
'label' => $txt['manageposts'],
'file' => 'ManagePosts.php',
'function' => 'ManagePostSettings',
'permission' => array('admin_forum', 'moderate_forum'),
'icon' => 'posts.gif',
'subsections' => array(
'posts' => array($txt['manageposts_settings'], 'admin_forum'),
'hidetagspecial' => array($txt['manageposts_hidetagspecial_settings'], 'admin_forum'),
'bbc' => array($txt['manageposts_bbc_settings'], 'admin_forum'),
'censor' => array($txt['admin_censored_words'], 'moderate_forum'),
'topics' => array($txt['manageposts_topic_settings'], 'admin_forum'),
),
),
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6.2 RELEASED!!]
Post by: mgrmgr on February 24, 2009, 06:03:33 AM
...

I really need a bug tracker for YAGAM

LOL - Try the Project tools modification http://custom.simplemachines.org/mods/index.php?mod=1490

Works ok for me even if it is still in an early phase :)

Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: edi67 on February 24, 2009, 06:16:17 AM
Hello ,

Frist of all Very Very Good Mod ! :) ... But 1 Thing Wrong in Install.xml ( When Installing @ SMF2.0 RC1 ( Admin.php Change )

Code: [Select]
<![CDATA['postsettings' => array(
'label' => $txt['manageposts'],
'file' => 'ManagePosts.php',
'function' => 'ManagePostSettings',
'permission' => array('admin_forum', 'moderate_forum'),
'icon' => 'posts.gif',
'subsections' => array(
'posts' => array($txt['manageposts_settings'], 'admin_forum'),
'bbc' => array($txt['manageposts_bbc_settings'], 'admin_forum'),
'censor' => array($txt['admin_censored_words'], 'moderate_forum'),
'topics' => array($txt['manageposts_topic_settings'], 'admin_forum'),
),
),]]>

Code: [Select]
'postsettings' => array(
'label' => $txt['manageposts'],
'file' => 'ManagePosts.php',
'function' => 'ManagePostSettings',
'permission' => array('admin_forum', 'moderate_forum'),
'icon' => 'posts.gif',
'subsections' => array(
'posts' => array($txt['manageposts_settings'], 'admin_forum'),
'hidetagspecial' => array($txt['manageposts_hidetagspecial_settings'], 'admin_forum'),
'bbc' => array($txt['manageposts_bbc_settings'], 'admin_forum'),
'censor' => array($txt['admin_censored_words'], 'moderate_forum'),
'topics' => array($txt['manageposts_topic_settings'], 'admin_forum'),
),
),

for you is wrong because you have installed mod hidetagspecial that is not DEFAULT of smf ;)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Antes on February 24, 2009, 06:24:56 AM
Hello ,

Frist of all Very Very Good Mod ! :) ... But 1 Thing Wrong in Install.xml ( When Installing @ SMF2.0 RC1 ( Admin.php Change )

Code: [Select]
<![CDATA['postsettings' => array(
'label' => $txt['manageposts'],
'file' => 'ManagePosts.php',
'function' => 'ManagePostSettings',
'permission' => array('admin_forum', 'moderate_forum'),
'icon' => 'posts.gif',
'subsections' => array(
'posts' => array($txt['manageposts_settings'], 'admin_forum'),
'bbc' => array($txt['manageposts_bbc_settings'], 'admin_forum'),
'censor' => array($txt['admin_censored_words'], 'moderate_forum'),
'topics' => array($txt['manageposts_topic_settings'], 'admin_forum'),
),
),]]>

Code: [Select]
'postsettings' => array(
'label' => $txt['manageposts'],
'file' => 'ManagePosts.php',
'function' => 'ManagePostSettings',
'permission' => array('admin_forum', 'moderate_forum'),
'icon' => 'posts.gif',
'subsections' => array(
'posts' => array($txt['manageposts_settings'], 'admin_forum'),
'hidetagspecial' => array($txt['manageposts_hidetagspecial_settings'], 'admin_forum'),
'bbc' => array($txt['manageposts_bbc_settings'], 'admin_forum'),
'censor' => array($txt['admin_censored_words'], 'moderate_forum'),
'topics' => array($txt['manageposts_topic_settings'], 'admin_forum'),
),
),

for you is wrong because you have installed mod hidetagspecial that is not DEFAULT of smf ;)

This is awsome Thx ! :) Some of mods giving that error ... i'll delete it now ... ( And let me say , When you made this Working as well with HTSpecial )

Edit : After UnInstall HTSpecial Giving same Error Too ( Some mods like in Past )
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: edi67 on February 24, 2009, 06:31:14 AM
Hello ,

Frist of all Very Very Good Mod ! :) ... But 1 Thing Wrong in Install.xml ( When Installing @ SMF2.0 RC1 ( Admin.php Change )

Code: [Select]
<![CDATA['postsettings' => array(
'label' => $txt['manageposts'],
'file' => 'ManagePosts.php',
'function' => 'ManagePostSettings',
'permission' => array('admin_forum', 'moderate_forum'),
'icon' => 'posts.gif',
'subsections' => array(
'posts' => array($txt['manageposts_settings'], 'admin_forum'),
'bbc' => array($txt['manageposts_bbc_settings'], 'admin_forum'),
'censor' => array($txt['admin_censored_words'], 'moderate_forum'),
'topics' => array($txt['manageposts_topic_settings'], 'admin_forum'),
),
),]]>

Code: [Select]
'postsettings' => array(
'label' => $txt['manageposts'],
'file' => 'ManagePosts.php',
'function' => 'ManagePostSettings',
'permission' => array('admin_forum', 'moderate_forum'),
'icon' => 'posts.gif',
'subsections' => array(
'posts' => array($txt['manageposts_settings'], 'admin_forum'),
'hidetagspecial' => array($txt['manageposts_hidetagspecial_settings'], 'admin_forum'),
'bbc' => array($txt['manageposts_bbc_settings'], 'admin_forum'),
'censor' => array($txt['admin_censored_words'], 'moderate_forum'),
'topics' => array($txt['manageposts_topic_settings'], 'admin_forum'),
),
),

for you is wrong because you have installed mod hidetagspecial that is not DEFAULT of smf ;)

This is awsome Thx ! :) Some of mods giving that error ... i'll delete it now ... ( And let me say , When you made this Working as well with HTSpecial )

Edit : After UnInstall HTSpecial Giving same Error Too ( Some mods like in Past )

for make it work make this:

change the last part inside file Install.xml with this one, save and reinstall mod
Code: [Select]
<file name="$sourcedir/Admin.php">
<operation>
<search position="after"><![CDATA[ 'managecalendar' => array(
'label' => $txt['manage_calendar'],
'file' => 'ManageCalendar.php',
'function' => 'ManageCalendar',
'icon' => 'calendar.gif',
'permission' => array('admin_forum'),
'enabled' => in_array('cd', $context['admin_features']),
'subsections' => array(
'holidays' => array($txt['manage_holidays'], 'admin_forum', 'enabled' => !empty($modSettings['cal_enabled'])),
'settings' => array($txt['calendar_settings'], 'admin_forum'),
),
),]]></search>
<add><![CDATA[
      'announcements' => array(
'label' => $txt['yagam_admin'],
'file' => 'Announcements.php',
'function' => 'AnnouncementsAdmin',
'custom_url' => $scripturl . '?action=announcements;sa=admin',
'icon' => 'yagam.gif',
                    'subsections' => array(
    'add' => array($txt['yagam_admin'], 'admin_forum'),
'admin' => array($txt['yagam_admin_add'], 'admin_forum'),
),
),]]></add>
</operation>
</file>

============================================================

Italian Language NIBOGO ;)

Code: [Select]
// YAGAM - Admin and MessageIndex Strings
$txt['yagam_admin'] = 'Annunci Globali';
$txt['yagam_topics'] = 'Topics Normali';
$txt['yagam_created'] = 'Creato il';
$txt['whoall_announcements'] = 'Sta guardando un Annuncio Globale';
$txt['permissionname_yagam_manage'] = 'Gestisci Annunci Globali';
$txt['permissionhelp_yagam_manage'] = 'Imposta se l\'utente può gestire gli annunci globali.';
$txt['permissionname_yagam_comment'] = 'Commenta gli Annunci Globali';
$txt['permissionhelp_yagam_comment'] = 'Imposta se l\'utente può commentare gli annunci globali e di abilitare commenti.';
$txt['yagam_edit2'] = 'Modifica';
$txt['yagam_edit'] = 'Modifica Annuncio';
$txt['yagam_remove'] = 'Cancella Annuncio';
$txt['yagam_remove2'] = 'Cancella';
$txt['yagam_admin_add'] = 'Aggiungi Annuncio Globale';
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: fords8 on February 24, 2009, 10:42:37 AM
NIBOGO, Can I PM you about a mod I have a idea for? Just wondering if you would be interested in doing it and releasing it to the public.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: fotografo74 on February 24, 2009, 02:36:02 PM
Hi NIBOGO, thanks for this nice MOD!  :)
I have a problem, like screenshot attached.

Can you help me?
Thanks!
Antonio
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: edi67 on February 25, 2009, 04:10:33 AM
Nibogo, listen how i could separate the sticky topic from normal one and announcements too usgin your method?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.4 RELEASED!!]
Post by: Xepernas on February 25, 2009, 09:05:33 AM
YAGAM v1.5 will have Babylon and Classic theme support ;)

Uh, sure ? Seems like v1.6 announcements still won't show on Babylon and Babylon-based themes.  :(

See, I'd gladly yagamize those themes myself, but I'm forced to do it a bit blindly, as these codes don't mean much to me. The problem is, instead of finding the

Code: [Select]
// No topics.... just say, "sorry bub".
if (empty($context['topics']))
echo '
<tr class="windowbg2">
<td class="catbg3" colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '"><strong>', $txt['msg_alert_none'], '</strong></td>
</tr>';
foreach ($context['topics'] as $topic)
{
// Do we want to seperate the sticky and lock status out?

that I'm supposed to replace with your code, I find something like :

Code: [Select]
// No topics.... just say, "sorry bub".
      else
         echo '
               <td width="100%" colspan="7"><b>', $txt['msg_alert_none'], '</b></td>';
      echo '
            </tr>';
      // If this person can approve items and we have some awaiting approval tell them.
      if (!empty($context['unapproved_posts_message']))
      {
         echo '
            <tr class="windowbg2">
               <td colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '">
                  <small>
                     <span class="alert">!</span> ', $context['unapproved_posts_message'], '
                  </small>
               </td>
            </tr>';
      }

and I don't have enough knowledge to adapt your code to this configuration. It seems to be the standard Babylon-theme and Babylon-family code, so if you could give hints as to what to type there, it'll probably allow the manual yagamization of a whole series of themes for a lot of people. 
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on February 25, 2009, 06:06:57 PM
...

I really need a bug tracker for YAGAM

LOL - Try the Project tools modification http://custom.simplemachines.org/mods/index.php?mod=1490

Works ok for me even if it is still in an early phase :)



I know that mod but the website?? hosting?? Domain??

============================================================

Italian Language NIBOGO ;)

Code: [Select]
// YAGAM - Admin and MessageIndex Strings
$txt['yagam_admin'] = 'Annunci Globali';
$txt['yagam_topics'] = 'Topics Normali';
$txt['yagam_created'] = 'Creato il';
$txt['whoall_announcements'] = 'Sta guardando un Annuncio Globale';
$txt['permissionname_yagam_manage'] = 'Gestisci Annunci Globali';
$txt['permissionhelp_yagam_manage'] = 'Imposta se l\'utente può gestire gli annunci globali.';
$txt['permissionname_yagam_comment'] = 'Commenta gli Annunci Globali';
$txt['permissionhelp_yagam_comment'] = 'Imposta se l\'utente può commentare gli annunci globali e di abilitare commenti.';
$txt['yagam_edit2'] = 'Modifica';
$txt['yagam_edit'] = 'Modifica Annuncio';
$txt['yagam_remove'] = 'Cancella Annuncio';
$txt['yagam_remove2'] = 'Cancella';
$txt['yagam_admin_add'] = 'Aggiungi Annuncio Globale';


Thanks , I will add that in the next release

NIBOGO, Can I PM you about a mod I have a idea for? Just wondering if you would be interested in doing it and releasing it to the public.

Feel free to do it!

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

Nibogo, listen how i could separate the sticky topic from normal one and announcements too usgin your method?

Oh , I forget that , I will try to create the mod in this week with YAGAM support ;)

YAGAM v1.5 will have Babylon and Classic theme support ;)

Uh, sure ? Seems like v1.6 announcements still won't show on Babylon and Babylon-based themes.  :(

See, I'd gladly yagamize those themes myself, but I'm forced to do it a bit blindly, as these codes don't mean much to me. The problem is, instead of finding the

Code: [Select]
// No topics.... just say, "sorry bub".
if (empty($context['topics']))
echo '
<tr class="windowbg2">
<td class="catbg3" colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '"><strong>', $txt['msg_alert_none'], '</strong></td>
</tr>';
foreach ($context['topics'] as $topic)
{
// Do we want to seperate the sticky and lock status out?

that I'm supposed to replace with your code, I find something like :

Code: [Select]
// No topics.... just say, "sorry bub".
      else
         echo '
               <td width="100%" colspan="7"><b>', $txt['msg_alert_none'], '</b></td>';
      echo '
            </tr>';
      // If this person can approve items and we have some awaiting approval tell them.
      if (!empty($context['unapproved_posts_message']))
      {
         echo '
            <tr class="windowbg2">
               <td colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '">
                  <small>
                     <span class="alert">!</span> ', $context['unapproved_posts_message'], '
                  </small>
               </td>
            </tr>';
      }

and I don't have enough knowledge to adapt your code to this configuration. It seems to be the standard Babylon-theme and Babylon-family code, so if you could give hints as to what to type there, it'll probably allow the manual yagamization of a whole series of themes for a lot of people. 

I will NOT add Babylon and Classic Support , why??

Because on SMF 2.0 RC2 this themes will be removed so is not neccesary to add this and require some time (yep some minutes) only curve support will be added later
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Xepernas on February 25, 2009, 09:42:41 PM
YAGAM v1.5 will have Babylon and Classic theme support ;)
I will NOT add Babylon and Classic Support

Hm. Okkkkkay...

Well I can only wait and hope for a Babylon (or New Babylon 2, etc) user to decide to use Yagam himself, dedicate "some minutes" to it, and post the result here.  Because, to be honest, I'm not totally absolutely certain RC2 is for tomorrow - nor that people will cease to update the babylonic themes.

Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: fotografo74 on February 26, 2009, 04:20:22 AM

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
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: mgrmgr on February 26, 2009, 06:27:54 AM

LOL - Try the Project tools modification http://custom.simplemachines.org/mods/index.php?mod=1490

Works ok for me even if it is still in an early phase :)


I know that mod but the website?? hosting?? Domain??



Website? Your forum (main menu "projects")

Hosting? Your forum hoster (also localhost for a local installation)

Domain? Same as your forum. You can see it in action also on my test-forum:

http://forum.michgeyer.de.

It is fully integrated in your forum, does not need seperate hosting like mantis (as an example).

Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Xepernas on February 26, 2009, 12:01:12 PM
Let's just mention 2 little unimportant bugs I've encountered on SMF2.0RC1, theme Core, Yagam 1.1.6.2, IE7 :

1) When setting the announcements, I didn't touch the "permissions" at all (on the announcement create/edit page), and left them as default : guest off, regular members on, moderator off, admin off. I realised then that the announcements would only be visible by admins, but not by guests and regular members. So, I went back to edit the announcements, and checked all permissions "on". Guests, regular members, mods, admins. Now announcements are visible by everyone.

The procedure didn't make much sense (as "regular members" was already "on"), but at least it works now. Maybe this part needed an input/save to be initialized or write over a false, misleading "default" ?


2) On the menu : "Announcements" sends to the "add an announcement" panel. "Add an announcement" sends to the list of announcements. Again, doesn't really matter...
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on February 26, 2009, 02:47:00 PM

LOL - Try the Project tools modification http://custom.simplemachines.org/mods/index.php?mod=1490

Works ok for me even if it is still in an early phase :)


I know that mod but the website?? hosting?? Domain??



Website? Your forum (main menu "projects")

Hosting? Your forum hoster (also localhost for a local installation)

Domain? Same as your forum. You can see it in action also on my test-forum:

http://forum.michgeyer.de.

It is fully integrated in your forum, does not need seperate hosting like mantis (as an example).



My website about Sony Ericsson?? in Spanish too?? Using my little and ugly Hosting for this and my other projects?? I don't think so ;)

Let's just mention 2 little unimportant bugs I've encountered on SMF2.0RC1, theme Core, Yagam 1.1.6.2, IE7 :

1) When setting the announcements, I didn't touch the "permissions" at all (on the announcement create/edit page), and left them as default : guest off, regular members on, moderator off, admin off. I realised then that the announcements would only be visible by admins, but not by guests and regular members. So, I went back to edit the announcements, and checked all permissions "on". Guests, regular members, mods, admins. Now announcements are visible by everyone.

The procedure didn't make much sense (as "regular members" was already "on"), but at least it works now. Maybe this part needed an input/save to be initialized or write over a false, misleading "default" ?


2) On the menu : "Announcements" sends to the "add an announcement" panel. "Add an announcement" sends to the list of announcements. Again, doesn't really matter...


I will check the second bug
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on February 27, 2009, 05:47:49 PM
Hi everybody , I am working in the next release of YAGAM with:

- Sort Options based on the Same Topics Sort Options [DONE]
- Fixed bugs with the new url style [DONE]
- Cleaned the code on the messageindex and messageindex.template [DONE]
- Fixed some additional minor bugs [DONE]
- Added Support for Member Color Link Mod on MessageIndex [DONE]

- Who is viewing the Global Announcement Feature [Require a lot of Work and Code so maybe will not be implemented]

I just want to know if do you want any extra feature??

Thanks
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: drhamad on February 27, 2009, 06:14:15 PM
I'd really like the ability to make GA's with comments into regular threads when they're un-GA'd.  That's a major thing for me, as just because I no longer wish to announce something, it doesn't mean I want to eliminate the thread.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on February 27, 2009, 06:40:13 PM
I'd really like the ability to make GA's with comments into regular threads when they're un-GA'd.  That's a major thing for me, as just because I no longer wish to announce something, it doesn't mean I want to eliminate the thread.

That is pretty interesting , but pretty hard to do too. I can try but is not sure of this will be a feature.

- Announcement Log [DONE]
- Force Users to read a Global Announcement after Login [DONE]

I include that feature will be nice for some people.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: drhamad on February 27, 2009, 11:28:15 PM
Yes, it would be difficult, no question.  Much more useful though.

Also, here's something easier:  the ability to put the announcements at the top of the BoardIndex as well.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Özgür on February 28, 2009, 04:29:48 AM
Maybe..

+ Topic to Announcements or Announcement to Topic Converter..
+ Announcements comments like forum message or may be a bit more regular
+ SSI Function of Announcements like ssi_announcements($announcement_id) or Announcements list SSI function.
+ Announcements on the home page to show the selected (look Attachments.)
+ Pretty url support
+ Random Announcement link to index (like random news fade)
...
=))
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: edi67 on February 28, 2009, 09:27:19 AM
dont forget sticky topic ;)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on February 28, 2009, 06:41:54 PM
Maybe..

+ Topic to Announcements or Announcement to Topic Converter..
+ Announcements comments like forum message or may be a bit more regular
+ SSI Function of Announcements like ssi_announcements($announcement_id) or Announcements list SSI function.
+ Announcements on the home page to show the selected (look Attachments.)
+ Pretty url support
+ Random Announcement link to index (like random news fade)
...
=))


+ Require a lot of work
+ I don't think of this is necessary , there are just comments
+ I like this idea
+ Maybe or maybe not..
+ Nice idea too
+ You can put a news with the Announcement Url

Thanks

dont forget sticky topic ;)

This has been finished
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: fords8 on February 28, 2009, 07:46:26 PM
NIBOGO, nice to see you still adding to this mod. Looking forward to the next release.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Özgür on March 01, 2009, 12:06:53 AM
Thanks NIBOGO.

+ You can put a news with the Announcement Url
No, I do not talk about it.
I'm talking about a function, etc "random_announcement_link();"
This function randomly one at a time to display announcements. (In each refresh)
Only the announcement title is given to announcement link. (Not announcement body text.)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on March 02, 2009, 04:35:51 PM
Thanks NIBOGO.

+ You can put a news with the Announcement Url
No, I do not talk about it.
I'm talking about a function, etc "random_announcement_link();"
This function randomly one at a time to display announcements. (In each refresh)
Only the announcement title is given to announcement link. (Not announcement body text.)

I don't want to require the Announcements.php file to all the forum. Maybe as an Subs.php function but I'm not 100% sure about this one
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Yağız... on March 02, 2009, 05:00:09 PM
@Özgür,
Try to add this at the end of SSI.php(before ?>):
Code: [Select]
function ssi_random_announcement_link()
{
   global $smcFunc, $scripturl;
   $dbresult = $smcFunc['db_query']('', "
   SELECT id_announcement, enable, title
   FROM {db_prefix}announcements
   WHERE enable = '1'
   ORDER BY RAND()
   LIMIT 1");
   while ($row = $smcFunc['db_fetch_assoc']($dbresult))
   {
      echo '<a href="',$scripturl,'?action=announcements;aid=',$row['id_announcement'],'">',$row['title'], '</a>';
   }
   $smcFunc['db_free_result']($dbresult);
}
Add this where you want show announcement:
Code: [Select]
global $boarddir;
require_once($boarddir . '/SSI.php');
ssi_random_announcement_link();
I didn't try but it should be something like this.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on March 02, 2009, 05:50:19 PM
wow with SSI , Sweet!

I can include that in the YAGAM Package??
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Yağız... on March 02, 2009, 06:15:46 PM
Why not :)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on March 02, 2009, 09:06:06 PM
Random Announcement and Load Announcement are now SSI Functions
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: shumilica on March 03, 2009, 01:45:52 AM
Hello. Just installed the mod, works fine for default theme but i have another theme that i use (vogue (http://custom.simplemachines.org/themes/index.php?lemma=1236) ) and it is a bit different. I can't figure it out how to modify it...
Can you, nibogo, give a little help, or somebody else that has knowledge of php...?
Thanks in advance!


Oh... and if anybody needs Romanian translation for YAGAM I will attach it here. Nibogo, if you want you can put it in the package  :)
And modifications.romanian.php:
Code: [Select]
// YAGAM - Admin and MessageIndex Strings
$txt['yagam_admin'] = 'Anunturi Globale';
$txt['yagam_topics'] = 'Topicuri Normale';
$txt['yagam_created'] = 'Creat:';
$txt['whoall_announcements'] = 'Vizualizeaza un Anunt Global';
$txt['permissionname_yagam_manage'] = 'Manage Global Announcements';
$txt['permissionhelp_yagam_manage'] = 'Sets if the user can manage the global announcements.';
$txt['permissionname_yagam_comment'] = 'Comment Global Announcements';
$txt['permissionhelp_yagam_comment'] = 'Sets if the user can comment the global announcements of allow comments.';
$txt['yagam_edit2'] = 'Editeaza';
$txt['yagam_edit'] = 'Editeaza anuntul';
$txt['yagam_remove'] = 'Sterge Anuntul';
$txt['yagam_remove2'] = 'Sterge';
$txt['yagam_admin_add'] = 'Adauga un Anunt Global';
$txt['announcement_no_permission'] = 'Nu aveti permisiunea de a vizualiza acest anunt global';


UPDATE:

NEVERMIND! I was able to change it and now looks good. If somebody needs it:

After this
Code: [Select]
// If this person can approve items and we have some awaiting approval tell them.
if (!empty($context['unapproved_posts_message']))
{
echo '
<tr class="windowbg2">
<td colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '" class="smalltext headerpadding">
<span style="color: red;">!</span> ', $context['unapproved_posts_message'], '
</td>
</tr>';
}

Put this code provided by Nibogo in the first place. So I only modified the place it should go in this theme (it looks the same!)
Code: [Select]
// YAGAM starts here with the announcement bar, normal bar and the windowclass
$announcement_bar = false;
        $normal_bar = false;
$windowclass = "windowbg";     

       foreach($context['announcements']  as $announcement)
   {        
// Ok , I have permission to see this??
$pGroups = explode(',',$announcement['permissions']);
        $announcement_permission = count(array_intersect($user_info['groups'], $pGroups)) == 0 ? false : true;

// Lets check if the announcement can be shown in this board
$pBoards = explode(',', $announcement['id_boards']);
foreach ($pBoards as $board_announcement)
{    

// Lets Add the Global Announcement Bar only with the permission and the board = 0 or current board
if ((ltrim($board_announcement) == $board_info['id'] || $announcement['id_boards'] == 0) && ($announcement_permission == true || $context['user']['is_admin']) && !$announcement_bar){
            echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '" style="padding:8px 4px;"><b>'.$txt['yagam_admin'].'</b></td></tr>';
            $announcement_bar = true;
            }

// You can see this if you have permission and the ga is enable or you are the admin
                if ((ltrim($board_announcement) == $board_info['id'] || $announcement['id_boards'] == 0) && ($announcement_permission == true || $context['user']['is_admin']))
                {
echo '
<tr class="windowbg2">
<td class="windowbg2 icon1">
<img src="', $settings['images_url'], '/topic/normal_post.gif" alt="" />
</td>
<td class="windowbg2 icon2">
<img src="', $settings['images_url'], '/post/exclamation.gif" alt="" />
</td>
<td  class="subject ', $windowclass, '">
<a href="',$scripturl,'?action=announcements;aid=',$announcement['id_announcement'],'">',$announcement['title'], '</a><br />
</td>
<td class="windowbg2 starter">
<a href="'.$scripturl.'?action=profile;u=',$announcement['author'], '">',$announcement['real_name'], '</a>
</td>
<td class="windowbg replies">';
if ($announcement['can_comment'] == '1')
echo''.$announcement['comment_total'].'';
else
    echo'--';
echo'</td>
<td class="windowbg views">
',$announcement['views'], '
</td>
<td class="windowbg2 lastpost">
'.$txt['yagam_created'].' : ',timeformat($announcement['date']), '
</td>';
if (allowedTo('yagam_manage') && !empty($options['display_quick_mod']))
echo '<td class="windowbg2 moderate"><a href="',$scripturl,'?action=announcements;sa=edit;id=',$announcement['id_announcement'],'" title="'.$txt['yagam_edit'].'"><img src="'.$settings['images_url'].'/buttons/modify.gif" alt="',$txt['yagam_edit2'], '"></a>
<a href="',$scripturl,'?action=announcements;sa=deleteverify;id=',$announcement['id_announcement'],'" title="'.$txt['yagam_remove'].'"><img src="'.$settings['images_url'].'/buttons/delete.gif" alt="',$txt['yagam_remove2'], '"></a>
</td>';
echo'</tr>';

// Alternate the style class
                if (!empty($windowclass) && $windowclass == "windowbg")
                  $windowclass = "windowbg2";
                else
                  $windowclass = "windowbg";                   
}

}
}
// The Normal Bar
            if($announcement_bar && !$normal_bar){
            echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '" style="padding:8px 4px;"><b>'.$txt['yagam_topics'].'</b></td></tr>';
            $normal_bar = true;
            }
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Özgür on March 03, 2009, 01:59:49 AM
Thanks Yağız But not work.
Unknown column 'a.enable' in 'where clause'
Dosya: /home/rockayse/public_html/rk/SSI.php
I change "a.enable" to "enable" work now.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Yağız... on March 03, 2009, 04:16:51 AM
Ah sorry, I had to delete it but I forgot. Thanks for the fix.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Xepernas on March 03, 2009, 09:30:59 AM
NEVERMIND! I was able to change it and now looks good. If somebody needs it

Thanks a huge lot, Shumilica. You've just unlocked Yagam for a wide array of babylon-based themes (Slick Blue, Black day, New Babylon 2, etc), that were until now incompatible - at least to us non-techs who had no idea where to paste the Yagam code.

I still have a tiny issue with that solution though, that may be related (or not) to the fact you were not using SMF2 RC1 : In the Global Announcements zone, the "hot topic", "subject icon", "replies count" and "views count" are aligned to the left of their respective columns, unlike their Normal Topics counterparts (that are generally centered). Do you have an idea on how to correct this ? Or could anybody else tell ?


Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on March 03, 2009, 06:16:49 PM
Thanks shumilica for the translation :)

I need someone with a nice level of english because You know my english sucks and I want to check the English strings , anybody can help me with that??
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: shumilica on March 03, 2009, 07:25:07 PM
NEVERMIND! I was able to change it and now looks good. If somebody needs it
I still have a tiny issue with that solution though, that may be related (or not) to the fact you were not using SMF2 RC1 : In the Global Announcements zone, the "hot topic", "subject icon", "replies count" and "views count" are aligned to the left of their respective columns, unlike their Normal Topics counterparts (that are generally centered). Do you have an idea on how to correct this ? Or could anybody else tell ?

Yes, I didn't noticed that when I posted the message, so please select all the code from above and replace it with this:
Code: [Select]
// YAGAM starts here with the announcement bar, normal bar and the windowclass
$announcement_bar = false;
        $normal_bar = false;
$windowclass = "windowbg";    

       foreach($context['announcements']  as $announcement)
   {       
// Ok , I have permission to see this??
$pGroups = explode(',',$announcement['permissions']);
        $announcement_permission = count(array_intersect($user_info['groups'], $pGroups)) == 0 ? false : true;

// Lets check if the announcement can be shown in this board
$pBoards = explode(',', $announcement['id_boards']);
foreach ($pBoards as $board_announcement)
{    

// Lets Add the Global Announcement Bar only with the permission and the board = 0 or current board
if ((ltrim($board_announcement) == $board_info['id'] || $announcement['id_boards'] == 0) && ($announcement_permission == true || $context['user']['is_admin']) && !$announcement_bar){
            echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '" style="padding:8px 4px;"><b>'.$txt['yagam_admin'].'</b></td></tr>';
            $announcement_bar = true;
            }

// You can see this if you have permission and the ga is enable or you are the admin
                if ((ltrim($board_announcement) == $board_info['id'] || $announcement['id_boards'] == 0) && ($announcement_permission == true || $context['user']['is_admin']))
                {
echo '
<tr class="windowbg2">
<td class="windowbg2 icon1">
<img src="', $settings['images_url'], '/topic/normal_post.gif" alt="" />
</td>
<td class="windowbg2 icon2">
<img src="', $settings['images_url'], '/post/exclamation.gif" alt="" />
</td>
<td  class="subject ', $windowclass, '">
<a href="',$scripturl,'?action=announcements;aid=',$announcement['id_announcement'],'">',$announcement['title'], '</a><br />
</td><td class="windowbg replies">';
if ($announcement['can_comment'] == '1')
echo''.$announcement['comment_total'].'';
else
    echo'--';
echo'</td>

<td class="windowbg2 starter">
<a href="'.$scripturl.'?action=profile;u=',$announcement['author'], '">',$announcement['real_name'], '</a>
</td>
<td class="windowbg views">
',$announcement['views'], '
</td>
';

echo'
<td class="windowbg2 lastpost">
'.$txt['yagam_created'].' : ',timeformat($announcement['date']), '
</td>';
if (allowedTo('yagam_manage') && !empty($options['display_quick_mod']))
echo '<td class="windowbg2 moderate"><a href="',$scripturl,'?action=announcements;sa=edit;id=',$announcement['id_announcement'],'" title="'.$txt['yagam_edit'].'"><img src="'.$settings['images_url'].'/buttons/modify.gif" alt="',$txt['yagam_edit2'], '"></a>
<a href="',$scripturl,'?action=announcements;sa=deleteverify;id=',$announcement['id_announcement'],'" title="'.$txt['yagam_remove'].'"><img src="'.$settings['images_url'].'/buttons/delete.gif" alt="',$txt['yagam_remove2'], '"></a>
</td>';
echo'</tr>';

// Alternate the style class
                if (!empty($windowclass) && $windowclass == "windowbg")
                  $windowclass = "windowbg2";
                else
                  $windowclass = "windowbg";                   
}

}
}
// The Normal Bar
            if($announcement_bar && !$normal_bar){
            echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '" style="padding:8px 4px;"><b>'.$txt['yagam_topics'].'</b></td></tr>';
            $normal_bar = true;
            }
It should work... for me it works and I use RC1, but the theme is for 2.0beta4

Nibogo, do you want somebody to check the texts or the coding so that it will be in perfect english? :-?
One question, i saw somebody talking about an option to force people who enter the forum to read the global announcement, will this be implemented in the next version? ;;)

Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on March 03, 2009, 07:48:01 PM
Yep I say that and has been implemented for the next version.

I need a native english person to check the texts ;)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: 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
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: 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.

 :) :) :)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: AlenNS on March 04, 2009, 07:17:26 PM
I'm getting this error:

Quote
Apply Filter: Only show the error messages of this URL  http://www.baklja.com/forum/index.php?board=1.0 (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.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on March 04, 2009, 07:21:23 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 :)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Ö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)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on March 04, 2009, 08:21:28 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 :)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: AlenNS on March 04, 2009, 09:54:06 PM
NIBOGO did you look at my problem?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: 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.

NIBOGO did you look at my problem?

What are the modifications of you do??
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Joomlamz on March 05, 2009, 01:10:28 AM
well done
 update portuguese_pt and portuguese_brazilian
Utf8

Code: [Select]
<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>


Code: [Select]
<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>
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: shumilica on March 05, 2009, 06:31:32 AM
Ok, here is the romanian translation.
I attached the anouncements.romanian.php and below is the modification from install.xml

modifications.romanian.php
Code: [Select]
<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>
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: fotografo74 on March 05, 2009, 11:58:07 AM

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
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: drhamad on March 05, 2009, 01:32: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.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: AlenNS on March 05, 2009, 01:45:07 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.

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 ]
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: drhamad on March 05, 2009, 01:51:02 PM
uh wow, that's a bit much
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Xepernas on March 05, 2009, 04:19:23 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.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: AlenNS on March 05, 2009, 06:49:53 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
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: 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:
Code: [Select]
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..?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on March 06, 2009, 12:50:16 PM
Thanks joomlamz and Shumillica , I will include brazilian , portuguese and romanian in the next revision


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

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

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:
Code: [Select]
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 ;)

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
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Lady Night Owl on March 06, 2009, 01:23:57 PM
 :) Great job on this, but I'm getting some errors...

Code: [Select]
/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:

Code: [Select]
/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)

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

 ???
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on March 06, 2009, 01:27:10 PM
My Mod doesn't support the rate that topic mod ;)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Lady Night Owl on March 06, 2009, 01:39:25 PM
True. Still get the other errors without it ;)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on March 06, 2009, 01:45:48 PM
True. Still get the other errors without it ;)

Yeah I know , but the messageindex error happend for the Rate that topic mod
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Lady Night Owl on March 06, 2009, 04:06:34 PM
No because even with the rate that topic mod uninstalled, I still get the same error when I edit an announcement from the message index.

I think the rate that topic mod clashed with your mod as far as the template - an aesthetic irritant only, it wasn't generating errors in the log.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: AlenNS on March 06, 2009, 05:03:56 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
Thank you. :)

I've solved problem with Rate it mod. You have to manually add <td class="windowbg2 rating">
                  ',$announcement['rating'], '
               </td>
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: pariofdreamz on March 06, 2009, 06:39:10 PM
Please Make it Compatible with 1.1.8 :(
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: drhamad on March 06, 2009, 06:43:47 PM
Please Make it Compatible with 1.1.8 :(

There's already a 1.1.8 GA mod.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: pariofdreamz on March 06, 2009, 06:54:09 PM
i know but i don't like that one as it doesn't work properly with my site
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Özgür on March 06, 2009, 07:37:06 PM
This is turkish translations for Rev4
Modifications.turkish.php add line
Code: [Select]
// YAGAM - Admin and MessageIndex Strings - Çeviri rocKayseri
$txt['yagam_admin'] = 'Genel Duyurular';
$txt['yagam_sticky_bar'] = 'Önemli Konular';
$txt['yagam_topics'] = 'Normal Konular';
$txt['yagam_created'] = 'Oluşturulma';
$txt['yagam_remove_verify'] = 'Bu duyuruyu silmek istediğinize emin misiniz?';
$txt['whoall_announcements'] = 'Genel Duyururulari görebilir';
$txt['permissionname_yagam_manage'] = 'Genel duyurulari yönetebilir';
$txt['permissionhelp_yagam_manage'] = 'Bunu seçerseniz üyeler genel duyurulari düzenleyebilirler.';
$txt['permissionname_yagam_comment'] = 'Genel duyurulara yorum ekleyebilir';
$txt['permissionhelp_yagam_comment'] = 'Bu izin üyelerin genel duyurulara yorum yapabilmelerini sağlar.';
$txt['yagam_edit2'] = 'Düzenle';
$txt['yagam_edit'] = 'Duyuruyu Düzenle';
$txt['yagam_remove'] = 'Duyuruyu Sil';
$txt['yagam_remove2'] = 'Sil';
$txt['yagam_admin_add'] = 'Genel Duyuru Ekle';
$txt['yagam_admin_settings'] = 'Genel Duyuru Ayarları';
$txt['yagam_version'] = 'Genel Duyuru Sürüm';
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on March 06, 2009, 07:39:39 PM
i know but i don't like that one as it doesn't work properly with my site

You can upgrade to SMF 2.0 RC1 or Wait the final release.

I will NOT make this mod for SMF 1.1.8
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Özgür on March 06, 2009, 08:14:35 PM
NIBOGO you should be change prettyurls-filters.php.
yagam filter should be
Code: [Select]
// YAGAM Filter
function pretty_yagam_filter($urls)
{
   global $boardurl, $scripturl;

   // Let's Add Announcements
   $pattern = '~' . $scripturl . '(.*)action=announcements;aid=([^;]+)~S';
   $replacement = $boardurl . '/announcements/$2/$3';
   $replacement .= (strpos($replacement, '?') === false ? '?' : ';') . (isset($PHPSESSID[0]) ? $PHPSESSID[0] : '') . ';' . (isset($sesc[0]) ? $sesc[0] : '') . (isset($fragment[0]) ? $fragment[0] : '');
   foreach ($urls as $url_id => $url)
      if (!isset($url['replacement']))
         if (preg_match($pattern, $url['url']))
            $urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);  
   return $urls;
}

This line
Code: [Select]
$replacement .= (strpos($replacement, '?') === false ? '?' : ';') . (isset($PHPSESSID[0]) ? $PHPSESSID[0] : '') . ';' . (isset($sesc[0]) ? $sesc[0] : '') . (isset($fragment[0]) ? $fragment[0] : '');
- announcements edit, delete or some links seem like "same" and not work (if we enable announcements filter)
And
.../announcements/;sa=edit;aid=6 not work
.../announcements/?sa=edit;aid=6 work fine.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Lady Night Owl on March 06, 2009, 08:41:46 PM

I've solved problem with Rate it mod. You have to manually add <td class="windowbg2 rating">
                  ',$announcement['rating'], '
               </td>

Sweet, which file though and where do I add it? MessageIndex.template.php? Thanks!
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: AlenNS on March 08, 2009, 10:56:59 AM
Sorry, I forgot to write that.  :-[ :)

Yes, in MessageIndex.template.php

Code: [Select]
// You can see this if you have permission and the ga is enable or you are the admin
                if ((ltrim($board_announcement) == $board_info['id'] || $announcement['id_boards'] == 0) &&
($announcement_permission == true || $context['user']['is_admin']))
                {
echo '
<tr class="windowbg2">
<td class="windowbg2 icon1">
<img src="', $settings['images_url'], '/topic/normal_post.gif" alt="" />
</td>
<td class="windowbg2 icon2">
<img src="', $settings['images_url'], '/post/exclamation.gif" alt="" />
</td>
<td  class="subject ', $windowclass, '">
<b><a href="',$scripturl,'?action=announcements;sa=view;id=',$announcement['id_announcement'],'">',
$announcement['title'], '</a></b><br />
</td>
<td class="windowbg2 rating">
',$announcement['rating'], '
</td>
<td class="windowbg2 starter">
<a href="'.$scripturl.'?action=profile;u=',$announcement['author'], '">',$announcement['real_name'], '</a>
</td>
<td class="windowbg replies">';
if ($announcement['can_comment'] == '1')
echo''.$announcement['comment_total'].'';
else
    echo'--';
echo'</td>
<td class="windowbg views">
',$announcement['views'], '
</td>
<td class="windowbg2 lastpost">
'.$txt['yagam_created'].': ',timeformat($announcement['date']), '
</td>';
if (allowedTo('yagam_manage') && !empty($options['display_quick_mod']))
echo '<td class="windowbg2 moderate"><a href="',$scripturl,'?action=announcements;sa=edit;id=',
$announcement['id_announcement'],'" title="'.$txt['yagam_edit'].'"><img
src="'.$settings['images_url'].'/buttons/modify.gif" alt="',$txt['yagam_edit2'], '"></a>
<a href="',$scripturl,'?action=announcements;sa=deleteverify;id=',$announcement['id_announcement'],'"
title="'.$txt['yagam_remove'].'"><img src="'.$settings['images_url'].'/buttons/delete.gif" alt="',
$txt['yagam_remove2'], '"></a>
</td>';
echo'</tr>';
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: edi67 on March 08, 2009, 12:26:38 PM
Great work NIBOGO, i installed REV4 everything seems to be ok, i love the Sticky function as you promised, all ok perfect for now, i will check future error log if there will be.

Perfect work GRAZIE NIBOGO i will attach italian translation soon. ;)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on March 08, 2009, 12:55:09 PM
ozgur remember that the rev4 is an alpha version and have a lot of bugs

Great work NIBOGO, i installed REV4 everything seems to be ok, i love the Sticky function as you promised, all ok perfect for now, i will check future error log if there will be.

Perfect work GRAZIE NIBOGO i will attach italian translation soon. ;)

Glad to hear that :)

No because even with the rate that topic mod uninstalled, I still get the same error when I edit an announcement from the message index.

I think the rate that topic mod clashed with your mod as far as the template - an aesthetic irritant only, it wasn't generating errors in the log.

Obviouslly I was talking about the template issue ;)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: edi67 on March 09, 2009, 11:01:12 AM
hi NIBOGO this is the only one error that i see in error log for now:

Code: [Select]
8: Undefined variable: stickybar
File: /home/crazyzone/data/www/crazyzone.biz/Themes/default/MessageIndex.template.php (main sub template - eval?)
Riga: 319

Message.index.template.php
Quote
         // 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>'.$txt['yagam_sticky_bar'].'</b></td></tr>';

i wrote in bold the line 319


well may be the solution is add this :    $stickybar = false;
 before:            foreach($context['topics'] as $topic)

begin in this way:
Code: [Select]
$stickybar = false;
            foreach($context['topics'] as $topic)

but i found another little error:

if you have announcement, sticky topic and normal topic the bar is visible and ok
if you have announcement and normal topic the bar is visible ok
but if you have sticky topic and normal topic WITHOUT annuncenement the bar between Stiky/normal topic is not present , not visible
you can correct this and make the bar visible too

thx friend
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Lady Night Owl on March 09, 2009, 04:53:53 PM
Hmm, can't view announcements at all now.

Yes, they are enabled and yes the permissions are all set.

I get this error.

Code: [Select]
/index.php?action=announcements;sa=view;id=1
8: Undefined index: announcement_no_selected
File: /Sources/Errors.php
Line: 193
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on March 09, 2009, 06:12:45 PM
Hmm, can't view announcements at all now.

Yes, they are enabled and yes the permissions are all set.

I get this error.

Code: [Select]
/index.php?action=announcements;sa=view;id=1
8: Undefined index: announcement_no_selected
File: /Sources/Errors.php
Line: 193

You should change the id=1 to aid=1

I have fixed that bug in the last release


@edi67: I will fix all that bugs for the next release , you know of that is an alpha version so you have errors everywhere. I have to work on a lot of mods so be patient everybody I hope release the RC1 the next week ;)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: AlenNS on March 09, 2009, 06:33:46 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
Thank you. :)
Hi, NIBOGO, did you look at my problem? :)
If not, I hope you will have some time soon. :)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on March 09, 2009, 06:46:35 PM
I have not time yet , be patient
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on March 10, 2009, 09:57:26 PM
YAGAM have a new Issue Tracker:

http://en.hackspark.com/index.php?project=3

Please report anything you find ^^
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: drhamad on March 11, 2009, 10:46:33 PM
NIBOGO, I'm noticing this in my error log:
Quote
http://www.taurusdrivers.com/index.php?action=admin;area=logs;sa=errorlog;desc
8: Undefined index: yagam_admin_add
File: /home/ffc/public_html/Sources/Admin.php
Line: 308
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on March 12, 2009, 02:55:19 PM
NIBOGO, I'm noticing this in my error log:
Quote
http://www.taurusdrivers.com/index.php?action=admin;area=logs;sa=errorlog;desc
8: Undefined index: yagam_admin_add
File: /home/ffc/public_html/Sources/Admin.php
Line: 308

Thanks ^^
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: drhamad on March 12, 2009, 02:58:12 PM
By the way, this is line 308 (the admin => line):
Code: [Select]
                    'subsections' => array(
                                            'add' => array($txt['yagam_admin'], 'admin_forum'),
                                                'admin' => array($txt['yagam_admin_add'], 'admin_forum'),                                  $
                                        ),
                                ),
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on March 14, 2009, 07:35:42 PM
Here we go the YAGAM v2.0 RC1 Version!!

What is New??

I have finished a lot of things specially bug fixing  :D also I have looked all the code so I clean the code a little bit also I have added a new file Subs-Announcements.php now the mod should be running a little bit faster and better , also the Manual Edit has been optimized now is simpler than the YAGAM rev4 with the yagam_manual_edit.html and db_yagam.php you can install this mod without troubles obviouslly is better with the package manager. The RC1 has included the romanian and turkish languages also the languages installation are in the languages.xml file and the install.xml have the other part of the installation.

I can use the RC1 Version??

Remember this is not a stable version , this version is for beta testers!!

What will come in the next release??

Well , I want to add support for the Social Bookmarks Mod and the most important thing is bug fixing , any additional idea is more than welcome




I hope of you enjoy this new version all the bugs and features can be reported here:

http://en.hackspark.com/index.php?project=3 (http://en.hackspark.com/index.php?project=3)

I want of you guys try this version and report me anything to have a final version soon  :)

Regards
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Yağız... on March 14, 2009, 08:07:29 PM
Undefined offset: 511 in Announcements.template.php ~ on line 141:
Code: [Select]
<a href="', $context['announcement']['author']['website']['url'], '" title="' . $context['announcement']['author']['website']['title'] . '" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $txt[515] . '" border="0" />' : $txt[515]), '</a>';$txt[515] should be $txt['www']




Undefined variable: context in Announcements.php ~ on line 211
Code: [Select]
redirectexit('action=admin;area=announcements;sa=admin;sesc='.$context['session_id'].'');You should add $context in globals.




Undefined index:  can_comment in Announcements.php ~ on line 175
This happens when you don't choose can_comment option.




Undefined index:  boards in Announcements.php ~ on line 339
Edit an announcement. Don't choose any board. You'll see in the error log what happens ;)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on March 14, 2009, 08:53:49 PM
All that bugs has been fixed :)

Thanks for report
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: edi67 on March 15, 2009, 08:05:59 AM
everything seems to be ok NIBOGO but there is one problem:

Admin can view the Manage announcement menu ( look 1 screenshot)
but other membergroups enabled to MANAGE announcements cannot view it ( look 2° screenshot)

you can fix this? only admin can manage , other membergropus ENABLED cannot, because the menu is not visible.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: drhamad on March 26, 2009, 03:43:05 PM
Any update on 2.0, Nibogo?  I'm still running 1.1.6.2 and pretty much the only errors I get in my error log from my forum now are due to YAGAM.  Not a big deal, functionally, but I hate to see the error log fill up ;)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on March 26, 2009, 06:59:05 PM
Any update on 2.0, Nibogo?  I'm still running 1.1.6.2 and pretty much the only errors I get in my error log from my forum now are due to YAGAM.  Not a big deal, functionally, but I hate to see the error log fill up ;)

I am working on some tricky bugs, actually I have the SMF Affiliates Mod v2.0 too and a lot of others things to do, I hope to release the final version soon
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: drhamad on March 26, 2009, 09:15:56 PM
Thanks!
Title: YAGAM v2.0 RC2 RELEASED!!
Post by: Nibogo on April 13, 2009, 02:21:25 PM
Hi Folks!

Currently I had a lot of work (recently I release a total new version of the SMF Affiliates Mod) plus the last week I can't do to much for SM.org but today I take sometime to make some mods, I submit the new package of the New SMF Topic Prefix Mod for SMF 2.0 RC1 (Awaiting Approval) and I work in YAGAM v2.0 the RC1 was released a month ago but now:

The YAGAM v2.0 RC2 Has Been Released!

I try to fix all the bugs of you guys are reported, maybe I left some bugs if I did it please report anything you find, the new version has something of a lot of people has been asking since the creation of the v1, now you can convert your announcements into topic you select the board and if the topic is locked and sticky. The announcements comments CAN'T be converted in posts.

Remember the YAGAM v2.0 RC2 is only for BETA TESTERS, You can use this version in your live forum (Don't have fatal bugs) but can have some bugs  :P

The new package have a lot of errors in the english strings (my english sucks) but I will look for someone of can help me with that.

For the next release I will fix more bugs and I will verify and re-code the Announcements.php file to make it faster and better, new features are always welcome!

The Package can be downloaded here:

http://custom.simplemachines.org/mods/index.php?mod=1617 (http://custom.simplemachines.org/mods/index.php?mod=1617)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Sudhakar Arjunan on April 14, 2009, 03:47:13 AM
That's a good update NIBOGO.

Looking for stable version of it.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on April 14, 2009, 07:11:41 PM
That's a good update NIBOGO.

Looking for stable version of it.

Glad you like it!

For the stable version I really need your cooperation, I can't find all the bugs, please report all the bugs.

The YAGAM v2.0 RC3 is in development but currently I am in the 90% of the job, all the code has been checked and re-wroted, There is no difference in lines between RC3 and RC2 in the Announcements.php file, but the code is a lot better also the errors structure has been changed I delete all the redirects and I add php errors, also the YAGAM Settings has been changed, now we are using the SMF Core Settings structure :)

In the Announcements.template.php there is a big difference in lines and structure :)

Right now I am finishing some little things, I hope to release the new version soon, after the RC3 the mod will be features frozed, I will check and fix all the bugs and them release a final version
Title: Yet Another Global Announcements Mod v2.0 RC3 RELEASED!!
Post by: Nibogo on April 17, 2009, 10:49:59 PM
YAGAM v2.0 RC3 HAS BEEN RELEASED!!

I spend a lot of time today doing all the final details and is now finished, I know of I release the last version a week ago, but I spent a lot of time in this 4 days and I make the new and final Release Candidate (the next version will be the final)

Changes:What will be changed for the Final Release??

Now the mod is "featured frozed", in the last two version I implemented new and awesome features also I re-code all the files so now is time to search and destroy all the bugs, the next version will be YAGAM v2.0 Final, so I need a stable, powerful and clean version, please report all the bugs you found, your help is important for YAGAM. The english files will be checked and re-writed, I need the help of a native english speaker available to verify and correct all the strings but this will be needed when I finish all the code so is not neccesary right now.

When will be released the final version??

"Will be released when it's ready" right now I don't know when Will be released, I will ask for some beta testers in the next month.

NIBOGO I love the mod how I can help you?

YAGAM is totally free, you don't have to pay anything to use this mod or receive support, but you can support the developers, in the YAGAM Admin panel, you can go to the YAGAM Version tab and donate using the paypal link.

Regards
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Özgür on April 18, 2009, 12:20:11 AM
Im currently used rc2 and i try to update.
Unknown column 'ac.modified_name' in 'field list'
File: ./Sources/Announcements.php
Line: 532

Seems in article edit submit and article page.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: edi67 on April 18, 2009, 03:07:17 AM
Im currently used rc2 and i try to update.
Unknown column 'ac.modified_name' in 'field list'
File: ./Sources/Announcements.php
Line: 532

Seems in article edit submit and article page.

Same problem for me Nibogo
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on April 18, 2009, 09:30:54 PM
Please try uninstalling that mod and installing this new one

Or just run this db_yagam.php in your forum
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: sombra on April 18, 2009, 10:41:48 PM
mm im interested in this mod for my live forum but i have read its beta still what are the chances that i install and will hace problems in the future?

por que ala verdad yo no se nada de php hehe y me gustaria saber la opinion de lso ke si saben xD
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on April 18, 2009, 11:15:44 PM
mm im interested in this mod for my live forum but i have read its beta still what are the chances that i install and will hace problems in the future?

por que ala verdad yo no se nada de php hehe y me gustaria saber la opinion de lso ke si saben xD

Use the YAGAM v1.1.6.2 is the current stable version
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: sombra on April 19, 2009, 12:03:54 AM
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

15.     Execute Modification     ./Sources/Admin.php     Test failed
      1.    Add After    ./Sources/Admin.php    Test failed

got a problem there

and other thing i have a custom theme i need to make aditional editing ?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: edi67 on April 19, 2009, 03:49:55 AM
Please try uninstalling that mod and installing this new one

Or just run this db_yagam.php in your forum

Done and 2 bugs always

1* BUGS
http://www.simplemachines.org/community/index.php?topic=292270.msg1976507#msg1976507

Strangely my Global Mod can go there (where admin can manage annoucement):
http://crazyzone.biz/index.php?action=admin;area=announcements;sa=admin;
but not VIEW the comand for manage as i noticed in topic above

Found solution for this bug:
this part of modification in Admin.php:
Code: [Select]
  'subsections' => array(
    'admin' => array($txt['yagam_admin'], 'admin_forum'),
    'add' => array($txt['yagam_admin_add'], 'admin_forum'),
                        'settings' => array($txt['yagam_admin_settings'], 'admin_forum'),
                        'version' => array($txt['yagam_version'], 'admin_forum'),

Must be  changed in that for have effect and show the menu too at the users groups enabled ;):
Code: [Select]
  'subsections' => array(
    'admin' => array($txt['yagam_admin'], 'yagam_manage'),
    'add' => array($txt['yagam_admin_add'], 'yagam_manage'),
                        'settings' => array($txt['yagam_admin_settings'], 'yagam_manage'),
                        'version' => array($txt['yagam_version'], 'yagam_manage'),

2* BUGS
If  i click button MAKE TOPIC (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcrazyzone.biz%2FThemes%2Fdefault%2Fimages%2Fbuttons%2Fim_reply_all.gif&hash=5f8b9e393bbd79df6f0e745cb4003b2f) in one of my announcement, appear this error:

The database value you're trying to insert does not exist: announcement_id
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on April 19, 2009, 09:22:03 AM
@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
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Özgür on April 19, 2009, 01:09:08 PM
And users can't seem announcements

8: Undefined index: announcement_no_permission
File: ./Sources/Errors.php
Line: 193
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: edi67 on April 20, 2009, 04:47:32 PM
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

Code: [Select]
<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.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: NukeGaming 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.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on April 20, 2009, 06:44:33 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
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: drhamad on April 22, 2009, 11:46:25 PM
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:
Code: [Select]
                       // 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:
Code: [Select]
                        // 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;
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: sombra on April 29, 2009, 01:29:28 AM
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
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Twenty6 on May 02, 2009, 09:40:51 AM
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 .. :-[
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on May 02, 2009, 09:51:17 AM
You don't edit the modifications.language.php file
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Twenty6 on May 02, 2009, 12:07:12 PM
YES, thank you
In my language file i was missing some parts
Thanks,
Great mod Working perfect for me.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: 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?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on May 02, 2009, 08:21:31 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 ;)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: mattchewone on May 03, 2009, 04:58:59 AM
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
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: mattchewone on May 06, 2009, 04:37:44 PM
Are you able to tell me what i need to change in order to get this to work?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.6 RELEASED!!]
Post by: Nibogo on May 06, 2009, 07:58:08 PM
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
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7 RELEASED!!]
Post by: 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.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7 RELEASED!!]
Post by: edi67 on May 07, 2009, 06:19:22 PM
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 
Code: [Select]
Unknown table 'm' in field list
File: /home/crazyzone/data/www/crazyzone.biz/Sources/MessageIndex.php
Riga: 763
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Nibogo on May 07, 2009, 07:25:58 PM
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
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: mattchewone on May 08, 2009, 06:08:31 PM
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
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: candidosa2 on May 09, 2009, 07:30:50 AM
thank you
when update linguage dont forget portuguese

Code: [Select]
<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>
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: edi67 on May 09, 2009, 03:26:47 PM
Well seems to be ok now, but one little bug and one question.

when i try to edit one announcements directly under messageindex appear me this error:

Code: [Select]
8: Undefined index: announcement_no_selected
File: /home/crazyzone/data/www/crazyzone.biz/Sources/Errors.php
Line: 193

i can edit announcemente only from Admin announcements panel.

and again function for add announcement as topic in one section there isn't?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Nibogo on May 09, 2009, 03:44:58 PM
@candidosa2: Thanks buddy, I will add portuguese in the next version

The function for convert announcements in topics is only available in 2.0 RC3

Well seems to be ok now, but one little bug and one question.

when i try to edit one announcements directly under messageindex appear me this error:

Code: [Select]
8: Undefined index: announcement_no_selected
File: /home/crazyzone/data/www/crazyzone.biz/Sources/Errors.php
Line: 193

i can edit announcemente only from Admin announcements panel.

and again function for add announcement as topic in one section there isn't?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: edi67 on May 10, 2009, 03:01:34 PM
And Also there isn't anymore option for bar of  sticky topic ?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Nibogo on May 10, 2009, 10:27:58 PM
And Also there isn't anymore option for bar of  sticky topic ?

There is in the 2.0 RC3
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: mattchewone on May 17, 2009, 10:28:03 AM
Getting this error when installing

   1.   Execute Modification   ./index.php   Test failed
   1.   Replace   ./index.php   Test failed
   2.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
   3.   Execute Modification   ./Sources/MessageIndex.php   Test failed
   1.   Add After   ./Sources/MessageIndex.php   Test failed
   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
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Nibogo on May 17, 2009, 11:17:09 AM
Try the manual edit in all the files with installation errors
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Nibogo on May 19, 2009, 07:31:02 PM
For those of are asking about the YAGAM 2.0, I will tell what is going on with that release.

Currently I am working in the last feature for the mod, End Date, the announcements will expire after a selected date obviouslly this is totally optional, maybe I don't include that feature in the final release but I will try to do it. I have fixed more than 20 bugs since the last release also I am working in the optimization of the mod, now the Announcement's View is using other file called "AnnouncementsView" so now the announcements are a lot faster, I will try to add the end date feature but I am not sure about it so the final release can be finished in two weeks.

Regards
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: mattchewone on May 20, 2009, 04:03:52 PM
Nibogo, will YAGAM be displayed as it should do with the "Separate Normal & Sticky Topics"?

I will do the Manual edits over the weekend hopefully if all goes well. Thank you

Matt
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Nibogo on May 20, 2009, 05:49:28 PM
the RC4 have that feature but there is a error with the strings, check the YAGAM settings
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: mattchewone on May 23, 2009, 09:57:38 AM
Clicked on install in package manager with the errors so i could then correct them with manual edits, as soon as i clicked on the install it came up with this error -

Parse error: syntax error, unexpected T_VARIABLE in /home/matthew09/SMF/www/index.php on line 1

I still done all the correct manual edits and i still have this problem, what could it be?

Matt
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: mattchewone on May 25, 2009, 10:31:48 AM
Hi Nibogo,

I have fixed this now, but i am getting a conflict with Seperate normal and sticky topics. It makes the global announcements show up twice, and i get normal topic header display twice.

Can you help me please as i really want to use this MOD.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Nibogo on May 25, 2009, 10:39:53 AM
uninstall that mod and try the YAGAM 2.0 RC4
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: mattchewone on May 25, 2009, 02:24:02 PM
Where would i find 2.0 RC4?

Thank you.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Nibogo on May 25, 2009, 02:59:21 PM
Where would i find 2.0 RC4?

Thank you.

Excuse me, I was talking about the RC3:

http://custom.simplemachines.org/mods/index.php?action=download;mod=1617;id=95154

This version has a feature to put bars and separate normal topics, sticky topics and global announcements
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: mattchewone on May 25, 2009, 03:48:05 PM
Thank you, i will do this over the weekend as i need to manual make the edits for uninstalling and i wont have time during the week.

Thank you again.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Nibogo on May 25, 2009, 05:33:35 PM
Thank you, i will do this over the weekend as i need to manual make the edits for uninstalling and i wont have time during the week.

Thank you again.

You are welcome ;)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: glennk on May 29, 2009, 09:55:23 AM
Is this compatable to 2rc1-1
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Nibogo on May 29, 2009, 07:37:33 PM
Is this compatable to 2rc1-1

Yep
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Özgür on May 29, 2009, 08:01:56 PM
And users can't seem announcements

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

@NIBOGO if you reply this im sorry. But i can't solve this. I want to use rc version. Can you explain "have can i fix this".
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Nibogo on May 29, 2009, 08:29:51 PM
This error appear when a membergroup don't have permission to access to this announcement.

About YAGAM v2.0 well I must say of the final release will come soon, I sent the package to the SMF Team because I want of they test it before I publish it, so I hope of will be released in the next week :)

Regards
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: drhamad on June 02, 2009, 08:45:55 PM
No one except admins is able to view my announcements in RC3 for some reason.  Everyone else just gets "An Error has occured!"

Also, it doesn't seem to be saving groups that have permissions to access it, besides Guests and Regular Members.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Nibogo on June 02, 2009, 09:39:45 PM
No one except admins is able to view my announcements in RC3 for some reason.  Everyone else just gets "An Error has occured!"

Also, it doesn't seem to be saving groups that have permissions to access it, besides Guests and Regular Members.

Please try with the version attached
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: drhamad on June 03, 2009, 10:41:46 PM
Thanks.

I will note so far that this step in ManagePermissions.php seems to be out of order:
Quote
Find:
   $permissionList = array(
      'membergroup' => array(
Add After:
      
         'yagam_comment' => array(false, 'general', 'view_basic_info'),

Edit:
OK I just went through yagam_manual_edit.html

The only difference I found between that and RC3 was in SSI.php.  Unless you just haven't updated yagam_manual_edit.html and the actual installer is different?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Nibogo on June 03, 2009, 11:10:12 PM
The yagam_manual_edit.html was released for YAGAM v2.0 RC1 or RC2 so is not updated
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: drhamad on June 03, 2009, 11:35:08 PM
The yagam_manual_edit.html was released for YAGAM v2.0 RC1 or RC2 so is not updated

Ahhhhhh well then, I might not even be on RC3, since I'm pretty sure I used that to install YAGAM 2 in the first place (after RC3 was released).

I'll have to try with the regular install file tomorrow.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: zidlicky on June 06, 2009, 03:08:50 AM
I'm looking for a global announcement mod for 1.1.9. Will you be releasing a mod for this version? I only see 2 mods available in SMF and none for 1.1.9. Any ideas while we wait for a stable v2.0? Thanks.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Nibogo on June 06, 2009, 11:26:46 AM
I'm looking for a global announcement mod for 1.1.9. Will you be releasing a mod for this version? I only see 2 mods available in SMF and none for 1.1.9. Any ideas while we wait for a stable v2.0? Thanks.


Please read the topic, there is already a mod for 1.1.x
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Redryder on June 06, 2009, 05:59:27 PM
No one except admins is able to view my announcements in RC3 for some reason.  Everyone else just gets "An Error has occured!"

Also, it doesn't seem to be saving groups that have permissions to access it, besides Guests and Regular Members.

I seem to be having the same problem is there a fix?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: drhamad on June 07, 2009, 08:54:44 PM
No one except admins is able to view my announcements in RC3 for some reason.  Everyone else just gets "An Error has occured!"

Also, it doesn't seem to be saving groups that have permissions to access it, besides Guests and Regular Members.

Please try with the version attached

No joy.  That version IS saving what groups have access, but it's still returning "An error occured" when the groups try to view it.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Nibogo on June 07, 2009, 10:43:47 PM
I don't have a lot of time so please try this and tell me if this works:

Open your /Sources/AnnouncementsView.php and

FIND:

Code: [Select]
while ($row = $smcFunc['db_fetch_assoc']($dbresult)){
        $announcement = array(
            'title' => $row['title'],
            'id_announcement' => $row['id_announcement'],
            'time' => timeformat($row['date']),
                'author' => $row['author'],
                        'views' => $row['views'],
            'real_name' => $row['real_name'],
                        'content' => $row['content'],
            'can_comment' => $row['can_comment'],
                        'comment_total' => $row['comment_total'],           
        );
    }
    $smcFunc['db_free_result']($dbresult);   

    // Permission!
    $permissions = explode(',',$row['permissions']);       
    $announcement_permission = count(array_intersect($user_info['groups'], $permissions)) == 0 ? false : true;
    $context['announcement'] = $announcement;
   
    // You can't see this you need the permission and the admin always can
    if ($announcement_permission == false && !$user_info['is_admin'])
        fatal_lang_error('announcement_no_permission', false);

REPLACE WITH:

Code: [Select]
while ($row = $smcFunc['db_fetch_assoc']($dbresult)){
        $announcement = array(
            'title' => $row['title'],
            'id_announcement' => $row['id_announcement'],
            'time' => timeformat($row['date']),
                'author' => $row['author'],
                        'views' => $row['views'],
            'real_name' => $row['real_name'],
                        'content' => $row['content'],
            'can_comment' => $row['can_comment'],
                        'comment_total' => $row['comment_total'],           
        );
    }
    $smcFunc['db_free_result']($dbresult);
        $context['announcement'] = $announcement;   

    // Permission!
    $permissions = explode(',',$context['announcement']['permissions']);       
    $announcement_permission = count(array_intersect($user_info['groups'], $permissions)) == 0 ? false : true;   
   
    // You can't see this you need the permission and the admin always can
    if ($announcement_permission == false && !$user_info['is_admin'])
        fatal_lang_error('announcement_no_permission', false);
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Özgür on June 08, 2009, 07:08:12 AM
Not work.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: drhamad on June 08, 2009, 08:14:31 AM
With that edit I'm getting a parse error ("Parse error: syntax error, unexpected T_STRING in /home/ffc/public_html/Sources/AnnouncementView.php on line 51").  I don't have time to look at it now to figure out why, I'll try tonight.

Something else I'll throw out there as an idea:  could it be that we have outdated versions of the database?  Have things changed in YAGAM's database format?  I tried running db_yagam.php but it just gives me an error.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Redryder on June 08, 2009, 06:45:24 PM
I don't have a lot of time so please try this and tell me if this works:

Open your /Sources/AnnouncementsView.php and

FIND:

Code: [Select]
while ($row = $smcFunc['db_fetch_assoc']($dbresult)){
        $announcement = array(
            'title' => $row['title'],
            'id_announcement' => $row['id_announcement'],
            'time' => timeformat($row['date']),
                'author' => $row['author'],
                        'views' => $row['views'],
            'real_name' => $row['real_name'],
                        'content' => $row['content'],
            'can_comment' => $row['can_comment'],
                        'comment_total' => $row['comment_total'],           
        );
    }
    $smcFunc['db_free_result']($dbresult);   

    // Permission!
    $permissions = explode(',',$row['permissions']);       
    $announcement_permission = count(array_intersect($user_info['groups'], $permissions)) == 0 ? false : true;
    $context['announcement'] = $announcement;
   
    // You can't see this you need the permission and the admin always can
    if ($announcement_permission == false && !$user_info['is_admin'])
        fatal_lang_error('announcement_no_permission', false);

REPLACE WITH:

Code: [Select]
while ($row = $smcFunc['db_fetch_assoc']($dbresult)){
        $announcement = array(
            'title' => $row['title'],
            'id_announcement' => $row['id_announcement'],
            'time' => timeformat($row['date']),
                'author' => $row['author'],
                        'views' => $row['views'],
            'real_name' => $row['real_name'],
                        'content' => $row['content'],
            'can_comment' => $row['can_comment'],
                        'comment_total' => $row['comment_total'],           
        );
    }
    $smcFunc['db_free_result']($dbresult);
        $context['announcement'] = $announcement;   

    // Permission!
    $permissions = explode(',',$context['announcement']['permissions']);       
    $announcement_permission = count(array_intersect($user_info['groups'], $permissions)) == 0 ? false : true;   
   
    // You can't see this you need the permission and the admin always can
    if ($announcement_permission == false && !$user_info['is_admin'])
        fatal_lang_error('announcement_no_permission', false);

I wanted to try that but could not find the file.

I see why it was not installed. I removed the package and looked at zip no file was in it. looked for and found my copy of 2.0 not rc3 it had the file in it so I uploaded and installed that package it went well except the file still was not there nor was view template one. The package installer does not even list the files being installed.

Any I put them in sources and theme Dir like they should have been still no go. So I did the above changes still a no go.

While doing this I saw that your LAN call function was incorrect I believe.

yagam_no_permission should be there right.

Anyway that shows the error that I should have view permission. Now where do I find that it is not under permissions? looked in defult theme for it I do not see it listed only the comment permission for it is.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Redryder on June 20, 2009, 07:02:47 PM
Anyone found a solution yet to above?

It would be nice to have this working.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Italian81 on June 20, 2009, 08:56:00 PM
I get this instead of a video playing


Black Eyed Peas "I Gotta Feeling" (External Embedding Disabled)

What does this mean?   I have everything enabled in AEVA and I am using SMF 1.9  please help friends :)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Redryder on June 21, 2009, 04:36:56 AM
I don't have a lot of time so please try this and tell me if this works:

Open your /Sources/AnnouncementsView.php and

FIND:

Code: [Select]
while ($row = $smcFunc['db_fetch_assoc']($dbresult)){
        $announcement = array(
            'title' => $row['title'],
            'id_announcement' => $row['id_announcement'],
            'time' => timeformat($row['date']),
                'author' => $row['author'],
                        'views' => $row['views'],
            'real_name' => $row['real_name'],
                        'content' => $row['content'],
            'can_comment' => $row['can_comment'],
                        'comment_total' => $row['comment_total'],           
        );
    }
    $smcFunc['db_free_result']($dbresult);   

    // Permission!
    $permissions = explode(',',$row['permissions']);       
    $announcement_permission = count(array_intersect($user_info['groups'], $permissions)) == 0 ? false : true;
    $context['announcement'] = $announcement;
   
    // You can't see this you need the permission and the admin always can
    if ($announcement_permission == false && !$user_info['is_admin'])
        fatal_lang_error('announcement_no_permission', false);

REPLACE WITH:

Code: [Select]
while ($row = $smcFunc['db_fetch_assoc']($dbresult)){
        $announcement = array(
            'title' => $row['title'],
            'id_announcement' => $row['id_announcement'],
            'time' => timeformat($row['date']),
                'author' => $row['author'],
                        'views' => $row['views'],
            'real_name' => $row['real_name'],
                        'content' => $row['content'],
            'can_comment' => $row['can_comment'],
                        'comment_total' => $row['comment_total'],           
        );
    }
    $smcFunc['db_free_result']($dbresult);
        $context['announcement'] = $announcement;   

    // Permission!
    $permissions = explode(',',$context['announcement']['permissions']);       
    $announcement_permission = count(array_intersect($user_info['groups'], $permissions)) == 0 ? false : true;   
   
    // You can't see this you need the permission and the admin always can
    if ($announcement_permission == false && !$user_info['is_admin'])
        fatal_lang_error('announcement_no_permission', false);


Try this....
 
First change it back to the orginal code that you posted above.


Once you have done that replace the original code:

Code: [Select]
while ($row = $smcFunc['db_fetch_assoc']($dbresult)){
         $announcement = array(
             'title' => $row['title'],
             'id_announcement' => $row['id_announcement'],
             'time' => timeformat($row['date']),
                 'author' => $row['author'],
                         'views' => $row['views'],
             'real_name' => $row['real_name'],
                         'content' => $row['content'],
             'can_comment' => $row['can_comment'],
                         'comment_total' => $row['comment_total'],           
         );
     }
     $smcFunc['db_free_result']($dbresult);   
 
     // Permission!
     $permissions = explode(',',$row['permissions']);       
     $announcement_permission = count(array_intersect($user_info['groups'], $permissions)) == 0 ? false : true;
     $context['announcement'] = $announcement;
     
     // You can't see this you need the permission and the admin always can
     if ($announcement_permission == false && !$user_info['is_admin'])
         fatal_lang_error('announcement_no_permission', false);

With this instead:

Code: [Select]
while ($row = $smcFunc['db_fetch_assoc']($dbresult)){
         $announcement = array(
             'title' => $row['title'],
             'id_announcement' => $row['id_announcement'],
             'time' => timeformat($row['date']),
                 'author' => $row['author'],
                         'views' => $row['views'],
             'real_name' => $row['real_name'],
                         'content' => $row['content'],
             'can_comment' => $row['can_comment'],
                         'comment_total' => $row['comment_total'],
                    'permissions' => $row['permissions'],             
         );
     }
     $smcFunc['db_free_result']($dbresult);   
 
     // Permission!
     $permissions = explode(',',$row['permissions']);       
     $announcement_permission = count(array_intersect($user_info['groups'], $permissions)) == 0 ? false : true;
     $context['announcement'] = $announcement;
     
     // You can't see this you need the permission and the admin always can
     if ($announcement_permission == false && !$user_info['is_admin'])
         fatal_lang_error('announcement_no_permission', false);


I added  'permissions' => $row['permissions'], under 'comment_total' => $row['comment_total'],

It now is working for me.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: drhamad on June 22, 2009, 09:24:27 PM
Redryder, that's not doing it for me either... getting
Quote
Parse error: syntax error, unexpected T_STRING in /home/ffc/public_html/Sources/AnnouncementView.php on line 51
where line 51 is the $announcement = array( line
Code: [Select]
while ($row = $smcFunc['db_fetch_assoc']($dbresult)){
         $announcement = array(
             'title' => $row['title'],
             'id_announcement' => $row['id_announcement'],
             'time' => timeformat($row['date']),
                 'author' => $row['author'],
                         'views' => $row['views'],
             'real_name' => $row['real_name'],
                         'content' => $row['content'],
             'can_comment' => $row['can_comment'],
                         'comment_total' => $row['comment_total'],
                    'permissions' => $row['permissions'],             
         );
     }
     $smcFunc['db_free_result']($dbresult);   
 
     // Permission!
     $permissions = explode(',',$row['permissions']);       
     $announcement_permission = count(array_intersect($user_info['groups'], $permissions)) == 0 ? false : true;
     $context['announcement'] = $announcement;
     
     // You can't see this you need the permission and the admin always can
     if ($announcement_permission == false && !$user_info['is_admin'])
         fatal_lang_error('announcement_no_permission', false);
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v1.1.7.2 RELEASED!!]
Post by: Nibogo on June 23, 2009, 02:59:22 PM
Please everybody just modify this:

FIND:

Code: [Select]
while ($row = $smcFunc['db_fetch_assoc']($dbresult)){
        $announcement = array(
            'title' => $row['title'],
            'id_announcement' => $row['id_announcement'],
            'time' => timeformat($row['date']),
                'author' => $row['author'],
                        'views' => $row['views'],
            'real_name' => $row['real_name'],
                        'content' => $row['content'],
            'can_comment' => $row['can_comment'],
                        'comment_total' => $row['comment_total'],           
        );
    }
    $smcFunc['db_free_result']($dbresult);   

    // Permission!
    $permissions = explode(',',$row['permissions']);       
    $announcement_permission = count(array_intersect($user_info['groups'], $permissions)) == 0 ? false : true;
    $context['announcement'] = $announcement;
   
    // You can't see this you need the permission and the admin always can
    if ($announcement_permission == false && !$user_info['is_admin'])
        fatal_lang_error('announcement_no_permission', false);

Replace with:

Code: [Select]
while ($row = $smcFunc['db_fetch_assoc']($dbresult)){
        $announcement = array(
            'title' => $row['title'],
            'id_announcement' => $row['id_announcement'],
            'time' => timeformat($row['date']),
            'author' => $row['author'],
            'views' => $row['views'],
            'real_name' => $row['real_name'],
            'content' => $row['content'],
            'can_comment' => $row['can_comment'],
            'comment_total' => $row['comment_total'],     
        );
    }
    $smcFunc['db_free_result']($dbresult);   

    // Permission!
    $permissions = explode(',',$row['permissions']);       
    $announcement_permission = count(array_intersect($user_info['groups'], $permissions)) == 0 ? false : true;
    $context['announcement'] = $announcement;
   
    // You can't see this you need the permission and the admin always can
    if ($announcement_permission == false || !$user_info['is_admin'])
        fatal_lang_error('announcement_no_permission', false);
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Nibogo on June 23, 2009, 03:59:25 PM
YAGAM v2.0 FINALLY RELEASED!!!
Folks! Finally I can say of YAGAM v2.0 has been released, as you know a lot of things has been implemented in this version, a lot of changes the only way to check all the new features is installing the mod.

There is no upgrade package because there is a lot of changes in files, database, strings so you just have to uninstall the last version and install this new one.

The Changelog doesn't has all the changes do it in the version, the code has been improved and optimized and there is new integration with two popular mods, Pretty Urls and Member Color Link.

Please report any error in this thread or the issue tracker (http://en.hackspark.com/index.php?project=3). Please consider donate to YAGAM project, requires a lot of my free time to develop this version so any help is more than welcome ;) You can donate to nibogo2[at]gmail[dot]com

Enjoy It!

Changelogs:


Version 2.0 [Big Upgrade] - June 23, 2009
- A lot of changes in all the code, structure and files, too many changes to be listed here.
- Fixed more bugs.
- Added Sort Options based on the Same Topics Sort Options .
- Added Support for Member Color Link Mod on MessageIndex.
- Added Announcement Log (View who see the Announcement).
- Added Force Users to Read Announcement after Login.
- Added some improvements to the linktree and Pages Title.
- Cleaned the code of the MessageIndex Edit.
- Fixed some minor additional bugs.
- Added Global Announcements Settings with some options.
- Added Support for Sticky Topics Bar with Global Announcements and Normal Topic.
- Pretty Urls Support.
- Changed the Panel Administration now with the SMF Admin Section Layout.
- Added YAGAM Version Panel.
- Added SSI Functions with Announcement 'ssi_announcement(5)' and random announcement 'ssi_random_announcement()'.
- Much more, So many things to be included in this changelog
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Özgür on June 23, 2009, 04:12:50 PM
This version still have permission problem. (I have clean install.)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Nibogo on June 23, 2009, 04:21:53 PM
This version still have permission problem. (I have clean install.)

I forgot it, now has been fixed please install the new version uploaded
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Özgür on June 23, 2009, 04:30:03 PM
This version still have permission problem. (I have clean install.)

I forgot it, now has been fixed please install the new version uploaded
I replace old files to new files, but files are same. And issue still same.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Sudhakar Arjunan on June 24, 2009, 06:46:33 AM
Hi,

I have tied to uninstall v 1.1.7.2.

Error on Message index file.

Actual logout code on unistall page is ,

Code: [Select]

Find [Select]
// 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'];// YAGAM was here $dbresult = $smcFunc['db_query']('', ' SELECT a.id_announcement, a.enable, a.date, a.author, m.real_name, a.permissions, a.title, a.views, a.id_boards, a.can_comment, a.comment_total FROM {db_prefix}announcements AS a LEFT JOIN {db_prefix}members AS m ON (a.author = m.ID_MEMBER) WHERE a.enable = {int:enable} ORDER BY id_announcement DESC', array( 'enable' => '1', ) ); // Load the Announcements $context['announcements'] = array(); while ($row = $smcFunc['db_fetch_assoc']($dbresult)) $context['announcements'][] = $row; $smcFunc['db_free_result']($dbresult); // YAGAM End`s Here

Replace [Select]
// 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'];


But Actual code my MessageIndex.php file is,

Code: [Select]
// 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'];// YAGAM was here
    $dbresult = $smcFunc['db_query']('', "
SELECT
a.id_announcement, a.enable, a.date, a.author, m.real_name, a.permissions, a.title, a.views, a.id_boards, a.can_comment, a.comment_total
FROM {db_prefix}announcements AS a
LEFT JOIN {db_prefix}members AS m  ON (a.author = m.ID_MEMBER)
    WHERE a.enable = '1'
ORDER BY id_announcement DESC  ");

    // Load the Announcements
$context['announcements'] = array();
while ($row = $smcFunc['db_fetch_assoc']($dbresult))
$context['announcements'][] = $row;
$smcFunc['db_free_result']($dbresult);

// YAGAM End`s Here

Now how do i proceed further.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Özgür on June 24, 2009, 06:50:18 AM
Uninstall and remove this code
Code: [Select]
// YAGAM was here
    $dbresult = $smcFunc['db_query']('', "
   SELECT
      a.id_announcement, a.enable, a.date, a.author, m.real_name, a.permissions, a.title, a.views, a.id_boards, a.can_comment, a.comment_total
   FROM {db_prefix}announcements AS a
   LEFT JOIN {db_prefix}members AS m  ON (a.author = m.ID_MEMBER)
    WHERE a.enable = '1'
   ORDER BY id_announcement DESC  ");
   
    // Load the Announcements
   $context['announcements'] = array();
   while ($row = $smcFunc['db_fetch_assoc']($dbresult))
   $context['announcements'][] = $row;
   $smcFunc['db_free_result']($dbresult);
   
   // YAGAM End`s Here
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: edi67 on June 28, 2009, 04:18:41 AM
Installed but hen i try to enter in announcements i rceive this error:

Code: [Select]
Fatal error: require_once() [function.require]: Failed opening required '/home/crazyzone/data/www/crazyzone.biz/Sources/AnnouncementView.php' (include_path='.:/usr/local/share/pear') in /home/crazyzone/data/www/crazyzone.biz/index.php on line 483
u can fix it?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: drhamad on July 16, 2009, 09:39:57 PM
Has anyone had any success with YAGAM 2 (final)?  For me, it simply redirects users back to the index now.  At least it doesn't error, but it also doesn't WORK.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Sudhakar Arjunan on July 20, 2009, 03:56:56 PM
Uninstall and remove this code


Thank you and it had worked properly.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Grinch843 on July 20, 2009, 10:33:53 PM
Hi, just downloaded and installed and got this error when trying to view an announcement

Fatal error: require_once() [function.require]: Failed opening required '/home/beaufort/public_html/forum/Sources/AnnouncementView.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/beaufort/public_html/forum/index.php on line 346

Running on SMF 2.0 RC1.2 with the default theme.

I removed and reinstalled several times but nothing changed.

Thanks,
Grinch843...

Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Grinch843 on July 27, 2009, 09:49:52 AM
Fatal error: require_once() [function.require]: Failed opening required '/home/beaufort/public_html/forum/Sources/AnnouncementView.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/beaufort/public_html/forum/index.php on line 346

Any update on this?

Thanks,
Grinch843
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Nibogo on July 27, 2009, 03:41:13 PM
Sorry guys I was really busy with my real life and other projects, but I will try to fix the YAGAM bug soon!

I will send the notification to the mod subscribers
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Atomic Blaze on July 29, 2009, 01:08:40 AM
When I go to ?action=announcements I get this:

Quote
An Error Has Occurred!
Unable to load the 'main' template. 

I have looked through both Announcements.template and AnnoiuncementView.template and there is no main.

Error in custom theme and default theme.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: plusev on August 01, 2009, 03:14:29 AM
Got the same error as the poster above:

Fatal error: require_once() [function.require]: Failed opening required '/xxxxxxxxxxxxxxxxxxx/web/Sources/AnnouncementView.php' (include_path='.:/xxxxxxxxxxxxxxxxxxxxxx) in /xxxxxxxxxxxxxxxxxxxxxxxxxxxxx/index.php on line 405


Please advise, Thx
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: drhamad on August 01, 2009, 08:27:45 AM
Mine still redirects back to the index... no error msg: http://www.mazda3forums.com/index.php?action=announcement;aid=3
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Nibogo on August 01, 2009, 02:06:02 PM
Mine still redirects back to the index... no error msg: http://www.mazda3forums.com/index.php?action=announcement;aid=3

I know it, right know I have some serious personal issues so I don't know when I can fix it
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: devil_jin on August 01, 2009, 04:00:47 PM
Hi NIBOGO,

Thanks for this wonderful mod...

I installed it today and everything was fine I made a GA but forgot to change the Topic so it showed Global Announcement the default. The problem is I went to edit it and did the correction and when I clicked to submit it the page just turns blank.. I checked and see the name changed to the one I wanted but when I click to open it again the page turns blank.. By this I mean nothing shows all the other pages on the forum are ok but the GA does not open..

Please help.

PS : I am sorry if the same question has been asked before and I didn't check it. Also I am a noob with coding so if you could please explain in details if there are any changes to be made to the template to make it work.


Thanks for your help in advance..
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: leonardus on August 02, 2009, 03:09:53 AM
the mod is ok. installation ok. announcement ok.

but i click above the "global announcement" in all board, i receive thi error:

Fatal error: require_once() [function.require]: Failed opening required '/home/xxxxxxxx/public_html/forum/Sources/AnnouncementView.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxx/public_html/forum/index.php on line 406

can you help me?

thanks
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: [A-US]James246 on August 02, 2009, 04:01:39 AM
Will this work with 1.1.10? Or is there another Global Announcements mod out there?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: drhamad on August 04, 2009, 06:02:38 PM
There's another.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: leonardus on August 08, 2009, 01:31:49 PM
the mod is ok. installation ok. announcement ok.

but i click above the "global announcement" in all board, i receive thi error:

Fatal error: require_once() [function.require]: Failed opening required '/home/xxxxxxxx/public_html/forum/Sources/AnnouncementView.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxx/public_html/forum/index.php on line 406

can you help me?

thanks

nobody can help me? thx
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: drhamad on August 10, 2009, 08:14:59 PM
Are you sure /forum/Sources/AnnouncementView.php is there?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Nibogo on August 10, 2009, 08:27:42 PM
I already test it on my localhost and I don't have the redirect issue, the mod give me an error page (in blank I will fix this) only if the doesn't have the permission to see it so it's working good for me.

http://www.mazda3forums.com/index.php?action=announcement;aid=3

I have an error, not a redirect, unless as guest
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: drhamad on August 10, 2009, 09:40:17 PM
Yeah I'm seeing that now as well.   Either way, not working though ;)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Nibogo on August 10, 2009, 10:25:55 PM
Yeah I'm seeing that now as well.   Either way, not working though ;)

Yep, but it's just a missed string not a fatal bug, if you have permission to see the announcement you will see it
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: drhamad on August 11, 2009, 08:13:48 AM
Yeah I'm seeing that now as well.   Either way, not working though ;)

Yep, but it's just a missed string not a fatal bug, if you have permission to see the announcement you will see it

As an admin I get the same error you're getting.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Verso on August 20, 2009, 06:00:40 PM
I am using SMF 2.0 RC1.2


I have installed Yet Another Global Announcements Mod      2.0


Everything is fine until I go to view ANNOUNCEMENT. Then I get a white screen...........
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: zeroandone on August 26, 2009, 10:39:49 AM
I am using SMF 2.0 RC1.2


I have installed Yet Another Global Announcements Mod      2.0


Everything is fine until I go to view ANNOUNCEMENT. Then I get a white screen...........

I have the same problem. I use PROF theme and I installed YAGAM for the theme.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: lexa90 on August 30, 2009, 07:41:04 PM
Hi guys i have a problem..
In my error log there are some errors:

Quote
]http://balkanwarez.org/forum/index.php?/board,4.0.html
8: Undefined index: yagam_sticky_bar_index
File: /home/balkanwa/public_html/forum/Themes/default/MessageIndex.template.php (main sub template - eval?)
Line: 267

Here's that problematic code line:

Quote
         // Add the sticky bar
         if ($topic['is_sticky'] && !$sticky_bar && (isset($modSettings['yagam_sticky_bar']))){         
267 =>>>         echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '" style="padding:8px 4px;"><b>'.$txt['yagam_sticky_bar_index'].'</b></td></tr>';
            $sticky_bar = true;

And also i have this error

Quote
http://balkanwarez.org/forum/index.php?action=announcement;aid=7
2: Illegal offset type
File: /home/balkanwa/public_html/forum/Sources/AnnouncementView.php
Line: 79

And the code line:
Quote
   
// Load all the author info including the Color Link
loadMemberData($announcement['author']);
loadMemberContext($announcement['author']);
$context['announcement']['author'] = $memberContext[$announcement['author']];
79=>>>     $context['poster'] = (!empty($color_profile[$context['announcement']['author']]['link'])) ? $color_profile[$row['author']]['link'] : $context['announcement']['author']['link'];

So if anyone knows pleaseeeeee help me. I resolved the permissions error but know i have those problems.

Thanks in advance
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: drhamad on September 02, 2009, 05:22:30 PM
I am using SMF 2.0 RC1.2


I have installed Yet Another Global Announcements Mod      2.0


Everything is fine until I go to view ANNOUNCEMENT. Then I get a white screen...........

Welcome to the club :(
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: devil_jin on September 03, 2009, 05:09:47 AM
I am using SMF 2.0 RC1.2


I have installed Yet Another Global Announcements Mod      2.0


Everything is fine until I go to view ANNOUNCEMENT. Then I get a white screen...........

Welcome to the club :(


LOL drhamad you got that one right..

Almost everyone has similar problem :(
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Mr_Dark on September 21, 2009, 03:54:55 PM
I've solved the permission error

Open "sources/AnnoucementView.php" (if you don't have this file, you have to manually upload it because it doesn't get installed when you install it via the packet manager)

Find the following line:
'comment_total' => $row['comment_total'],

Past this line beneath it:
'permissions' => $row['permissions']

----
Find this line:
$permissions = explode(',',$row['permissions']);

Replace it with this:
$permissions = explode(',',$announcement['permissions']);

----
Find this line:
if ($announcement_permission == false || !$user_info['is_admin'])

Replace it with this:
if ($announcement_permission == false && !$user_info['is_admin'])

----
Now it should work fine :)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: glennk on September 23, 2009, 04:25:25 PM
Hi there,

I am getting some strange behaviour with this mod. When I sticky a topic it is getting included in the glopbal announcements section.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Smog on September 26, 2009, 02:01:57 PM
@NIBOGO: is development of this mod ceased?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Nibogo on September 27, 2009, 11:18:35 AM
@NIBOGO: is development of this mod ceased?

No
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: glennk on September 27, 2009, 04:21:32 PM
Im getting an error now when I click on my announcement :

Fatal error: require_once() [function.require]: Failed opening required '/home/glennk/public_html/forum/Sources/AnnouncementView.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/glennk/public_html/forum/index.php on line 356
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Mr_Dark on September 29, 2009, 12:26:08 PM
Im getting an error now when I click on my announcement :

Fatal error: require_once() [function.require]: Failed opening required '/home/glennk/public_html/forum/Sources/AnnouncementView.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/glennk/public_html/forum/index.php on line 356

Manually upload the AnnouncementView.php file to the /Sources/ directory.. This file is not copied if you install this mod through the packet manager.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: haerde on October 06, 2009, 01:05:11 PM
NIBOGO bro, there is an error in ./Themes/default/MessageIndex.template.php:

Quote
         // Add the sticky bar
         if ($topic['is_sticky'] && !$sticky_bar && (isset($modSettings['yagam_sticky_bar']))){         
            echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '" style="padding:8px 4px;"><b>'.$txt['yagam_sticky_bar_index'].'</b></td></tr>';

should be:
Quote
         // Add the sticky bar
         if ($topic['is_sticky'] && !$sticky_bar && (isset($modSettings['yagam_sticky_bar']))){         
            echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '" style="padding:8px 4px;"><b>'.$txt['yagam_sticky_bar'].'</b></td></tr>';

Bolded one is an error.

Also the fix of permission bug by Mr_Dark is correct, thx mate !
Title: v2.1 RELEASED!!
Post by: Nibogo on October 08, 2009, 04:18:39 PM
Finally the release of the 2.1 version of YAGAM, I leave the development of this mod for a couple of month for my school but now I have time to fix all the bugs, take a look to the changelog, please upgrade it's really important btw thanks to Mr_Dark for the solution to the permission bug and haerde for report the wrong string, if you find any other bug please let me know it, I will fix and if you have any additional idea (I don't have any idea for this mod) please comment it maybe I can include it in a future release.

Changelog:

Version 2.1 - Oct 08, 2009
- Fixed permission bug (Thanks to Mr_Dark)
- Fixed blank page bug
- Fixed wrong string on messageindex (Reported by haerde)
- Fixed issue uploading the AnnouncementView.php and AnnouncementView.template.php files
Title: Re: v2.1 RELEASED!!
Post by: Smog on October 10, 2009, 08:50:34 AM
Finally the release of the 2.1 version of YAGAM, I leave the development of this mod for a couple of month for my school but now I have time to fix all the bugs
Great to hear!  :)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: ralliart on October 10, 2009, 12:15:49 PM
Hi Nibogo,

Thanks for the latest version.

However, there's a bug when I enabled  Enable Force Read Announcement on Login? option:

An Error Has Occurred!

Unable to load the 'main' template.

Help please. thanks!

Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Maxtor on October 24, 2009, 08:42:15 PM
I found another bug, at "Global Announcements Settings" if i enable "Important Topics" everything is ok, BUT i cant disable it. Can you check it?

Im using 2.0 RC.1.2
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Maxtor on October 25, 2009, 09:01:39 AM
Also this error occurs while trying to view an announcement. i think it something to do with colours. Im using "Member Color Link 3.0.7 " mod.
Code: [Select]
http://www.maxhackers.com/forum/index.php?action=announcement;aid=2 
2: Illegal offset type
File: /home/vmaxhfd8/public_html/forum/Sources/AnnouncementView.php
Line: 79 

Line 79 is this:
Code: [Select]
75:
// Load all the author info including the Color Link
76:
loadMemberData($announcement['author']);
77:
loadMemberContext($announcement['author']);
78:
$context['announcement']['author'] = $memberContext[$announcement['author']];
==>79:
$context['poster'] = (!empty($color_profile[$context['announcement']['author']]['link'])) ? $color_profile[$row['author']]['link'] : $context['announcement']['author']['link'];
80: 
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: MrCreatoR on October 26, 2009, 08:58:21 AM
Very nice mod, thanks.

But there is some conflict with another mods that adds columns to the topics view page (when entering to board). For example, i have "Rate that topic" mod, and in few boards there is added extra column to show the rating stars, so the anouncments topics shows info under wrong columns. Here is a screenshot:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi33.tinypic.com%2Fxbwlma.jpg&hash=d112e57e85c11cabc2f77146eb42b138) (http://i33.tinypic.com/xbwlma.jpg)

Perhaps the mod could check the columns and skip the unknown (show empty cell)?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Nibogo on October 26, 2009, 04:31:07 PM
No, you have to manually modify the MessageIndex.template.php
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: MrCreatoR on October 26, 2009, 04:39:18 PM
No, you have to manually modify the MessageIndex.template.php
Ok, can you please tell me what i need to change? At least what i can looking for?
NVM, i found how to fix that. Thanks.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: nurg on November 14, 2009, 12:41:29 AM
Hola

hay version o se sabe algo para RC2

Gracias
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: flamechica on November 19, 2009, 04:45:17 AM
Will this be updated for RC2?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: karanima on November 20, 2009, 11:26:21 AM
Will this be updated for RC2?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Nibogo on November 20, 2009, 12:00:34 PM
When I have time, pretty busy with some custom jobs
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.0 RELEASED!!]
Post by: Nibogo on November 21, 2009, 08:03:54 PM
Changelog:

Version 2.2 - Nov 11, 2009
- Added Support for SMF 2.0 RC2.
- Added Support for Curve!
- Changed the Support Website now YAGAM is Powered by SMFPacks.com
- Fixed little issue with a string in English.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.2 RELEASED - Supporting RC2]
Post by: karanima on November 22, 2009, 08:42:18 AM
MessageIndex.template.php This code does 2.0 RC2
Available within 2.0 RC1.2

Code: [Select]
// No topics.... just say, "sorry bub".
if (empty($context['topics']))
echo '
<tr class="windowbg2">
<td class="catbg3" colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '"><strong>', $txt['msg_alert_none'], '</strong></td>
</tr>';

foreach ($context['topics'] as $topic)
{
// Do we want to seperate the sticky and lock status out?


Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.2 RELEASED - Supporting RC2]
Post by: karanima on November 24, 2009, 10:56:09 AM
up
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.2 RELEASED - Supporting RC2]
Post by: Nibogo on November 24, 2009, 08:19:31 PM
Try the new package
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.2 RELEASED - Supporting RC2]
Post by: DirtRider on November 25, 2009, 01:14:21 AM
Very good mod thanks. However when I enable forced on logon it takes you to what should be the announcement but the page is blank. It does not show the actual body of that announcement
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.2 RELEASED - Supporting RC2]
Post by: social on November 25, 2009, 07:51:19 AM
Finally i can use this mod, thanks works like a charm
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.2 RELEASED - Supporting RC2]
Post by: karanima on November 25, 2009, 01:26:49 PM
I installed your mod update but my message index slided apart from message table as you can see from the picture.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.2 RELEASED - Supporting RC2]
Post by: Nibogo on November 25, 2009, 02:16:03 PM
I installed your mod update but my message index slided apart from message table as you can see from the picture.

Try this package, I can't test it because I am in a pc without a localhost but it should work
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.2 RELEASED - Supporting RC2]
Post by: karanima on November 25, 2009, 02:43:50 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi45.tinypic.com%2F2lc786d.gif&hash=f38c94b9d7d46179a17650937387de49)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: Nibogo on November 25, 2009, 03:26:44 PM
Changelog:

Version 2.3 - Nov 25, 2009
- Fixed issue with the Force Read Announcement on Login.
- Fixed issue with the new Curve Layout on MessageIndex.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: DirtRider on November 26, 2009, 01:34:59 AM
Good job on both fixes both now work great
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.2 RELEASED - Supporting RC2]
Post by: karanima on November 26, 2009, 05:54:50 AM
problem continues

before:


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi50.tinypic.com%2Fam42tw.gif&hash=fbd32ad046f94891058cac37e4daf91d)


after

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi50.tinypic.com%2F2cde6gh.gif&hash=03af83f8bb0590fc4a2b7752f56466b9)

Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: iPhoneDestek on November 26, 2009, 06:41:26 AM
the new version is something that has not changed. problem continues. See picture
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: DirtRider on November 26, 2009, 06:50:46 AM
the new version is something that has not changed. problem continues. See picture

I must admit it is far better than what it was  ;)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: iPhoneDestek on November 26, 2009, 06:56:21 AM
the new version is something that has not changed. problem continues. See picture

I must admit it is far better than what it was  ;)

agree with you. After installing the theme, if not broken.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: karanima on November 26, 2009, 06:59:24 AM
mod is great, but the problem continues
be seen in the picture
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: MrCreatoR on November 26, 2009, 07:44:06 AM
mod is great, but the problem continues
be seen in the picture
I also have posted (http://www.simplemachines.org/community/index.php?topic=292270.msg2328236#msg2328236) this issue, but NIBOGO sais we should “manually modify the MessageIndex.template.php” :(. Now we need to do it on every update? I think this mod could be compatible with the column numbers that is used on specific boards.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: DirtRider on November 26, 2009, 08:49:15 AM
For me it is not such a big issue as only the admin sees it like that. I would like it fixed but hey I can live with it  ;D
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: Nibogo on November 26, 2009, 09:41:10 AM
As I told you I was on a PC without a localhost so I can't test it, I already see the error in the code and I'll fixed as soon as I can, excuse me for the issues.

Btw the idea of automatically find the columns in the message index please tell me how a mod can do it because as far as I know this isn't doable ;)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: Nibogo on November 26, 2009, 11:54:39 AM
New Package Uploaded, fixing that issue ;)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: karanima on November 26, 2009, 12:12:53 PM
that's great

excellent job
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: DirtRider on November 26, 2009, 01:58:07 PM
New Package Uploaded, fixing that issue ;)

Hu is that 2.3 as that was the one I download earlier and it still had the issue but it was better, or is this a later version of 2.3  ;D ;D ;D
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: Nibogo on November 26, 2009, 01:59:15 PM
New Package Uploaded, fixing that issue ;)

Hu is that 2.3 as that was the one I download earlier and it still had the issue but it was better, or is this a later version of 2.3  ;D ;D ;D

This is a later version of the 2.3 let's call it 2.3.2
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: DirtRider on November 26, 2009, 02:04:16 PM
New Package Uploaded, fixing that issue ;)

Hu is that 2.3 as that was the one I download earlier and it still had the issue but it was better, or is this a later version of 2.3  ;D ;D ;D

This is a later version of the 2.3 let's call it 2.3.2

lol thanks I will download it now  :D
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: DirtRider on November 26, 2009, 02:07:45 PM
And it is now fixed 100% thanks  ;D
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: social on November 26, 2009, 10:43:57 PM
Good Job, Now 100% work, Thank You "NIBOGO" Great Mod
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: Analogiker on November 28, 2009, 05:59:52 AM
Sorry, but i get an error if somebody views an announcement.

Quote
.../index.php?action=announcement;aid=1
8: Undefined index: can_send_pm
Datei: .../TEST/Themes/default/AnnouncementView.template.php
Zeile: 160

Quote from: AnnouncementView.template.php
// Show the profile, website, email address, and personal message buttons.
         if ($settings['show_profile_buttons'])
         {
            .......
            // Since we know this person isn't a guest, you *can* message them.
            if ($context['can_send_pm'])
               echo '
                              <li><a href="', $scripturl, '?action=pm;sa=send;u=', $context['announcement']['author']['id'], '" title="', $context['announcement']['author']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($context['announcement']['author']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . ($context['announcement']['author']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']) . '" border="0" />' : ($context['announcement']['author']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']), '</a></li>';

            echo '
                           </ul>
                        </li>';
         }
Theme: default
Version: SMF2 RC2
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: Analogiker on November 28, 2009, 06:07:05 AM
If i put this '$context['can_send_pm'] = allowedTo('pm_send');' on the top of the function template_announcement_view() under 'global' there ist the next error:
Quote
.../TEST/index.php?action=announcement;aid=1
8: Undefined variable: Online
Datei: .../TEST/Themes/default/AnnouncementView.template.php
Zeile: 40
Is there something wrong with the Variable $context?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: Analogiker on November 28, 2009, 08:36:18 AM
The mod is now running without errors. I made two changes:

1. add at the end before } ?>   
Code: (AnnouncementView.php) [Select]
// Some people can't send personal messages...
$context['can_send_pm'] = allowedTo('pm_send');

2. change line 38
Code: (AnnouncementView.template.php) [Select]
....$$context['announcement']['author']['online']['label'].....
to
....$context['announcement']['author']['online']['label']....
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: dkharp on December 12, 2009, 05:36:59 PM
This is a great mod! I was wondering is there a way for it to be counted as a topic and posts?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2
Post by: Spoogs on December 12, 2009, 07:06:14 PM
it does have an option to make the announcement into a topic, just choose the board you want it to be on.... i created a news and announcements board specifically for that.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: Nibogo on December 12, 2009, 08:58:10 PM
This is a great mod! I was wondering is there a way for it to be counted as a topic and posts?

As Spoogs says the closest thing is convert the announcement into a regular topic but count announcements would make the forum SLOW
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: kizko on December 30, 2009, 05:21:19 PM
8: Undefined index: start
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Themes/default/AnnouncementView.template.php
Line: 89

8: Undefined variable: message
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Themes/default/AnnouncementView.template.php
Line: 89

8: Undefined index: can_send_pm
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Themes/default/AnnouncementView.template.php
Line: 158


8: Undefined index: current_topic
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Themes/default/AnnouncementView.template.php
Line: 88


8: Undefined index: start
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Themes/default/AnnouncementView.template.php
Line: 88

8: Undefined index: can_send_pm
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Themes/default/AnnouncementView.template.php
Line: 158

Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: ~DS~ on December 30, 2009, 09:37:22 PM
I'm getting alot of this:

8: Undefined index: can_send_pm
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2
Post by: Spoogs on December 30, 2009, 09:39:10 PM
I've been gettin a lot of those too
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: kizko on December 31, 2009, 05:10:35 AM
A user manage to resolve that error with can_send_pm here: http://www.simplemachines.org/community/index.php?topic=292270.msg2378758#msg2378758 (RC2).

But i have more errors then that usuall can_send_pm.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: Nibogo on December 31, 2009, 12:29:14 PM
In the first week of Jan I'll fix this bugs and obviouslly upload a new package but you would be available to update replacing the core files of this mod
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: ~DS~ on December 31, 2009, 12:53:36 PM
Great, looking forward to this. This bug does not impact at us, does it?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: Nibogo on December 31, 2009, 01:10:59 PM
Great, looking forward to this. This bug does not impact at us, does it?

Not really, the start and current_topic doesn't impact anything it just need to be removed. The can_send_pm is the only error that can impact because there is no way to know if the user can or not send PM so this icon should be hidden this is the only problem that can be easily fixed changing the $context['can_send_pm'] to allowedTo('send_pm') (I'm not sure if this is the permission so I'll check it)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: ~DS~ on December 31, 2009, 02:27:26 PM
Another bug found, the footer showed in the right instead of the bottom. I don't know if it's related to Global Headers and Footers mod or YAGAM mod.

Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: Nibogo on December 31, 2009, 02:30:35 PM
Another bug found, the footer showed in the right instead of the bottom. I don't know if it's related to Global Headers and Footers mod or YAGAM mod.



The twitter and facebook images are in the Global HF Mod or in your signature?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: ~DS~ on December 31, 2009, 02:32:57 PM
Another bug found, the footer showed in the right instead of the bottom. I don't know if it's related to Global Headers and Footers mod or YAGAM mod.



The twitter and facebook images are in the Global HF Mod or in your signature?
Global HF Mod, sir.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: Nibogo on December 31, 2009, 02:44:22 PM
Another bug found, the footer showed in the right instead of the bottom. I don't know if it's related to Global Headers and Footers mod or YAGAM mod.



The twitter and facebook images are in the Global HF Mod or in your signature?
Global HF Mod, sir.

I think of it's an error with the YAGAM mod, can I use your forum to do some tests?? In case that you are ok with it please send me the details in a PM

Regards
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2
Post by: nuva on January 04, 2010, 06:23:28 AM
This mod is realy awesome! but i got a small issue

When i create a global announcement the background of the forum doesn't change with the topic. Well, i don't realy know how to explain, so i attached a image ::)


Edit:
Because i like your mod, i created a dutch language file :P


edit2:
must be chrome, works in firefox and IE8...
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: Nibogo on January 04, 2010, 11:36:27 AM
It's a problem with YAGAM because the View Announcement Page isn't HTML Valid (That is why the issue with the Global Header & Footer Mod) and I'll fix it in the next package
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: nov korisnik on January 06, 2010, 04:53:12 PM
Will this mod be compatible with version 1.1.11?
enough to help us   8)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: Nibogo on January 06, 2010, 05:42:36 PM
YAGAM V2.4 Released. Please update as soon as possible

Changelog:


Version 2.4 - Jan 06, 2010
- Changed the Comments Layout now they look like a normal post.
- Now YAGAM is HTML Valid. This fix several issues with other mods and themes.
- Fixed errors in the Error Log.
- Removed the Pretty Urls Rule (it wasn't necessary and it wasn't update it with the last release of Pretty Urls).
- Removed the Announcement Log (Has some issues, nobody find it useful and the code is now smaller).
- Added Color to the Announcements Background (You can changed looking for .yagam on the /Curve/css/index.css file).
- Enhanced some queries with the SMF 2.0 Style.

This mod is realy awesome! but i got a small issue

When i create a global announcement the background of the forum doesn't change with the topic. Well, i don't realy know how to explain, so i attached a image ::)


Edit:
Because i like your mod, i created a dutch language file :P


edit2:
must be chrome, works in firefox and IE8...

Thanks for the translation but can I ask you something??

This strings has to be translated too:

Code: [Select]
// YAGAM - Admin and MessageIndex Strings
$txt['yagam_admin'] = 'Global Announcements';
$txt['yagam_sticky_bar'] = 'Important Topics';
$txt['yagam_topics'] = 'Normal Topics';
$txt['yagam_created'] = 'Created on';
$txt['yagam_remove_verify'] = 'Are you sure that you want to delete this announcement?';
$txt['whoall_announcements'] = 'Viewing a Global Announcement';
$txt['permissionname_yagam_manage'] = 'Manage Global Announcements';
$txt['permissionhelp_yagam_manage'] = 'Set if you wish to allow the user to manage global announcements.';
$txt['permissionname_yagam_comment'] = 'Comment Global Announcements';
$txt['permissionhelp_yagam_comment'] = 'Set if you wish to allow user comments on global announcements.';
$txt['yagam_edit2'] = 'Edit';
$txt['yagam_edit'] = 'Edit Announcement';
$txt['yagam_remove'] = 'Delete Announcement';
$txt['yagam_remove2'] = 'Remove';
$txt['yagam_admin_add'] = 'Add Global Announcement';
$txt['yagam_admin_settings'] = 'Global Announcements Settings';
$txt['yagam_version'] = 'Global Announcements Version';

Thanks!

Will this mod be compatible with version 1.1.11?
enough to help us   8)

http://www.simplemachines.org/community/index.php?topic=292270.msg1930555#msg1930555 (http://www.simplemachines.org/community/index.php?topic=292270.msg1930555#msg1930555)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.4 RELEASED - Supporting RC2]
Post by: akbora on January 06, 2010, 06:13:44 PM
Nibogo this mod is great... I use since I have opened my forum...

*Have you seen my pms?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.4 RELEASED - Supporting RC2]
Post by: sattninja on January 06, 2010, 06:29:54 PM
WTF man do you even know what the hell you are doing this is the second mod i have installed from you that took down my site the other one is thank o matic

i am staying away from anything made by you in the future

sorry but this is ridiculous :( :( :(
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.4 RELEASED - Supporting RC2]
Post by: ~DS~ on January 06, 2010, 06:33:11 PM
thank o matic  is the faulty one, I tell you. I didn't had YAGAM mod back then and thank o matic took my site down several times and had to restore and uninstalled it for good. thank o matic is unstable.

Edit: I take it back, it took my site down and came up with the error:
Code: [Select]
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/nathanb4/public_html/test/SSI.php on line 2066located in SSI.php
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.4 RELEASED - Supporting RC2
Post by: Spoogs on January 07, 2010, 04:08:57 AM
WTF man do you even know what the hell you are doing this is the second mod i have installed from you that took down my site the other one is thank o matic

i am staying away from anything made by you in the future

sorry but this is ridiculous :( :( :(
Thats a bit harsh
BTW he is not the author for thank-o-matic. Way to carry on about a free mod that just has some errors.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: nov korisnik on January 07, 2010, 07:22:49 AM
Will this mod be compatible with version 1.1.11?
enough to help us   8)
http://www.simplemachines.org/community/index.php?topic=292270.msg1930555#msg1930555 (http://www.simplemachines.org/community/index.php?topic=292270.msg1930555#msg1930555)
we waited a long time
http://www.simplemachines.org/community/index.php?topic=106295.msg2442320#msg2442320
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.4 RELEASED - Supporting RC2]
Post by: Nibogo on January 07, 2010, 11:36:09 AM
For the people with the error in the SSI.php just remove the two latest functions added by yagam
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.4 RELEASED - Supporting RC2]
Post by: Verso on January 07, 2010, 01:39:45 PM
I've just installed this and its ******ed up my forum!!!!!

It's all gone white

Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.4 RELEASED - Supporting RC2]
Post by: sattninja on January 07, 2010, 02:19:30 PM
exactly

hope you have a backup if you do just ftp it up to the server it is something in one of the .subs file that this mod alters it installs with no errors then your site is gone


NICE!!!!!
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.4 RELEASED - Supporting RC2]
Post by: applecheescake on January 08, 2010, 11:51:37 AM
i get this come up on my forum:
Code: [Select]
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/boosh80/public_html/SSI.php  on line 2076 what can i do to sort it?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.4 RELEASED - Supporting RC2]
Post by: Vyache on January 08, 2010, 12:43:16 PM
Conflicts with SimplePortal on my forum. I get a white page after installing these two mods together.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.4 RELEASED - Supporting RC2]
Post by: Nibogo on January 08, 2010, 12:47:39 PM
For people with the blank page please open SSI.php:

Search for:

Code: [Select]
global $scripturl, $smcFunc;

$request = $smcFunc['db_query']('', "
SELECT
title, id_announcement

Replace with:

Code: [Select]
global $scripturl, $smcFunc;

$request = $smcFunc['db_query']('', '
SELECT
title, id_announcement

I'm adding additional Curve support for YAGAM and this fix plus some new things will be released today
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.4 RELEASED - Supporting RC2]
Post by: akbora on January 08, 2010, 01:58:45 PM
I was using the mod successfully but I start to use with RC2 but some problems appears. Also blank page.

Let me try again. Thanks
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.4 RELEASED - Supporting RC2]
Post by: applecheescake on January 08, 2010, 02:06:23 PM
sorted... cheers!!
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.4 RELEASED - Supporting RC2]
Post by: applecheescake on January 08, 2010, 03:04:38 PM
with the ./Sources/Admin.php file i found that this
Code: [Select]
      'announcements' => array(
'label' => $txt['yagam_admin'],
'file' => 'Announcements.php',
'function' => 'AnnouncementsMain',
'custom_url' => $scripturl . '?action=admin;area=announcements;sa=admin;sesc=' . $sc,
'icon' => 'yagam.gif',
                    'subsections' => array(
    'admin' => array($txt['yagam_admin'], 'admin_forum'),
    'add' => array($txt['yagam_admin_add'], 'admin_forum'),
                                            'settings' => array($txt['yagam_admin_settings'], 'admin_forum'),
                                            'version' => array($txt['yagam_version'], 'admin_forum'),
),
),
'postsettings' => array(
'label' => $txt['manageposts'],
'file' => 'ManagePosts.php',
'function' => 'ManagePostSettings',
caused an error, but removing the
Code: [Select]
'postsettings' => array(
'label' => $txt['manageposts'],
'file' => 'ManagePosts.php',
'function' => 'ManagePostSettings',
enabled it to work freely.

i just thought i'd let others know that any admin.php errors could be caused by this
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: Nibogo on January 08, 2010, 09:35:42 PM
YAGAM v2.5 Released. In this release you can't see all the changes but the mod has been totally optimized specially in the installation script and in the Announcements.php file. For all the changes in the code, the little new features and the new installation script 2.5 is a Big Upgrade.

Changelog:


Version 2.5 (Big Upgrade) - Jan 08, 2010
- Added Additional Curve Support viewing an Announcement (Now we have corners like Curve).
- Little tweaks to the Add Comment Form, Now everything is centered, added support for shortcuts and the Add Comment button now has a better style.
- Added Comments Pages.
- Added option to convert comments into replies in the Make Topic Page.
- Modded all the Installation Script now added Support for PostgreSQL and SQLite plus now using the SMF 2.0 Standards and fixed a bug loading the Curve Stylesheet.
- Added a new checkbox to easily select all the membergroups when we are adding/editing announcements.
- Changed a lot of queries.
- Changed some codes to make the mod a little bit faster and most importantly with a better semanthic.
- Now when you delete an announcement, the comments and log of this announcements in deleted too.
- Fixed fatal error in the SSI.php Edit.
- Fixed missed space in the MessageIndex on Announcements Comments.
- Fixed additional bugs with the Comments as Regular Posts.
- The Announcement Log is Back now loading the users posts and now it comes with the Curve Style.
- Updated the YAGAM Version Page.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: social on January 09, 2010, 08:07:41 AM
Great mod, but i have an error have if i can help you here of the file SSI.PHP

Fatal error: Cannot redeclare ssi_announcement() (previously declared in /home/turedsoc/public_html/SSI.php:2050) in /home/turedsoc/public_html/SSI.php on line 2199

Having if i say what the problem is here to continue learning
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: Nibogo on January 09, 2010, 09:48:22 AM
YAGAM v2.5??

I tested yesterday and works great
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: Vyache on January 09, 2010, 02:16:20 PM
@NIBOGO

Thank you for the fix. Works great.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: Nibogo on January 09, 2010, 02:42:03 PM
Glad you like it :)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: applecheescake on January 09, 2010, 06:25:43 PM
Great mod, but i have an error have if i can help you here of the file SSI.PHP

Fatal error: Cannot redeclare ssi_announcement() (previously declared in /home/turedsoc/public_html/SSI.php:2050) in /home/turedsoc/public_html/SSI.php on line 2199

Having if i say what the problem is here to continue learning

check the code you see on line 2199 and check it on line 2050... it'll be the same, so all you have to do is remove ALL of the duplicate code
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: social on January 09, 2010, 08:59:05 PM
line 2049 this ==> // YAGAM SSI Function
line 2050 this==>  function ssi_announcement($announcement = null)

Fatal error: Cannot redeclare ssi_random_announcement() (previously declared in /home/turedsoc/public_html/SSI.php:2117) in /home/turedsoc/public_html/SSI.php on line 2159

Look the Picture
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: social on January 09, 2010, 09:58:16 PM
Thanks friend, 130860  (http://www.simplemachines.org/community/index.php?action=profile;u=130860) helped me with the problem, so that problem solved.

THANKS  NIBOGO... THIS MOD IS FANTASTY !!! Thanks
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: akbora on January 09, 2010, 11:16:07 PM
Again SSI problem. Blank page!
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: social on January 11, 2010, 06:59:23 AM
ok. Check This.

For people with the blank page please open SSI.php:

Search for:

Code: [Select]
global $scripturl, $smcFunc;

$request = $smcFunc['db_query']('', "
SELECT
title, id_announcement

Replace with:

Code: [Select]
global $scripturl, $smcFunc;

$request = $smcFunc['db_query']('', '
SELECT
title, id_announcement

I'm adding additional Curve support for YAGAM and this fix plus some new things will be released today

or Try This

mira, busca esto:

Code: [Select]
function ssi_announcement($announcement = null)
{
global $scripturl, $smcFunc, $txt, $settings, $modSettings, $context;

loadLanguage('Stats');

if ($announcement !== null)
$announcement = (int) $announcement;
elseif (isset($_GET['aid']))
$announcement = (int) $_GET['aid'];

$request = $smcFunc['db_query']('', '
SELECT
a.title, a.content, a.author, a.date, mem.id_member, mem.member_name
FROM {db_prefix}announcements AS a
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = a.author)
WHERE a.id_announcement = {int:announcement_id}',
array(
    'announcement_id' => $announcement,
)
);
$return = array();

if ($smcFunc['db_num_rows']($request) == 0)
{
die($txt['smf_news_error2']);
}

$row = $smcFunc['db_fetch_assoc']($request);

censorText($row['title']);
censorText($row['content']);

$global[] = array(
'title' => '<a href="' . $scripturl . '?action=announcements;aid=' . $announcement . '">'.$row['title'].'</A>',
'date' => timeformat($row['date']),
'content' => $row['content'],
'link' => ''.$txt['read_more'].'</a>',
'poster' => array(
'id' => $row['author'],
'name' => $row['member_name'],
'href' => !empty($row['author']) ? $scripturl . '?action=profile;u=' . $row['author'] : '',
'link' => !empty($row['author']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['author'] . '">' . $row['member_name'] . '</a>' : $row['member_name']
),
  );
$smcFunc['db_free_result']($request);

foreach ($global as $global_announcement)
echo '<table border="0" width="100%" align="center" class="smfNews">
<tr>
<td><b>', $global_announcement['title'], '</b><span class="smaller"><br />', $global_announcement['date'], ' '.$txt['by'].' ', $global_announcement['poster']['link'], '<br /><br /></span>
</td>
</tr>
<tr>
<td>', $global_announcement['content'], '<br /><br />
</td>
</tr>
<tr>
<td>', $global_announcement['link'], '
</td>
</tr>
</table>';
}


and this:


Code: [Select]
function ssi_random_announcement()
{
   global $scripturl, $smcFunc;

$request = $smcFunc['db_query']('', '
SELECT
title, id_announcement
FROM {db_prefix}announcements
WHERE enable = {int:is_approved}
ORDER BY RAND()',
array(
   'is_approved' => 1,
)
);

$row = $smcFunc['db_fetch_assoc']($request);
censorText($row['title']);
    $row['title'] = '<a href="' . $scripturl . '?action=announcements;aid=' . $row['id_announcement'] . '">'.$row['title'].'</a>';
$smcFunc['db_free_result']($request);
echo $row['title'];
}


These are the two functions that were repeated

These were my problem
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: tanshin on January 12, 2010, 01:52:21 PM
Hi there, not sure if this has been asked/or I'm being totally ignorant but... is there a way to make an existing topic an announcement?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: applecheescake on January 12, 2010, 04:40:00 PM
my announcements don't show up on the site at all... help!

also... i went to update it and got the attached errors come up
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2
Post by: nuva on January 13, 2010, 02:36:10 PM

Thanks for the translation but can I ask you something??

This strings has to be translated too:

Code: [Select]
// YAGAM - Admin and MessageIndex Strings
$txt['yagam_admin'] = 'Global Announcements';
$txt['yagam_sticky_bar'] = 'Important Topics';
$txt['yagam_topics'] = 'Normal Topics';
$txt['yagam_created'] = 'Created on';
$txt['yagam_remove_verify'] = 'Are you sure that you want to delete this announcement?';
$txt['whoall_announcements'] = 'Viewing a Global Announcement';
$txt['permissionname_yagam_manage'] = 'Manage Global Announcements';
$txt['permissionhelp_yagam_manage'] = 'Set if you wish to allow the user to manage global announcements.';
$txt['permissionname_yagam_comment'] = 'Comment Global Announcements';
$txt['permissionhelp_yagam_comment'] = 'Set if you wish to allow user comments on global announcements.';
$txt['yagam_edit2'] = 'Edit';
$txt['yagam_edit'] = 'Edit Announcement';
$txt['yagam_remove'] = 'Delete Announcement';
$txt['yagam_remove2'] = 'Remove';
$txt['yagam_admin_add'] = 'Add Global Announcement';
$txt['yagam_admin_settings'] = 'Global Announcements Settings';
$txt['yagam_version'] = 'Global Announcements Version';

Thanks!

no problem ;)
Code: [Select]
// YAGAM - Admin and MessageIndex Strings
$txt['yagam_admin'] = 'Globale mededelingen';
$txt['yagam_sticky_bar'] = 'Belangrijke topics';
$txt['yagam_topics'] = 'Normale Topics';
$txt['yagam_created'] = 'gecreëerd op';
$txt['yagam_remove_verify'] = 'Weet je zeker dat je deze mededeling wilt verwijderen?';
$txt['whoall_announcements'] = 'Globale mededelingen bekijken.';
$txt['permissionname_yagam_manage'] = 'Globale mededelingen bekijken';
$txt['permissionhelp_yagam_manage'] = 'Stel in indien u wenst dat de gebruiker forummededelingen kunnen beheren.';
$txt['permissionname_yagam_comment'] = 'becommentarieer mededeling';
$txt['permissionhelp_yagam_comment'] = 'Stel in als u wilt toestaan dat gebruikers commentaar kunnen geven.';
$txt['yagam_edit2'] = 'Aanpassen';
$txt['yagam_edit'] = 'Mededeling aanpassen';
$txt['yagam_remove'] = 'Mededeling verwijderen';
$txt['yagam_remove2'] = 'Verwijderen';
$txt['yagam_admin_add'] = 'Globale mededeling toevoegen';
$txt['yagam_admin_settings'] = 'instellingen van globale mededelingen';
$txt['yagam_version'] = 'Versie van globale mededelingen';






How do i update YAGAM?
If i delete the previoust version, do i lose the current data?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: Nibogo on January 13, 2010, 09:03:55 PM
How do i update YAGAM?
If i delete the previoust version, do i lose the current data?

Uninstall the last version and install this new one, you will not lose anything

my announcements don't show up on the site at all... help!

also... i went to update it and got the attached errors come up

Do manual edit
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: tanshin on January 13, 2010, 09:18:08 PM
Hi there, I don't know if you noticed my question (it was the last post on the previous page) but, is there any way to make already posted threads announcements?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: Nibogo on January 13, 2010, 09:41:12 PM
Hi there, I don't know if you noticed my question (it was the last post on the previous page) but, is there any way to make already posted threads announcements?

Yep, you can copy the Topic content and create a new announcement with this content, but there is no automatic way to do this (and you will lose all the replies in the topic unless you manually insert them in the DataBase). Maybe I can do something with this for the next release.


no problem ;)
Code: [Select]
// YAGAM - Admin and MessageIndex Strings
$txt['yagam_admin'] = 'Globale mededelingen';
$txt['yagam_sticky_bar'] = 'Belangrijke topics';
$txt['yagam_topics'] = 'Normale Topics';
$txt['yagam_created'] = 'gecreëerd op';
$txt['yagam_remove_verify'] = 'Weet je zeker dat je deze mededeling wilt verwijderen?';
$txt['whoall_announcements'] = 'Globale mededelingen bekijken.';
$txt['permissionname_yagam_manage'] = 'Globale mededelingen bekijken';
$txt['permissionhelp_yagam_manage'] = 'Stel in indien u wenst dat de gebruiker forummededelingen kunnen beheren.';
$txt['permissionname_yagam_comment'] = 'becommentarieer mededeling';
$txt['permissionhelp_yagam_comment'] = 'Stel in als u wilt toestaan dat gebruikers commentaar kunnen geven.';
$txt['yagam_edit2'] = 'Aanpassen';
$txt['yagam_edit'] = 'Mededeling aanpassen';
$txt['yagam_remove'] = 'Mededeling verwijderen';
$txt['yagam_remove2'] = 'Verwijderen';
$txt['yagam_admin_add'] = 'Globale mededeling toevoegen';
$txt['yagam_admin_settings'] = 'instellingen van globale mededelingen';
$txt['yagam_version'] = 'Versie van globale mededelingen';

Thanks a lot would be added in the next release
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: applecheescake on January 14, 2010, 02:44:37 AM
is your response of ''do manual edit'' supposed to sort out the fact that this mod isn't working on mysite? i manually installed it when it was first installed and it desn't work at all
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: tanshin on January 14, 2010, 10:13:56 AM
Hi there, I don't know if you noticed my question (it was the last post on the previous page) but, is there any way to make already posted threads announcements?

Yep, you can copy the Topic content and create a new announcement with this content, but there is no automatic way to do this (and you will lose all the replies in the topic unless you manually insert them in the DataBase). Maybe I can do something with this for the next release.

Okay, that should work temporarily. Looking forward to the next update though!
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: Nibogo on January 14, 2010, 05:48:26 PM
is your response of ''do manual edit'' supposed to sort out the fact that this mod isn't working on mysite? i manually installed it when it was first installed and it desn't work at all

Yep that is my response, because the installation has some errors (I'm talking about the screenshot) and you must edit it manually that files

Hi there, I don't know if you noticed my question (it was the last post on the previous page) but, is there any way to make already posted threads announcements?

Yep, you can copy the Topic content and create a new announcement with this content, but there is no automatic way to do this (and you will lose all the replies in the topic unless you manually insert them in the DataBase). Maybe I can do something with this for the next release.

Okay, that should work temporarily. Looking forward to the next update though!

Added to the bug tracker:

http://www.smfpacks.com/index.php?issue=5.0
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: applecheescake on January 15, 2010, 04:58:05 AM
i've done it, but the mod still doesn't work properly... it shows in the admin panel and can be edited/commented on through there, but the announcements don't actually show up on the boards that are selected
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: Nibogo on January 15, 2010, 02:16:41 PM
If you have a custom theme you must edit the Messageindex.template.php and check the permissions of the announcement
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: applecheescake on January 15, 2010, 03:18:01 PM
what's the edit i need to do in there then? i've checked the permissions everytime and it's for all to see :)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: Nibogo on January 15, 2010, 04:27:01 PM
what's the edit i need to do in there then? i've checked the permissions everytime and it's for all to see :)

The same edit that you do on Curve
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: okae on January 16, 2010, 03:13:13 PM
first at all thx for this great mod; i have a problem
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg689.imageshack.us%2Fimg689%2F7416%2Fdibujoyay.jpg&hash=c874451377bd939fac9cd0b8d113edfb)
as you can see in the image i have a problem about how this golbal announcements show the post, can anyone help me?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: applecheescake on January 16, 2010, 03:38:07 PM
what's the edit i need to do in there then? i've checked the permissions everytime and it's for all to see :)

The same edit that you do on Curve

can't find it... can you direct me to it mate?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: ~DS~ on January 17, 2010, 05:15:02 AM
Getting bunch of errors in the log
Code: [Select]
8: Undefined variable: announcement_permission in
Code: [Select]
cache/lang_Project_english_lightmodern.php (main sub template - eval?)
Line: 257
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: sherwinaval on January 17, 2010, 08:48:09 AM
I'm getting the same error and global announcements doesn't show up to members but show up to administrators. Didn't have a choice but to remove, can't find the fix even if it's manual.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: okae on January 17, 2010, 10:47:46 AM
hi again, i have lot of problems well first at all thats the permissions for all global announcements i have:
 
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg222.imageshack.us%2Fimg222%2F5062%2Fpermisos.jpg&hash=6f5297145786abbe1c38d1c0bb55eaf6)
 
with those permissions admins can see the post:
 
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg163.imageshack.us%2Fimg163%2F7681%2Fadminx.jpg&hash=3848831cdb4277ea1b907df76fb48213)
 
but normal users cant see the post:
 
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg407.imageshack.us%2Fimg407%2F4821%2Fnormalusers.jpg&hash=1785a9c41110332937320acb55db9a31)
 
so as you can see permissions dont work :(
 
well and now another problem that i already post but i want to report again, if i dont allow comments:
 
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg9.imageshack.us%2Fimg9%2F3287%2Fcommentszp.jpg&hash=367820efaade61327e5194cbe5c3cf59)
 
post template crash like like you can see here:
 
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg163.imageshack.us%2Fimg163%2F2013%2Fcomments2.jpg&hash=3ee4305a210894a03dd0ca2be87f8e5a)
 
so how to fix all those problems? someone have the same problems?, also there is the list of mods that i currently have installed:
 
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg21.imageshack.us%2Fimg21%2F8466%2Fmodse.jpg&hash=1b7457fad3d8004a3b02a1aede1746be)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: Nibogo on January 17, 2010, 01:54:03 PM
Currently I'm really sick so I'll check the permissions issue as soon as I feel better
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: sherwinaval on January 18, 2010, 02:09:44 AM
Get well soon Nibogo :)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: Nibogo on January 18, 2010, 09:53:00 PM
Changelog:

Version 2.6 - Jan 18, 2010
- Fixed issue with the Announcements Permissions.
- Fixed issue with Announcements Replies.
- Added Option to Convert Topic into Announcements.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: okae on January 19, 2010, 07:11:44 AM
thx nibogo!!! permissions works now!!!, but the issue with the template if you dont allow comments still there :(
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: Nibogo on January 19, 2010, 03:10:12 PM
I forgot it, I'll check it for the next release
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: Bugo on January 24, 2010, 03:24:00 AM
Error log

Code: [Select]
Undefined index: comment_total
File: /../Sources/AnnouncementView.php
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: KensonPlays on February 01, 2010, 01:34:46 AM
Installed except for a bunch of the PHP showing on the very top of every page (and with the
Code: [Select]
SimpleSEF  1.0.2  [ Install Mod ]  [ List Files ]  [ Delete ]
25. Aeva Media 1.0 Beta 5 [ List Files ] [ Delete ]
26. Word Count Limits 1.1 [ Install Mod ] [ List Files ] [ Delete ]
27. Annoy User 1.2 [ Install Mod ] [ List Files ] [ Delete ]
28. Global Headers Footers 2.0 [ Install Mod ] [ List Files ] [ Delete ]
29. Yet Another Global Announcements Mod 2.5 [ Install Mod ] [ List Files ] [ Delete ]
mods as well... ...they install correctly, but the code for it appears above the rest of the forum!
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: petesky on February 10, 2010, 06:33:56 AM
Hi !

I installed this but had troubles to use so i decided to uninstall. Now a topic will always stay remain unread - why ?!
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: okae on February 22, 2010, 07:37:49 PM
great mod nibogo, but i have again some problems that maybe you can easy fix, if you allow comments:
 (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg514.imageshack.us%2Fimg514%2F7852%2F2copiat.jpg&hash=7a5a3062b223c0382140cd86bea61c62)

 
 
if you dont allow comments:
 
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg682.imageshack.us%2Fimg682%2F1161%2F1copiaw.jpg&hash=865a1fae1462deb75b85d52a7dd6b860)
 
can you tell me what i need to change to solved it?
 
pd: again, thx for this great mod.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: sherwinaval on March 02, 2010, 02:27:43 AM
Nice mod, now it works with my forum :)

But, I'm currently getting an error when trying to convert a topic to an announcement. The error was "Unable to load the 'main' template.". When I try to convert a topic, it goes to another page and displays nothing except the header of the template.

Any ideas? Thanks
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: okae on March 09, 2010, 07:05:03 AM
this mod will be updated for 2.0rc3?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: Nibogo on March 09, 2010, 01:14:15 PM
this mod will be updated for 2.0rc3?

Using the emulate version you can install it on SMF 2.0 RC3 skipping the error in ssi_examples.php file. Currently I'm working in the v2.7 with RC3 Support and XHTML Errors Fixed.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: okae on March 09, 2010, 02:30:31 PM
this mod will be updated for 2.0rc3?

Using the emulate version you can install it on SMF 2.0 RC3 skipping the error in ssi_examples.php file. Currently I'm working in the v2.7 with RC3 Support and XHTML Errors Fixed.

i will w8 for it, i hope you release it soon ;)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.5 RELEASED - Supporting RC2]
Post by: steve51184 on March 09, 2010, 07:42:34 PM
rc3 update?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: Nibogo on March 09, 2010, 08:04:49 PM
v2.7 Released

Changelog:


+ New Feature | - Feature Removed | * Changed | @ Important Info | ! Bug Fixed

Version 2.7 - Mar 09, 2010
+ All the templates has been re-writted for the best Curve Experience.
+ Added SMF 2.0 RC3 Support.
+ Added Massive Quick Delete in the Announcements Admin Panel.
+ Added Spellchecker Support (Only if it's enabled in the SMF Admin Panel).
! Fixed some XHTML Validation Errors.
! Fixed Permission Verification for non-admins Deleting Announcements.
@ A lot of code has been optimized.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: tanshin on March 10, 2010, 07:08:50 AM
I also see you added in "convert thread to announcement" commands!
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: petesky on March 11, 2010, 08:57:40 AM
I installed the 2.7 and tried to convert an topic into an announcement. This wouldn't work so far but as i set READ ANNOUNCEMENTS on login i get an error message that announcement does not exists ?!
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: petesky on March 13, 2010, 05:26:39 AM
Hey Nibogo !

I tried to convert a topic into an announcement which results in nothing (no announcement, no error message) but when enabling read announcements on login i get the message "announcement does not exists"...
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: Makar on March 23, 2010, 03:45:36 AM
no errors during installation (on the forum have already installed the 38 mods)

after installation for RC3

Code: [Select]
admin

 Type of error: Undefined

http://site.com/smf/index.php?action=admin;area=logs;sa=errorlog;desc

8: Undefined index: counters

File: /home/host/public_html/smf/Sources/Admin.php
Line: 153
  User

 Type of error: Undefined

http://site.com/smf/index.php?action=announcement;aid=1

8: Undefined variable: Оффлайн

File: /home/host/public_html/smf/Themes/default/GenericControls.template.php (announcement_view sub template - eval?)
Line: 35
  User

 Type of error: Undefined

http://site.com/smf/index.php?action=announcement;aid=1

8: Undefined index: comment_total

File: /home/host/public_html/smf/Sources/AnnouncementView.php
Line: 190
  User
 
 Type of error: Undefined

http://site.com/smf/index.php?action=announcement;aid=1

8: Undefined index: comment_total

File: /home/host/public_html/smf/Sources/AnnouncementView.php
Line: 184
  User
 
 Type of error: Undefined

http://site.com/smf/index.php?action=announcement;aid=1

8: Undefined variable: Оффлайн

File: /home/host/public_html/smf/Themes/default/GenericControls.template.php (announcement_view sub template - eval?)
Line: 35
  User

 Type of error: Undefined

http://site.com/smf/index.php?action=announcement;aid=1

8: Undefined index: comment_total

File: /home/host/public_html/smf/Sources/AnnouncementView.php
Line: 190
  User

 Type of error: Undefined

http://site.com/smf/index.php?action=announcement;aid=1

8: Undefined index: comment_total

File: /home/host/public_html/smf/Sources/AnnouncementView.php
Line: 184
  admin

 Type of error: General

http://site.com/smf/index.php?action=announcement;aid=1

2: Invalid argument supplied for foreach()

File: /home/host/public_html/smf/Themes/default/GenericControls.template.php (announcement_view sub template - eval?)
Line: 587
  admin

 Type of error: Undefined

http://site.com/smf/index.php?action=announcement;aid=1

8: Undefined variable: normal_buttons

File: /home/host/public_html/smf/Themes/default/GenericControls.template.php (announcement_view sub template - eval?)
Line: 509
  admin

 Type of error: General

http://site.com/smf/index.php?action=announcement;aid=1

2: Invalid argument supplied for foreach()

File: /home/host/public_html/smf/Themes/default/GenericControls.template.php (announcement_view sub template - eval?)
Line: 587
  admin

 Type of error: Undefined

http://site.com/smf/index.php?action=announcement;aid=1

8: Undefined variable: normal_buttons

File: /home/host/public_html/smf/Themes/default/GenericControls.template.php (announcement_view sub template - eval?)
Line: 248
  admin
 
 Type of error: Undefined

http://site.com/smf/index.php?action=announcement;aid=1

8: Undefined index: previous_next

File: /home/host/public_html/smf/Themes/default/GenericControls.template.php (announcement_view sub template - eval?)
Line: 248
  admin

 Type of error: Undefined

http://site.com/smf/index.php?action=announcement;aid=1

8: Undefined variable: Онлайн

File: /home/host/public_html/smf/Themes/default/GenericControls.template.php (announcement_view sub template - eval?)
Line: 35
  admin

 Type of error: Undefined

http://site.com/smf/index.php?action=announcement;aid=1

8: Undefined index: comment_total

File: /home/host/public_html/smf/Sources/AnnouncementView.php
Line: 190
  admin

 Type of error: Undefined

http://site.com/smf/index.php?action=announcement;aid=1

8: Undefined index: comment_total

File: /home/host/public_html/smf/Sources/AnnouncementView.php
Line: 184


how to fix?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.3 RELEASED - Supporting RC2]
Post by: aw06 on March 27, 2010, 12:41:20 PM
Another bug found, the footer showed in the right instead of the bottom. I don't know if it's related to Global Headers and Footers mod or YAGAM mod.

Exactly how you get the facebook and twitter icons there ?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3
Post by: drhamad on March 29, 2010, 03:46:50 PM
Is this how it's supposed to look (see attached)?  Not looking like other posts - columns wrong and such?  I don't remember previous versions of YAGAM being like this, nor does it look like this in the screenshots of the mod.

Let me know, thanks.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: Nibogo on March 29, 2010, 03:52:37 PM
Is this how it's supposed to look (see attached)?  Not looking like other posts - columns wrong and such?  I don't remember previous versions of YAGAM being like this, nor does it look like this in the screenshots of the mod.

Let me know, thanks.

You must edit the table that shows the announcements, this happend because in Curve the Started by and Subject columns has been merged the same happend with views and replies
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: aw06 on March 29, 2010, 08:09:04 PM
all files passed and mod install, however when a GA is made it get lots of errors... see pic of some, they span about 2 pages each time the GA is viewed. Please advise how to fix... running 2.0 rc3
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3
Post by: drhamad on March 29, 2010, 10:07:19 PM
Is this how it's supposed to look (see attached)?  Not looking like other posts - columns wrong and such?  I don't remember previous versions of YAGAM being like this, nor does it look like this in the screenshots of the mod.

Let me know, thanks.

You must edit the table that shows the announcements, this happend because in Curve the Started by and Subject columns has been merged the same happend with views and replies

Do you have a version of this done for Core, by any chance?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: Nibogo on March 29, 2010, 10:32:41 PM
Is this how it's supposed to look (see attached)?  Not looking like other posts - columns wrong and such?  I don't remember previous versions of YAGAM being like this, nor does it look like this in the screenshots of the mod.

Let me know, thanks.

You must edit the table that shows the announcements, this happend because in Curve the Started by and Subject columns has been merged the same happend with views and replies

Do you have a version of this done for Core, by any chance?

Try with YAGAM v2.1
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: drhamad on March 29, 2010, 10:34:47 PM
Thanks, I'll let you know!
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: drhamad on March 29, 2010, 10:58:56 PM
Hmm, I replaced the MessageIndex.template.php code with the YAGAM 2.0 code and it didn't make a difference.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: aw06 on April 02, 2010, 02:31:13 AM
all files passed and mod install, however when a GA is made it get lots of errors... see pic of some, they span about 2 pages each time the GA is viewed. Please advise how to fix... running 2.0 rc3

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.simplemachines.org%2Fcommunity%2Findex.php%3Faction%3Ddlattach%3Btopic%3D292270.0%3Battach%3D139413%3Bimage&hash=c34dfe166aa8e09568d5252906e66b58)

BUmp ,,, still need help with this...

Line 35 ... ... AnouncementView/errors.php
Code: [Select]
FROM {db_prefix}announcements AS a
Line 190 ... AnouncementView/errors.php
Code: [Select]
'num_pages' => floor(($context['announcement']['comment_total'] - 1) / $limit) + 1,
Line 201 ... source/errors.php
Code: [Select]
$error_message = empty($sprintf) ? $txt[$error] : vsprintf($txt[$error], $sprintf);
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: Makar on April 05, 2010, 01:41:39 PM
NIBOGO , I have also similar problem   as aw06

Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3] (http://www.simplemachines.org/community/index.php?topic=292270.msg2551374#msg2551374)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: ~DS~ on April 10, 2010, 04:33:21 AM
NIBOGO, i uninstalled because it had many error as mentioned in the previous comments.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: Cutter65 on April 10, 2010, 09:11:21 AM
NIBOGO, i uninstalled because it had many error as mentioned in the previous comments.

Same here. Was getting the same errors as aw06. Running 2.0 RC3.

Cutter
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: drhamad on April 10, 2010, 10:04:14 AM
As an FYI, we've now moved to Curve so my comments about Core are irrelevant.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: aw06 on April 10, 2010, 10:16:13 AM
I have not un-installed... i just don't put up any announcement yet, I'm just using the mod to separate the sticky post from normal .. still waiting for a fix for all the errors.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: Nibogo on April 10, 2010, 07:07:02 PM
For those asking for a new version I'm working on it, I was finishing the release of my next product and now I'm fixing these errors but you must know that this errors aren't serious or important so I don't know why uninstall it if works great.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: ~DS~ on April 10, 2010, 07:08:39 PM
For those asking for a new version I'm working on it, I was finishing the release of my next product and now I'm fixing these errors but you must know that this errors aren't serious or important so I don't know why uninstall it if works great.
I am minimalist. :P
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: Nibogo on April 10, 2010, 08:34:32 PM
Changelog:

+ New Feature | - Feature Removed | * Changed | @ Important Info | ! Bug Fixed

Version 2.7.2 - Apr 04, 2010
! Fixed all the errors in the Error Log
! Fixed little issue with the random announcement ssi function
* Some little tweaks to the announcements on index

I didn't test it but I hope it works :D
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: aw06 on April 10, 2010, 08:56:03 PM
Installed, still errors when viewing an announcement... See pic
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: Cutter65 on April 10, 2010, 09:17:24 PM
Same here with the new version. When you read a global announcement it causes 10 or so errors in the error log.

Thank you NIBOGO for all the work you do for all us SMF users!  ;D

Cutter
 
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: Nibogo on April 11, 2010, 11:53:13 AM
Installed, still errors when viewing an announcement... See pic

You only have that errors???
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: ~DS~ on April 11, 2010, 12:29:31 PM
Installed, still errors when viewing an announcement... See pic

You only have that errors???
No, I guess you did test it?
Code: [Select]
8: Undefined variable: Online
File: /home/user/public_html/dev/Themes/default/AnnouncementView.template.php
Line: 35

Code: [Select]
2: Division by zero
File: /home/user/public_html/dev/Sources/AnnouncementView.php
Line: 201

Code: [Select]
8: Undefined variable: limit
File: /home/user/public_html/dev/Sources/AnnouncementView.php
Line: 201
Code: [Select]
2: Division by zero
File: /home/user/public_html/dev/Sources/AnnouncementView.php
Line: 200

Code: [Select]
8: Undefined variable: limit
File: /home/user/public_html/dev/Sources/AnnouncementView.php
Line: 200

Code: [Select]
2: Division by zero
File: /home/user/public_html/dev/Sources/Subs.php
Line: 692

Code: [Select]
2: Division by zero
File: /home/user/public_html/dev/Sources/Subs.php
Line: 687
Code: [Select]
2: Division by zero
File: /home/user/public_html/dev/Sources/Subs.php
Line: 682

Code: [Select]
2: Division by zero
File: /home/user/public_html/dev/Sources/Subs.php
Line: 677

Code: [Select]
2: Division by zero
File: /home/user/public_html/dev/Sources/Subs.php
Line: 630

Code: [Select]
8: Undefined variable: limit
File: /home/user/public_html/dev/Sources/AnnouncementView.php
Line: 195

Code: [Select]
2: Missing argument 5 for smf_db_insert(), called in /home/user/public_html/dev/Sources/Announcements.php on line 215 and defined
File: /home/user/public_html/dev/Sources/Subs-Db-mysql.php
Line: 606

This was on fresh install.  ;)






Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: Nibogo on April 11, 2010, 01:24:33 PM
Please try the package attached

I change the way the pagination is created and fix the DB error, works for me
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: ~DS~ on April 11, 2010, 01:41:39 PM
Please try the package attached

I change the way the pagination is created and fix the DB error, works for me
Yep that fixed it. Good job.  ;)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: Cutter65 on April 11, 2010, 02:00:15 PM
Please try the package attached

I change the way the pagination is created and fix the DB error, works for me
Yep that fixed it. Good job.  ;)

No errors now for me to! Great job!

Thanks NIBOGO for working out this issue for us!  ;D

Cutter
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: aw06 on April 11, 2010, 02:00:46 PM
Please try the package attached

I change the way the pagination is created and fix the DB error, works for me

Jackpot.... you got it ... No Errors,, Logs clean  8)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: ~DS~ on April 11, 2010, 02:19:12 PM
There is one. If you click the announcement log
Code: [Select]
8: Undefined index: can_view_profile
File: /home/user/public_html/forum.com/Themes/default/AnnouncementView.template.php
Line: 115
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: Nibogo on April 11, 2010, 02:47:00 PM
There is one. If you click the announcement log
Code: [Select]
8: Undefined index: can_view_profile
File: /home/user/public_html/forum.com/Themes/default/AnnouncementView.template.php
Line: 115

I can't reproduce it plus the announcement log doesn't load the AnnouncementView.template.php file, there is any URL whee the error is caused??
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: ~DS~ on April 11, 2010, 02:48:19 PM
Sure here:
Code: [Select]
http://forum.com/index.php?action=announcements;sa=log;aid=4
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: Nibogo on April 11, 2010, 02:52:25 PM
I tried to reproduce it on my localhost and I can't

Someone else has this error??
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: ~DS~ on April 11, 2010, 02:57:24 PM
I tried to reproduce it on my localhost and I can't

Someone else has this error??
Ok, I tried on my localhost, it didn't reproduce the error. Must be on my live site. I will look into the AnnouncementView.template.php
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: aw06 on April 11, 2010, 03:02:06 PM
Yeah, get error when click log as well ...

Code: [Select]
http://xxxxx/forum/index.php?action=announcements;sa=log;aid=6
8: Undefined index: announcement_no_permission
File: /home/xxxx/public_html/forum/Sources/Errors.php
Line: 201
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: Nibogo on April 11, 2010, 03:22:26 PM
Well I find some issues with the permission viewing profiles and I attach a new package, hope it works

This should be the v2.7.3 it adds 4 new lines to the changelog and if you guys can use it without any error I'll announce it
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: ~DS~ on April 11, 2010, 03:32:35 PM
Well I find some issues with the permission viewing profiles and I attach a new package, hope it works

This should be the v2.7.3 it adds 4 new lines to the changelog and if you guys can use it without any error I'll announce it
That fixed the "8: Undefined index: can_view_profile" issue, however there is unexpected ; in Sources/AnnouncementView.php

Find:
Code: [Select]
'can_view_profile' => allowedTo('profile_view_any') || ($row['author'] == $user_info['id'] && allowedTo('profile_view_own'));
Replace:
Code: [Select]
'can_view_profile' => allowedTo('profile_view_any') || ($row['author'] == $user_info['id'] && allowedTo('profile_view_own')),
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: aw06 on April 11, 2010, 04:05:28 PM
Well I find some issues with the permission viewing profiles and I attach a new package, hope it works

This should be the v2.7.3 it adds 4 new lines to the changelog and if you guys can use it without any error I'll announce it
That fixed the "8: Undefined index: can_view_profile" issue, however there is unexpected ; in Sources/AnnouncementView.php

Find:
Code: [Select]
'can_view_profile' => allowedTo('profile_view_any') || ($row['author'] == $user_info['id'] && allowedTo('profile_view_own'));
Replace:
Code: [Select]
'can_view_profile' => allowedTo('profile_view_any') || ($row['author'] == $user_info['id'] && allowedTo('profile_view_own')),

This fixes everything now ? no errors ?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: ~DS~ on April 11, 2010, 04:07:35 PM
Why don't you try and see for yourself?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: aw06 on April 11, 2010, 04:19:04 PM
would wait for the final 2.7.3 repack
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: Nibogo on April 11, 2010, 09:13:02 PM
Changelog:

+ New Feature | - Feature Removed | * Changed | @ Important Info | ! Bug Fixed

Version 2.7.3 - Apr 11, 2010
! Some additional errors in the Error Log
! Issue with the view profile permission
! Issue displaying IP's to Moderators
! Various error messages weren't loaded
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7 RELEASED - Supporting RC3]
Post by: aw06 on April 11, 2010, 10:42:34 PM
Installed.... Seems 100% error Free now :)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: ~DS~ on April 12, 2010, 04:08:56 PM
There is a big gap if you add a announcement.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: aw06 on April 12, 2010, 05:28:52 PM
Hmm, that gap was always there for me, but not so big as yours...

That's minor issue no ? live-able ?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Nibogo on April 12, 2010, 07:39:19 PM
It looks great on Firefox with Curve, what is your theme/browser?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: ~DS~ on April 12, 2010, 07:58:44 PM
It looks great on Firefox with Curve, what is your theme/browser?
I am on default curve. Both FF and Chrome had this same issue.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Makar on April 13, 2010, 08:24:19 AM
+1

no errors

NIBOGO great job

There is a big gap if you add a announcement.


mmmm

also is present opera 9.64 (opera AC)
yet do not pay attention
although, if corrected, it will be fine

Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Makar on April 14, 2010, 09:43:53 AM
NIBOGO, I have an error

not convertible theme in ad

ad in topic converts

another question

how to show ads to only one group of
group of bases on the number of messages
such as those who have from 100 to 300 messages
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Nibogo on April 14, 2010, 09:58:16 AM
NIBOGO, I have an error

not convertible theme in ad

ad in topic converts

another question

how to show ads to only one group of
group of bases on the number of messages
such as those who have from 100 to 300 messages

Currently you can't, maybe as a custom feature exclusive for your website as a paid service
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: SN on April 14, 2010, 10:47:25 AM
This is causing a major problem for me.

Its not letting me announce any topics. When i select to announce a topic, click post. ir redirects me to my forum index.

i announce topics regularly so i need that feature.

I wasn't sure if it was this mod or not.... so i went to my test forum, install this mod ( the only mod installed) and does the same thing

please fix this
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: aw06 on April 14, 2010, 11:08:43 AM
Wow, your right :-[

And it puts no error in the logs

I guess for now  you'd have to send a news announcement pointing to the topic
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: SN on April 14, 2010, 11:35:37 AM
I just unistalled it.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: aw06 on April 14, 2010, 11:49:31 AM
I don't ever announce topics. so I'm good
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Makar on April 14, 2010, 12:36:49 PM
Wow, your right :-[

And it puts no error in the logs

I guess for now  you'd have to send a news announcement pointing to the topic

I have to log errors

http://site/index.php?action=announcements;sa=convert;topic=954
Unable to load the 'main' template.


Currently you can't, maybe as a custom feature exclusive for your website as a paid service

хм..........

I, or wait until a free
or configure the access rights for groups
no hurry
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: SN on April 14, 2010, 12:39:13 PM
I don't ever announce topics. so I'm good

Yeah i use it to mainly separate topics to.

its strange that an announcement mod stops the build in announcement feature from working lol
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Nibogo on April 14, 2010, 06:33:26 PM
Confirmed new package is going to be uploaded with a fix

хм..........

I, or wait until a free
or configure the access rights for groups
no hurry

Ok, you're free to configure it but as I said isn't going to be added
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Achilles. on April 20, 2010, 08:13:05 AM
In the permissions, I don't see anyone can touch the settings of the Global Announcement, just the Administrator... Is there anyway that I could assign someone to edit the annocunement beside the admin?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Eudemon on April 21, 2010, 07:57:57 PM
help
unable to modify or remove comments, it shows this error message:
Quote
Method Not Implemented

GET to /forum/index.php not supported.

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

smf vertion 2.3rc
custom theme
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: luismanson on April 22, 2010, 08:14:54 PM
any ideas on undefinied index online_color in messageindex.template.php
line 269
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Dani88 on April 25, 2010, 12:27:21 PM
Hola nibogo tengo una pregunta acerca del mod eso si no se si eseste el lugar o hay una zona en español para el mod
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: TechPrince on April 30, 2010, 03:57:55 AM
Need a feature to select the board id and just display the x amount of topics from that board everywhere (globally).
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Nibogo on April 30, 2010, 09:29:39 AM
Need a feature to select the board id and just display the x amount of topics from that board everywhere (globally).

That is a totally different system, isn't need it as YAGAM does almost the same in a different way. You're free to code it (if you don't have the knowledge you can hire me to do it) as YAGAM is free I don't care about it
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: cieplutki on May 02, 2010, 06:48:15 AM
Polish translation ISO and UTF-8 please added to next verion or upgrade this
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: ~DS~ on May 05, 2010, 06:15:12 PM
It looks great on Firefox with Curve, what is your theme/browser?
I am on default curve. Both FF and Chrome had this same issue.
Nibogo, found what it is...in the dropdown it's fine but when you use side menu it will look like this.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Drakmyr on May 08, 2010, 07:14:57 PM
I'm getting two errors in my error log. They don't seem to be major errors, but they are errors, and I'd rather have an empty error log. The errors are as follows:

Code: [Select]
http://www.everlastingquest.co.cc/dev/index.php?/board,2.0.html
8: Undefined index: online_color
File: /home/drakmyr/public_html/dev/Themes/default/MessageIndex.template.php (main sub template - eval?)
Line: 258

This error appears on the board where an announcement is displayed.

This is the line in question:
Code: [Select]
<p class="smalltext">', $txt['started_by'], ' <a href="'.$scripturl.'?action=profile;u=',$announcement['author'], '" ', (!empty($modSettings['MemberColorLinkInstalled'])) ? 'style="color: '.$announcement['online_color'].';"' : '', '>',$announcement['real_name'], '</a></p>
The other error is:
Code: [Select]
http://www.everlastingquest.co.cc/dev/index.php?action=announcement;aid=1
2: Illegal offset type
File: /home/drakmyr/public_html/dev/Sources/AnnouncementView.php
Line: 78

This error appears when viewing the announcement.
The following is the indicated line of code:

Code: [Select]
$context['poster'] = (!empty($color_profile[$context['announcement']['author']]['link'])) ? $color_profile[$row['author']]['link'] : $context['announcement']['author']['link'];
I am currently running 2.0RC3
and I think, but not sure, a possible mod conflict would be with this mod:

Member Color Link (http://custom.simplemachines.org/mods/index.php?mod=111)

Any help in getting rid of these errors would be appreciated.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: luismanson on May 08, 2010, 08:21:35 PM
i have the same problem, look a few post above yours, also using member color link
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Drakmyr on May 10, 2010, 12:30:11 PM
Well, I got tired of waiting for a response, so I found a couple of work-arounds for now.

With the undefined index, since admin are the only ones posting announcements anyway, I changed that line to:

Code: [Select]
<p class="smalltext">', $txt['started_by'], ' <a href="'.$scripturl.'?action=profile;u=',$announcement['author'], '" ', (!empty($modSettings['MemberColorLinkInstalled'])) ? 'style="color:#FF0000;"' : '', '>',$announcement['real_name'], '</a></p>
Notice how it makes the poster's name red every time instead of trying to find the poster's color.

Also, since I do have member color links installed, and I found out that illegal Offset error is because an array or object is used as a key in the array, I changed that line to:

Code: [Select]
$context['poster'] = $context['announcement']['author']['link'];
and it looks like it works fine, and i get no more errors.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Bruno36 on May 18, 2010, 01:56:23 PM
Goodnight!

There is a bug, the ad is truncate
and When I click on CONVERT INTO ANNOUNCEMENT I am redirected to a blank page
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: aw06 on May 20, 2010, 08:41:02 AM
Noticed something with this mod ...

When i check announcement log .. i see it showing some regular people as moderators .... anybody else notice this ?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Bruno36 on May 20, 2010, 08:58:58 AM
Goodnight!

There is a bug, the ad is truncate
and When I click on CONVERT INTO ANNOUNCEMENT I am redirected to a blank page

Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Bruno36 on May 27, 2010, 06:55:24 AM
UP  ::)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: vika.vedy on June 01, 2010, 10:15:49 AM
1. Native SMF announcement function doesn't work with the mod installed. :( Too bad.
Sometimes I just need to create regular announcement topic and display it in the "Announcement" section under other regular topics.

2. Converting topic into announcement totally doesn't work :(  There is ever no such action in Announcements.php .

3. And there are some minor errors when previewing new announcement (action=announcements;sa=addverify):
Quote
Notice: Undefined index: admin_menu_name in …/forum/Sources/Announcements.php  on line 72

Notice: Undefined index: admin_menu_name in …/forum/Sources/Announcements.php on line 73

Notice: Undefined index: title in …/forum/Sources/Announcements.php on line 98
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Nibogo on June 01, 2010, 11:25:22 AM
Right now I have a lot of work in my paid products, I'm creating two new products and additionally I'm working pretty hard in my duties as Apprentice of the Customization Team so please be patient, this is one of the mod that I really care about and I'll update it when I have time btw this mod ISN'T going to be paid.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: nurg on July 04, 2010, 04:18:13 AM
Hola

me sale este error podeis ayudarme

http://www......com/index.php?dummy=1;action=announcement;aid=4;;a=announcement;aid=4
Aplicar filtro: Mostrar sólo los mensajes de error con este mensaje
2: Division by zero
Aplicar filtro: Mostrar sólo los errores de este archivo
Archivo: /var/www/vhosts/........com/httpdocs/Sources/Subs.php
Línea: 688

Gracias
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Nibogo on July 18, 2010, 02:01:48 PM
Support:

Support for this mod is only available on SMFPacks.com there you can report bugs, suggest features and ask for assistance with this mod this can be do it here:

http://www.smfpacks.com/index.php?topic=136.0
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Kindred on October 08, 2010, 01:44:05 PM
Although official support for this mod is to be found only on SMFPacks.com, locking the thread here is not appropriate.

Thread unlocked. If you have information to post, assisting other members, all is good.
If you wish official support, please visit the support site, as indicated by the mod author.

http://www.smfpacks.com/index.php?topic=136.0
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: petesky on October 09, 2010, 06:00:59 AM
Is it possible to add a feature autohide from usergroups which are not eval to the group for which i created the announcement ?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Kindred on October 09, 2010, 08:28:13 AM

If you wish official support, please visit the support site, as indicated by the mod author.

http://www.smfpacks.com/index.php?topic=136.0
feature requests should go there.   I unlocked this so that the community could provide suppot for bugs

Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: PraveerD on October 11, 2010, 04:30:21 AM
Hello all,

I asked this question on SMFPack

" I am using this MOD on my forum running SMF 2 RC3. I installed this MOD using package manager. But when I make a global announcement, it does not get displayed on my forum. And also when I click logs it shows me the message that global announcement does not exist "

And got this in reply from the author

" You must manually insert the code added by this mod in templates in your theme "

What does this mean? I should ass all the codes in the default theme or the theme I am currently using. I am using Mobile theme.

Regards
Praveer
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Kindred on October 11, 2010, 07:15:07 PM
you must manually install any nmod which edits a template file into all of your custom themes. SMF 1.x only installs mods into the default theme...  and 2.0 only installs into additional themes if they are installed before the mods.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: PraveerD on October 11, 2010, 08:16:10 PM
Thanks for your reply. So according to what you said, I have to manually insert only the codes for template edits in the theme I am using i.e I have to add only the the codes mentioned for the templates in the templates of my theme. Have I got what you said correct?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Kindred on October 11, 2010, 09:07:54 PM
yes. Any template file which your theme does not specify will fall through to use the default version
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: PraveerD on October 12, 2010, 04:28:40 AM
There's an edit for MessageIndex.template.php

Its written to find this code

Code: [Select]
foreach ($context['topics'] as $topic)
{
// Is this topic pending approval, or does it have any posts pending approval?
if ($context['can_approve_posts'] && $topic['unapproved_posts'])
$color_class = !$topic['approved'] ? 'approvetbg' : 'approvebg';
// We start with locked and sticky topics.
elseif ($topic['is_sticky'] && $topic['is_locked'])
$color_class = 'stickybg locked_sticky';
// Sticky topics should get a different color, too.
elseif ($topic['is_sticky'])
$color_class = 'stickybg';
// Locked topics get special treatment as well.
elseif ($topic['is_locked'])
$color_class = 'lockedbg';
// Last, but not least: regular topics.
else
$color_class = 'windowbg';

// Some columns require a different shade of the color class.
$alternate_class = $color_class . '2'; 

But on my theme theres some additional codes in between which are not mentioned. Heres the portion of the code mentioned to edit, of my theme's MessageIndex.template.php


Code: [Select]
  foreach ($context['topics'] as $topic)
{
// Do we want to seperate the sticky and lock status out?
if (!empty($settings['separate_sticky_lock']) && strpos($topic['class'], 'sticky') !== false)
$topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_sticky'));
if (!empty($settings['separate_sticky_lock']) && strpos($topic['class'], 'locked') !== false)
$topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_locked'));

// Is this topic pending approval, or does it have any posts pending approval?
if ($context['can_approve_posts'] && $topic['unapproved_posts'])
$color_class = !$topic['approved'] ? 'approvetbg' : 'approvebg';
// Sticky topics should get a different color, too.
elseif ($topic['is_sticky'] && !empty($settings['separate_sticky_lock']))
$color_class = 'windowbg3';
// Last, but not least: regular topics.
else
$color_class = 'windowbg';

// Some columns require a different shade of the color class. 


The edit is to replace the above code with this code


Code: [Select]
   // YAGAM starts here with the bars
    $announcement_bar = false;
        $normal_bar = false;
    $sticky_bar = (isset($modSettings['yagam_admin_sticky_bar'])) ? false : true;

        if (!empty($context['announcements'])){
foreach($context['announcements']  as $announcement)
        {        
// Check permission and current board
$permission_groups = explode(',',$announcement['permissions']);        
            $allowed_boards = explode(',', $announcement['id_boards']);
   
// Lets Add the Global Announcement Bar only with the permission and the board = 0 or current board
if ((in_array($board_info['id'], $allowed_boards) || $announcement['id_boards'] == 0) && ((count(array_intersect($user_info['groups'], $permission_groups)) !== 0) || $context['user']['is_admin']) && !$announcement_bar){
            echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '" style="padding:6px 4px;"><b>'.$txt['yagam_admin'].'</b></td></tr>';
            $announcement_bar = true;
            }

    // You can see this if you have permission , the right board or admin
            if (((in_array($board_info['id'], $allowed_boards)) || $announcement['id_boards'] == 0) && ((count(array_intersect($user_info['groups'], $permission_groups)) !== 0) || $context['user']['is_admin']))
                {
echo '
<tr>
<td class="windowbg2 icon1 yagam">
<img src="', $settings['images_url'], '/topic/normal_post.gif" alt="" />
</td>
<td class="windowbg2 icon2 yagam">
<img src="', $settings['images_url'], '/post/exclamation.gif" alt="" />
</td>
<td  class="subject windowbg yagam">
    <a href="',$scripturl,'?action=announcements;aid=',$announcement['id_announcement'],'"><strong>',$announcement['title'], '</strong></a>
    <p class="smalltext">', $txt['started_by'], ' <a href="'.$scripturl.'?action=profile;u=',$announcement['author'], '" ', (!empty($modSettings['MemberColorLinkInstalled'])) ? 'style="color: '.$announcement['online_color'].';"' : '', '>',$announcement['real_name'], '</a></p>
</td>
<td class="stats yagam">
    ', ($announcement['can_comment'] == '1') ? ''.$announcement['comment_total'].' ' . $txt['replies'] : '--', '<br />
',$announcement['views'], ' ' . $txt['views']. '
    </td>
<td class="windowbg2 lastpost yagam">
'.$txt['yagam_created'].' : ',timeformat($announcement['date']), '
</td>';
if (allowedTo('yagam_manage') && !empty($options['display_quick_mod']))
echo '<td class="windowbg2 moderate yagam" width="5%"><a href="',$scripturl,'?action=announcements;sa=edit;aid=',$announcement['id_announcement'],'" title="'.$txt['yagam_edit'].'"><img src="'.$settings['images_url'].'/buttons/modify.gif" alt="',$txt['yagam_edit2'], '"></a>
<a href="',$scripturl,'?action=announcements;sa=deleteverify;aid=',$announcement['id_announcement'],'" title="'.$txt['yagam_remove'].'" onclick="return confirm(\''.$txt['yagam_remove_verify'].'\')"><img src="'.$settings['images_url'].'/buttons/delete.gif" alt="',$txt['yagam_remove2'], '"></a>
</td>';
echo'</tr>';      
}
}
}

foreach ($context['topics'] as $topic)
{
// Is this topic pending approval, or does it have any posts pending approval?
if ($context['can_approve_posts'] && $topic['unapproved_posts'])
$color_class = !$topic['approved'] ? 'approvetbg' : 'approvebg';
// We start with locked and sticky topics.
elseif ($topic['is_sticky'] && $topic['is_locked'])
$color_class = 'stickybg locked_sticky';
// Sticky topics should get a different color, too.
elseif ($topic['is_sticky'])
$color_class = 'stickybg';
// Locked topics get special treatment as well.
elseif ($topic['is_locked'])
$color_class = 'lockedbg';
// Last, but not least: regular topics.
else
$color_class = 'windowbg';

// Some columns require a different shade of the color class.
$alternate_class = $color_class . '2';

// Add the sticky bar
if ($topic['is_sticky'] && !$sticky_bar && (!empty($modSettings['yagam_admin_sticky_bar']))){
            echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '" style="padding:8px 4px;"><b>'.$txt['yagam_sticky_bar'].'</b></td></tr>';
            $sticky_bar = true;
            }

// The Normal Bar Added by YAGAM
            if (!$normal_bar && ((($announcement_bar || $sticky_bar) && !$topic['is_sticky']) || ($announcement_bar && !$topic['is_sticky'] && !empty($modSettings['yagam_admin_sticky_bar'])) || ($announcement_bar && !$sticky_bar && empty($modSettings['yagam_admin_sticky_bar'])) || ($announcement_bar && !$sticky_bar))){
            echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '" style="padding:8px 4px;"><b>'.$txt['yagam_topics'].'</b></td></tr>';
            $normal_bar = true;
            }   

Please tell me the edited code. Do I replace the additional codes or leave theme as it is. Please help.

Praveer
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Kindred on October 12, 2010, 09:41:54 AM
If you wish official support, please visit the support site, as indicated by the mod author.

http://www.smfpacks.com/index.php?topic=136.0

Maybe someone else can help, but I suggest for custom code edits, that you check out the official support site.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: PraveerD on October 12, 2010, 10:16:03 AM
Ok I will post it there. But still if anyone can help, then he is most welcome. Thanks Kindred for your honest reply.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: DirtRider on October 26, 2010, 12:20:45 PM
I need some help with this please. I get the following error but now cannot find the code to do this edit  :'(

   Replace    ./Themes/core/MessageIndex.template.php    Test failed

Find
Code: [Select]
foreach ($context['topics'] as $topic) { // Is this topic pending approval, or does it have any posts pending approval? if ($context['can_approve_posts'] && $topic['unapproved_posts']) $color_class = !$topic['approved'] ? 'approvetbg' : 'approvebg'; // We start with locked and sticky topics. elseif ($topic['is_sticky'] && $topic['is_locked']) $color_class = 'stickybg locked_sticky'; // Sticky topics should get a different color, too. elseif ($topic['is_sticky']) $color_class = 'stickybg'; // Locked topics get special treatment as well. elseif ($topic['is_locked']) $color_class = 'lockedbg'; // Last, but not least: regular topics. else $color_class = 'windowbg'; // Some columns require a different shade of the color class. $alternate_class = $color_class . '2';
Replace
Code: [Select]
// YAGAM starts here with the bars $announcement_bar = false; $normal_bar = false; $sticky_bar = (isset($modSettings['yagam_admin_sticky_bar'])) ? false : true; if (!empty($context['announcements'])){ foreach($context['announcements'] as $announcement) { // Check permission and current board $permission_groups = explode(',',$announcement['permissions']); $allowed_boards = explode(',', $announcement['id_boards']); // Lets Add the Global Announcement Bar only with the permission and the board = 0 or current board if ((in_array($board_info['id'], $allowed_boards) || $announcement['id_boards'] == 0) && ((count(array_intersect($user_info['groups'], $permission_groups)) !== 0) || $context['user']['is_admin']) && !$announcement_bar){ echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '" style="padding:6px 4px;"><b>'.$txt['yagam_admin'].'</b></td></tr>'; $announcement_bar = true; } // You can see this if you have permission , the right board or admin if (((in_array($board_info['id'], $allowed_boards)) || $announcement['id_boards'] == 0) && ((count(array_intersect($user_info['groups'], $permission_groups)) !== 0) || $context['user']['is_admin'])) { echo ' <tr> <td class="windowbg2 icon1 yagam"> <img src="', $settings['images_url'], '/topic/normal_post.gif" alt="" /> </td> <td class="windowbg2 icon2 yagam"> <img src="', $settings['images_url'], '/post/exclamation.gif" alt="" /> </td> <td class="subject windowbg yagam"> <a href="',$scripturl,'?action=announcements;aid=',$announcement['id_announcement'],'"><strong>',$announcement['title'], '</strong></a> <p class="smalltext">', $txt['started_by'], ' <a href="'.$scripturl.'?action=profile;u=',$announcement['author'], '" ', (!empty($modSettings['MemberColorLinkInstalled'])) ? 'style="color: '.$announcement['online_color'].';"' : '', '>',$announcement['real_name'], '</a></p> </td> <td class="stats yagam"> ', ($announcement['can_comment'] == '1') ? ''.$announcement['comment_total'].' ' . $txt['replies'] : '--', '<br /> ',$announcement['views'], ' ' . $txt['views']. ' </td> <td class="windowbg2 lastpost yagam"> '.$txt['yagam_created'].' : ',timeformat($announcement['date']), ' </td>'; if (allowedTo('yagam_manage') && !empty($options['display_quick_mod'])) echo '<td class="windowbg2 moderate yagam" width="5%"><a href="',$scripturl,'?action=announcements;sa=edit;aid=',$announcement['id_announcement'],'" title="'.$txt['yagam_edit'].'"><img src="'.$settings['images_url'].'/buttons/modify.gif" alt="',$txt['yagam_edit2'], '"></a> <a href="',$scripturl,'?action=announcements;sa=deleteverify;aid=',$announcement['id_announcement'],'" title="'.$txt['yagam_remove'].'" onclick="return confirm(\''.$txt['yagam_remove_verify'].'\')"><img src="'.$settings['images_url'].'/buttons/delete.gif" alt="',$txt['yagam_remove2'], '"></a> </td>'; echo'</tr>'; } } } foreach ($context['topics'] as $topic) { // Is this topic pending approval, or does it have any posts pending approval? if ($context['can_approve_posts'] && $topic['unapproved_posts']) $color_class = !$topic['approved'] ? 'approvetbg' : 'approvebg'; // We start with locked and sticky topics. elseif ($topic['is_sticky'] && $topic['is_locked']) $color_class = 'stickybg locked_sticky'; // Sticky topics should get a different color, too. elseif ($topic['is_sticky']) $color_class = 'stickybg'; // Locked topics get special treatment as well. elseif ($topic['is_locked']) $color_class = 'lockedbg'; // Last, but not least: regular topics. else $color_class = 'windowbg'; // Some columns require a different shade of the color class. $alternate_class = $color_class . '2'; // Add the sticky bar if ($topic['is_sticky'] && !$sticky_bar && (!empty($modSettings['yagam_admin_sticky_bar']))){ echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '" style="padding:8px 4px;"><b>'.$txt['yagam_sticky_bar'].'</b></td></tr>'; $sticky_bar = true; } // The Normal Bar Added by YAGAM if (!$normal_bar && ((($announcement_bar || $sticky_bar) && !$topic['is_sticky']) || ($announcement_bar && !$topic['is_sticky'] && !empty($modSettings['yagam_admin_sticky_bar'])) || ($announcement_bar && !$sticky_bar && empty($modSettings['yagam_admin_sticky_bar'])) || ($announcement_bar && !$sticky_bar))){ echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '" style="padding:8px 4px;"><b>'.$txt['yagam_topics'].'</b></td></tr>'; $normal_bar = true; }
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Kindred on October 26, 2010, 12:29:50 PM
your paste failed.... there are no line breaks.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Kindred on October 26, 2010, 01:15:56 PM
remember.... Most mods are designed to install only into the default theme. Some of them may work, using auto-install on 2.0 and custom themes... but some of the time, the custom theme will be different enough that you will have to manually find the similar code (not matching, since, if it matched, the autoinstaller would work)

So, if you're having trouble with the core theme, I suggest that you try using just the default (curve) theme with 2.0 for now.


regarding your post of code....   how ever you copied that, it removed all of the line breaks, which means it near impossible to read anything more than 1-2 lines)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Joomlamz on October 28, 2010, 09:54:40 PM
Portuguese_pt Update


Code: [Select]
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// YAGAM - Admin and MessageIndex Strings translate candidosa2 for smfpt
$txt['yagam_admin'] = 'An&uacute;ncios Global ';
$txt['yagam_sticky_bar'] = 'T&oacute;picos importantes';
$txt['yagam_topics'] = 'Normal T&oacute;picos';
$txt['yagam_created'] = 'Criado em';
$txt['yagam_remove_verify'] = 'em certeza que deseja apagar este an&uacute;ncio?';
$txt['whoall_announcements'] = 'Vendo um An&uacute;ncio Global';
$txt['permissionname_yagam_manage'] = 'Geriar an&uacute;ncios globais';
$txt['permissionhelp_yagam_manage'] = 'Definir se voc&ecirc; deseja permitir ao utilizador gerir an&uacute;ncios globais.';
$txt['permissionname_yagam_comment'] = 'Comentar no An&uacute;ncios Global';
$txt['permissionhelp_yagam_comment'] = 'Definir se voc&ecirc; deseja permitir coment&aacute;rios dos utilizadores sobre os an&uacute;ncios globais.';
$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';
$txt['yagam_admin_settings'] = 'Configura&ccedil;&otilde;es dos An&uacute;ncios Globais ';
$txt['yagam_version'] = 'Versão an&uacute;ncios globais';
$txt['yagam_confirm_convert'] = 'Tem certeza que voc&ecirc; deseja converter esse t&oacute;pico? O t&oacute;pico ser&aacute; apagado';
$txt['yagam_convert'] = 'Converter em an&uacute;ncio';
]]></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 for smfpt
$txt['yagam_admin'] = 'An&uacute;ncios Global ';
$txt['yagam_sticky_bar'] = 'T&oacute;picos importantes';
$txt['yagam_topics'] = 'Normal T&oacute;picos';
$txt['yagam_created'] = 'Criado em';
$txt['yagam_remove_verify'] = 'em certeza que deseja apagar este an&uacute;ncio?';
$txt['whoall_announcements'] = 'Vendo um An&uacute;ncio Global';
$txt['permissionname_yagam_manage'] = 'Geriar an&uacute;ncios globais';
$txt['permissionhelp_yagam_manage'] = 'Definir se voc&ecirc; deseja permitir ao utilizador gerir an&uacute;ncios globais.';
$txt['permissionname_yagam_comment'] = 'Comentar no An&uacute;ncios Global';
$txt['permissionhelp_yagam_comment'] = 'Definir se voc&ecirc; deseja permitir coment&aacute;rios dos utilizadores sobre os an&uacute;ncios globais.';
$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';
$txt['yagam_admin_settings'] = 'Configura&ccedil;&otilde;es dos An&uacute;ncios Globais ';
$txt['yagam_version'] = 'Versão an&uacute;ncios globais';
$txt['yagam_confirm_convert'] = 'Tem certeza que voc&ecirc; deseja converter esse t&oacute;pico? O t&oacute;pico ser&aacute; apagado';
$txt['yagam_convert'] = 'Converter em an&uacute;ncio';
]]></add>
        </operation>
    </file>
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Nibogo on October 29, 2010, 07:54:28 PM
Thanks
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: dkharp on January 21, 2011, 04:42:10 PM
This is a great mod. Is it going to be updated? 
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Illori on February 18, 2011, 03:04:28 PM
I dont know if this was on purpose but i dont see yagam_manage declared in the $permissionList array I added it to my array and it can now be assigned as a permission

Code: [Select]
'yagam_manage' => array(false, 'maintenance', 'administrate'),
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: comedorsamus on March 10, 2011, 06:43:37 AM
Not compatible wth RC4. (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs7.tinypic.com%2F4jlxrn.jpg&hash=6ec37d6f700cae638002bb72c750b385)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: City Builder on March 11, 2011, 06:43:54 PM
Hello,
I'm getting this error message when trying to convert a message topic into an announcement:

Unable to load the 'main' template.


Could somebody tell me what I need to do to fix this.

Thanks,

Running SMF RC4 (installed the  mod automatically and then fixed it by what the mod instructed me was wrong).
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: lmbuehrer on March 11, 2011, 08:27:03 PM
I added it to my forums for rc5 .. http://easygp.org/index.php?action=announcement;aid=1

It's a bit glitchy, you should make it compatable for rc5.. I'm sure this problem can be fixed, not sure how.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Spoogs on March 11, 2011, 08:31:25 PM
shows just fine on the default theme http://easygp.org/index.php?theme=1;action=announcement;aid=1
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: lmbuehrer on March 11, 2011, 09:43:39 PM
shows just fine on the default theme http://easygp.org/index.php?theme=1;action=announcement;aid=1

I was trying to get it for the touch theme.. ;s
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: live627 on March 11, 2011, 10:40:05 PM
It's your theme, not the mod.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: PS4DEV on April 22, 2011, 02:05:05 PM
Hello, I installed this mod half-manually , but now i got a error log.
That happens , if i want to set a current topic as global announcement :(

Error is:
Code: [Select]
Can´t load 'main' Template
Whats that and how can i solve it ?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: smartmouse on May 17, 2011, 09:27:21 AM
Hello, i have upgraded SMF v1.1.13 to 2.0 RC5 and i had to delete Global Announcements mod before upgrade.
Now, can i install YAGAM and import database entries that were recorded by Global Announcements mod?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: smartmouse on May 19, 2011, 07:15:26 PM
Hello, i have upgraded SMF v1.1.13 to 2.0 RC5 and i had to delete Global Announcements mod before upgrade.
Now, can i install YAGAM and import database entries that were recorded by Global Announcements mod?
Nevermind. I have manually imported old data to the new mod.
Thank you anyway.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: Nibogo on June 29, 2011, 07:13:56 PM
Updated for SMF 2.0
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: Joker002 on July 01, 2011, 03:51:15 AM
Updated for SMF 2.0
Error:
 
Code: [Select]
  Can´t load 'main' Template  

Whats that and how can i solve it ?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: Jessica. on July 01, 2011, 10:15:35 AM
I am also getting an error when trying to convert a topic into an announcement

I have the default theme, 2.0 final
Title: Re: Yet Another Global Announcements Mod (YAGAM) [v2.7.3 RELEASED - Supporting RC3]
Post by: Eleglin on July 03, 2011, 10:52:35 AM
Hello, I installed this mod half-manually , but now i got a error log.
That happens , if i want to set a current topic as global announcement :(

Error is:
Code: [Select]
Can´t load 'main' Template
Whats that and how can i solve it ?

Yep.
Getting this error too, only when trying to convert topic -> announcement
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: Shark-Time on July 16, 2011, 07:37:16 AM
Many Thanks for this Super Mod..
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: Nibogo on July 16, 2011, 08:07:01 PM
You're welcome
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: moguns on August 11, 2011, 11:12:25 AM
I have been waiting for this update on Yet Another Global Announcements . I use your links mod. (paid) I was wondering if you could help me make the right edits to my them/messageindext.template.  I purchased a theme a while back from bloc. Blue light and sometimes you need to edit it. I tried to but the code is way different.

Thank you!

Here it is
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: gisfreak on September 09, 2011, 11:52:21 PM
Hello, I made An announcement with comment enable and I tick all the membergroup except guest

but I cant make other than admin to post the comment , how to do that?

how to make, let say regular member to comment the announcement?

regards,
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: neugi on September 12, 2011, 02:02:35 PM
same here,

normal user can't comment an announcements
convert a threat to announcement "loging main template" error

any way to fix this?

best
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: sawgent on October 09, 2011, 06:54:30 AM
when will you fix bugs?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: Nibogo on October 09, 2011, 11:05:31 AM
When I've time, something that won't happen anytime soon, reason? lack of motivation
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: cebu on October 10, 2011, 10:35:06 PM
will there be an updated version of this for SMF 2.0.1?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: Nibogo on October 15, 2011, 04:52:28 PM
When I've time, something that won't happen anytime soon, reason? lack of motivation
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: littleone on November 28, 2011, 08:42:30 PM
My moderators cant seem to be able to access the admin panel for this.  They get an error and I cant find where to give them the permission....  Any help?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: katoon123 on December 26, 2011, 05:45:33 AM
is there anyway to change the topic icon for announcments
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: fullmoonya on January 13, 2012, 04:13:42 AM
dear author, there is some error occurred in converting the topic of my forum to announcement. it says

Code: [Select]
An Error Has Occurred!
Unable to load the 'main' template.

how could i fix this problem?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: thebigbroski on January 15, 2012, 09:07:14 PM
I just installed this MOD, and I keep getting a "Unable to load the 'main' template" error while trying to convert a topic into a global announcement.
Any ideas?  :-\
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: French on January 16, 2012, 02:04:56 AM
Download Mod again and load the Mod click on uninstall and Parse mod it show you what to do to uninstall this Mod http://www.smfhacks.com/smf-package-parser.html

Edit: Strange this was an response to a post (by Groovystar) that seems to be removed/deleted/disappeared ? So now my reply looks ridiculous.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: fullmoonya on January 16, 2012, 10:03:15 PM
Code: [Select]
An Error Has Occurred!
Unable to load the 'main' template.
anybody know how to fix this? please help.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: katoon123 on January 24, 2012, 05:59:02 PM
how would i change the text from "Important Topics" to "sticky"?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: fullmoonya on January 25, 2012, 09:43:44 PM
will this ever be fix?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: RSC17 on February 06, 2012, 06:34:26 PM
I installed this mod on 2.0.1 by emulating 2.0

Everything goes OK but none of announcements show up on the forums. Anyone have this problem?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: fullmoonya on February 06, 2012, 09:30:13 PM
I installed this mod on 2.0.1 by emulating 2.0

Everything goes OK but none of announcements show up on the forums. Anyone have this problem?

have you create an announcements after you install the mod?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: RSC17 on February 06, 2012, 09:49:04 PM
I installed this mod on 2.0.1 by emulating 2.0

Everything goes OK but none of announcements show up on the forums. Anyone have this problem?

have you create an announcements after you install the mod?

Yes, I created one and it created successfully. Problem is it didn't show up at all.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: fullmoonya on February 07, 2012, 04:04:35 AM
I installed this mod on 2.0.1 by emulating 2.0

Everything goes OK but none of announcements show up on the forums. Anyone have this problem?

have you create an announcements after you install the mod?

Yes, I created one and it created successfully. Problem is it didn't show up at all.

find the messageIndex.template.php and look if the code of yagam was there. if not, you just have to parse the mod and put the code on it.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: RSC17 on February 07, 2012, 06:19:28 PM
sounds good, thank you.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: fullmoonya on February 07, 2012, 10:50:51 PM
sounds good, thank you.
no problem.

dear author, there is some error occurred in converting the topic of my forum to announcement. it says

Code: [Select]
An Error Has Occurred!
Unable to load the 'main' template.

does anyone know how to fix the converter of this mod? i found out that there is a function missing in this mod when converting topics to announcements. i hope this be fix.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: Orbit Storm on February 08, 2012, 05:01:41 AM
Hi!

Seems I'm having a bit of trouble with this mod, and truthfully, it's a darn shame considering how badly I've needed this, and finally found it just a bit ago.

The mod installs seamlessly (provided that I set my Emulate Version to 2.0.0 (my actual version is 2.0.2.

Upon attempting to convert a thread into an announcement, I receive the following error:

Code: [Select]
Unable to load the 'main' template.
I've done some extensive searching, but nothing seems to be related to this mod. Any help offered, would be greatly appreciated.  :)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: fullmoonya on February 08, 2012, 10:16:02 PM
Hi!

Seems I'm having a bit of trouble with this mod, and truthfully, it's a darn shame considering how badly I've needed this, and finally found it just a bit ago.

The mod installs seamlessly (provided that I set my Emulate Version to 2.0.0 (my actual version is 2.0.2.

Upon attempting to convert a thread into an announcement, I receive the following error:

Code: [Select]
Unable to load the 'main' template.
I've done some extensive searching, but nothing seems to be related to this mod. Any help offered, would be greatly appreciated.  :)

that was our problem too with this mod. the problem is that it cant call the function because it was missing in the code. i dont know when will they do something about this. i hope it to be fix asap.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: Orbit Storm on February 09, 2012, 01:13:23 AM
I've found that the temporary solution is to just add a new announcement via the Admin panel. It's a real pain (especially if you want to make previously posted content an announcement), but copy/pasting the content into a new announcement worked fine for me. I agree though - I hope this is updated.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: fullmoonya on March 14, 2012, 12:28:48 AM
i hope somebody fix the problem in converting topics to announcements. Just really need that function.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: drroot on May 10, 2012, 09:43:24 PM
How to give Global Moderator the permission to post an announcement?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: lttung on June 07, 2012, 12:44:46 PM
Hi!

Seems I'm having a bit of trouble with this mod, and truthfully, it's a darn shame considering how badly I've needed this, and finally found it just a bit ago.

The mod installs seamlessly (provided that I set my Emulate Version to 2.0.0 (my actual version is 2.0.2.

Upon attempting to convert a thread into an announcement, I receive the following error:

Code: [Select]
Unable to load the 'main' template.
I've done some extensive searching, but nothing seems to be related to this mod. Any help offered, would be greatly appreciated.  :)

Same me error. Pls help to fix, thanks
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: nephire on July 03, 2012, 04:06:42 PM
it wont let me install it..
it only shows list files and delete
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: Kindred on July 03, 2012, 05:44:21 PM
look up "emulate version" in the wiki
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: Nibogo on July 28, 2012, 07:36:08 PM
NOW YOU CAN LEGALLY REMOVE THE COPYRIGHT OF THIS MOD:

http://www.smfpacks.com/page/sa=copyright
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: FruitLoop on August 30, 2012, 03:51:26 PM
Hello.  I tried installing this mod with the Enterprise theme and it did not work.  Tried installing it with the default theme and I got the same error.

The error was immediately after install.  It said it was successfully installed, however when I went to go to the admin panel for it, it gave me a blank white screen.  Is it the Admin.php file or something else?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: cieplutki on September 27, 2012, 02:53:35 PM
How to fix

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimageshack.us%2Fa%2Fimg839%2F8563%2F98749862.png&hash=ef164f158ac86726ccaee06d3cf6d9fa)
this bug its on some theme - like officebox by logooff

Code: [Select]
echo '
<tr>
<td class="windowbg2 icon1 yagam">
<img src="', $settings['images_url'], '/topic/normal_post.gif" alt="" />
</td>
<td class="windowbg2 icon2 yagam">
<img src="', $settings['images_url'], '/post/exclamation.gif" alt="" />
</td>
<td  class="subject windowbg yagam">
    <a href="',$scripturl,'?action=announcements;aid=',$announcement['id_announcement'],'"><strong>',$announcement['title'], '</strong></a>
    <p class="smalltext">', $txt['started_by'], ' <a href="'.$scripturl.'?action=profile;u=',$announcement['author'], '" ', (!empty($modSettings['MemberColorLinkInstalled'])) ? 'style="color: '.$announcement['online_color'].';"' : '', '>',$announcement['real_name'], '</a></p>
</td>
<td class="stats yagam">
    ', ($announcement['can_comment'] == '1') ? ''.$announcement['comment_total'].' ' . $txt['replies'] : '--', '<br />
',$announcement['views'], ' ' . $txt['views']. '
    </td>
<td class="windowbg2 lastpost yagam">
'.$txt['yagam_created'].' : ',timeformat($announcement['date']), '
</td>';
if (allowedTo('yagam_manage') && !empty($options['display_quick_mod']))
echo '<td class="windowbg2 moderate yagam" width="5%"><a href="',$scripturl,'?action=announcements;sa=edit;aid=',$announcement['id_announcement'],'" title="'.$txt['yagam_edit'].'"><img src="'.$settings['images_url'].'/buttons/modify.gif" alt="',$txt['yagam_edit2'], '"></a>
<a href="',$scripturl,'?action=announcements;sa=deleteverify;aid=',$announcement['id_announcement'],'" title="'.$txt['yagam_remove'].'" onclick="return confirm(\''.$txt['yagam_remove_verify'].'\')"><img src="'.$settings['images_url'].'/buttons/delete.gif" alt="',$txt['yagam_remove2'], '"></a>
</td>';
echo'</tr>';      
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: Mstcool on November 23, 2012, 12:45:52 AM
It says its compatible with 2.0.2 but doesnt work. Please help. It says its not compatible.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: Road Rash Jr. on January 11, 2013, 09:16:27 AM
Will not install on SMF 2.0.3 says the files is corrupt or incompatible with this version of SMF
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: NanoSector on January 11, 2013, 09:50:55 AM
http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: JTVaughn on January 18, 2013, 05:34:56 AM
Hi!

Seems I'm having a bit of trouble with this mod, and truthfully, it's a darn shame considering how badly I've needed this, and finally found it just a bit ago.

The mod installs seamlessly (provided that I set my Emulate Version to 2.0.0 (my actual version is 2.0.2.

Upon attempting to convert a thread into an announcement, I receive the following error:

Code: [Select]
Unable to load the 'main' template.
I've done some extensive searching, but nothing seems to be related to this mod. Any help offered, would be greatly appreciated.  :)

Same me error. Pls help to fix, thanks

Same error for me.

Any fix coming?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: 4LP3RUZ1 on February 08, 2013, 03:26:52 AM
Love this mod,

Got a question.

I want to display a specific announcement for one of my post count membergroups.

However, I cannot choose these groups from the add announcement screen. Only regular membergroups are there. Any way to add the post count groups?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: Nibogo on February 08, 2013, 08:35:44 AM
That would require some extra coding.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: 4LP3RUZ1 on February 10, 2013, 04:36:04 AM
Well, I haven't checked what the repercussions will be yet, however I tracked the membergroups to this query:

Code: [Select]
$dbresult = $smcFunc['db_query']('', '
        SELECT id_group, group_name
        FROM {db_prefix}membergroups
        WHERE min_posts = {int:primary_group}
        AND id_group <> {int:moderator}
        ORDER BY group_name',
        array(
          'primary_group' => -1,
          'moderator' => 3,
        )
        );

and changing it to:
Code: [Select]
$dbresult = $smcFunc['db_query']('', '
        SELECT id_group, group_name
        FROM {db_prefix}membergroups
        WHERE id_group <> {int:moderator}
        ORDER BY group_name',
        array(
          'primary_group' => -1,
          'moderator' => 3,
        )
        );
seems to work. I'm guessing though there is a good reason you are filtering out post count groups...
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: dubq on March 19, 2013, 04:40:13 PM
There is no option to install this when you upload to 2.0.4 either. :( Will this be updated soon?
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: Nibogo on March 19, 2013, 10:11:28 PM
Use version emulate, it should do it.
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: Antes on June 09, 2013, 05:52:03 PM
You updated the mod page but that confuses people, please remove those versions from mod page or update the mod with range.

Thanks :)
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: RMensen on December 03, 2013, 07:33:37 PM
Hello,

I'm getting an "Unable to load the 'main' template." error on my forum. I'm currently running SMF 2.06.

I've tried all of the above "fixes" but none have worked.

Any help is appreciated.


Edit:

I use Pretty URL for Board & Topic

Error log:

Quote
http://pc.ihavetoget.it/index.php?action=announcements;aid=1
8: Undefined variable: sa
File: /htdocs/public/pc/Sources/Announcements.php
Line: 60
&
Quote
http://pc.ihavetoget.it/index.php?pretty;action=announcements&amp;amp;aid=1
8: Undefined variable: sa
File: /htdocs/public/pc/Sources/Announcements.php
Line: 60
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: Nolt on December 18, 2013, 05:10:38 PM
Hello,

We got an issue with YAGAM at non default theme (default theme works fine).
Announcemnets rows are oversized and look awful, I've seen similar issues reported in this topic but without any fix.
Here you can check how it looks on live site: http://www.smf.pl/index.php/board,37.0.html (http://www.smf.pl/index.php/board,37.0.html)

Any ideas how to fix this?


//EDIT
FIXED
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: Shyam09 on January 21, 2014, 01:07:24 AM
Hello,

We got an issue with YAGAM at non default theme (default theme works fine).
Announcemnets rows are oversized and look awful, I've seen similar issues reported in this topic but without any fix.
Here you can check how it looks on live site: http://www.smf.pl/index.php/board,37.0.html (http://www.smf.pl/index.php/board,37.0.html)

Any ideas how to fix this?


//EDIT
FIXED
could you please share how to fix this. I'm also stuck on this too. Thanks
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: shazoo! on January 30, 2015, 10:28:01 AM
How to give Global Moderator the permission to post an announcement?

Hi! I the below post from Illori enabled me to assign the functionality to other Permission Groups

I edited ../Source/ManagePermissions.php.

Search for:
Code: [Select]
$permissionList = array(
'membergroup' => array(

And add :
Code: [Select]
'yagam_manage' => array(false, 'maintenance', 'administrate'),
Right under the entry:
Code: [Select]
'yagam_comment' => array(false, 'general', 'view_basic_info'),
Seems to have worked for me!

I dont know if this was on purpose but i dont see yagam_manage declared in the $permissionList array I added it to my array and it can now be assigned as a permission

Code: [Select]
'yagam_manage' => array(false, 'maintenance', 'administrate'),
Title: Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
Post by: shazoo! on January 30, 2015, 10:30:18 AM
...still unable to convert a topic to an announcement, though.
anyone figure that out?
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: Nibogo on November 17, 2017, 09:05:01 AM
Version 2.7.5 - November 17, 2017
* Better installation.

No need to upgrade if you already have it working.
Title: Re: Yet Another Global Announcements Mod (YAGAM)
Post by: jsx on February 12, 2019, 04:56:22 AM
@Nibogo

Can not uninstall YAGAM with the selected option "Remove all data associated with this modification" because there is such an error:

Fatal error: require(): Failed opening required '/home/XXX/domains/XXX/public_html/smf/Packages/temp/db_install.php' (include_path='.:/usr/local/php/p56/lib/php') in /home/XXX/domains/XXX/public_html/smf/Sources/Packages.php on line 952

SMF is clean, newly installed for the test.

And there is a mistake in this line in the Announcements.english-utf8.php file:

Code: [Select]
$txt['yagam_no_cotent'] = 'Announcement content is required';
"cotent" the letter "n" is missing.

In all language files there is a mistake in this code. This text line will not be displayed by this mistake.