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=2daa61076ed8f0f60f0c644dc6087aa62fb85c81) (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 ONLYManual 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/)
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';
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:
$groupLevels['global']['standard'] = array_merge($groupLevels['global']['restrict'], array(
'view_mlist',
'karma_edit',
My file looks like this:
$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:
$context['non_guest_permissions'] = array(
'karma_edit',
My file looks like this:
$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!
I add new announcement, but not showing announcement message body. :S
Please look attachment.
How can i fix this ?
Such a wonderful updated Mod NIBOGO.
Will install soon.
this is one of more useful mod created for smf , global announcement must to have smf by default thx nibogo
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 ?
@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
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?
Quote from: NIBOGO on February 11, 2009, 02:51:00 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'].'';
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.
Quote from: edi67 on February 11, 2009, 03:45:22 PM
Quote from: NIBOGO on February 11, 2009, 02:51:00 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 from: Ö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.
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
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:
QuoteEncontrar [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?
"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
Quote from: Ö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
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
Quote from: 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:
Try the parser , I dont have the time to do modify all the people files
Create or edit an announcement. Don't check Comments option.
This makes an undefined index error in error log.[$sourcedir/Announcements.php ~ line 338]
QuoteTry 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...
Quote from: 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]
Thanks for report , I will check this :)
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.
Will it work with 2b4 ?
ok i attach my file there thx
here the german and the german-utf8 language files
good work keep going :)
Will some verersions compatiable with 1.1.7 be released...??
What do you think will that work if i manually install mod...??
Quote from: 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.
Thanks for help with the mod ;)
Quote from: glennk on February 12, 2009, 08:23:51 AM
Will it work with 2b4 ?
No , you should upgrade to SMF 2.0 RC1
Quote from: edi67 on February 12, 2009, 09:30:07 AM
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??
Quote from: CvH on February 12, 2009, 10:52:30 AM
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??
// 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 ^^
Quote from: 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...??
Try this mod:
http://custom.simplemachines.org/mods/index.php?mod=419
My mod if for SMF 2.0 RC1
ONLY
Quote from: NIBOGO on February 12, 2009, 06:13:01 PM
Thanks , but I will be more than happy if can you translate the Modifications.english strings too??
uppps ^^_
Quote from: CvH on February 12, 2009, 07:42:00 PM
Quote from: NIBOGO on February 12, 2009, 06:13:01 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 :)
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.
Quote from: 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.
Is this your 292?
// Integration is cool.
if (defined('SMF_INTEGRATION_SETTINGS'))
$modSettings = unserialize(SMF_INTEGRATION_SETTINGS) + $modSettings;
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.
I can't fix my problem but i love this mod.
here is Turkish Translations.
// 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';
Planning to make this work with 1.1.x?
Quote from: CSS on February 13, 2009, 04:05:45 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+
Ohh. This one is different though?
Quote from: CSS on February 13, 2009, 04:20:38 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
Oh, right. What features does this have that the other does not?
Quote from: CSS on February 13, 2009, 04:24:11 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.
Quote from: drhamad on February 13, 2009, 04:19:10 PM
Quote from: CSS on February 13, 2009, 04:05:45 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
Quote from: drhamad on February 13, 2009, 04:26:49 PM
Quote from: CSS on February 13, 2009, 04:24:11 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.
I have two features for this mod but actually I am working in all the bugs of this mod.
Sorry ??? Im forget it =)
Here..
Modifications.Turkish.php
// 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';
Thanks Özgür´ ;)
Any additional translation is more than welcome ;)
Quote from: 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.
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
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??
Hmm.. Nibogo, can you give me sql query, maybe its work.?
I found finally...
I delete this code line.. And work now..
// 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 />';
Quote from: Ö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..
// 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
Problem is !$context['author']['member']['is_guest']
this problem "only" my site..
Anyway, thank you for everthing =)
Quote from: 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??
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 :)
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.
Quote from: edi67 on February 14, 2009, 04:59:37 AM
Quote from: 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??
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.
Quote from: 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.
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
Is it going to work with 1.1.x if i manually install...??
Quote from: Don Pepito on February 14, 2009, 03:43:35 PM
Is it going to work with 1.1.x if i manually install...??
Quote from: NIBOGO on February 12, 2009, 06:13:01 PM
Quote from: 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...??
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
I already have that mod installed, but ability of comments....:D
Quote from: Don Pepito on February 14, 2009, 03:49:55 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
Well, nvm...tnx for unhospitality...
I just have wanted answer, is it going to work if i manually install mod...?? :S
Quote from: 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
No , will never work
Use the GA of Jay or upgrade to SMF 2.0 RC1
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! :)
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.
QuoteFatal 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.
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.
QuoteFatal error: Cannot use string offset as an array in /***/***/***/***/Sources/Load.php(2032) : eval()'d code on line 292
Quoteif ($announcement['can_comment'] == '1')
echo''.$announcement['comment_total'].'';
NIBOGO:
colud be there solution ?
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
My line for 292 is:
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.
Quote from: fords8 on February 15, 2009, 07:16:24 AM
My line for 292 is:
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
Quote from: edi67 on February 15, 2009, 07:20:45 AM
Quote from: fords8 on February 15, 2009, 07:16:24 AM
My line for 292 is:
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.
Quote from: NIBOGO on February 14, 2009, 08:34:31 PM
NEW v1.2 Version Uploaded
Thank you - works like a charm now (for me at least:) )
again thanks for your quick and good work :)
@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 :)
Quote from: mgrmgr on February 15, 2009, 07:46:14 AM
Quote from: NIBOGO on February 14, 2009, 08:34:31 PM
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
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?
Quote from: 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 :)
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.
1.1.5 Is it to be adapted?
Quote from: karanima on February 15, 2009, 02:38:24 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.
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
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
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..
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
What about the 292 error?
Quote from: willerby on February 16, 2009, 12:35:36 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
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
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
Quote from: 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
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.
Quote from: willerby on February 16, 2009, 12:35:36 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?
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
I get a chance I will do a fresh install and see if it does it still.
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
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.
Quote from: 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.
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.
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
Quote from: edi67 on February 15, 2009, 08:54:05 AM
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 :)
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??';
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:
QuoteFatal 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.
Are you enable to WYSIWYG in admin panel?
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?
Quote from: 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?
damn another 292 error.
Quote from: edi67 on February 17, 2009, 07:33:31 AM
Quote from: 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?
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
ThanksI think of the bug was fixed on the v1.4 please check if the mod works propertly
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:
$txt['yagam_editing_comment'] = 'Editing Comment';
$txt['yagam_remove_verify_comment'] = 'Are you sure of you want to delete this comment??';
Thanks
! Updated Turkish language translation.
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
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!
Quote from: 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!
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
QuoteIf you have any idea please let me know the idea
No ideas for this mod. I like it as is.
Using newest module - however, when I try to add a new announcement I get the following error:
Quote from: NIBOGO on February 17, 2009, 05:53:52 PM
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 :)
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?
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:
$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
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
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.
@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
Quote from: 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:
The installation have any error??
U have all the files mod uploaded??
Quote from: edi67 on February 18, 2009, 07:49:50 AM
Quote from: NIBOGO on February 17, 2009, 05:53:52 PM
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
Quote from: 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?
The avatar is already a feature of this mods
Quote from: Xepernas on February 18, 2009, 04:10:00 PMake
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
Quote from: NIBOGO on February 18, 2009, 04:26:26 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.
Congrats NIBOGO, 1.4 works great. fantastic mod...thanks for fixing that 292 error
Quote from: Xepernas on February 18, 2009, 05:19:51 PM
Quote from: NIBOGO on February 18, 2009, 04:26:26 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 ;)
Quote from: NIBOGO on February 18, 2009, 09:03:42 PMAny 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 ?
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.
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 ?
Quote from: 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.
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
Quote from: 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 ?
I will check that , thanks for report
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)
Does any editing need to be done for updating from 1.1.4? (other than uploading the announcements.php/template/lang)
Linktree not correctly work.
Announcements.php 299-303
//Add the Linktree
$context['linktree'][] = array(
'url' => $scripturl.'?action=announcements;sa=view;id=' . $announcementID,
'name' => $context['announcement_edit_info']['title'],
);
507-511
// Add the Linktree
$context['linktree'][] = array(
'url' => $scripturl.'?action=announcements;sa=view;id=' . $announcementID,
'name' => $context['announcement_title'],
);
623-627
// 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
redirectexit('action=announcements;sa=view;id='.$_REQUEST['id'].'');
575
redirectexit('action=announcements;sa=view;id=' . $announcement_id);
678
redirectexit('action=announcements;sa=view;id=' . $announcement);
716
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".
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 :)
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:
<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
http://crazyzone.biz/index.php?action=announcements;sa=edit;id=11
8: Undefined index: announcement_no_selected
When i try to comment:
http://crazyzone.biz/index.php?action=announcements;sa=commentverify;id=11
8: Undefined index: aid
I installed 1.1.6 also and can't edit or delete announcements. Can't add comments either.
All of these give a:
QuoteAn Error Has Occurred!
100th post! Sweet!
Yeah there's definitely a problem going on here. Existing announcements work, but can't edit or create new ones.
I can make a new one!
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
Quote from: 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
All fixed for me! Nice work!
Thanks, that seems to work.
QuoteI really need a bug tracker for YAGAM
Ehehe =)
All url bug looks solved. But guest permission bug unsolved. Thank for hard work, NIBOGO.
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 ;)
Hello ,
Frist of all Very Very Good Mod ! :) ... But 1 Thing Wrong in Install.xml ( When Installing @ SMF2.0 RC1 ( Admin.php Change )
<![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'),
),
),]]>
'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'),
),
),
Quote from: NIBOGO on February 23, 2009, 07:31:24 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 :)
Quote from: Gnoll 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 )
<![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'),
),
),]]>
'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 ;)
Quote from: edi67 on February 24, 2009, 06:16:17 AM
Quote from: Gnoll 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 )
<![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'),
),
),]]>
'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 )
Quote from: Gnoll on February 24, 2009, 06:24:56 AM
Quote from: edi67 on February 24, 2009, 06:16:17 AM
Quote from: Gnoll 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 )
<![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'),
),
),]]>
'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
<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 ;)
// 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';
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.
Hi NIBOGO, thanks for this nice MOD! :)
I have a problem, like screenshot attached.
Can you help me?
Thanks!
Antonio
Nibogo, listen how i could separate the sticky topic from normal one and announcements too usgin your method?
Quote from: NIBOGO on February 18, 2009, 09:03:42 PMYAGAM 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
// 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 :
// 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.
Quote from: mgrmgr on February 24, 2009, 06:03:33 AM
Quote from: NIBOGO on February 23, 2009, 07:31:24 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??
Quote from: edi67 on February 24, 2009, 06:31:14 AM
============================================================
Italian Language NIBOGO ;)
// 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
Quote from: 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.
Feel free to do it!
Quote from: 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
Just add a colspan="2" to the td on the title when the board have the first attachment screenshot
Quote from: 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?
Oh , I forget that , I will try to create the mod in this week with YAGAM support ;)
Quote from: Xepernas on February 25, 2009, 09:05:33 AM
Quote from: NIBOGO on February 18, 2009, 09:03:42 PMYAGAM 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
// 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 :
// 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
Quote from: NIBOGO on February 18, 2009, 09:03:42 PM
YAGAM v1.5 will have Babylon and Classic theme support ;)
Quote from: NIBOGO on February 25, 2009, 06:06:57 PM
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.
Quote from: NIBOGO on February 25, 2009, 06:06:57 PM
Quote from: fotografo74 on February 24, 2009, 02:36:02 PM
Quote
Hi NIBOGO, thanks for this nice MOD! :)
I have a problem, like screenshot attached.
Can you help me?
Thanks!
Antonio
Just add a colspan="2" to the td on the title when the board have the first attachment screenshot
Thanks NIBOGO!
Sorry but I don't know where it's possible to insert the code ( <td colspan="2"> it's ok ? )
In announces' title?
Thanks
Antonio
Quote from: NIBOGO on February 25, 2009, 06:06:57 PM
Quote from: mgrmgr on February 24, 2009, 06:03:33 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).
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...
Quote from: mgrmgr on February 26, 2009, 06:27:54 AM
Quote from: NIBOGO on February 25, 2009, 06:06:57 PM
Quote from: mgrmgr on February 24, 2009, 06:03:33 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).
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 ;)
Quote from: 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...
I will check the second bug
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
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.
Quote from: 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.
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.
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.
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)
...
=))
dont forget sticky topic ;)
Quote from: Ö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)
...
=))
+ 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
Quote from: edi67 on February 28, 2009, 09:27:19 AM
dont forget sticky topic ;)
This has been finished
NIBOGO, nice to see you still adding to this mod. Looking forward to the next release.
Thanks NIBOGO.
Quote from: NIBOGO on February 28, 2009, 06:41:54 PM
+ 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.)
Quote from: Özgür´ on March 01, 2009, 12:06:53 AM
Thanks NIBOGO.
Quote from: NIBOGO on February 28, 2009, 06:41:54 PM
+ 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
@Özgür,
Try to add this at the end of SSI.php(before ?>):
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:
global $boarddir;
require_once($boarddir . '/SSI.php');
ssi_random_announcement_link();
I didn't try but it should be something like this.
wow with SSI , Sweet!
I can include that in the YAGAM Package??
Why not :)
Random Announcement and Load Announcement are now SSI Functions
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:
// 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
// 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!)
// 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;
}
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.
Ah sorry, I had to delete it but I forgot. Thanks for the fix.
Quote from: shumilica on March 03, 2009, 01:45:52 AMNEVERMIND! 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 ?
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??
Quote from: Xepernas on March 03, 2009, 09:30:59 AM
Quote from: shumilica on March 03, 2009, 01:45:52 AMNEVERMIND! 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:
// 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? ;;)
Yep I say that and has been implemented for the next version.
I need a native english person to check the texts ;)
I have the YAGAM v2.0 rev3 on my pc I only need a native english user to verify some texts , anybody??
Thanks
I'd love to help you with this, Nibogo. Send me the text, and I'll make sure it's fine for you.
:) :) :)
I'm getting this error:
Quote from: AlenNS on March 02, 2009, 12:42:13 PM
QuoteApply Filter: Only show the error messages of this URL http://www.baklja.com/forum/index.php?board=1.0 (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.
Quote from: jkrlvgn on March 04, 2009, 07:15:03 PM
I'd love to help you with this, Nibogo. Send me the text, and I'll make sure it's fine for you.
:) :) :)
Thanks I really appreciate that , Please check your Personal messages
For the v2.0 Release I have to remove Swedish , German , Turkish , Italian and Rumanian because I add a lot of new strings , I will be more than happy if you can update the translations :)
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)
Quote from: Özgür´ on March 04, 2009, 08:16:23 PM
V2 not work me.
yagam admin panel and announcement page get this error
syntax error, unexpected T_VARIABLE, expecting ',' or ';'
(ps : i edit turkish language files. i will update this morning)
That v2 was not for the public , I upload that file for the parser and jkrlvgn
You should uninstall that versions and install the v1.1.6.2
I will expect the Turkish package before the v2.0 Release
If someone is interested in the languages text on v2.0 for translation purpose please PM me or post in this topic
jkrlvgn has helped me with the English Strings , I hope of everythings is ok now , I will do some test and upload the v2 Alpha here for test purpose , If someone want to be an alpha tester just have to download that file and report bugs :)
NIBOGO did you look at my problem?
Here we go , i attach the YAGAM v2.0 Alpha for BETA TESTER ONLY!!
I will be really happy if two or three people can help me with this mod.
Quote from: AlenNS on March 04, 2009, 09:54:06 PM
NIBOGO did you look at my problem?
What are the modifications of you do??
well done
update portuguese_pt and portuguese_brazilian
Utf8
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// YAGAM - Admin and MessageIndex Strings
$txt['yagam_admin'] = 'Anúncios Global';
$txt['yagam_topics'] = 'Tópicos Normal';
$txt['yagam_created'] = 'Criado em';
$txt['whoall_announcements'] = 'Vendo o Anúncio Global';
$txt['permissionname_yagam_manage'] = 'Gerenciar Anúncios Global';
$txt['permissionhelp_yagam_manage'] = 'Define se o utilizador pode gerenciar os anúncios globais.';
$txt['permissionname_yagam_comment'] = 'Comentário Anúncio Global ';
$txt['permissionhelp_yagam_comment'] = 'Define se o utilizador pode comentar os anúncios globais de permitir comentários.';
$txt['yagam_edit2'] = 'Editar';
$txt['yagam_edit'] = 'Editar Anúncio';
$txt['yagam_remove'] = 'Apagar Anúncio';
$txt['yagam_remove2'] = 'Remover';
$txt['yagam_admin_add'] = 'Adicionar Anúncio Global';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// YAGAM - Admin and MessageIndex Strings
$txt['yagam_admin'] = 'Anúncios Global';
$txt['yagam_topics'] = 'Tópicos Normal';
$txt['yagam_created'] = 'Criado em';
$txt['whoall_announcements'] = 'Vendo um Anúncio Global';
$txt['permissionname_yagam_manage'] = 'Gerenciar Anúncios Global';
$txt['permissionhelp_yagam_manage'] = 'Define se o usuário pode gerenciar os anúncios globais.';
$txt['permissionname_yagam_comment'] = 'Comentário Anúncio Global ';
$txt['permissionhelp_yagam_comment'] = 'Define se o usuário pode comentar os anúncios globais de permitir comentários.';
$txt['yagam_edit2'] = 'Editar';
$txt['yagam_edit'] = 'Editar Anúncio';
$txt['yagam_remove'] = 'Excluir Anúncio';
$txt['yagam_remove2'] = 'Remover';
$txt['yagam_admin_add'] = 'Adicionar Anúncio Global';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// YAGAM - Admin and MessageIndex Strings
$txt['yagam_admin'] = 'Anú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-utf8.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>
Ok, here is the romanian translation.
I attached the anouncements.romanian.php and below is the modification from install.xml
modifications.romanian.php
<file name="$languagedir/Modifications.romanian.php">
<operation>
<search position="end" />
<add><![CDATA[
// YAGAM - Admin and MessageIndex Strings
$txt['yagam_admin'] = 'Anunturi Globale';
$txt['yagam_sticky_bar'] = 'Topicuri Importante';
$txt['yagam_topics'] = 'Topicuri Normale';
$txt['yagam_created'] = 'Creat la';
$txt['yagam_remove_verify'] = 'Esti sigur ca vrei sa stergi acest anunt?';
$txt['whoall_announcements'] = 'Vizualizeaza un Anunt Global';
$txt['permissionname_yagam_manage'] = 'Administreaza Anunturile Globale';
$txt['permissionhelp_yagam_manage'] = 'Seteaza aici daca doresti sa permiti utilizatorului sa administreze anunturile globale.';
$txt['permissionname_yagam_comment'] = 'Comenteaza Anunturile Globale';
$txt['permissionhelp_yagam_comment'] = 'Seteaza daca doresti sa permiti comentariile utilizatorilor la Anunturile Globale.';
$txt['yagam_edit2'] = 'Modifica';
$txt['yagam_edit'] = 'Modifica Anuntul';
$txt['yagam_remove'] = 'Sterge Anuntul';
$txt['yagam_remove2'] = 'Sterge';
$txt['yagam_admin_add'] = 'Adauga un Anunt Global';
$txt['yagam_admin_settings'] = 'Setarile Anunturilor Globale';
$txt['yagam_version'] = 'Versiunea Modulului de Anunturi Globale';
]]></add>
</operation>
</file>
Quote from: fotografo74 on February 26, 2009, 04:20:22 AM
Quote from: NIBOGO on February 25, 2009, 06:06:57 PM
Quote from: fotografo74 on February 24, 2009, 02:36:02 PM
Quote
Hi NIBOGO, thanks for this nice MOD! :)
I have a problem, like screenshot attached.
Can you help me?
Thanks!
Antonio
Just add a colspan="2" to the td on the title when the board have the first attachment screenshot
Thanks NIBOGO!
Sorry but I don't know where it's possible to insert the code ( <td colspan="2"> it's ok ? )
In announces' title?
Thanks
Antonio
Hi NIBOGO
his Mod is nice and useful...but can you help me with this problem please? :-)
Where i must insert <td colspan="2"> ? ?
Thanks!
Antonio
Quote from: NIBOGO on March 04, 2009, 06:34:38 PM
I have the YAGAM v2.0 rev3 on my pc I only need a native english user to verify some texts , anybody??
Thanks
Yeah send them over, I'll look them over.
Quote from: NIBOGO on March 04, 2009, 09:59:22 PM
Here we go , i attach the YAGAM v2.0 Alpha for BETA TESTER ONLY!!
I will be really happy if two or three people can help me with this mod.
Quote from: AlenNS on March 04, 2009, 09:54:06 PM
NIBOGO did you look at my problem?
What are the modifications of you do??
1. Enhanced Dropdown 1.1 [ Uninstall ] [ List Files ] [ Delete ]
2. MCLegendII RC1 3.0 [ Uninstall ] [ List Files ] [ Delete ]
3. Hide Tag 2.3.0 [ Uninstall ] [ List Files ] [ Delete ]
4. The Casino 2.0 [ Uninstall ] [ List Files ] [ Delete ]
5. Simple Image Upload 1.1.0 [ Uninstall ] [ List Files ] [ Delete ]
6. Topics list support [Taby] 1.04 [ Uninstall ] [ List Files ] [ Delete ]
7. Custom Action Mod 3.0 [ Uninstall ] [ List Files ] [ Delete ]
8. New Style Message Icon 1.1 [ Uninstall ] [ List Files ] [ Delete ]
9. SmileyLimit 1.1 [ Uninstall ] [ List Files ] [ Delete ]
10. MessagePreviewOnHover 1.7 [ Uninstall ] [ List Files ] [ Delete ]
11. Latest Members RC1 1.1 [ Uninstall ] [ List Files ] [ Delete ]
12. Thank-O-Matic 2.0 Beta 9 [ Apply Mod ] [ List Files ] [ Delete ]
13. RSS Feed Icon 1.1 [ Uninstall ] [ List Files ] [ Delete ]
14. PM to New Members 1.0 [ Uninstall ] [ List Files ] [ Delete ]
15. jQLightbox 0.3 [ Uninstall ] [ List Files ] [ Delete ]
16. Google Talk Profile Field 1.1 [ Uninstall ] [ List Files ] [ Delete ]
17. Yet Another Global Announcements Mod 1.4 [ Uninstall ] [ List Files ] [ Delete ]
18. Display Location on posts 1.0 [ Uninstall ] [ List Files ] [ Delete ]
19. RateThatTopic 2.1.7 [ Uninstall ] [ List Files ] [ Delete ]
20. Users Online Today 1.5.4 [ Uninstall ] [ List Files ] [ Delete ]
21. AJAX Instant Quick Reply 1.0.2 [ Uninstall ] [ List Files ] [ Delete ]
22. Sitemap 2.0.0 [ Uninstall ] [ List Files ] [ Delete ]
23. OS & Browser Detection 1.2 [ Uninstall ] [ List Files ] [ Delete ]
24. Images On Board 2.0 [ Uninstall ] [ List Files ] [ Delete ]
25. AllCaps Notifier 1.0 [ Uninstall ] [ List Files ] [ Delete ]
26. Aeva ~ Auto-Embed Video & Audio 6.0.62 [ Uninstall ] [ List Files ] [ Delete ]
27. Share this topic - SMF Mod 1.3 [ Apply Mod ] [ List Files ] [ Delete ]
28. Flags_MOD 1.0 [ Uninstall ] [ List Files ] [ Delete ]
29. Reflection Avatar 1.1 [ Uninstall ] [ List Files ] [ Delete ]
30. Reflection Img BBC 1.2 [ Uninstall ] [ List Files ] [ Delete ]
31. Box BBCode 1.0 [ Uninstall ] [ List Files ] [ Delete ]
32. Zuper Admin RC1 1.5 [ Apply Mod ] [ List Files ] [ Delete ]
33. More Spiders 1.2 [ Uninstall ] [ List Files ] [ Delete ]
34. Member Color Link 3.0.6 [ Uninstall ] [ List Files ] [ Delete ]
35. Load Standard Language 1.0.2 [ Uninstall ] [ List Files ] [ Delete ]
36. Todays Birthday RC1 - MColorLink 1.1 [ Uninstall ] [ List Files ] [ Delete ]
37. EmailFlash 2.0 [ Uninstall ] [ List Files ] [ Delete ]
38. SimplePortal 2.1.1 [ Uninstall ] [ List Files ] [ Delete ]
39. SMF Staff Page 1.6 [ Uninstall ] [ List Files ] [ Delete ]
40. Wysiwyg Quick Reply 1.1 [ Uninstall ] [ List Files ] [ Delete ]
41. Attachment Icon File 1.0 [ Uninstall ] [ List Files ] [ Delete ]
42. New Topic Button 1.0 [ Uninstall ] [ List Files ] [ Delete ]
43. Age on post 1.0 [ Uninstall ] [ List Files ] [ Delete ]
uh wow, that's a bit much
Quote from: shumilica on March 03, 2009, 07:25:07 PM
Yes, I didn't noticed that when I posted the message, so please select all the code from above and replace it with this:
[...]
It should work... for me it works and I use RC1, but the theme is for 2.0beta4
Unfortunately it doesn't here. On the contrary, it makes it slightly worse by swapping "started by" and "replies" around (it is started by "--", and the number of replies is me). No change to alignements. :(
Ok, we found out that Yagam depended on classes existing in Core and not in Babylon ("windowbg2 icon1" etc). So we just added some "align" to the Yagam-for-Babylon code, and it works now.
Quote from: drhamad on March 05, 2009, 01:51:02 PM
uh wow, that's a bit much
Yes, but I wrote in this message what I have done and it is probably the main reason for this error.
Ićve manuall added diveder for stickies.
But I don't know how to write that code to work fine. :(
http://www.simplemachines.org/community/index.php?topic=292270.msg1962053#msg1962053
There show a few different errors on my end, NIBOGO, on the revision 4.
When accessing the "Global Announcement Settings" part of the control panel, I get the following error:
Unable to load the 'admin_settings_announcements' template.
Two columns are mixed up: the number of replies is where "who started the thread" is, and the "who started the thread" is where number of replies should be.
I also can't delete the global announcements unless I do it from the message index for the whole forum. Trying to delete it from the control panel gives me an error that has no text.
--edit--
Also, it seems like I can't edit global announcements at all..?
Thanks joomlamz and Shumillica , I will include brazilian , portuguese and romanian in the next revision
Quote from: fotografo74 on March 05, 2009, 11:58:07 AM
Quote from: fotografo74 on February 26, 2009, 04:20:22 AM
Quote from: NIBOGO on February 25, 2009, 06:06:57 PM
Quote from: fotografo74 on February 24, 2009, 02:36:02 PM
Quote
Hi NIBOGO, thanks for this nice MOD! :)
I have a problem, like screenshot attached.
Can you help me?
Thanks!
Antonio
Just add a colspan="2" to the td on the title when the board have the first attachment screenshot
Thanks NIBOGO!
Sorry but I don't know where it's possible to insert the code ( <td colspan="2"> it's ok ? )
In announces' title?
Thanks
Antonio
Hi NIBOGO
his Mod is nice and useful...but can you help me with this problem please? :-)
Where i must insert <td colspan="2"> ? ?
Thanks!
Antonio
In the messageindex.template , the td used on the announcement name , I can tell you exactly the code because I am not on my computer
Quote from: drhamad on March 05, 2009, 01:32:38 PM
Quote from: NIBOGO on March 04, 2009, 06:34:38 PM
I have the YAGAM v2.0 rev3 on my pc I only need a native english user to verify some texts , anybody??
Thanks
Yeah send them over, I'll look them over.
jkrlvgn take over of that , thanks anyway ;)
Quote from: jkrlvgn on March 05, 2009, 09:24:04 PM
There show a few different errors on my end, NIBOGO, on the revision 4.
When accessing the "Global Announcement Settings" part of the control panel, I get the following error:
Unable to load the 'admin_settings_announcements' template.
Two columns are mixed up: the number of replies is where "who started the thread" is, and the "who started the thread" is where number of replies should be.
I also can't delete the global announcements unless I do it from the message index for the whole forum. Trying to delete it from the control panel gives me an error that has no text.
--edit--
Also, it seems like I can't edit global announcements at all..?
Thanks for report I will check that ;)
Quote from: AlenNS on March 05, 2009, 06:49:53 PM
Quote from: drhamad on March 05, 2009, 01:51:02 PM
uh wow, that's a bit much
Yes, but I wrote in this message what I have done and it is probably the main reason for this error.
Ićve manuall added diveder for stickies.
But I don't know how to write that code to work fine. :(
http://www.simplemachines.org/community/index.php?topic=292270.msg1962053#msg1962053
I will check that too
:) Great job on this, but I'm getting some errors...
/index.php?action=announcements;aid=3
8: Undefined offset: 515
File: Themes/default/Announcements.template.php (announcement_view sub template - eval?)
Line: 344
/index.php?action=announcements;aid=2
8: Undefined offset: 515
File: default/GenericControls.template.php (announcement_view sub template - eval?)
Line: 344
There is a conflict with the topic ratings mod. The topic subject ends up smushed.
This is what was in the logs when I tried to edit from the message index:
/index.php?action=announcements;sa=edit;id=1
8: Undefined index: announcement_no_selected
File: Sources/Errors.php
Line: 193
YAGAM Admin (enabling/disabling announcement)
/index.php?action=announcements;sa=editverify;aid=3
8: Undefined index: enable
File: Sources/Announcements.php
Line: 338
???
My Mod doesn't support the rate that topic mod ;)
True. Still get the other errors without it ;)
Quote from: Lady Night Owl on March 06, 2009, 01:39:25 PM
True. Still get the other errors without it ;)
Yeah I know , but the messageindex error happend for the Rate that topic mod
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.
Quote from: NIBOGO on March 06, 2009, 12:50:16 PM
Quote from: AlenNS on March 05, 2009, 06:49:53 PM
Quote from: drhamad on March 05, 2009, 01:51:02 PM
uh wow, that's a bit much
Yes, but I wrote in this message what I have done and it is probably the main reason for this error.
Ićve manuall added diveder for stickies.
But I don't know how to write that code to work fine. :(
http://www.simplemachines.org/community/index.php?topic=292270.msg1962053#msg1962053
I will check that too
Thank you. :)
I've solved problem with Rate it mod. You have to manually add <td class="windowbg2 rating">
',$announcement['rating'], '
</td>
Please Make it Compatible with 1.1.8 :(
Quote from: pariofdreamz on March 06, 2009, 06:39:10 PM
Please Make it Compatible with 1.1.8 :(
There's already a 1.1.8 GA mod.
i know but i don't like that one as it doesn't work properly with my site
This is turkish translations for Rev4
Modifications.turkish.php add line
// 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';
Quote from: 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
You can upgrade to SMF 2.0 RC1 or Wait the final release.
I will NOT make this mod for SMF 1.1.8
NIBOGO you should be change prettyurls-filters.php.
yagam filter should be
// 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
$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.
Quote from: AlenNS on March 06, 2009, 05:03:56 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!
Sorry, I forgot to write that. :-[ :)
Yes, in MessageIndex.template.php
// 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>';
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. ;)
ozgur remember that the rev4 is an alpha version and have a lot of bugs
Quote from: 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. ;)
Glad to hear that :)
Quote from: 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.
Obviouslly I was talking about the template issue ;)
hi NIBOGO this is the only one error that i see in error log for now:
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.phpQuote// 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:
$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
Hmm, can't view announcements at all now.
Yes, they are enabled and yes the permissions are all set.
I get this error.
/index.php?action=announcements;sa=view;id=1
8: Undefined index: announcement_no_selected
File: /Sources/Errors.php
Line: 193
Quote from: 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.
/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 ;)
Quote from: AlenNS on March 06, 2009, 05:03:56 PM
Quote from: NIBOGO on March 06, 2009, 12:50:16 PM
Quote from: AlenNS on March 05, 2009, 06:49:53 PM
Quote from: drhamad on March 05, 2009, 01:51:02 PM
uh wow, that's a bit much
Yes, but I wrote in this message what I have done and it is probably the main reason for this error.
Ićve manuall added diveder for stickies.
But I don't know how to write that code to work fine. :(
http://www.simplemachines.org/community/index.php?topic=292270.msg1962053#msg1962053
I will check that too
Thank you. :)
Hi, NIBOGO, did you look at my problem? :)
If not, I hope you will have some time soon. :)
I have not time yet , be patient
YAGAM have a new Issue Tracker:
http://en.hackspark.com/index.php?project=3
Please report anything you find ^^
NIBOGO, I'm noticing this in my error log:
Quotehttp://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
Quote from: drhamad on March 11, 2009, 10:46:33 PM
NIBOGO, I'm noticing this in my error log:
Quotehttp://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 ^^
By the way, this is line 308 (the admin => line):
'subsections' => array(
'add' => array($txt['yagam_admin'], 'admin_forum'),
'admin' => array($txt['yagam_admin_add'], 'admin_forum'), $
),
),
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
Undefined offset: 511 in Announcements.template.php ~ on line 141:
<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
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 ;)
All that bugs has been fixed :)
Thanks for report
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.
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 ;)
Quote from: 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 ;)
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
Thanks!
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)
That's a good update NIBOGO.
Looking for stable version of it.
Quote from: A.SK on April 14, 2009, 03:47:13 AM
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
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:
- All the mod has been re-coded to improve readability, understandability and accessibility. All the errors structure has been changed, the YAGAM Settings has been re-coded doing the same with a lot of less code, now the mod works propertly with the SMF 2.0 Database Functions and the YAGAM Admin Panel has full integration with SMF Administration.
- Preview has been implemented, now you can preview your announcements before submit the announcement, using the SMF WYSIWYG Editor you have full control of the announcement before be published or edited.
- Enable/Disable an announcement now is really quick and easy, you click in the icon status in the admin panel, accept the popup and the announcement will be enable or disable.
- Some little new features, now you can see who do the last edit to a comment and the replies of each announcement in the admin panel.
- A lot of bugs has been fixed, specially with the database, forum log and linktree.
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
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.
Quote from: Ö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.
Same problem for me Nibogo
Please try uninstalling that mod and installing this new one
Or just run this db_yagam.php in your forum
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
Quote from: 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
Use the YAGAM v1.1.6.2 is the current stable version
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 ?
Quote from: 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
Done and 2 bugs always
1* BUGShttp://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:
'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 ;):
'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* BUGSIf 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=fba3619389945b8d2ea0176cbc770d096f2bb01c) in one of my announcement, appear this error:
The database value you're trying to insert does not exist: announcement_id
@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
And users can't seem announcements
8: Undefined index: announcement_no_permission
File: ./Sources/Errors.php
Line: 193
Sorry Nibogo but i mistaken, RC3 not work correctly i cannot select the usergroups enalbed to view announcements, al3ways remain the same user groups, permission are not modificable.
and another bug this part of code in managepermission.php is not installed automatically i must install it manually
<operation>
<search position="before"><![CDATA['access_mod_center' => array(false, 'maintenance', 'moderate_general'),]></search>
<add><![CDATA[
'yagam_manage' => array(false, 'maintenance', 'administrate'),]]></add>
</operation>
i reinstall old version RC1 and work with users permission to view announcement.
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.
Quote from: Sirkonrads on April 20, 2009, 05:34:25 PM
This mod loks nice .
but i got a question and that is if this mod can be possibe also have to version 1.1,cause i am using SMF 1.1.8 and i like to know if this can 1 day go this.
Nop try the Global Announcements mod by JayBachatero
I'm seeing these errors in my error log (YAGAM 2.0RC3):
Quote
http://www.fordfusionclub.com/index.php?board=23.40
8: Undefined variable: sticky_bar
File: /home/ffc/public_html/Themes/default/MessageIndex.template.php (main sub template - eval?)
Line: 281
281 is:
// The Normal Bar Added by YAGAM
elseif(($announcement_bar && !$normal_bar && empty($modSettings['yagam_sticky_bar']) && $sticky_bar) || ($announcement_bar $
Quote
http://www.fordfusionclub.com/index.php?board=18.0
8: Undefined variable: stickybar
File: /home/ffc/public_html/Themes/default/MessageIndex.template.php (main sub template - eval?)
Line: 275
275 is:
// Add the sticky bar
if($topic['is_sticky'] && !$stickybar && (!empty($modSettings['yagam_sticky_bar'])) && $announcement_bar){
echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '" style="padding:8px 4px;"><b>'$
$stickybar = true;
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
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 .. :-[
You don't edit the modifications.language.php file
YES, thank you
In my language file i was missing some parts
Thanks,
Great mod Working perfect for me.
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?
Quote from: mattchewone on May 02, 2009, 01:19:06 PM
Got this error when installing -
4. Execute Modification ./Themes/default/MessageIndex.template.php Test failed
1. Replace ./Themes/default/MessageIndex.template.php Test successful
2. Replace ./Themes/default/MessageIndex.template.php Test failed
What could of caused this issue?
Try with the manual edit in your MessageIndex.template.php file ;)
Quote from: NIBOGO on May 02, 2009, 08:21:31 PM
Quote from: mattchewone on May 02, 2009, 01:19:06 PM
Got this error when installing -
4. Execute Modification ./Themes/default/MessageIndex.template.php Test failed
1. Replace ./Themes/default/MessageIndex.template.php Test successful
2. Replace ./Themes/default/MessageIndex.template.php Test failed
What could of caused this issue?
Try with the manual edit in your MessageIndex.template.php file ;)
In the manual edit the second part it says to replace looks different to the one i have. if i upload mine would you be able to make the adjustments or let me know what i need to change.
Thanks
Are you able to tell me what i need to change in order to get this to work?
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
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.
Quote from: mattchewone on May 07, 2009, 04:27:26 AM
Im getting this error in all my boards
Unknown column 'm.real_name' in 'field list'
File: /home/matthew09/SMF/www/Sources/MessageIndex.php
Line: 672
I have attached the MessageIndex, At the moment none of my boards are accessible.
Same error for me
Unknown table 'm' in field list
File: /home/crazyzone/data/www/crazyzone.biz/Sources/MessageIndex.php
Riga: 763
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
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
thank you
when update linguage dont forget portuguese
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// YAGAM - Admin and MessageIndex Strings translate Candidosa2 suporte smfpt.net
$txt['yagam_admin'] = 'Anúncios Global';
$txt['yagam_topics'] = 'Tópicos Normais';
$txt['yagam_created'] = 'Criado em';
$txt['whoall_announcements'] = 'Ver anúncios Global';
$txt['permissionname_yagam_manage'] = 'Administrar anúncios Global';
$txt['permissionhelp_yagam_manage'] = 'Definir se o utilizador pode administrar anúncios Global.';
$txt['permissionname_yagam_comment'] = 'Comentário anúncios 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úncios';
$txt['yagam_remove'] = 'Apagar anúncios';
$txt['yagam_remove2'] = 'Remover';
$txt['yagam_admin_add'] = 'Adicionar Anú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úncios Global';
$txt['yagam_topics'] = 'Tópicos Normais';
$txt['yagam_created'] = 'Criado em';
$txt['whoall_announcements'] = 'Ver anúncios Global';
$txt['permissionname_yagam_manage'] = 'Administrar anúncios Global';
$txt['permissionhelp_yagam_manage'] = 'Definir se o utilizador pode administrar anúncios Global.';
$txt['permissionname_yagam_comment'] = 'Comentário anúncios 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úncios';
$txt['yagam_remove'] = 'Apagar anúncios';
$txt['yagam_remove2'] = 'Remover';
$txt['yagam_admin_add'] = 'Adicionar Anú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úncios Global';
$txt['yagam_topics'] = 'Tópicos Normais';
$txt['yagam_created'] = 'Criado em';
$txt['whoall_announcements'] = 'Ver anúncios Global';
$txt['permissionname_yagam_manage'] = 'Administrar anúncios Global';
$txt['permissionhelp_yagam_manage'] = 'Definir se o utilizador pode administrar anúncios Global.';
$txt['permissionname_yagam_comment'] = 'Comentário anúncios 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úncios';
$txt['yagam_remove'] = 'Apagar anúncios';
$txt['yagam_remove2'] = 'Remover';
$txt['yagam_admin_add'] = 'Adicionar Anú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úncios Global';
$txt['yagam_topics'] = 'Tópicos Normais';
$txt['yagam_created'] = 'Criado em';
$txt['whoall_announcements'] = 'Ver anúncios Global';
$txt['permissionname_yagam_manage'] = 'Administrar anúncios Global';
$txt['permissionhelp_yagam_manage'] = 'Definir se o utilizador pode administrar anúncios Global.';
$txt['permissionname_yagam_comment'] = 'Comentário anúncios 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úncios';
$txt['yagam_remove'] = 'Apagar anúncios';
$txt['yagam_remove2'] = 'Remover';
$txt['yagam_admin_add'] = 'Adicionar Anúncios Global';
]]></add>
</operation>
</file>
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:
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?
@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
Quote from: 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:
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?
And Also there isn't anymore option for bar of sticky topic ?
Quote from: edi67 on May 10, 2009, 03:01:34 PM
And Also there isn't anymore option for bar of sticky topic ?
There is in the 2.0 RC3
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
Try the manual edit in all the files with installation errors
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
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
the RC4 have that feature but there is a error with the strings, check the YAGAM settings
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
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.
uninstall that mod and try the YAGAM 2.0 RC4
Where would i find 2.0 RC4?
Thank you.
Quote from: mattchewone on May 25, 2009, 02:24:02 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
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.
Quote from: 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.
You are welcome ;)
Is this compatable to 2rc1-1
Quote from: Ö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
@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".
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
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.
Quote from: 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.
Please try with the version attached
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?
The yagam_manual_edit.html was released for YAGAM v2.0 RC1 or RC2 so is not updated
Quote from: 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
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.
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.
Quote from: 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.
Please read the topic, there is already a mod for 1.1.x
Quote from: 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.
I seem to be having the same problem is there a fix?
Quote from: NIBOGO on June 02, 2009, 09:39:45 PM
Quote from: 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.
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.
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:
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:
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);
Not work.
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.
Quote from: 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:
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:
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.
Anyone found a solution yet to above?
It would be nice to have this working.
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 :)
Quote from: 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:
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:
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: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: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.
Redryder, that's not doing it for me either... getting
QuoteParse 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
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);
Please everybody just modify this:
FIND:
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:
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);
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
This version still have permission problem. (I have clean install.)
Quote from: [Daydreamer] on June 23, 2009, 04:12:50 PM
This version still have permission problem. (I have clean install.)
I forgot it, now has been fixed please install the new version uploaded
Quote from: NIBOGO on June 23, 2009, 04:21:53 PM
Quote from: [Daydreamer] on June 23, 2009, 04:12:50 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.
Hi,
I have tied to uninstall v 1.1.7.2.
Error on Message index file.
Actual logout code on unistall page is ,
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,
// 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.
Uninstall and remove this code
// 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
Installed but hen i try to enter in announcements i rceive this error:
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?
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.
Quote from: [Daydreamer] on June 24, 2009, 06:50:18 AM
Uninstall and remove this code
Thank you and it had worked properly.
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...
Quote from: Grinch843 on July 20, 2009, 10:33:53 PM
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
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
When I go to ?action=announcements I get this:
QuoteAn 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.
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
Mine still redirects back to the index... no error msg: http://www.mazda3forums.com/index.php?action=announcement;aid=3
Quote from: 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
I know it, right know I have some serious personal issues so I don't know when I can fix it
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..
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
Will this work with 1.1.10? Or is there another Global Announcements mod out there?
There's another.
Quote from: 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
nobody can help me? thx
Are you sure /forum/Sources/AnnouncementView.php is there?
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
Yeah I'm seeing that now as well. Either way, not working though ;)
Quote from: drhamad on August 10, 2009, 09:40:17 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
Quote from: NIBOGO on August 10, 2009, 10:25:55 PM
Quote from: drhamad on August 10, 2009, 09:40:17 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
As an admin I get the same error you're getting.
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...........
Quote from: 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...........
I have the same problem. I use PROF theme and I installed YAGAM for the theme.
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
Quotehttp://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
Quote from: 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...........
Welcome to the club :(
Quote from: drhamad on September 02, 2009, 05:22:30 PM
Quote from: 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...........
Welcome to the club :(
LOL drhamad you got that one right..
Almost everyone has similar problem :(
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 :)
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.
@NIBOGO: is development of this mod ceased?
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
Quote from: 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
Manually upload the AnnouncementView.php file to the /Sources/ directory.. This file is not copied if you install this mod through the packet manager.
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 !
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
Quote from: 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
Great to hear! :)
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!
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
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.
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:
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:
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=600ca32320c9fcf09b9b167050887404def00348) (http://i33.tinypic.com/xbwlma.jpg)
Perhaps the mod could check the columns and skip the unknown (show empty cell)?
No, you have to manually modify the MessageIndex.template.php
Quote from: NIBOGO on October 26, 2009, 04:31:07 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.
Hola
hay version o se sabe algo para RC2
Gracias
Will this be updated for RC2?
When I have time, pretty busy with some custom jobs
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.
MessageIndex.template.php This code does 2.0 RC2
Available within 2.0 RC1.2
// 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?
up
Try the new package
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
Finally i can use this mod, thanks works like a charm
I installed your mod update but my message index slided apart from message table as you can see from the picture.
Quote from: 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.
Try this package, I can't test it because I am in a pc without a localhost but it should work
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi45.tinypic.com%2F2lc786d.gif&hash=694fd89488a7249a3f124175787be4d311bfae6a)
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.
Good job on both fixes both now work great
problem continues
before:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi50.tinypic.com%2Fam42tw.gif&hash=4a2d528f7468e09ed6d2bd6ee42bafaf707aa2b0)
after
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi50.tinypic.com%2F2cde6gh.gif&hash=2bff45b497c5d569dc07bfd89147435dfc237493)
the new version is something that has not changed. problem continues. See picture
Quote from: ® SirtLan on November 26, 2009, 06:41:26 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 ;)
Quote from: DirtRider on November 26, 2009, 06:50:46 AM
Quote from: ® SirtLan on November 26, 2009, 06:41:26 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.
mod is great, but the problem continues
be seen in the picture
Quote from: karanima on November 26, 2009, 06:59:24 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.
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
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 ;)
New Package Uploaded, fixing that issue ;)
that's great
excellent job
Quote from: NIBOGO on November 26, 2009, 11:54:39 AM
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
Quote from: DirtRider on November 26, 2009, 01:58:07 PM
Quote from: NIBOGO on November 26, 2009, 11:54:39 AM
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
Quote from: NIBOGO on November 26, 2009, 01:59:15 PM
Quote from: DirtRider on November 26, 2009, 01:58:07 PM
Quote from: NIBOGO on November 26, 2009, 11:54:39 AM
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
And it is now fixed 100% thanks ;D
Good Job, Now 100% work, Thank You "NIBOGO" Great Mod
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
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?
The mod is now running without errors. I made two changes:
1. add at the end before } ?>
// Some people can't send personal messages...
$context['can_send_pm'] = allowedTo('pm_send');
2. change line 38
....$$context['announcement']['author']['online']['label'].....
to
....$context['announcement']['author']['online']['label']....
This is a great mod! I was wondering is there a way for it to be counted as a topic and posts?
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.
Quote from: 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?
As Spoogs says the closest thing is convert the announcement into a regular topic but count announcements would make the forum SLOW
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
I'm getting alot of this:
8: Undefined index: can_send_pm
I've been gettin a lot of those too
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.
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
Great, looking forward to this. This bug does not impact at us, does it?
Quote from: Dismal Shadow on December 31, 2009, 12:53:36 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)
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.
Quote from: Dismal Shadow 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.
The twitter and facebook images are in the Global HF Mod or in your signature?
Quote from: NIBOGO on December 31, 2009, 02:30:35 PM
Quote from: Dismal Shadow 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.
The twitter and facebook images are in the Global HF Mod or in your signature?
Global HF Mod, sir.
Quote from: Dismal Shadow on December 31, 2009, 02:32:57 PM
Quote from: NIBOGO on December 31, 2009, 02:30:35 PM
Quote from: Dismal Shadow 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.
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
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...
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
Will this mod be compatible with version 1.1.11?
enough to help us 8)
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.
Quote from: 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...
Thanks for the translation but can I ask you something??
This strings has to be translated too:
// 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!
Quote from: 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)
http://www.simplemachines.org/community/index.php?topic=292270.msg1930555#msg1930555 (http://www.simplemachines.org/community/index.php?topic=292270.msg1930555#msg1930555)
Nibogo this mod is great... I use since I have opened my forum...
*Have you seen my pms?
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 :( :( :(
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:
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 2066
located in SSI.php
Quote from: 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 :( :( :(
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.
Quote from: NIBOGO on January 06, 2010, 05:42:36 PM
Quote from: 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)
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
For the people with the error in the SSI.php just remove the two latest functions added by yagam
I've just installed this and its ******ed up my forum!!!!!
It's all gone white
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!!!!!
i get this come up on my forum: 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?
Conflicts with SimplePortal on my forum. I get a white page after installing these two mods together.
For people with the blank page please open SSI.php:
Search for:
global $scripturl, $smcFunc;
$request = $smcFunc['db_query']('', "
SELECT
title, id_announcement
Replace with:
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
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
sorted... cheers!!
with the ./Sources/Admin.php file i found that this
'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 '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
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.
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
YAGAM v2.5??
I tested yesterday and works great
@NIBOGO
Thank you for the fix. Works great.
Glad you like it :)
Quote from: 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
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
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
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
Again SSI problem. Blank page!
ok. Check This.
Quote from: NIBOGO on January 08, 2010, 12:47:39 PM
For people with the blank page please open SSI.php:
Search for:
global $scripturl, $smcFunc;
$request = $smcFunc['db_query']('', "
SELECT
title, id_announcement
Replace with:
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
Quote from: 130860 on January 09, 2010, 10:30:56 PM
mira, busca esto:
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:
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
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?
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
Quote from: NIBOGO on January 06, 2010, 05:42:36 PM
Thanks for the translation but can I ask you something??
This strings has to be translated too:
// 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 ;)
// 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?
Quote from: nuva on January 13, 2010, 02:36:10 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
Quote from: 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
Do manual edit
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?
Quote from: 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?
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.
Quote from: nuva on January 13, 2010, 02:36:10 PM
no problem ;)
// 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
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
Quote from: NIBOGO on January 13, 2010, 09:41:12 PM
Quote from: 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?
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!
Quote from: 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
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
Quote from: tanshin on January 14, 2010, 10:13:56 AM
Quote from: NIBOGO on January 13, 2010, 09:41:12 PM
Quote from: 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?
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
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
If you have a custom theme you must edit the Messageindex.template.php and check the permissions of the announcement
what's the edit i need to do in there then? i've checked the permissions everytime and it's for all to see :)
Quote from: 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 :)
The same edit that you do on Curve
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=834a32ea78129c0258ca53f336021f1017be684b)
as you can see in the image i have a problem about how this golbal announcements show the post, can anyone help me?
Quote from: NIBOGO on January 15, 2010, 04:27:01 PM
Quote from: 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 :)
The same edit that you do on Curve
can't find it... can you direct me to it mate?
Getting bunch of errors in the log 8: Undefined variable: announcement_permission
in cache/lang_Project_english_lightmodern.php (main sub template - eval?)
Line: 257
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.
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=2a9e0ce9f7dc0e1eda39c7d54bd58c8497d9a035)
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=3baefeb257d9133c3fb35e6f090df01c34725807)
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=5d51de95af77366f3a70030b05602721e007bf56)
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=c44aaece94dbf6a68e4a0e322545b5261a4399f7)
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=fea49ece4ea242609df9125bd3f7946af32193c8)
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=856ac8104830e784e283565f159535e7c8cd6b5a)
Currently I'm really sick so I'll check the permissions issue as soon as I feel better
Get well soon Nibogo :)
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.
thx nibogo!!! permissions works now!!!, but the issue with the template if you dont allow comments still there :(
I forgot it, I'll check it for the next release
Error log
Undefined index: comment_total
File: /../Sources/AnnouncementView.php
Installed except for a bunch of the PHP showing on the very top of every page (and with the
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!
Hi !
I installed this but had troubles to use so i decided to uninstall. Now a topic will always stay remain unread - why ?!
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=650a7821d13fce487dfe92dc7029ac4de3200286)
if you dont allow comments:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg682.imageshack.us%2Fimg682%2F1161%2F1copiaw.jpg&hash=4f105cd4bc666dc04e79025b42892670cd48a007)
can you tell me what i need to change to solved it?
pd: again, thx for this great mod.
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
this mod will be updated for 2.0rc3?
Quote from: okae on March 09, 2010, 07:05:03 AM
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.
Quote from: NIBOGO on March 09, 2010, 01:14:15 PM
Quote from: okae on March 09, 2010, 07:05:03 AM
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 ;)
rc3 update?
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.
I also see you added in "convert thread to announcement" commands!
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 ?!
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"...
no errors during installation (on the forum have already installed the 38 mods)
after installation for RC3
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?
Quote from: Dismal Shadow 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.
Exactly how you get the facebook and twitter icons there ?
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.
Quote from: 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.
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
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
Quote from: NIBOGO on March 29, 2010, 03:52:37 PM
Quote from: 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.
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?
Quote from: drhamad on March 29, 2010, 10:07:19 PM
Quote from: NIBOGO on March 29, 2010, 03:52:37 PM
Quote from: 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.
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
Thanks, I'll let you know!
Hmm, I replaced the MessageIndex.template.php code with the YAGAM 2.0 code and it didn't make a difference.
Quote from: 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
(https://www.simplemachines.org/community/index.php?action=dlattach;topic=292270.0;attach=139413;image)
BUmp ,,, still need help with this...
Line 35 ... ... AnouncementView/errors.php
FROM {db_prefix}announcements AS a
Line 190 ... AnouncementView/errors.php
'num_pages' => floor(($context['announcement']['comment_total'] - 1) / $limit) + 1,
Line 201 ... source/errors.php
$error_message = empty($sprintf) ? $txt[$error] : vsprintf($txt[$error], $sprintf);
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)
NIBOGO, i uninstalled because it had many error as mentioned in the previous comments.
Quote from: Dismal Shadow on April 10, 2010, 04:33: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
As an FYI, we've now moved to Curve so my comments about Core are irrelevant.
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.
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.
Quote from: 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.
I am minimalist. :P
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
Installed, still errors when viewing an announcement... See pic
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
Quote from: aw06 on April 10, 2010, 08:56:03 PM
Installed, still errors when viewing an announcement... See pic
You only have that errors???
Quote from: NIBOGO on April 11, 2010, 11:53:13 AM
Quote from: aw06 on April 10, 2010, 08:56:03 PM
Installed, still errors when viewing an announcement... See pic
You only have that errors???
No, I guess you did test it?
8: Undefined variable: Online
File: /home/user/public_html/dev/Themes/default/AnnouncementView.template.php
Line: 35
2: Division by zero
File: /home/user/public_html/dev/Sources/AnnouncementView.php
Line: 201
8: Undefined variable: limit
File: /home/user/public_html/dev/Sources/AnnouncementView.php
Line: 201
2: Division by zero
File: /home/user/public_html/dev/Sources/AnnouncementView.php
Line: 200
8: Undefined variable: limit
File: /home/user/public_html/dev/Sources/AnnouncementView.php
Line: 200
2: Division by zero
File: /home/user/public_html/dev/Sources/Subs.php
Line: 692
2: Division by zero
File: /home/user/public_html/dev/Sources/Subs.php
Line: 687
2: Division by zero
File: /home/user/public_html/dev/Sources/Subs.php
Line: 682
2: Division by zero
File: /home/user/public_html/dev/Sources/Subs.php
Line: 677
2: Division by zero
File: /home/user/public_html/dev/Sources/Subs.php
Line: 630
8: Undefined variable: limit
File: /home/user/public_html/dev/Sources/AnnouncementView.php
Line: 195
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. ;)
Please try the package attached
I change the way the pagination is created and fix the DB error, works for me
Quote from: 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
Yep that fixed it. Good job. ;)
Quote from: Dismal Shadow on April 11, 2010, 01:41:39 PM
Quote from: 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
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
Quote from: 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
Jackpot.... you got it ... No Errors,, Logs clean 8)
There is one. If you click the announcement log
8: Undefined index: can_view_profile
File: /home/user/public_html/forum.com/Themes/default/AnnouncementView.template.php
Line: 115
Quote from: Dismal Shadow on April 11, 2010, 02:19:12 PM
There is one. If you click the announcement log
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??
Sure here:
http://forum.com/index.php?action=announcements;sa=log;aid=4
I tried to reproduce it on my localhost and I can't
Someone else has this error??
Quote from: 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??
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
Yeah, get error when click log as well ...
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
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
Quote from: 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
That fixed the "8: Undefined index: can_view_profile" issue, however there is unexpected ; in Sources/AnnouncementView.php
Find:
'can_view_profile' => allowedTo('profile_view_any') || ($row['author'] == $user_info['id'] && allowedTo('profile_view_own'));
Replace:
'can_view_profile' => allowedTo('profile_view_any') || ($row['author'] == $user_info['id'] && allowedTo('profile_view_own')),
Quote from: Dismal Shadow on April 11, 2010, 03:32:35 PM
Quote from: 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
That fixed the "8: Undefined index: can_view_profile" issue, however there is unexpected ; in Sources/AnnouncementView.php
Find:
'can_view_profile' => allowedTo('profile_view_any') || ($row['author'] == $user_info['id'] && allowedTo('profile_view_own'));
Replace:
'can_view_profile' => allowedTo('profile_view_any') || ($row['author'] == $user_info['id'] && allowedTo('profile_view_own')),
This fixes everything now ? no errors ?
Why don't you try and see for yourself?
would wait for the final 2.7.3 repack
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
Installed.... Seems 100% error Free now :)
There is a big gap if you add a announcement.
Hmm, that gap was always there for me, but not so big as yours...
That's minor issue no ? live-able ?
It looks great on Firefox with Curve, what is your theme/browser?
Quote from: NIBOGO on April 12, 2010, 07:39:19 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.
+1
no errors
NIBOGO great job
Quote from: Dismal Shadow on April 12, 2010, 04:08:56 PM
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
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
Quote from: 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
Currently you can't, maybe as a custom feature exclusive for your website as a paid service
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
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 just unistalled it.
I don't ever announce topics. so I'm good
Quote from: 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
I have to log errors
http://site/index.php?action=announcements;sa=convert;topic=954
Unable to load the 'main' template.
Quote from: NIBOGO on April 14, 2010, 09:58:16 AM
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
Quote from: aw06 on April 14, 2010, 11:49:31 AM
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
Confirmed new package is going to be uploaded with a fix
Quote from: Makar on April 14, 2010, 12:36:49 PM
хм..........
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
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?
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
any ideas on undefinied index online_color in messageindex.template.php
line 269
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
Need a feature to select the board id and just display the x amount of topics from that board everywhere (globally).
Quote from: 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).
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
Polish translation ISO and UTF-8 please added to next verion or upgrade this
Quote from: Dismal Shadow on April 12, 2010, 07:58:44 PM
Quote from: NIBOGO on April 12, 2010, 07:39:19 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.
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:
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:
<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:
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:
$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.
i have the same problem, look a few post above yours, also using member color link
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:
<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:
$context['poster'] = $context['announcement']['author']['link'];
and it looks like it works fine, and i get no more errors.
Goodnight!
There is a bug, the ad is truncate
and When I click on CONVERT INTO ANNOUNCEMENT I am redirected to a blank page
Noticed something with this mod ...
When i check announcement log .. i see it showing some regular people as moderators .... anybody else notice this ?
Quote from: 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
UP ::)
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):
QuoteNotice: 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
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.
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
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
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
Is it possible to add a feature autohide from usergroups which are not eval to the group for which i created the announcement ?
Quote from: Kindred on October 08, 2010, 01:44:05 PM
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
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
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.
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?
yes. Any template file which your theme does not specify will fall through to use the default version
There's an edit for MessageIndex.template.php
Its written to find this code
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
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
// 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
Quote from: Kindred on October 08, 2010, 01:44:05 PM
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.
Ok I will post it there. But still if anyone can help, then he is most welcome. Thanks Kindred for your honest reply.
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
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
// 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; }
your paste failed.... there are no line breaks.
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)
Portuguese_pt Update
<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úncios Global ';
$txt['yagam_sticky_bar'] = 'Tópicos importantes';
$txt['yagam_topics'] = 'Normal Tópicos';
$txt['yagam_created'] = 'Criado em';
$txt['yagam_remove_verify'] = 'em certeza que deseja apagar este anúncio?';
$txt['whoall_announcements'] = 'Vendo um Anúncio Global';
$txt['permissionname_yagam_manage'] = 'Geriar anúncios globais';
$txt['permissionhelp_yagam_manage'] = 'Definir se você deseja permitir ao utilizador gerir anúncios globais.';
$txt['permissionname_yagam_comment'] = 'Comentar no Anúncios Global';
$txt['permissionhelp_yagam_comment'] = 'Definir se você deseja permitir comentários dos utilizadores sobre os anúncios globais.';
$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';
$txt['yagam_admin_settings'] = 'Configurações dos Anúncios Globais ';
$txt['yagam_version'] = 'Versão anúncios globais';
$txt['yagam_confirm_convert'] = 'Tem certeza que você deseja converter esse tópico? O tópico será apagado';
$txt['yagam_convert'] = 'Converter em anú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úncios Global ';
$txt['yagam_sticky_bar'] = 'Tópicos importantes';
$txt['yagam_topics'] = 'Normal Tópicos';
$txt['yagam_created'] = 'Criado em';
$txt['yagam_remove_verify'] = 'em certeza que deseja apagar este anúncio?';
$txt['whoall_announcements'] = 'Vendo um Anúncio Global';
$txt['permissionname_yagam_manage'] = 'Geriar anúncios globais';
$txt['permissionhelp_yagam_manage'] = 'Definir se você deseja permitir ao utilizador gerir anúncios globais.';
$txt['permissionname_yagam_comment'] = 'Comentar no Anúncios Global';
$txt['permissionhelp_yagam_comment'] = 'Definir se você deseja permitir comentários dos utilizadores sobre os anúncios globais.';
$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';
$txt['yagam_admin_settings'] = 'Configurações dos Anúncios Globais ';
$txt['yagam_version'] = 'Versão anúncios globais';
$txt['yagam_confirm_convert'] = 'Tem certeza que você deseja converter esse tópico? O tópico será apagado';
$txt['yagam_convert'] = 'Converter em anúncio';
]]></add>
</operation>
</file>
Thanks
This is a great mod. Is it going to be updated?
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
'yagam_manage' => array(false, 'maintenance', 'administrate'),
Not compatible wth RC4. (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs7.tinypic.com%2F4jlxrn.jpg&hash=75e495c34b67ecaa8dde93c8059a73f32f123324)
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).
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.
shows just fine on the default theme http://easygp.org/index.php?theme=1;action=announcement;aid=1
Quote from: 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
I was trying to get it for the touch theme.. ;s
It's your theme, not the mod.
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:
Can´t load 'main' Template
Whats that and how can i solve it ?
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?
Quote from: 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?
Nevermind. I have manually imported old data to the new mod.
Thank you anyway.
Updated for SMF 2.0
Quote from: Nibogo on June 29, 2011, 07:13:56 PM
Updated for SMF 2.0
Error:
Can´t load 'main' Template
Whats that and how can i solve it ?
I am also getting an error when trying to convert a topic into an announcement
I have the default theme, 2.0 final
Quote from: 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:
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
Many Thanks for this Super Mod..
You're welcome
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
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,
same here,
normal user can't comment an announcements
convert a threat to announcement "loging main template" error
any way to fix this?
best
when will you fix bugs?
When I've time, something that won't happen anytime soon, reason? lack of motivation
will there be an updated version of this for SMF 2.0.1?
Quote from: Nibogo on October 09, 2011, 11:05:31 AM
When I've time, something that won't happen anytime soon, reason? lack of motivation
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?
is there anyway to change the topic icon for announcments
dear author, there is some error occurred in converting the topic of my forum to announcement. it says
An Error Has Occurred!
Unable to load the 'main' template.
how could i fix this problem?
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? :-\
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.
An Error Has Occurred!
Unable to load the 'main' template.
anybody know how to fix this? please help.
how would i change the text from "Important Topics" to "sticky"?
will this ever be fix?
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?
Quote from: 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?
have you create an announcements after you install the mod?
Quote from: fullmoonya on February 06, 2012, 09:30:13 PM
Quote from: 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?
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.
Quote from: RSC17 on February 06, 2012, 09:49:04 PM
Quote from: fullmoonya on February 06, 2012, 09:30:13 PM
Quote from: 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?
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.
sounds good, thank you.
Quote from: RSC17 on February 07, 2012, 06:19:28 PM
sounds good, thank you.
no problem.
Quote from: 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
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.
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:
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. :)
Quote from: 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:
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.
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.
i hope somebody fix the problem in converting topics to announcements. Just really need that function.
How to give Global Moderator the permission to post an announcement?
Quote from: 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:
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
it wont let me install it..
it only shows list files and delete
look up "emulate version" in the wiki
NOW YOU CAN LEGALLY REMOVE THE COPYRIGHT OF THIS MOD:
http://www.smfpacks.com/page/sa=copyright
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?
How to fix
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimageshack.us%2Fa%2Fimg839%2F8563%2F98749862.png&hash=90baf25be1f573ed863fe5fdf357ae081c919e59)
this bug its on some theme - like officebox by logooff
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>';
It says its compatible with 2.0.2 but doesnt work. Please help. It says its not compatible.
Will not install on SMF 2.0.3 says the files is corrupt or incompatible with this version of SMF
http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version
Quote from: lttung on June 07, 2012, 12:44:46 PM
Quote from: 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:
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?
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?
That would require some extra coding.
Well, I haven't checked what the repercussions will be yet, however I tracked the membergroups to this query:
$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:
$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...
There is no option to install this when you upload to 2.0.4 either. :( Will this be updated soon?
Use version emulate, it should do it.
You updated the mod page but that confuses people, please remove those versions from mod page or update the mod with range.
Thanks :)
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:
Quotehttp://pc.ihavetoget.it/index.php?action=announcements;aid=1
8: Undefined variable: sa
File: /htdocs/public/pc/Sources/Announcements.php
Line: 60
&
Quotehttp://pc.ihavetoget.it/index.php?pretty;action=announcements&amp;aid=1
8: Undefined variable: sa
File: /htdocs/public/pc/Sources/Announcements.php
Line: 60
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
Quote from: 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
could you please share how to fix this. I'm also stuck on this too. Thanks
Quote from: drroot on May 10, 2012, 09:43:24 PM
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:
$permissionList = array(
'membergroup' => array(
And add :
'yagam_manage' => array(false, 'maintenance', 'administrate'),
Right under the entry:
'yagam_comment' => array(false, 'general', 'view_basic_info'),
Seems to have worked for me!
Quote from: 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
'yagam_manage' => array(false, 'maintenance', 'administrate'),
...still unable to convert a topic to an announcement, though.
anyone figure that out?
Version 2.7.5 - November 17, 2017
* Better installation.
No need to upgrade if you already have it working.
@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:
$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.
Hello, will this mod be updated to work with SMF 2.1?
If there's enough interest
@Nibogo Are you able to update this mod for SMF 2.1? It would be nice if this mod worked in 2.1